Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addItem(self, item):
21
    """
22
    Availability and inventory attributes
23
 
24
    Parameters:
25
     - item
26
    """
27
    pass
28
 
29
  def updateItem(self, item):
30
    """
31
    Parameters:
32
     - item
33
    """
34
    pass
35
 
36
  def isActive(self, itemId):
37
    """
38
    Checks if the item given to the corresponding itemId is active. If it's active,
39
    whether it's risky and if it's risky, its inventory position.
40
 
41
    Parameters:
42
     - itemId
43
    """
44
    pass
45
 
46
  def getItemStatusDescription(self, itemId):
47
    """
48
    Parameters:
49
     - itemId
50
    """
51
    pass
52
 
53
  def startItemOn(self, item_id, timestamp):
54
    """
55
    Parameters:
56
     - item_id
57
     - timestamp
58
    """
59
    pass
60
 
61
  def retireItemOn(self, item_id, timestamp):
62
    """
63
    Parameters:
64
     - item_id
65
     - timestamp
66
    """
67
    pass
68
 
69
  def changeItemStatus(self, item_id, timestamp, newstatus):
70
    """
71
    Parameters:
72
     - item_id
73
     - timestamp
74
     - newstatus
75
    """
76
    pass
77
 
78
  def getItem(self, item_id):
79
    """
80
    Parameters:
81
     - item_id
82
    """
83
    pass
84
 
85
  def getItemsByCatalogId(self, catalog_item_id):
86
    """
87
    Parameters:
88
     - catalog_item_id
89
    """
90
    pass
91
 
92
  def getValidItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getAllItems(self, isActive):
100
    """
101
    Parameters:
102
     - isActive
103
    """
104
    pass
105
 
106
  def getAllItemsByStatus(self, itemStatus):
107
    """
108
    Parameters:
109
     - itemStatus
110
    """
111
    pass
112
 
113
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
114
    """
115
    Parameters:
116
     - entityId
117
     - category
118
     - brand
119
     - modelName
120
     - modelNumber
121
    """
122
    pass
123
 
124
  def getAllItemsInRange(self, offset, limit):
125
    """
126
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
127
 
128
    Parameters:
129
     - offset
130
     - limit
131
    """
132
    pass
133
 
134
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
135
    """
136
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
137
 
138
    Parameters:
139
     - itemStatus
140
     - offset
141
     - limit
142
    """
143
    pass
144
 
145
  def getItemCountByStatus(self, useStatus, itemStatus):
146
    """
147
    Gets a count of all items by status
148
 
149
    Parameters:
150
     - useStatus
151
     - itemStatus
152
    """
153
    pass
154
 
155
  def getBestSellers(self, ):
156
    pass
157
 
158
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
159
    """
160
    Parameters:
161
     - beginIndex
162
     - totalItems
163
     - brand
164
     - category
165
    """
166
    pass
167
 
168
  def getBestSellersCount(self, ):
169
    pass
170
 
171
  def getBestDeals(self, ):
172
    pass
173
 
174
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
175
    """
176
    Parameters:
177
     - beginIndex
178
     - totalItems
179
     - brand
180
     - category
181
    """
182
    pass
183
 
184
  def getBestDealsCount(self, ):
185
    pass
186
 
187
  def getComingSoon(self, ):
188
    pass
189
 
190
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
191
    """
192
    Parameters:
193
     - beginIndex
194
     - totalItems
195
     - brand
196
     - category
197
    """
198
    pass
199
 
200
  def getComingSoonCount(self, ):
201
    pass
202
 
203
  def getLatestArrivals(self, ):
204
    """
205
    Returns a list of items sorted in the descending order by start date.
206
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
207
    """
208
    pass
209
 
210
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
211
    """
212
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
213
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
214
 
215
    Parameters:
216
     - beginIndex
217
     - totalItems
218
     - brand
219
     - categories
220
    """
221
    pass
222
 
223
  def getLatestArrivalsCount(self, ):
224
    """
225
    Get the total number of latest arrivals we are willing to show.
226
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
227
    """
228
    pass
229
 
230
  def generateNewEntityID(self, ):
231
    pass
232
 
233
  def addCategory(self, category):
234
    """
235
    All category related functions
236
 
237
    Parameters:
238
     - category
239
    """
240
    pass
241
 
242
  def getCategory(self, id):
243
    """
244
    Parameters:
245
     - id
246
    """
247
    pass
248
 
249
  def getAllCategories(self, ):
250
    pass
251
 
252
  def getAllSimilarItems(self, itemId):
253
    """
254
    Returns the list of similar items.
255
 
256
    Parameters:
257
     - itemId
258
    """
259
    pass
260
 
261
  def addSimilarItem(self, itemId, catalogItemId):
262
    """
263
    Adds similar item.
264
 
265
    Parameters:
266
     - itemId
267
     - catalogItemId
268
    """
269
    pass
270
 
6512 kshitij.so 271
  def addTag(self, displayName, itemId):
272
    """
273
    Tag Related
274
 
275
    Parameters:
276
     - displayName
277
     - itemId
278
    """
279
    pass
280
 
281
  def deleteEntityTag(self, displayName, itemId):
282
    """
283
    Parameters:
284
     - displayName
285
     - itemId
286
    """
287
    pass
288
 
289
  def deleteTag(self, displayName):
290
    """
291
    Parameters:
292
     - displayName
293
    """
294
    pass
295
 
296
  def getAllTags(self, ):
297
    pass
298
 
299
  def getAllEntitiesByTagName(self, displayName):
300
    """
301
    Parameters:
302
     - displayName
303
    """
304
    pass
305
 
6845 amit.gupta 306
  def getAllEntityTags(self, ):
307
    pass
308
 
6850 kshitij.so 309
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
310
    """
311
    Parameters:
312
     - bannerName
313
     - imageName
314
     - link
315
     - priority
316
     - isActive
317
     - hasMap
318
    """
319
    pass
320
 
321
  def getAllBanners(self, ):
322
    pass
323
 
324
  def deleteBanner(self, bannerName):
325
    """
326
    Parameters:
327
     - bannerName
328
    """
329
    pass
330
 
331
  def getBannerDetails(self, bannerName):
332
    """
333
    Parameters:
334
     - bannerName
335
    """
336
    pass
337
 
338
  def getActiveBanners(self, ):
339
    pass
340
 
6849 kshitij.so 341
  def addBannerMap(self, bannerName, mapLink, coordinates):
342
    """
343
    Parameters:
344
     - bannerName
345
     - mapLink
346
     - coordinates
347
    """
348
    pass
349
 
350
  def deleteBannerMap(self, bannerName):
351
    """
352
    Parameters:
353
     - bannerName
354
    """
355
    pass
356
 
357
  def getBannerMapDetails(self, bannerName):
358
    """
359
    Parameters:
360
     - bannerName
361
    """
362
    pass
363
 
5944 mandeep.dh 364
  def deleteSimilarItem(self, itemId, catalogItemId):
365
    """
366
    Delete similar item.
367
 
368
    Parameters:
369
     - itemId
370
     - catalogItemId
371
    """
372
    pass
373
 
374
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
375
    """
376
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
377
    If yes, returns the itemId else returns 0
378
 
379
    Parameters:
380
     - brand
381
     - modelNumber
382
     - modelName
383
     - color
384
    """
385
    pass
386
 
387
  def validateRiskyStatus(self, itemId):
388
    """
389
    Check wether item is risky and change status if inventory is not available for risky items
390
 
391
    Parameters:
392
     - itemId
393
    """
394
    pass
395
 
396
  def changeItemRiskyFlag(self, itemId, risky):
397
    """
398
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
399
 
400
    Parameters:
401
     - itemId
402
     - risky
403
    """
404
    pass
405
 
406
  def getItemsByRiskyFlag(self, ):
407
    """
408
    Returns list of items marked as risky.
409
    """
410
    pass
411
 
412
  def getItemsForMasterSheet(self, category, brand):
413
    """
414
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
415
 
416
    Parameters:
417
     - category
418
     - brand
419
    """
420
    pass
421
 
422
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
423
    """
424
    Returns list of catalog ids of items with same similarity index as of the given itemId
425
 
426
    Parameters:
427
     - beginIndex
428
     - totalItems
429
     - itemId
430
    """
431
    pass
432
 
433
  def addProductNotification(self, itemId, email):
434
    """
435
    Add user requests for out of stock items. Once user will ask for notify me an entry will
436
 
437
    Parameters:
438
     - itemId
439
     - email
440
    """
441
    pass
442
 
443
  def sendProductNotifications(self, ):
444
    """
445
    Send the product notifications to the users for items which has stock.
446
    """
447
    pass
448
 
449
  def getAllBrandsByCategory(self, categoryId):
450
    """
451
    Returns list of brand names for a given category Id
452
 
453
    Parameters:
454
     - categoryId
455
    """
456
    pass
457
 
458
  def getAllBrands(self, ):
459
    """
460
    Returns list of brand names
461
    """
462
    pass
463
 
464
  def getAllSources(self, ):
465
    """
466
    Return list of all sources
467
    """
468
    pass
469
 
470
  def getItemPricingBySource(self, itemId, sourceId):
471
    """
472
    Returns the pricing information of an item. If no information is found, exception will be thrown.
473
 
474
    Parameters:
475
     - itemId
476
     - sourceId
477
    """
478
    pass
479
 
480
  def addSourceItemPricing(self, sourceItemPricing):
481
    """
482
    Adds prices to be displayed corresponding to the item if user comes from a source.
483
    If item is not found or source is not found, it will throw exception.
484
 
485
    Parameters:
486
     - sourceItemPricing
487
    """
488
    pass
489
 
490
  def getAllSourcePricing(self, itemId):
491
    """
492
    Returns the list of source pricing information of an item.
493
    Raises an exception if item not found corresponding to itemId
494
 
495
    Parameters:
496
     - itemId
497
    """
498
    pass
499
 
500
  def getItemForSource(self, item_id, sourceId):
501
    """
502
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
503
 
504
    Parameters:
505
     - item_id
506
     - sourceId
507
    """
508
    pass
509
 
510
  def searchItemsInRange(self, searchTerms, offset, limit):
511
    """
512
    Searches items matching the the given terms in the catalog and returns results within the specified range.
513
 
514
    Parameters:
515
     - searchTerms
516
     - offset
517
     - limit
518
    """
519
    pass
520
 
521
  def getSearchResultCount(self, searchTerms):
522
    """
523
    Gets the count of search results for the given search terms so that the user can go through all the pages.
524
 
525
    Parameters:
526
     - searchTerms
527
    """
528
    pass
529
 
530
  def getProductNotifications(self, startDateTime):
531
    """
532
    Returns a list of product notifications added after a supplied datetime
533
 
534
    Parameters:
535
     - startDateTime
536
    """
537
    pass
538
 
539
  def getProductNotificationRequestCount(self, startDateTime):
540
    """
541
    Returns a list of count of requests for product notification against each item
542
 
543
    Parameters:
544
     - startDateTime
545
    """
546
    pass
547
 
548
  def addAuthorizationLog(self, itemId, username, reason):
549
    """
550
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
551
 
552
    Parameters:
553
     - itemId
554
     - username
555
     - reason
556
    """
557
    pass
558
 
559
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
560
    """
561
    Parameters:
562
     - catalog_item_id
563
     - voucherType
564
     - voucherAmount
565
    """
566
    pass
567
 
568
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
569
    """
570
    Parameters:
571
     - catalog_item_id
572
     - voucherType
573
    """
574
    pass
575
 
576
  def getVoucherAmount(self, itemId, voucherType):
577
    """
578
    Parameters:
579
     - itemId
580
     - voucherType
581
    """
582
    pass
583
 
584
  def getAllItemVouchers(self, itemId):
585
    """
586
    Parameters:
587
     - itemId
588
    """
589
    pass
590
 
591
  def isValidCatalogItemId(self, catalog_item_id):
592
    """
593
    Parameters:
594
     - catalog_item_id
595
    """
596
    pass
597
 
6039 amit.gupta 598
  def getVatPercentageForItem(self, itemId, price):
599
    """
600
    Parameters:
601
     - itemId
602
     - price
603
    """
604
    pass
5944 mandeep.dh 605
 
6039 amit.gupta 606
  def getVatAmountForItem(self, itemId, price):
607
    """
608
    Parameters:
609
     - itemId
610
     - price
611
    """
612
    pass
613
 
6531 vikram.rag 614
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
615
    """
616
    Parameters:
617
     - offset
618
     - limit
619
    """
620
    pass
6039 amit.gupta 621
 
6821 amar.kumar 622
  def getAllAliveItems(self, ):
623
    pass
624
 
6921 anupam.sin 625
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 626
    """
627
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 628
 
6805 anupam.sin 629
    Parameters:
630
     - itemId
6921 anupam.sin 631
     - price
6805 anupam.sin 632
     - insurerId
633
     - quantity
634
    """
635
    pass
636
 
637
  def getInsurer(self, insurerId):
638
    """
639
    Parameters:
640
     - insurerId
641
    """
642
    pass
643
 
6838 vikram.rag 644
  def getAllInsurers(self, ):
645
    pass
6805 anupam.sin 646
 
6962 rajveer 647
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
648
    """
649
    Parameters:
650
     - insurerId
651
     - amount
652
    """
653
    pass
6838 vikram.rag 654
 
7190 amar.kumar 655
  def getFreebieForItem(self, itemId):
656
    """
657
    Parameters:
658
     - itemId
659
    """
660
    pass
6962 rajveer 661
 
7190 amar.kumar 662
  def addOrUpdateFreebieForItem(self, freebieItem):
663
    """
664
    Parameters:
665
     - freebieItem
666
    """
667
    pass
668
 
7256 rajveer 669
  def getStorePricing(self, itemId):
670
    """
671
    Parameters:
672
     - itemId
673
    """
674
    pass
7190 amar.kumar 675
 
7256 rajveer 676
 
5944 mandeep.dh 677
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
678
  def __init__(self, iprot, oprot=None):
679
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
680
 
681
  def addItem(self, item):
682
    """
683
    Availability and inventory attributes
684
 
685
    Parameters:
686
     - item
687
    """
688
    self.send_addItem(item)
689
    return self.recv_addItem()
690
 
691
  def send_addItem(self, item):
692
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
693
    args = addItem_args()
694
    args.item = item
695
    args.write(self._oprot)
696
    self._oprot.writeMessageEnd()
697
    self._oprot.trans.flush()
698
 
699
  def recv_addItem(self, ):
700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
701
    if mtype == TMessageType.EXCEPTION:
702
      x = TApplicationException()
703
      x.read(self._iprot)
704
      self._iprot.readMessageEnd()
705
      raise x
706
    result = addItem_result()
707
    result.read(self._iprot)
708
    self._iprot.readMessageEnd()
709
    if result.success is not None:
710
      return result.success
711
    if result.cex is not None:
712
      raise result.cex
713
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
714
 
715
  def updateItem(self, item):
716
    """
717
    Parameters:
718
     - item
719
    """
720
    self.send_updateItem(item)
721
    return self.recv_updateItem()
722
 
723
  def send_updateItem(self, item):
724
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
725
    args = updateItem_args()
726
    args.item = item
727
    args.write(self._oprot)
728
    self._oprot.writeMessageEnd()
729
    self._oprot.trans.flush()
730
 
731
  def recv_updateItem(self, ):
732
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
733
    if mtype == TMessageType.EXCEPTION:
734
      x = TApplicationException()
735
      x.read(self._iprot)
736
      self._iprot.readMessageEnd()
737
      raise x
738
    result = updateItem_result()
739
    result.read(self._iprot)
740
    self._iprot.readMessageEnd()
741
    if result.success is not None:
742
      return result.success
743
    if result.cex is not None:
744
      raise result.cex
745
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
746
 
747
  def isActive(self, itemId):
748
    """
749
    Checks if the item given to the corresponding itemId is active. If it's active,
750
    whether it's risky and if it's risky, its inventory position.
751
 
752
    Parameters:
753
     - itemId
754
    """
755
    self.send_isActive(itemId)
756
    return self.recv_isActive()
757
 
758
  def send_isActive(self, itemId):
759
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
760
    args = isActive_args()
761
    args.itemId = itemId
762
    args.write(self._oprot)
763
    self._oprot.writeMessageEnd()
764
    self._oprot.trans.flush()
765
 
766
  def recv_isActive(self, ):
767
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
768
    if mtype == TMessageType.EXCEPTION:
769
      x = TApplicationException()
770
      x.read(self._iprot)
771
      self._iprot.readMessageEnd()
772
      raise x
773
    result = isActive_result()
774
    result.read(self._iprot)
775
    self._iprot.readMessageEnd()
776
    if result.success is not None:
777
      return result.success
778
    if result.isex is not None:
779
      raise result.isex
780
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
781
 
782
  def getItemStatusDescription(self, itemId):
783
    """
784
    Parameters:
785
     - itemId
786
    """
787
    self.send_getItemStatusDescription(itemId)
788
    return self.recv_getItemStatusDescription()
789
 
790
  def send_getItemStatusDescription(self, itemId):
791
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
792
    args = getItemStatusDescription_args()
793
    args.itemId = itemId
794
    args.write(self._oprot)
795
    self._oprot.writeMessageEnd()
796
    self._oprot.trans.flush()
797
 
798
  def recv_getItemStatusDescription(self, ):
799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
800
    if mtype == TMessageType.EXCEPTION:
801
      x = TApplicationException()
802
      x.read(self._iprot)
803
      self._iprot.readMessageEnd()
804
      raise x
805
    result = getItemStatusDescription_result()
806
    result.read(self._iprot)
807
    self._iprot.readMessageEnd()
808
    if result.success is not None:
809
      return result.success
810
    if result.isex is not None:
811
      raise result.isex
812
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
813
 
814
  def startItemOn(self, item_id, timestamp):
815
    """
816
    Parameters:
817
     - item_id
818
     - timestamp
819
    """
820
    self.send_startItemOn(item_id, timestamp)
821
    self.recv_startItemOn()
822
 
823
  def send_startItemOn(self, item_id, timestamp):
824
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
825
    args = startItemOn_args()
826
    args.item_id = item_id
827
    args.timestamp = timestamp
828
    args.write(self._oprot)
829
    self._oprot.writeMessageEnd()
830
    self._oprot.trans.flush()
831
 
832
  def recv_startItemOn(self, ):
833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
834
    if mtype == TMessageType.EXCEPTION:
835
      x = TApplicationException()
836
      x.read(self._iprot)
837
      self._iprot.readMessageEnd()
838
      raise x
839
    result = startItemOn_result()
840
    result.read(self._iprot)
841
    self._iprot.readMessageEnd()
842
    if result.cex is not None:
843
      raise result.cex
844
    return
845
 
846
  def retireItemOn(self, item_id, timestamp):
847
    """
848
    Parameters:
849
     - item_id
850
     - timestamp
851
    """
852
    self.send_retireItemOn(item_id, timestamp)
853
    self.recv_retireItemOn()
854
 
855
  def send_retireItemOn(self, item_id, timestamp):
856
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
857
    args = retireItemOn_args()
858
    args.item_id = item_id
859
    args.timestamp = timestamp
860
    args.write(self._oprot)
861
    self._oprot.writeMessageEnd()
862
    self._oprot.trans.flush()
863
 
864
  def recv_retireItemOn(self, ):
865
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
866
    if mtype == TMessageType.EXCEPTION:
867
      x = TApplicationException()
868
      x.read(self._iprot)
869
      self._iprot.readMessageEnd()
870
      raise x
871
    result = retireItemOn_result()
872
    result.read(self._iprot)
873
    self._iprot.readMessageEnd()
874
    if result.cex is not None:
875
      raise result.cex
876
    return
877
 
878
  def changeItemStatus(self, item_id, timestamp, newstatus):
879
    """
880
    Parameters:
881
     - item_id
882
     - timestamp
883
     - newstatus
884
    """
885
    self.send_changeItemStatus(item_id, timestamp, newstatus)
886
    self.recv_changeItemStatus()
887
 
888
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
889
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
890
    args = changeItemStatus_args()
891
    args.item_id = item_id
892
    args.timestamp = timestamp
893
    args.newstatus = newstatus
894
    args.write(self._oprot)
895
    self._oprot.writeMessageEnd()
896
    self._oprot.trans.flush()
897
 
898
  def recv_changeItemStatus(self, ):
899
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
900
    if mtype == TMessageType.EXCEPTION:
901
      x = TApplicationException()
902
      x.read(self._iprot)
903
      self._iprot.readMessageEnd()
904
      raise x
905
    result = changeItemStatus_result()
906
    result.read(self._iprot)
907
    self._iprot.readMessageEnd()
908
    if result.cex is not None:
909
      raise result.cex
910
    return
911
 
912
  def getItem(self, item_id):
913
    """
914
    Parameters:
915
     - item_id
916
    """
917
    self.send_getItem(item_id)
918
    return self.recv_getItem()
919
 
920
  def send_getItem(self, item_id):
921
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
922
    args = getItem_args()
923
    args.item_id = item_id
924
    args.write(self._oprot)
925
    self._oprot.writeMessageEnd()
926
    self._oprot.trans.flush()
927
 
928
  def recv_getItem(self, ):
929
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
930
    if mtype == TMessageType.EXCEPTION:
931
      x = TApplicationException()
932
      x.read(self._iprot)
933
      self._iprot.readMessageEnd()
934
      raise x
935
    result = getItem_result()
936
    result.read(self._iprot)
937
    self._iprot.readMessageEnd()
938
    if result.success is not None:
939
      return result.success
940
    if result.cex is not None:
941
      raise result.cex
942
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
943
 
944
  def getItemsByCatalogId(self, catalog_item_id):
945
    """
946
    Parameters:
947
     - catalog_item_id
948
    """
949
    self.send_getItemsByCatalogId(catalog_item_id)
950
    return self.recv_getItemsByCatalogId()
951
 
952
  def send_getItemsByCatalogId(self, catalog_item_id):
953
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
954
    args = getItemsByCatalogId_args()
955
    args.catalog_item_id = catalog_item_id
956
    args.write(self._oprot)
957
    self._oprot.writeMessageEnd()
958
    self._oprot.trans.flush()
959
 
960
  def recv_getItemsByCatalogId(self, ):
961
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
962
    if mtype == TMessageType.EXCEPTION:
963
      x = TApplicationException()
964
      x.read(self._iprot)
965
      self._iprot.readMessageEnd()
966
      raise x
967
    result = getItemsByCatalogId_result()
968
    result.read(self._iprot)
969
    self._iprot.readMessageEnd()
970
    if result.success is not None:
971
      return result.success
972
    if result.cex is not None:
973
      raise result.cex
974
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
975
 
976
  def getValidItemsByCatalogId(self, catalog_item_id):
977
    """
978
    Parameters:
979
     - catalog_item_id
980
    """
981
    self.send_getValidItemsByCatalogId(catalog_item_id)
982
    return self.recv_getValidItemsByCatalogId()
983
 
984
  def send_getValidItemsByCatalogId(self, catalog_item_id):
985
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
986
    args = getValidItemsByCatalogId_args()
987
    args.catalog_item_id = catalog_item_id
988
    args.write(self._oprot)
989
    self._oprot.writeMessageEnd()
990
    self._oprot.trans.flush()
991
 
992
  def recv_getValidItemsByCatalogId(self, ):
993
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
994
    if mtype == TMessageType.EXCEPTION:
995
      x = TApplicationException()
996
      x.read(self._iprot)
997
      self._iprot.readMessageEnd()
998
      raise x
999
    result = getValidItemsByCatalogId_result()
1000
    result.read(self._iprot)
1001
    self._iprot.readMessageEnd()
1002
    if result.success is not None:
1003
      return result.success
1004
    if result.cex is not None:
1005
      raise result.cex
1006
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1007
 
1008
  def getAllItems(self, isActive):
1009
    """
1010
    Parameters:
1011
     - isActive
1012
    """
1013
    self.send_getAllItems(isActive)
1014
    return self.recv_getAllItems()
1015
 
1016
  def send_getAllItems(self, isActive):
1017
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1018
    args = getAllItems_args()
1019
    args.isActive = isActive
1020
    args.write(self._oprot)
1021
    self._oprot.writeMessageEnd()
1022
    self._oprot.trans.flush()
1023
 
1024
  def recv_getAllItems(self, ):
1025
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1026
    if mtype == TMessageType.EXCEPTION:
1027
      x = TApplicationException()
1028
      x.read(self._iprot)
1029
      self._iprot.readMessageEnd()
1030
      raise x
1031
    result = getAllItems_result()
1032
    result.read(self._iprot)
1033
    self._iprot.readMessageEnd()
1034
    if result.success is not None:
1035
      return result.success
1036
    if result.cex is not None:
1037
      raise result.cex
1038
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1039
 
1040
  def getAllItemsByStatus(self, itemStatus):
1041
    """
1042
    Parameters:
1043
     - itemStatus
1044
    """
1045
    self.send_getAllItemsByStatus(itemStatus)
1046
    return self.recv_getAllItemsByStatus()
1047
 
1048
  def send_getAllItemsByStatus(self, itemStatus):
1049
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1050
    args = getAllItemsByStatus_args()
1051
    args.itemStatus = itemStatus
1052
    args.write(self._oprot)
1053
    self._oprot.writeMessageEnd()
1054
    self._oprot.trans.flush()
1055
 
1056
  def recv_getAllItemsByStatus(self, ):
1057
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1058
    if mtype == TMessageType.EXCEPTION:
1059
      x = TApplicationException()
1060
      x.read(self._iprot)
1061
      self._iprot.readMessageEnd()
1062
      raise x
1063
    result = getAllItemsByStatus_result()
1064
    result.read(self._iprot)
1065
    self._iprot.readMessageEnd()
1066
    if result.success is not None:
1067
      return result.success
1068
    if result.cex is not None:
1069
      raise result.cex
1070
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1071
 
1072
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1073
    """
1074
    Parameters:
1075
     - entityId
1076
     - category
1077
     - brand
1078
     - modelName
1079
     - modelNumber
1080
    """
1081
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
1082
    return self.recv_markItemAsContentComplete()
1083
 
1084
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1085
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1086
    args = markItemAsContentComplete_args()
1087
    args.entityId = entityId
1088
    args.category = category
1089
    args.brand = brand
1090
    args.modelName = modelName
1091
    args.modelNumber = modelNumber
1092
    args.write(self._oprot)
1093
    self._oprot.writeMessageEnd()
1094
    self._oprot.trans.flush()
1095
 
1096
  def recv_markItemAsContentComplete(self, ):
1097
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1098
    if mtype == TMessageType.EXCEPTION:
1099
      x = TApplicationException()
1100
      x.read(self._iprot)
1101
      self._iprot.readMessageEnd()
1102
      raise x
1103
    result = markItemAsContentComplete_result()
1104
    result.read(self._iprot)
1105
    self._iprot.readMessageEnd()
1106
    if result.success is not None:
1107
      return result.success
1108
    if result.cex is not None:
1109
      raise result.cex
1110
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1111
 
1112
  def getAllItemsInRange(self, offset, limit):
1113
    """
1114
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1115
 
1116
    Parameters:
1117
     - offset
1118
     - limit
1119
    """
1120
    self.send_getAllItemsInRange(offset, limit)
1121
    return self.recv_getAllItemsInRange()
1122
 
1123
  def send_getAllItemsInRange(self, offset, limit):
1124
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1125
    args = getAllItemsInRange_args()
1126
    args.offset = offset
1127
    args.limit = limit
1128
    args.write(self._oprot)
1129
    self._oprot.writeMessageEnd()
1130
    self._oprot.trans.flush()
1131
 
1132
  def recv_getAllItemsInRange(self, ):
1133
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1134
    if mtype == TMessageType.EXCEPTION:
1135
      x = TApplicationException()
1136
      x.read(self._iprot)
1137
      self._iprot.readMessageEnd()
1138
      raise x
1139
    result = getAllItemsInRange_result()
1140
    result.read(self._iprot)
1141
    self._iprot.readMessageEnd()
1142
    if result.success is not None:
1143
      return result.success
1144
    if result.cex is not None:
1145
      raise result.cex
1146
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1147
 
1148
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1149
    """
1150
    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.
1151
 
1152
    Parameters:
1153
     - itemStatus
1154
     - offset
1155
     - limit
1156
    """
1157
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1158
    return self.recv_getAllItemsByStatusInRange()
1159
 
1160
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1161
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1162
    args = getAllItemsByStatusInRange_args()
1163
    args.itemStatus = itemStatus
1164
    args.offset = offset
1165
    args.limit = limit
1166
    args.write(self._oprot)
1167
    self._oprot.writeMessageEnd()
1168
    self._oprot.trans.flush()
1169
 
1170
  def recv_getAllItemsByStatusInRange(self, ):
1171
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1172
    if mtype == TMessageType.EXCEPTION:
1173
      x = TApplicationException()
1174
      x.read(self._iprot)
1175
      self._iprot.readMessageEnd()
1176
      raise x
1177
    result = getAllItemsByStatusInRange_result()
1178
    result.read(self._iprot)
1179
    self._iprot.readMessageEnd()
1180
    if result.success is not None:
1181
      return result.success
1182
    if result.cex is not None:
1183
      raise result.cex
1184
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1185
 
1186
  def getItemCountByStatus(self, useStatus, itemStatus):
1187
    """
1188
    Gets a count of all items by status
1189
 
1190
    Parameters:
1191
     - useStatus
1192
     - itemStatus
1193
    """
1194
    self.send_getItemCountByStatus(useStatus, itemStatus)
1195
    return self.recv_getItemCountByStatus()
1196
 
1197
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1198
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1199
    args = getItemCountByStatus_args()
1200
    args.useStatus = useStatus
1201
    args.itemStatus = itemStatus
1202
    args.write(self._oprot)
1203
    self._oprot.writeMessageEnd()
1204
    self._oprot.trans.flush()
1205
 
1206
  def recv_getItemCountByStatus(self, ):
1207
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1208
    if mtype == TMessageType.EXCEPTION:
1209
      x = TApplicationException()
1210
      x.read(self._iprot)
1211
      self._iprot.readMessageEnd()
1212
      raise x
1213
    result = getItemCountByStatus_result()
1214
    result.read(self._iprot)
1215
    self._iprot.readMessageEnd()
1216
    if result.success is not None:
1217
      return result.success
1218
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1219
 
1220
  def getBestSellers(self, ):
1221
    self.send_getBestSellers()
1222
    return self.recv_getBestSellers()
1223
 
1224
  def send_getBestSellers(self, ):
1225
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1226
    args = getBestSellers_args()
1227
    args.write(self._oprot)
1228
    self._oprot.writeMessageEnd()
1229
    self._oprot.trans.flush()
1230
 
1231
  def recv_getBestSellers(self, ):
1232
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1233
    if mtype == TMessageType.EXCEPTION:
1234
      x = TApplicationException()
1235
      x.read(self._iprot)
1236
      self._iprot.readMessageEnd()
1237
      raise x
1238
    result = getBestSellers_result()
1239
    result.read(self._iprot)
1240
    self._iprot.readMessageEnd()
1241
    if result.success is not None:
1242
      return result.success
1243
    if result.isex is not None:
1244
      raise result.isex
1245
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1246
 
1247
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1248
    """
1249
    Parameters:
1250
     - beginIndex
1251
     - totalItems
1252
     - brand
1253
     - category
1254
    """
1255
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1256
    return self.recv_getBestSellersCatalogIds()
1257
 
1258
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1259
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1260
    args = getBestSellersCatalogIds_args()
1261
    args.beginIndex = beginIndex
1262
    args.totalItems = totalItems
1263
    args.brand = brand
1264
    args.category = category
1265
    args.write(self._oprot)
1266
    self._oprot.writeMessageEnd()
1267
    self._oprot.trans.flush()
1268
 
1269
  def recv_getBestSellersCatalogIds(self, ):
1270
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1271
    if mtype == TMessageType.EXCEPTION:
1272
      x = TApplicationException()
1273
      x.read(self._iprot)
1274
      self._iprot.readMessageEnd()
1275
      raise x
1276
    result = getBestSellersCatalogIds_result()
1277
    result.read(self._iprot)
1278
    self._iprot.readMessageEnd()
1279
    if result.success is not None:
1280
      return result.success
1281
    if result.cex is not None:
1282
      raise result.cex
1283
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1284
 
1285
  def getBestSellersCount(self, ):
1286
    self.send_getBestSellersCount()
1287
    return self.recv_getBestSellersCount()
1288
 
1289
  def send_getBestSellersCount(self, ):
1290
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1291
    args = getBestSellersCount_args()
1292
    args.write(self._oprot)
1293
    self._oprot.writeMessageEnd()
1294
    self._oprot.trans.flush()
1295
 
1296
  def recv_getBestSellersCount(self, ):
1297
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1298
    if mtype == TMessageType.EXCEPTION:
1299
      x = TApplicationException()
1300
      x.read(self._iprot)
1301
      self._iprot.readMessageEnd()
1302
      raise x
1303
    result = getBestSellersCount_result()
1304
    result.read(self._iprot)
1305
    self._iprot.readMessageEnd()
1306
    if result.success is not None:
1307
      return result.success
1308
    if result.cex is not None:
1309
      raise result.cex
1310
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1311
 
1312
  def getBestDeals(self, ):
1313
    self.send_getBestDeals()
1314
    return self.recv_getBestDeals()
1315
 
1316
  def send_getBestDeals(self, ):
1317
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1318
    args = getBestDeals_args()
1319
    args.write(self._oprot)
1320
    self._oprot.writeMessageEnd()
1321
    self._oprot.trans.flush()
1322
 
1323
  def recv_getBestDeals(self, ):
1324
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1325
    if mtype == TMessageType.EXCEPTION:
1326
      x = TApplicationException()
1327
      x.read(self._iprot)
1328
      self._iprot.readMessageEnd()
1329
      raise x
1330
    result = getBestDeals_result()
1331
    result.read(self._iprot)
1332
    self._iprot.readMessageEnd()
1333
    if result.success is not None:
1334
      return result.success
1335
    if result.isex is not None:
1336
      raise result.isex
1337
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1338
 
1339
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1340
    """
1341
    Parameters:
1342
     - beginIndex
1343
     - totalItems
1344
     - brand
1345
     - category
1346
    """
1347
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1348
    return self.recv_getBestDealsCatalogIds()
1349
 
1350
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1351
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1352
    args = getBestDealsCatalogIds_args()
1353
    args.beginIndex = beginIndex
1354
    args.totalItems = totalItems
1355
    args.brand = brand
1356
    args.category = category
1357
    args.write(self._oprot)
1358
    self._oprot.writeMessageEnd()
1359
    self._oprot.trans.flush()
1360
 
1361
  def recv_getBestDealsCatalogIds(self, ):
1362
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1363
    if mtype == TMessageType.EXCEPTION:
1364
      x = TApplicationException()
1365
      x.read(self._iprot)
1366
      self._iprot.readMessageEnd()
1367
      raise x
1368
    result = getBestDealsCatalogIds_result()
1369
    result.read(self._iprot)
1370
    self._iprot.readMessageEnd()
1371
    if result.success is not None:
1372
      return result.success
1373
    if result.cex is not None:
1374
      raise result.cex
1375
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1376
 
1377
  def getBestDealsCount(self, ):
1378
    self.send_getBestDealsCount()
1379
    return self.recv_getBestDealsCount()
1380
 
1381
  def send_getBestDealsCount(self, ):
1382
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1383
    args = getBestDealsCount_args()
1384
    args.write(self._oprot)
1385
    self._oprot.writeMessageEnd()
1386
    self._oprot.trans.flush()
1387
 
1388
  def recv_getBestDealsCount(self, ):
1389
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1390
    if mtype == TMessageType.EXCEPTION:
1391
      x = TApplicationException()
1392
      x.read(self._iprot)
1393
      self._iprot.readMessageEnd()
1394
      raise x
1395
    result = getBestDealsCount_result()
1396
    result.read(self._iprot)
1397
    self._iprot.readMessageEnd()
1398
    if result.success is not None:
1399
      return result.success
1400
    if result.cex is not None:
1401
      raise result.cex
1402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1403
 
1404
  def getComingSoon(self, ):
1405
    self.send_getComingSoon()
1406
    return self.recv_getComingSoon()
1407
 
1408
  def send_getComingSoon(self, ):
1409
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1410
    args = getComingSoon_args()
1411
    args.write(self._oprot)
1412
    self._oprot.writeMessageEnd()
1413
    self._oprot.trans.flush()
1414
 
1415
  def recv_getComingSoon(self, ):
1416
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1417
    if mtype == TMessageType.EXCEPTION:
1418
      x = TApplicationException()
1419
      x.read(self._iprot)
1420
      self._iprot.readMessageEnd()
1421
      raise x
1422
    result = getComingSoon_result()
1423
    result.read(self._iprot)
1424
    self._iprot.readMessageEnd()
1425
    if result.success is not None:
1426
      return result.success
1427
    if result.isex is not None:
1428
      raise result.isex
1429
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1430
 
1431
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1432
    """
1433
    Parameters:
1434
     - beginIndex
1435
     - totalItems
1436
     - brand
1437
     - category
1438
    """
1439
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1440
    return self.recv_getComingSoonCatalogIds()
1441
 
1442
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1443
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1444
    args = getComingSoonCatalogIds_args()
1445
    args.beginIndex = beginIndex
1446
    args.totalItems = totalItems
1447
    args.brand = brand
1448
    args.category = category
1449
    args.write(self._oprot)
1450
    self._oprot.writeMessageEnd()
1451
    self._oprot.trans.flush()
1452
 
1453
  def recv_getComingSoonCatalogIds(self, ):
1454
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1455
    if mtype == TMessageType.EXCEPTION:
1456
      x = TApplicationException()
1457
      x.read(self._iprot)
1458
      self._iprot.readMessageEnd()
1459
      raise x
1460
    result = getComingSoonCatalogIds_result()
1461
    result.read(self._iprot)
1462
    self._iprot.readMessageEnd()
1463
    if result.success is not None:
1464
      return result.success
1465
    if result.cex is not None:
1466
      raise result.cex
1467
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1468
 
1469
  def getComingSoonCount(self, ):
1470
    self.send_getComingSoonCount()
1471
    return self.recv_getComingSoonCount()
1472
 
1473
  def send_getComingSoonCount(self, ):
1474
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1475
    args = getComingSoonCount_args()
1476
    args.write(self._oprot)
1477
    self._oprot.writeMessageEnd()
1478
    self._oprot.trans.flush()
1479
 
1480
  def recv_getComingSoonCount(self, ):
1481
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1482
    if mtype == TMessageType.EXCEPTION:
1483
      x = TApplicationException()
1484
      x.read(self._iprot)
1485
      self._iprot.readMessageEnd()
1486
      raise x
1487
    result = getComingSoonCount_result()
1488
    result.read(self._iprot)
1489
    self._iprot.readMessageEnd()
1490
    if result.success is not None:
1491
      return result.success
1492
    if result.cex is not None:
1493
      raise result.cex
1494
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1495
 
1496
  def getLatestArrivals(self, ):
1497
    """
1498
    Returns a list of items sorted in the descending order by start date.
1499
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1500
    """
1501
    self.send_getLatestArrivals()
1502
    return self.recv_getLatestArrivals()
1503
 
1504
  def send_getLatestArrivals(self, ):
1505
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1506
    args = getLatestArrivals_args()
1507
    args.write(self._oprot)
1508
    self._oprot.writeMessageEnd()
1509
    self._oprot.trans.flush()
1510
 
1511
  def recv_getLatestArrivals(self, ):
1512
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1513
    if mtype == TMessageType.EXCEPTION:
1514
      x = TApplicationException()
1515
      x.read(self._iprot)
1516
      self._iprot.readMessageEnd()
1517
      raise x
1518
    result = getLatestArrivals_result()
1519
    result.read(self._iprot)
1520
    self._iprot.readMessageEnd()
1521
    if result.success is not None:
1522
      return result.success
1523
    if result.isex is not None:
1524
      raise result.isex
1525
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1526
 
1527
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1528
    """
1529
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1530
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1531
 
1532
    Parameters:
1533
     - beginIndex
1534
     - totalItems
1535
     - brand
1536
     - categories
1537
    """
1538
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1539
    return self.recv_getLatestArrivalsCatalogIds()
1540
 
1541
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1542
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1543
    args = getLatestArrivalsCatalogIds_args()
1544
    args.beginIndex = beginIndex
1545
    args.totalItems = totalItems
1546
    args.brand = brand
1547
    args.categories = categories
1548
    args.write(self._oprot)
1549
    self._oprot.writeMessageEnd()
1550
    self._oprot.trans.flush()
1551
 
1552
  def recv_getLatestArrivalsCatalogIds(self, ):
1553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1554
    if mtype == TMessageType.EXCEPTION:
1555
      x = TApplicationException()
1556
      x.read(self._iprot)
1557
      self._iprot.readMessageEnd()
1558
      raise x
1559
    result = getLatestArrivalsCatalogIds_result()
1560
    result.read(self._iprot)
1561
    self._iprot.readMessageEnd()
1562
    if result.success is not None:
1563
      return result.success
1564
    if result.cex is not None:
1565
      raise result.cex
1566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1567
 
1568
  def getLatestArrivalsCount(self, ):
1569
    """
1570
    Get the total number of latest arrivals we are willing to show.
1571
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1572
    """
1573
    self.send_getLatestArrivalsCount()
1574
    return self.recv_getLatestArrivalsCount()
1575
 
1576
  def send_getLatestArrivalsCount(self, ):
1577
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1578
    args = getLatestArrivalsCount_args()
1579
    args.write(self._oprot)
1580
    self._oprot.writeMessageEnd()
1581
    self._oprot.trans.flush()
1582
 
1583
  def recv_getLatestArrivalsCount(self, ):
1584
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1585
    if mtype == TMessageType.EXCEPTION:
1586
      x = TApplicationException()
1587
      x.read(self._iprot)
1588
      self._iprot.readMessageEnd()
1589
      raise x
1590
    result = getLatestArrivalsCount_result()
1591
    result.read(self._iprot)
1592
    self._iprot.readMessageEnd()
1593
    if result.success is not None:
1594
      return result.success
1595
    if result.cex is not None:
1596
      raise result.cex
1597
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1598
 
1599
  def generateNewEntityID(self, ):
1600
    self.send_generateNewEntityID()
1601
    return self.recv_generateNewEntityID()
1602
 
1603
  def send_generateNewEntityID(self, ):
1604
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1605
    args = generateNewEntityID_args()
1606
    args.write(self._oprot)
1607
    self._oprot.writeMessageEnd()
1608
    self._oprot.trans.flush()
1609
 
1610
  def recv_generateNewEntityID(self, ):
1611
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1612
    if mtype == TMessageType.EXCEPTION:
1613
      x = TApplicationException()
1614
      x.read(self._iprot)
1615
      self._iprot.readMessageEnd()
1616
      raise x
1617
    result = generateNewEntityID_result()
1618
    result.read(self._iprot)
1619
    self._iprot.readMessageEnd()
1620
    if result.success is not None:
1621
      return result.success
1622
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1623
 
1624
  def addCategory(self, category):
1625
    """
1626
    All category related functions
1627
 
1628
    Parameters:
1629
     - category
1630
    """
1631
    self.send_addCategory(category)
1632
    return self.recv_addCategory()
1633
 
1634
  def send_addCategory(self, category):
1635
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1636
    args = addCategory_args()
1637
    args.category = category
1638
    args.write(self._oprot)
1639
    self._oprot.writeMessageEnd()
1640
    self._oprot.trans.flush()
1641
 
1642
  def recv_addCategory(self, ):
1643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1644
    if mtype == TMessageType.EXCEPTION:
1645
      x = TApplicationException()
1646
      x.read(self._iprot)
1647
      self._iprot.readMessageEnd()
1648
      raise x
1649
    result = addCategory_result()
1650
    result.read(self._iprot)
1651
    self._iprot.readMessageEnd()
1652
    if result.success is not None:
1653
      return result.success
1654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1655
 
1656
  def getCategory(self, id):
1657
    """
1658
    Parameters:
1659
     - id
1660
    """
1661
    self.send_getCategory(id)
1662
    return self.recv_getCategory()
1663
 
1664
  def send_getCategory(self, id):
1665
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1666
    args = getCategory_args()
1667
    args.id = id
1668
    args.write(self._oprot)
1669
    self._oprot.writeMessageEnd()
1670
    self._oprot.trans.flush()
1671
 
1672
  def recv_getCategory(self, ):
1673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1674
    if mtype == TMessageType.EXCEPTION:
1675
      x = TApplicationException()
1676
      x.read(self._iprot)
1677
      self._iprot.readMessageEnd()
1678
      raise x
1679
    result = getCategory_result()
1680
    result.read(self._iprot)
1681
    self._iprot.readMessageEnd()
1682
    if result.success is not None:
1683
      return result.success
1684
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1685
 
1686
  def getAllCategories(self, ):
1687
    self.send_getAllCategories()
1688
    return self.recv_getAllCategories()
1689
 
1690
  def send_getAllCategories(self, ):
1691
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1692
    args = getAllCategories_args()
1693
    args.write(self._oprot)
1694
    self._oprot.writeMessageEnd()
1695
    self._oprot.trans.flush()
1696
 
1697
  def recv_getAllCategories(self, ):
1698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1699
    if mtype == TMessageType.EXCEPTION:
1700
      x = TApplicationException()
1701
      x.read(self._iprot)
1702
      self._iprot.readMessageEnd()
1703
      raise x
1704
    result = getAllCategories_result()
1705
    result.read(self._iprot)
1706
    self._iprot.readMessageEnd()
1707
    if result.success is not None:
1708
      return result.success
1709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1710
 
1711
  def getAllSimilarItems(self, itemId):
1712
    """
1713
    Returns the list of similar items.
1714
 
1715
    Parameters:
1716
     - itemId
1717
    """
1718
    self.send_getAllSimilarItems(itemId)
1719
    return self.recv_getAllSimilarItems()
1720
 
1721
  def send_getAllSimilarItems(self, itemId):
1722
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1723
    args = getAllSimilarItems_args()
1724
    args.itemId = itemId
1725
    args.write(self._oprot)
1726
    self._oprot.writeMessageEnd()
1727
    self._oprot.trans.flush()
1728
 
1729
  def recv_getAllSimilarItems(self, ):
1730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1731
    if mtype == TMessageType.EXCEPTION:
1732
      x = TApplicationException()
1733
      x.read(self._iprot)
1734
      self._iprot.readMessageEnd()
1735
      raise x
1736
    result = getAllSimilarItems_result()
1737
    result.read(self._iprot)
1738
    self._iprot.readMessageEnd()
1739
    if result.success is not None:
1740
      return result.success
1741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1742
 
1743
  def addSimilarItem(self, itemId, catalogItemId):
1744
    """
1745
    Adds similar item.
1746
 
1747
    Parameters:
1748
     - itemId
1749
     - catalogItemId
1750
    """
1751
    self.send_addSimilarItem(itemId, catalogItemId)
1752
    return self.recv_addSimilarItem()
1753
 
1754
  def send_addSimilarItem(self, itemId, catalogItemId):
1755
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1756
    args = addSimilarItem_args()
1757
    args.itemId = itemId
1758
    args.catalogItemId = catalogItemId
1759
    args.write(self._oprot)
1760
    self._oprot.writeMessageEnd()
1761
    self._oprot.trans.flush()
1762
 
1763
  def recv_addSimilarItem(self, ):
1764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1765
    if mtype == TMessageType.EXCEPTION:
1766
      x = TApplicationException()
1767
      x.read(self._iprot)
1768
      self._iprot.readMessageEnd()
1769
      raise x
1770
    result = addSimilarItem_result()
1771
    result.read(self._iprot)
1772
    self._iprot.readMessageEnd()
1773
    if result.success is not None:
1774
      return result.success
1775
    if result.cex is not None:
1776
      raise result.cex
1777
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1778
 
6512 kshitij.so 1779
  def addTag(self, displayName, itemId):
1780
    """
1781
    Tag Related
1782
 
1783
    Parameters:
1784
     - displayName
1785
     - itemId
1786
    """
1787
    self.send_addTag(displayName, itemId)
1788
    return self.recv_addTag()
1789
 
1790
  def send_addTag(self, displayName, itemId):
1791
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1792
    args = addTag_args()
1793
    args.displayName = displayName
1794
    args.itemId = itemId
1795
    args.write(self._oprot)
1796
    self._oprot.writeMessageEnd()
1797
    self._oprot.trans.flush()
1798
 
1799
  def recv_addTag(self, ):
1800
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1801
    if mtype == TMessageType.EXCEPTION:
1802
      x = TApplicationException()
1803
      x.read(self._iprot)
1804
      self._iprot.readMessageEnd()
1805
      raise x
1806
    result = addTag_result()
1807
    result.read(self._iprot)
1808
    self._iprot.readMessageEnd()
1809
    if result.success is not None:
1810
      return result.success
1811
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1812
 
1813
  def deleteEntityTag(self, displayName, itemId):
1814
    """
1815
    Parameters:
1816
     - displayName
1817
     - itemId
1818
    """
1819
    self.send_deleteEntityTag(displayName, itemId)
1820
    return self.recv_deleteEntityTag()
1821
 
1822
  def send_deleteEntityTag(self, displayName, itemId):
1823
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1824
    args = deleteEntityTag_args()
1825
    args.displayName = displayName
1826
    args.itemId = itemId
1827
    args.write(self._oprot)
1828
    self._oprot.writeMessageEnd()
1829
    self._oprot.trans.flush()
1830
 
1831
  def recv_deleteEntityTag(self, ):
1832
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1833
    if mtype == TMessageType.EXCEPTION:
1834
      x = TApplicationException()
1835
      x.read(self._iprot)
1836
      self._iprot.readMessageEnd()
1837
      raise x
1838
    result = deleteEntityTag_result()
1839
    result.read(self._iprot)
1840
    self._iprot.readMessageEnd()
1841
    if result.success is not None:
1842
      return result.success
1843
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1844
 
1845
  def deleteTag(self, displayName):
1846
    """
1847
    Parameters:
1848
     - displayName
1849
    """
1850
    self.send_deleteTag(displayName)
1851
    return self.recv_deleteTag()
1852
 
1853
  def send_deleteTag(self, displayName):
1854
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1855
    args = deleteTag_args()
1856
    args.displayName = displayName
1857
    args.write(self._oprot)
1858
    self._oprot.writeMessageEnd()
1859
    self._oprot.trans.flush()
1860
 
1861
  def recv_deleteTag(self, ):
1862
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1863
    if mtype == TMessageType.EXCEPTION:
1864
      x = TApplicationException()
1865
      x.read(self._iprot)
1866
      self._iprot.readMessageEnd()
1867
      raise x
1868
    result = deleteTag_result()
1869
    result.read(self._iprot)
1870
    self._iprot.readMessageEnd()
1871
    if result.success is not None:
1872
      return result.success
1873
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1874
 
1875
  def getAllTags(self, ):
1876
    self.send_getAllTags()
1877
    return self.recv_getAllTags()
1878
 
1879
  def send_getAllTags(self, ):
1880
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1881
    args = getAllTags_args()
1882
    args.write(self._oprot)
1883
    self._oprot.writeMessageEnd()
1884
    self._oprot.trans.flush()
1885
 
1886
  def recv_getAllTags(self, ):
1887
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1888
    if mtype == TMessageType.EXCEPTION:
1889
      x = TApplicationException()
1890
      x.read(self._iprot)
1891
      self._iprot.readMessageEnd()
1892
      raise x
1893
    result = getAllTags_result()
1894
    result.read(self._iprot)
1895
    self._iprot.readMessageEnd()
1896
    if result.success is not None:
1897
      return result.success
1898
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1899
 
1900
  def getAllEntitiesByTagName(self, displayName):
1901
    """
1902
    Parameters:
1903
     - displayName
1904
    """
1905
    self.send_getAllEntitiesByTagName(displayName)
1906
    return self.recv_getAllEntitiesByTagName()
1907
 
1908
  def send_getAllEntitiesByTagName(self, displayName):
1909
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1910
    args = getAllEntitiesByTagName_args()
1911
    args.displayName = displayName
1912
    args.write(self._oprot)
1913
    self._oprot.writeMessageEnd()
1914
    self._oprot.trans.flush()
1915
 
1916
  def recv_getAllEntitiesByTagName(self, ):
1917
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1918
    if mtype == TMessageType.EXCEPTION:
1919
      x = TApplicationException()
1920
      x.read(self._iprot)
1921
      self._iprot.readMessageEnd()
1922
      raise x
1923
    result = getAllEntitiesByTagName_result()
1924
    result.read(self._iprot)
1925
    self._iprot.readMessageEnd()
1926
    if result.success is not None:
1927
      return result.success
1928
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1929
 
6845 amit.gupta 1930
  def getAllEntityTags(self, ):
1931
    self.send_getAllEntityTags()
1932
    return self.recv_getAllEntityTags()
1933
 
1934
  def send_getAllEntityTags(self, ):
1935
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
1936
    args = getAllEntityTags_args()
1937
    args.write(self._oprot)
1938
    self._oprot.writeMessageEnd()
1939
    self._oprot.trans.flush()
1940
 
1941
  def recv_getAllEntityTags(self, ):
1942
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1943
    if mtype == TMessageType.EXCEPTION:
1944
      x = TApplicationException()
1945
      x.read(self._iprot)
1946
      self._iprot.readMessageEnd()
1947
      raise x
1948
    result = getAllEntityTags_result()
1949
    result.read(self._iprot)
1950
    self._iprot.readMessageEnd()
1951
    if result.success is not None:
1952
      return result.success
1953
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1954
 
6850 kshitij.so 1955
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1956
    """
1957
    Parameters:
1958
     - bannerName
1959
     - imageName
1960
     - link
1961
     - priority
1962
     - isActive
1963
     - hasMap
1964
    """
1965
    self.send_addBanner(bannerName, imageName, link, priority, isActive, hasMap)
1966
    return self.recv_addBanner()
1967
 
1968
  def send_addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1969
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
1970
    args = addBanner_args()
1971
    args.bannerName = bannerName
1972
    args.imageName = imageName
1973
    args.link = link
1974
    args.priority = priority
1975
    args.isActive = isActive
1976
    args.hasMap = hasMap
1977
    args.write(self._oprot)
1978
    self._oprot.writeMessageEnd()
1979
    self._oprot.trans.flush()
1980
 
1981
  def recv_addBanner(self, ):
1982
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1983
    if mtype == TMessageType.EXCEPTION:
1984
      x = TApplicationException()
1985
      x.read(self._iprot)
1986
      self._iprot.readMessageEnd()
1987
      raise x
1988
    result = addBanner_result()
1989
    result.read(self._iprot)
1990
    self._iprot.readMessageEnd()
1991
    if result.success is not None:
1992
      return result.success
1993
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
1994
 
1995
  def getAllBanners(self, ):
1996
    self.send_getAllBanners()
1997
    return self.recv_getAllBanners()
1998
 
1999
  def send_getAllBanners(self, ):
2000
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2001
    args = getAllBanners_args()
2002
    args.write(self._oprot)
2003
    self._oprot.writeMessageEnd()
2004
    self._oprot.trans.flush()
2005
 
2006
  def recv_getAllBanners(self, ):
2007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2008
    if mtype == TMessageType.EXCEPTION:
2009
      x = TApplicationException()
2010
      x.read(self._iprot)
2011
      self._iprot.readMessageEnd()
2012
      raise x
2013
    result = getAllBanners_result()
2014
    result.read(self._iprot)
2015
    self._iprot.readMessageEnd()
2016
    if result.success is not None:
2017
      return result.success
2018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2019
 
2020
  def deleteBanner(self, bannerName):
2021
    """
2022
    Parameters:
2023
     - bannerName
2024
    """
2025
    self.send_deleteBanner(bannerName)
2026
    return self.recv_deleteBanner()
2027
 
2028
  def send_deleteBanner(self, bannerName):
2029
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2030
    args = deleteBanner_args()
2031
    args.bannerName = bannerName
2032
    args.write(self._oprot)
2033
    self._oprot.writeMessageEnd()
2034
    self._oprot.trans.flush()
2035
 
2036
  def recv_deleteBanner(self, ):
2037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2038
    if mtype == TMessageType.EXCEPTION:
2039
      x = TApplicationException()
2040
      x.read(self._iprot)
2041
      self._iprot.readMessageEnd()
2042
      raise x
2043
    result = deleteBanner_result()
2044
    result.read(self._iprot)
2045
    self._iprot.readMessageEnd()
2046
    if result.success is not None:
2047
      return result.success
2048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2049
 
2050
  def getBannerDetails(self, bannerName):
2051
    """
2052
    Parameters:
2053
     - bannerName
2054
    """
2055
    self.send_getBannerDetails(bannerName)
2056
    return self.recv_getBannerDetails()
2057
 
2058
  def send_getBannerDetails(self, bannerName):
2059
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2060
    args = getBannerDetails_args()
2061
    args.bannerName = bannerName
2062
    args.write(self._oprot)
2063
    self._oprot.writeMessageEnd()
2064
    self._oprot.trans.flush()
2065
 
2066
  def recv_getBannerDetails(self, ):
2067
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2068
    if mtype == TMessageType.EXCEPTION:
2069
      x = TApplicationException()
2070
      x.read(self._iprot)
2071
      self._iprot.readMessageEnd()
2072
      raise x
2073
    result = getBannerDetails_result()
2074
    result.read(self._iprot)
2075
    self._iprot.readMessageEnd()
2076
    if result.success is not None:
2077
      return result.success
2078
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2079
 
2080
  def getActiveBanners(self, ):
2081
    self.send_getActiveBanners()
2082
    return self.recv_getActiveBanners()
2083
 
2084
  def send_getActiveBanners(self, ):
2085
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2086
    args = getActiveBanners_args()
2087
    args.write(self._oprot)
2088
    self._oprot.writeMessageEnd()
2089
    self._oprot.trans.flush()
2090
 
2091
  def recv_getActiveBanners(self, ):
2092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2093
    if mtype == TMessageType.EXCEPTION:
2094
      x = TApplicationException()
2095
      x.read(self._iprot)
2096
      self._iprot.readMessageEnd()
2097
      raise x
2098
    result = getActiveBanners_result()
2099
    result.read(self._iprot)
2100
    self._iprot.readMessageEnd()
2101
    if result.success is not None:
2102
      return result.success
2103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2104
 
6849 kshitij.so 2105
  def addBannerMap(self, bannerName, mapLink, coordinates):
2106
    """
2107
    Parameters:
2108
     - bannerName
2109
     - mapLink
2110
     - coordinates
2111
    """
2112
    self.send_addBannerMap(bannerName, mapLink, coordinates)
2113
    return self.recv_addBannerMap()
2114
 
2115
  def send_addBannerMap(self, bannerName, mapLink, coordinates):
2116
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2117
    args = addBannerMap_args()
2118
    args.bannerName = bannerName
2119
    args.mapLink = mapLink
2120
    args.coordinates = coordinates
2121
    args.write(self._oprot)
2122
    self._oprot.writeMessageEnd()
2123
    self._oprot.trans.flush()
2124
 
2125
  def recv_addBannerMap(self, ):
2126
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2127
    if mtype == TMessageType.EXCEPTION:
2128
      x = TApplicationException()
2129
      x.read(self._iprot)
2130
      self._iprot.readMessageEnd()
2131
      raise x
2132
    result = addBannerMap_result()
2133
    result.read(self._iprot)
2134
    self._iprot.readMessageEnd()
2135
    if result.success is not None:
2136
      return result.success
2137
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2138
 
2139
  def deleteBannerMap(self, bannerName):
2140
    """
2141
    Parameters:
2142
     - bannerName
2143
    """
2144
    self.send_deleteBannerMap(bannerName)
2145
    return self.recv_deleteBannerMap()
2146
 
2147
  def send_deleteBannerMap(self, bannerName):
2148
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2149
    args = deleteBannerMap_args()
2150
    args.bannerName = bannerName
2151
    args.write(self._oprot)
2152
    self._oprot.writeMessageEnd()
2153
    self._oprot.trans.flush()
2154
 
2155
  def recv_deleteBannerMap(self, ):
2156
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2157
    if mtype == TMessageType.EXCEPTION:
2158
      x = TApplicationException()
2159
      x.read(self._iprot)
2160
      self._iprot.readMessageEnd()
2161
      raise x
2162
    result = deleteBannerMap_result()
2163
    result.read(self._iprot)
2164
    self._iprot.readMessageEnd()
2165
    if result.success is not None:
2166
      return result.success
2167
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2168
 
2169
  def getBannerMapDetails(self, bannerName):
2170
    """
2171
    Parameters:
2172
     - bannerName
2173
    """
2174
    self.send_getBannerMapDetails(bannerName)
2175
    return self.recv_getBannerMapDetails()
2176
 
2177
  def send_getBannerMapDetails(self, bannerName):
2178
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2179
    args = getBannerMapDetails_args()
2180
    args.bannerName = bannerName
2181
    args.write(self._oprot)
2182
    self._oprot.writeMessageEnd()
2183
    self._oprot.trans.flush()
2184
 
2185
  def recv_getBannerMapDetails(self, ):
2186
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2187
    if mtype == TMessageType.EXCEPTION:
2188
      x = TApplicationException()
2189
      x.read(self._iprot)
2190
      self._iprot.readMessageEnd()
2191
      raise x
2192
    result = getBannerMapDetails_result()
2193
    result.read(self._iprot)
2194
    self._iprot.readMessageEnd()
2195
    if result.success is not None:
2196
      return result.success
2197
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2198
 
5944 mandeep.dh 2199
  def deleteSimilarItem(self, itemId, catalogItemId):
2200
    """
2201
    Delete similar item.
2202
 
2203
    Parameters:
2204
     - itemId
2205
     - catalogItemId
2206
    """
2207
    self.send_deleteSimilarItem(itemId, catalogItemId)
2208
    return self.recv_deleteSimilarItem()
2209
 
2210
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2211
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2212
    args = deleteSimilarItem_args()
2213
    args.itemId = itemId
2214
    args.catalogItemId = catalogItemId
2215
    args.write(self._oprot)
2216
    self._oprot.writeMessageEnd()
2217
    self._oprot.trans.flush()
2218
 
2219
  def recv_deleteSimilarItem(self, ):
2220
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2221
    if mtype == TMessageType.EXCEPTION:
2222
      x = TApplicationException()
2223
      x.read(self._iprot)
2224
      self._iprot.readMessageEnd()
2225
      raise x
2226
    result = deleteSimilarItem_result()
2227
    result.read(self._iprot)
2228
    self._iprot.readMessageEnd()
2229
    if result.success is not None:
2230
      return result.success
2231
    if result.cex is not None:
2232
      raise result.cex
2233
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2234
 
2235
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2236
    """
2237
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2238
    If yes, returns the itemId else returns 0
2239
 
2240
    Parameters:
2241
     - brand
2242
     - modelNumber
2243
     - modelName
2244
     - color
2245
    """
2246
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2247
    return self.recv_checkSimilarItem()
2248
 
2249
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2250
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2251
    args = checkSimilarItem_args()
2252
    args.brand = brand
2253
    args.modelNumber = modelNumber
2254
    args.modelName = modelName
2255
    args.color = color
2256
    args.write(self._oprot)
2257
    self._oprot.writeMessageEnd()
2258
    self._oprot.trans.flush()
2259
 
2260
  def recv_checkSimilarItem(self, ):
2261
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2262
    if mtype == TMessageType.EXCEPTION:
2263
      x = TApplicationException()
2264
      x.read(self._iprot)
2265
      self._iprot.readMessageEnd()
2266
      raise x
2267
    result = checkSimilarItem_result()
2268
    result.read(self._iprot)
2269
    self._iprot.readMessageEnd()
2270
    if result.success is not None:
2271
      return result.success
2272
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2273
 
2274
  def validateRiskyStatus(self, itemId):
2275
    """
2276
    Check wether item is risky and change status if inventory is not available for risky items
2277
 
2278
    Parameters:
2279
     - itemId
2280
    """
2281
    self.send_validateRiskyStatus(itemId)
2282
    self.recv_validateRiskyStatus()
2283
 
2284
  def send_validateRiskyStatus(self, itemId):
2285
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2286
    args = validateRiskyStatus_args()
2287
    args.itemId = itemId
2288
    args.write(self._oprot)
2289
    self._oprot.writeMessageEnd()
2290
    self._oprot.trans.flush()
2291
 
2292
  def recv_validateRiskyStatus(self, ):
2293
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2294
    if mtype == TMessageType.EXCEPTION:
2295
      x = TApplicationException()
2296
      x.read(self._iprot)
2297
      self._iprot.readMessageEnd()
2298
      raise x
2299
    result = validateRiskyStatus_result()
2300
    result.read(self._iprot)
2301
    self._iprot.readMessageEnd()
2302
    return
2303
 
2304
  def changeItemRiskyFlag(self, itemId, risky):
2305
    """
2306
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2307
 
2308
    Parameters:
2309
     - itemId
2310
     - risky
2311
    """
2312
    self.send_changeItemRiskyFlag(itemId, risky)
2313
    self.recv_changeItemRiskyFlag()
2314
 
2315
  def send_changeItemRiskyFlag(self, itemId, risky):
2316
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2317
    args = changeItemRiskyFlag_args()
2318
    args.itemId = itemId
2319
    args.risky = risky
2320
    args.write(self._oprot)
2321
    self._oprot.writeMessageEnd()
2322
    self._oprot.trans.flush()
2323
 
2324
  def recv_changeItemRiskyFlag(self, ):
2325
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2326
    if mtype == TMessageType.EXCEPTION:
2327
      x = TApplicationException()
2328
      x.read(self._iprot)
2329
      self._iprot.readMessageEnd()
2330
      raise x
2331
    result = changeItemRiskyFlag_result()
2332
    result.read(self._iprot)
2333
    self._iprot.readMessageEnd()
2334
    return
2335
 
2336
  def getItemsByRiskyFlag(self, ):
2337
    """
2338
    Returns list of items marked as risky.
2339
    """
2340
    self.send_getItemsByRiskyFlag()
2341
    return self.recv_getItemsByRiskyFlag()
2342
 
2343
  def send_getItemsByRiskyFlag(self, ):
2344
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2345
    args = getItemsByRiskyFlag_args()
2346
    args.write(self._oprot)
2347
    self._oprot.writeMessageEnd()
2348
    self._oprot.trans.flush()
2349
 
2350
  def recv_getItemsByRiskyFlag(self, ):
2351
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2352
    if mtype == TMessageType.EXCEPTION:
2353
      x = TApplicationException()
2354
      x.read(self._iprot)
2355
      self._iprot.readMessageEnd()
2356
      raise x
2357
    result = getItemsByRiskyFlag_result()
2358
    result.read(self._iprot)
2359
    self._iprot.readMessageEnd()
2360
    if result.success is not None:
2361
      return result.success
2362
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2363
 
2364
  def getItemsForMasterSheet(self, category, brand):
2365
    """
2366
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2367
 
2368
    Parameters:
2369
     - category
2370
     - brand
2371
    """
2372
    self.send_getItemsForMasterSheet(category, brand)
2373
    return self.recv_getItemsForMasterSheet()
2374
 
2375
  def send_getItemsForMasterSheet(self, category, brand):
2376
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2377
    args = getItemsForMasterSheet_args()
2378
    args.category = category
2379
    args.brand = brand
2380
    args.write(self._oprot)
2381
    self._oprot.writeMessageEnd()
2382
    self._oprot.trans.flush()
2383
 
2384
  def recv_getItemsForMasterSheet(self, ):
2385
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2386
    if mtype == TMessageType.EXCEPTION:
2387
      x = TApplicationException()
2388
      x.read(self._iprot)
2389
      self._iprot.readMessageEnd()
2390
      raise x
2391
    result = getItemsForMasterSheet_result()
2392
    result.read(self._iprot)
2393
    self._iprot.readMessageEnd()
2394
    if result.success is not None:
2395
      return result.success
2396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2397
 
2398
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2399
    """
2400
    Returns list of catalog ids of items with same similarity index as of the given itemId
2401
 
2402
    Parameters:
2403
     - beginIndex
2404
     - totalItems
2405
     - itemId
2406
    """
2407
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2408
    return self.recv_getSimilarItemsCatalogIds()
2409
 
2410
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2411
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2412
    args = getSimilarItemsCatalogIds_args()
2413
    args.beginIndex = beginIndex
2414
    args.totalItems = totalItems
2415
    args.itemId = itemId
2416
    args.write(self._oprot)
2417
    self._oprot.writeMessageEnd()
2418
    self._oprot.trans.flush()
2419
 
2420
  def recv_getSimilarItemsCatalogIds(self, ):
2421
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2422
    if mtype == TMessageType.EXCEPTION:
2423
      x = TApplicationException()
2424
      x.read(self._iprot)
2425
      self._iprot.readMessageEnd()
2426
      raise x
2427
    result = getSimilarItemsCatalogIds_result()
2428
    result.read(self._iprot)
2429
    self._iprot.readMessageEnd()
2430
    if result.success is not None:
2431
      return result.success
2432
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2433
 
2434
  def addProductNotification(self, itemId, email):
2435
    """
2436
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2437
 
2438
    Parameters:
2439
     - itemId
2440
     - email
2441
    """
2442
    self.send_addProductNotification(itemId, email)
2443
    return self.recv_addProductNotification()
2444
 
2445
  def send_addProductNotification(self, itemId, email):
2446
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2447
    args = addProductNotification_args()
2448
    args.itemId = itemId
2449
    args.email = email
2450
    args.write(self._oprot)
2451
    self._oprot.writeMessageEnd()
2452
    self._oprot.trans.flush()
2453
 
2454
  def recv_addProductNotification(self, ):
2455
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2456
    if mtype == TMessageType.EXCEPTION:
2457
      x = TApplicationException()
2458
      x.read(self._iprot)
2459
      self._iprot.readMessageEnd()
2460
      raise x
2461
    result = addProductNotification_result()
2462
    result.read(self._iprot)
2463
    self._iprot.readMessageEnd()
2464
    if result.success is not None:
2465
      return result.success
2466
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2467
 
2468
  def sendProductNotifications(self, ):
2469
    """
2470
    Send the product notifications to the users for items which has stock.
2471
    """
2472
    self.send_sendProductNotifications()
2473
    return self.recv_sendProductNotifications()
2474
 
2475
  def send_sendProductNotifications(self, ):
2476
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2477
    args = sendProductNotifications_args()
2478
    args.write(self._oprot)
2479
    self._oprot.writeMessageEnd()
2480
    self._oprot.trans.flush()
2481
 
2482
  def recv_sendProductNotifications(self, ):
2483
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2484
    if mtype == TMessageType.EXCEPTION:
2485
      x = TApplicationException()
2486
      x.read(self._iprot)
2487
      self._iprot.readMessageEnd()
2488
      raise x
2489
    result = sendProductNotifications_result()
2490
    result.read(self._iprot)
2491
    self._iprot.readMessageEnd()
2492
    if result.success is not None:
2493
      return result.success
2494
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2495
 
2496
  def getAllBrandsByCategory(self, categoryId):
2497
    """
2498
    Returns list of brand names for a given category Id
2499
 
2500
    Parameters:
2501
     - categoryId
2502
    """
2503
    self.send_getAllBrandsByCategory(categoryId)
2504
    return self.recv_getAllBrandsByCategory()
2505
 
2506
  def send_getAllBrandsByCategory(self, categoryId):
2507
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2508
    args = getAllBrandsByCategory_args()
2509
    args.categoryId = categoryId
2510
    args.write(self._oprot)
2511
    self._oprot.writeMessageEnd()
2512
    self._oprot.trans.flush()
2513
 
2514
  def recv_getAllBrandsByCategory(self, ):
2515
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2516
    if mtype == TMessageType.EXCEPTION:
2517
      x = TApplicationException()
2518
      x.read(self._iprot)
2519
      self._iprot.readMessageEnd()
2520
      raise x
2521
    result = getAllBrandsByCategory_result()
2522
    result.read(self._iprot)
2523
    self._iprot.readMessageEnd()
2524
    if result.success is not None:
2525
      return result.success
2526
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2527
 
2528
  def getAllBrands(self, ):
2529
    """
2530
    Returns list of brand names
2531
    """
2532
    self.send_getAllBrands()
2533
    return self.recv_getAllBrands()
2534
 
2535
  def send_getAllBrands(self, ):
2536
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2537
    args = getAllBrands_args()
2538
    args.write(self._oprot)
2539
    self._oprot.writeMessageEnd()
2540
    self._oprot.trans.flush()
2541
 
2542
  def recv_getAllBrands(self, ):
2543
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2544
    if mtype == TMessageType.EXCEPTION:
2545
      x = TApplicationException()
2546
      x.read(self._iprot)
2547
      self._iprot.readMessageEnd()
2548
      raise x
2549
    result = getAllBrands_result()
2550
    result.read(self._iprot)
2551
    self._iprot.readMessageEnd()
2552
    if result.success is not None:
2553
      return result.success
2554
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2555
 
2556
  def getAllSources(self, ):
2557
    """
2558
    Return list of all sources
2559
    """
2560
    self.send_getAllSources()
2561
    return self.recv_getAllSources()
2562
 
2563
  def send_getAllSources(self, ):
2564
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2565
    args = getAllSources_args()
2566
    args.write(self._oprot)
2567
    self._oprot.writeMessageEnd()
2568
    self._oprot.trans.flush()
2569
 
2570
  def recv_getAllSources(self, ):
2571
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2572
    if mtype == TMessageType.EXCEPTION:
2573
      x = TApplicationException()
2574
      x.read(self._iprot)
2575
      self._iprot.readMessageEnd()
2576
      raise x
2577
    result = getAllSources_result()
2578
    result.read(self._iprot)
2579
    self._iprot.readMessageEnd()
2580
    if result.success is not None:
2581
      return result.success
2582
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2583
 
2584
  def getItemPricingBySource(self, itemId, sourceId):
2585
    """
2586
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2587
 
2588
    Parameters:
2589
     - itemId
2590
     - sourceId
2591
    """
2592
    self.send_getItemPricingBySource(itemId, sourceId)
2593
    return self.recv_getItemPricingBySource()
2594
 
2595
  def send_getItemPricingBySource(self, itemId, sourceId):
2596
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2597
    args = getItemPricingBySource_args()
2598
    args.itemId = itemId
2599
    args.sourceId = sourceId
2600
    args.write(self._oprot)
2601
    self._oprot.writeMessageEnd()
2602
    self._oprot.trans.flush()
2603
 
2604
  def recv_getItemPricingBySource(self, ):
2605
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2606
    if mtype == TMessageType.EXCEPTION:
2607
      x = TApplicationException()
2608
      x.read(self._iprot)
2609
      self._iprot.readMessageEnd()
2610
      raise x
2611
    result = getItemPricingBySource_result()
2612
    result.read(self._iprot)
2613
    self._iprot.readMessageEnd()
2614
    if result.success is not None:
2615
      return result.success
2616
    if result.cex is not None:
2617
      raise result.cex
2618
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2619
 
2620
  def addSourceItemPricing(self, sourceItemPricing):
2621
    """
2622
    Adds prices to be displayed corresponding to the item if user comes from a source.
2623
    If item is not found or source is not found, it will throw exception.
2624
 
2625
    Parameters:
2626
     - sourceItemPricing
2627
    """
2628
    self.send_addSourceItemPricing(sourceItemPricing)
2629
    self.recv_addSourceItemPricing()
2630
 
2631
  def send_addSourceItemPricing(self, sourceItemPricing):
2632
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2633
    args = addSourceItemPricing_args()
2634
    args.sourceItemPricing = sourceItemPricing
2635
    args.write(self._oprot)
2636
    self._oprot.writeMessageEnd()
2637
    self._oprot.trans.flush()
2638
 
2639
  def recv_addSourceItemPricing(self, ):
2640
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2641
    if mtype == TMessageType.EXCEPTION:
2642
      x = TApplicationException()
2643
      x.read(self._iprot)
2644
      self._iprot.readMessageEnd()
2645
      raise x
2646
    result = addSourceItemPricing_result()
2647
    result.read(self._iprot)
2648
    self._iprot.readMessageEnd()
2649
    if result.cex is not None:
2650
      raise result.cex
2651
    return
2652
 
2653
  def getAllSourcePricing(self, itemId):
2654
    """
2655
    Returns the list of source pricing information of an item.
2656
    Raises an exception if item not found corresponding to itemId
2657
 
2658
    Parameters:
2659
     - itemId
2660
    """
2661
    self.send_getAllSourcePricing(itemId)
2662
    return self.recv_getAllSourcePricing()
2663
 
2664
  def send_getAllSourcePricing(self, itemId):
2665
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2666
    args = getAllSourcePricing_args()
2667
    args.itemId = itemId
2668
    args.write(self._oprot)
2669
    self._oprot.writeMessageEnd()
2670
    self._oprot.trans.flush()
2671
 
2672
  def recv_getAllSourcePricing(self, ):
2673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2674
    if mtype == TMessageType.EXCEPTION:
2675
      x = TApplicationException()
2676
      x.read(self._iprot)
2677
      self._iprot.readMessageEnd()
2678
      raise x
2679
    result = getAllSourcePricing_result()
2680
    result.read(self._iprot)
2681
    self._iprot.readMessageEnd()
2682
    if result.success is not None:
2683
      return result.success
2684
    if result.cex is not None:
2685
      raise result.cex
2686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2687
 
2688
  def getItemForSource(self, item_id, sourceId):
2689
    """
2690
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2691
 
2692
    Parameters:
2693
     - item_id
2694
     - sourceId
2695
    """
2696
    self.send_getItemForSource(item_id, sourceId)
2697
    return self.recv_getItemForSource()
2698
 
2699
  def send_getItemForSource(self, item_id, sourceId):
2700
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2701
    args = getItemForSource_args()
2702
    args.item_id = item_id
2703
    args.sourceId = sourceId
2704
    args.write(self._oprot)
2705
    self._oprot.writeMessageEnd()
2706
    self._oprot.trans.flush()
2707
 
2708
  def recv_getItemForSource(self, ):
2709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2710
    if mtype == TMessageType.EXCEPTION:
2711
      x = TApplicationException()
2712
      x.read(self._iprot)
2713
      self._iprot.readMessageEnd()
2714
      raise x
2715
    result = getItemForSource_result()
2716
    result.read(self._iprot)
2717
    self._iprot.readMessageEnd()
2718
    if result.success is not None:
2719
      return result.success
2720
    if result.cex is not None:
2721
      raise result.cex
2722
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2723
 
2724
  def searchItemsInRange(self, searchTerms, offset, limit):
2725
    """
2726
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2727
 
2728
    Parameters:
2729
     - searchTerms
2730
     - offset
2731
     - limit
2732
    """
2733
    self.send_searchItemsInRange(searchTerms, offset, limit)
2734
    return self.recv_searchItemsInRange()
2735
 
2736
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2737
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2738
    args = searchItemsInRange_args()
2739
    args.searchTerms = searchTerms
2740
    args.offset = offset
2741
    args.limit = limit
2742
    args.write(self._oprot)
2743
    self._oprot.writeMessageEnd()
2744
    self._oprot.trans.flush()
2745
 
2746
  def recv_searchItemsInRange(self, ):
2747
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2748
    if mtype == TMessageType.EXCEPTION:
2749
      x = TApplicationException()
2750
      x.read(self._iprot)
2751
      self._iprot.readMessageEnd()
2752
      raise x
2753
    result = searchItemsInRange_result()
2754
    result.read(self._iprot)
2755
    self._iprot.readMessageEnd()
2756
    if result.success is not None:
2757
      return result.success
2758
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2759
 
2760
  def getSearchResultCount(self, searchTerms):
2761
    """
2762
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2763
 
2764
    Parameters:
2765
     - searchTerms
2766
    """
2767
    self.send_getSearchResultCount(searchTerms)
2768
    return self.recv_getSearchResultCount()
2769
 
2770
  def send_getSearchResultCount(self, searchTerms):
2771
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2772
    args = getSearchResultCount_args()
2773
    args.searchTerms = searchTerms
2774
    args.write(self._oprot)
2775
    self._oprot.writeMessageEnd()
2776
    self._oprot.trans.flush()
2777
 
2778
  def recv_getSearchResultCount(self, ):
2779
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2780
    if mtype == TMessageType.EXCEPTION:
2781
      x = TApplicationException()
2782
      x.read(self._iprot)
2783
      self._iprot.readMessageEnd()
2784
      raise x
2785
    result = getSearchResultCount_result()
2786
    result.read(self._iprot)
2787
    self._iprot.readMessageEnd()
2788
    if result.success is not None:
2789
      return result.success
2790
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2791
 
2792
  def getProductNotifications(self, startDateTime):
2793
    """
2794
    Returns a list of product notifications added after a supplied datetime
2795
 
2796
    Parameters:
2797
     - startDateTime
2798
    """
2799
    self.send_getProductNotifications(startDateTime)
2800
    return self.recv_getProductNotifications()
2801
 
2802
  def send_getProductNotifications(self, startDateTime):
2803
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2804
    args = getProductNotifications_args()
2805
    args.startDateTime = startDateTime
2806
    args.write(self._oprot)
2807
    self._oprot.writeMessageEnd()
2808
    self._oprot.trans.flush()
2809
 
2810
  def recv_getProductNotifications(self, ):
2811
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2812
    if mtype == TMessageType.EXCEPTION:
2813
      x = TApplicationException()
2814
      x.read(self._iprot)
2815
      self._iprot.readMessageEnd()
2816
      raise x
2817
    result = getProductNotifications_result()
2818
    result.read(self._iprot)
2819
    self._iprot.readMessageEnd()
2820
    if result.success is not None:
2821
      return result.success
2822
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2823
 
2824
  def getProductNotificationRequestCount(self, startDateTime):
2825
    """
2826
    Returns a list of count of requests for product notification against each item
2827
 
2828
    Parameters:
2829
     - startDateTime
2830
    """
2831
    self.send_getProductNotificationRequestCount(startDateTime)
2832
    return self.recv_getProductNotificationRequestCount()
2833
 
2834
  def send_getProductNotificationRequestCount(self, startDateTime):
2835
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2836
    args = getProductNotificationRequestCount_args()
2837
    args.startDateTime = startDateTime
2838
    args.write(self._oprot)
2839
    self._oprot.writeMessageEnd()
2840
    self._oprot.trans.flush()
2841
 
2842
  def recv_getProductNotificationRequestCount(self, ):
2843
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2844
    if mtype == TMessageType.EXCEPTION:
2845
      x = TApplicationException()
2846
      x.read(self._iprot)
2847
      self._iprot.readMessageEnd()
2848
      raise x
2849
    result = getProductNotificationRequestCount_result()
2850
    result.read(self._iprot)
2851
    self._iprot.readMessageEnd()
2852
    if result.success is not None:
2853
      return result.success
2854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2855
 
2856
  def addAuthorizationLog(self, itemId, username, reason):
2857
    """
2858
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2859
 
2860
    Parameters:
2861
     - itemId
2862
     - username
2863
     - reason
2864
    """
2865
    self.send_addAuthorizationLog(itemId, username, reason)
2866
    return self.recv_addAuthorizationLog()
2867
 
2868
  def send_addAuthorizationLog(self, itemId, username, reason):
2869
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2870
    args = addAuthorizationLog_args()
2871
    args.itemId = itemId
2872
    args.username = username
2873
    args.reason = reason
2874
    args.write(self._oprot)
2875
    self._oprot.writeMessageEnd()
2876
    self._oprot.trans.flush()
2877
 
2878
  def recv_addAuthorizationLog(self, ):
2879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2880
    if mtype == TMessageType.EXCEPTION:
2881
      x = TApplicationException()
2882
      x.read(self._iprot)
2883
      self._iprot.readMessageEnd()
2884
      raise x
2885
    result = addAuthorizationLog_result()
2886
    result.read(self._iprot)
2887
    self._iprot.readMessageEnd()
2888
    if result.success is not None:
2889
      return result.success
2890
    if result.cex is not None:
2891
      raise result.cex
2892
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2893
 
2894
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2895
    """
2896
    Parameters:
2897
     - catalog_item_id
2898
     - voucherType
2899
     - voucherAmount
2900
    """
2901
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2902
    return self.recv_addupdateVoucherForItem()
2903
 
2904
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2905
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2906
    args = addupdateVoucherForItem_args()
2907
    args.catalog_item_id = catalog_item_id
2908
    args.voucherType = voucherType
2909
    args.voucherAmount = voucherAmount
2910
    args.write(self._oprot)
2911
    self._oprot.writeMessageEnd()
2912
    self._oprot.trans.flush()
2913
 
2914
  def recv_addupdateVoucherForItem(self, ):
2915
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2916
    if mtype == TMessageType.EXCEPTION:
2917
      x = TApplicationException()
2918
      x.read(self._iprot)
2919
      self._iprot.readMessageEnd()
2920
      raise x
2921
    result = addupdateVoucherForItem_result()
2922
    result.read(self._iprot)
2923
    self._iprot.readMessageEnd()
2924
    if result.success is not None:
2925
      return result.success
2926
    if result.cex is not None:
2927
      raise result.cex
2928
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2929
 
2930
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2931
    """
2932
    Parameters:
2933
     - catalog_item_id
2934
     - voucherType
2935
    """
2936
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2937
    return self.recv_deleteVoucherForItem()
2938
 
2939
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2940
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2941
    args = deleteVoucherForItem_args()
2942
    args.catalog_item_id = catalog_item_id
2943
    args.voucherType = voucherType
2944
    args.write(self._oprot)
2945
    self._oprot.writeMessageEnd()
2946
    self._oprot.trans.flush()
2947
 
2948
  def recv_deleteVoucherForItem(self, ):
2949
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2950
    if mtype == TMessageType.EXCEPTION:
2951
      x = TApplicationException()
2952
      x.read(self._iprot)
2953
      self._iprot.readMessageEnd()
2954
      raise x
2955
    result = deleteVoucherForItem_result()
2956
    result.read(self._iprot)
2957
    self._iprot.readMessageEnd()
2958
    if result.success is not None:
2959
      return result.success
2960
    if result.cex is not None:
2961
      raise result.cex
2962
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2963
 
2964
  def getVoucherAmount(self, itemId, voucherType):
2965
    """
2966
    Parameters:
2967
     - itemId
2968
     - voucherType
2969
    """
2970
    self.send_getVoucherAmount(itemId, voucherType)
2971
    return self.recv_getVoucherAmount()
2972
 
2973
  def send_getVoucherAmount(self, itemId, voucherType):
2974
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2975
    args = getVoucherAmount_args()
2976
    args.itemId = itemId
2977
    args.voucherType = voucherType
2978
    args.write(self._oprot)
2979
    self._oprot.writeMessageEnd()
2980
    self._oprot.trans.flush()
2981
 
2982
  def recv_getVoucherAmount(self, ):
2983
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2984
    if mtype == TMessageType.EXCEPTION:
2985
      x = TApplicationException()
2986
      x.read(self._iprot)
2987
      self._iprot.readMessageEnd()
2988
      raise x
2989
    result = getVoucherAmount_result()
2990
    result.read(self._iprot)
2991
    self._iprot.readMessageEnd()
2992
    if result.success is not None:
2993
      return result.success
2994
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2995
 
2996
  def getAllItemVouchers(self, itemId):
2997
    """
2998
    Parameters:
2999
     - itemId
3000
    """
3001
    self.send_getAllItemVouchers(itemId)
3002
    return self.recv_getAllItemVouchers()
3003
 
3004
  def send_getAllItemVouchers(self, itemId):
3005
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3006
    args = getAllItemVouchers_args()
3007
    args.itemId = itemId
3008
    args.write(self._oprot)
3009
    self._oprot.writeMessageEnd()
3010
    self._oprot.trans.flush()
3011
 
3012
  def recv_getAllItemVouchers(self, ):
3013
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3014
    if mtype == TMessageType.EXCEPTION:
3015
      x = TApplicationException()
3016
      x.read(self._iprot)
3017
      self._iprot.readMessageEnd()
3018
      raise x
3019
    result = getAllItemVouchers_result()
3020
    result.read(self._iprot)
3021
    self._iprot.readMessageEnd()
3022
    if result.success is not None:
3023
      return result.success
3024
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3025
 
3026
  def isValidCatalogItemId(self, catalog_item_id):
3027
    """
3028
    Parameters:
3029
     - catalog_item_id
3030
    """
3031
    self.send_isValidCatalogItemId(catalog_item_id)
3032
    return self.recv_isValidCatalogItemId()
3033
 
3034
  def send_isValidCatalogItemId(self, catalog_item_id):
3035
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3036
    args = isValidCatalogItemId_args()
3037
    args.catalog_item_id = catalog_item_id
3038
    args.write(self._oprot)
3039
    self._oprot.writeMessageEnd()
3040
    self._oprot.trans.flush()
3041
 
3042
  def recv_isValidCatalogItemId(self, ):
3043
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3044
    if mtype == TMessageType.EXCEPTION:
3045
      x = TApplicationException()
3046
      x.read(self._iprot)
3047
      self._iprot.readMessageEnd()
3048
      raise x
3049
    result = isValidCatalogItemId_result()
3050
    result.read(self._iprot)
3051
    self._iprot.readMessageEnd()
3052
    if result.success is not None:
3053
      return result.success
3054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3055
 
6039 amit.gupta 3056
  def getVatPercentageForItem(self, itemId, price):
3057
    """
3058
    Parameters:
3059
     - itemId
3060
     - price
3061
    """
3062
    self.send_getVatPercentageForItem(itemId, price)
3063
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3064
 
6039 amit.gupta 3065
  def send_getVatPercentageForItem(self, itemId, price):
3066
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3067
    args = getVatPercentageForItem_args()
3068
    args.itemId = itemId
3069
    args.price = price
3070
    args.write(self._oprot)
3071
    self._oprot.writeMessageEnd()
3072
    self._oprot.trans.flush()
3073
 
3074
  def recv_getVatPercentageForItem(self, ):
3075
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3076
    if mtype == TMessageType.EXCEPTION:
3077
      x = TApplicationException()
3078
      x.read(self._iprot)
3079
      self._iprot.readMessageEnd()
3080
      raise x
3081
    result = getVatPercentageForItem_result()
3082
    result.read(self._iprot)
3083
    self._iprot.readMessageEnd()
3084
    if result.success is not None:
3085
      return result.success
3086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3087
 
3088
  def getVatAmountForItem(self, itemId, price):
3089
    """
3090
    Parameters:
3091
     - itemId
3092
     - price
3093
    """
3094
    self.send_getVatAmountForItem(itemId, price)
3095
    return self.recv_getVatAmountForItem()
3096
 
3097
  def send_getVatAmountForItem(self, itemId, price):
3098
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3099
    args = getVatAmountForItem_args()
3100
    args.itemId = itemId
3101
    args.price = price
3102
    args.write(self._oprot)
3103
    self._oprot.writeMessageEnd()
3104
    self._oprot.trans.flush()
3105
 
3106
  def recv_getVatAmountForItem(self, ):
3107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3108
    if mtype == TMessageType.EXCEPTION:
3109
      x = TApplicationException()
3110
      x.read(self._iprot)
3111
      self._iprot.readMessageEnd()
3112
      raise x
3113
    result = getVatAmountForItem_result()
3114
    result.read(self._iprot)
3115
    self._iprot.readMessageEnd()
3116
    if result.success is not None:
3117
      return result.success
3118
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3119
 
6531 vikram.rag 3120
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3121
    """
3122
    Parameters:
3123
     - offset
3124
     - limit
3125
    """
3126
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3127
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3128
 
6531 vikram.rag 3129
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3130
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3131
    args = getAllIgnoredInventoryUpdateItemsList_args()
3132
    args.offset = offset
3133
    args.limit = limit
3134
    args.write(self._oprot)
3135
    self._oprot.writeMessageEnd()
3136
    self._oprot.trans.flush()
3137
 
3138
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3139
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3140
    if mtype == TMessageType.EXCEPTION:
3141
      x = TApplicationException()
3142
      x.read(self._iprot)
3143
      self._iprot.readMessageEnd()
3144
      raise x
3145
    result = getAllIgnoredInventoryUpdateItemsList_result()
3146
    result.read(self._iprot)
3147
    self._iprot.readMessageEnd()
3148
    if result.success is not None:
3149
      return result.success
3150
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3151
 
6821 amar.kumar 3152
  def getAllAliveItems(self, ):
3153
    self.send_getAllAliveItems()
3154
    return self.recv_getAllAliveItems()
3155
 
3156
  def send_getAllAliveItems(self, ):
3157
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3158
    args = getAllAliveItems_args()
3159
    args.write(self._oprot)
3160
    self._oprot.writeMessageEnd()
3161
    self._oprot.trans.flush()
3162
 
3163
  def recv_getAllAliveItems(self, ):
3164
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3165
    if mtype == TMessageType.EXCEPTION:
3166
      x = TApplicationException()
3167
      x.read(self._iprot)
3168
      self._iprot.readMessageEnd()
3169
      raise x
3170
    result = getAllAliveItems_result()
3171
    result.read(self._iprot)
3172
    self._iprot.readMessageEnd()
3173
    if result.success is not None:
3174
      return result.success
3175
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3176
 
6921 anupam.sin 3177
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3178
    """
3179
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3180
 
6805 anupam.sin 3181
    Parameters:
3182
     - itemId
6921 anupam.sin 3183
     - price
6805 anupam.sin 3184
     - insurerId
3185
     - quantity
3186
    """
6921 anupam.sin 3187
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3188
    return self.recv_getInsuranceAmount()
3189
 
6921 anupam.sin 3190
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3191
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3192
    args = getInsuranceAmount_args()
3193
    args.itemId = itemId
6921 anupam.sin 3194
    args.price = price
6805 anupam.sin 3195
    args.insurerId = insurerId
3196
    args.quantity = quantity
3197
    args.write(self._oprot)
3198
    self._oprot.writeMessageEnd()
3199
    self._oprot.trans.flush()
3200
 
3201
  def recv_getInsuranceAmount(self, ):
3202
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3203
    if mtype == TMessageType.EXCEPTION:
3204
      x = TApplicationException()
3205
      x.read(self._iprot)
3206
      self._iprot.readMessageEnd()
3207
      raise x
3208
    result = getInsuranceAmount_result()
3209
    result.read(self._iprot)
3210
    self._iprot.readMessageEnd()
3211
    if result.success is not None:
3212
      return result.success
3213
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3214
 
3215
  def getInsurer(self, insurerId):
3216
    """
3217
    Parameters:
3218
     - insurerId
3219
    """
3220
    self.send_getInsurer(insurerId)
3221
    return self.recv_getInsurer()
3222
 
3223
  def send_getInsurer(self, insurerId):
3224
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3225
    args = getInsurer_args()
3226
    args.insurerId = insurerId
3227
    args.write(self._oprot)
3228
    self._oprot.writeMessageEnd()
3229
    self._oprot.trans.flush()
3230
 
3231
  def recv_getInsurer(self, ):
3232
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3233
    if mtype == TMessageType.EXCEPTION:
3234
      x = TApplicationException()
3235
      x.read(self._iprot)
3236
      self._iprot.readMessageEnd()
3237
      raise x
3238
    result = getInsurer_result()
3239
    result.read(self._iprot)
3240
    self._iprot.readMessageEnd()
3241
    if result.success is not None:
3242
      return result.success
3243
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3244
 
6838 vikram.rag 3245
  def getAllInsurers(self, ):
3246
    self.send_getAllInsurers()
3247
    return self.recv_getAllInsurers()
6805 anupam.sin 3248
 
6838 vikram.rag 3249
  def send_getAllInsurers(self, ):
3250
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3251
    args = getAllInsurers_args()
3252
    args.write(self._oprot)
3253
    self._oprot.writeMessageEnd()
3254
    self._oprot.trans.flush()
3255
 
3256
  def recv_getAllInsurers(self, ):
3257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3258
    if mtype == TMessageType.EXCEPTION:
3259
      x = TApplicationException()
3260
      x.read(self._iprot)
3261
      self._iprot.readMessageEnd()
3262
      raise x
3263
    result = getAllInsurers_result()
3264
    result.read(self._iprot)
3265
    self._iprot.readMessageEnd()
3266
    if result.success is not None:
3267
      return result.success
3268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3269
 
6962 rajveer 3270
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
3271
    """
3272
    Parameters:
3273
     - insurerId
3274
     - amount
3275
    """
3276
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
3277
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 3278
 
6962 rajveer 3279
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
3280
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
3281
    args = updateInsuranceDeclaredAmount_args()
3282
    args.insurerId = insurerId
3283
    args.amount = amount
3284
    args.write(self._oprot)
3285
    self._oprot.writeMessageEnd()
3286
    self._oprot.trans.flush()
3287
 
3288
  def recv_updateInsuranceDeclaredAmount(self, ):
3289
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3290
    if mtype == TMessageType.EXCEPTION:
3291
      x = TApplicationException()
3292
      x.read(self._iprot)
3293
      self._iprot.readMessageEnd()
3294
      raise x
3295
    result = updateInsuranceDeclaredAmount_result()
3296
    result.read(self._iprot)
3297
    self._iprot.readMessageEnd()
3298
    return
3299
 
7190 amar.kumar 3300
  def getFreebieForItem(self, itemId):
3301
    """
3302
    Parameters:
3303
     - itemId
3304
    """
3305
    self.send_getFreebieForItem(itemId)
3306
    return self.recv_getFreebieForItem()
6962 rajveer 3307
 
7190 amar.kumar 3308
  def send_getFreebieForItem(self, itemId):
3309
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
3310
    args = getFreebieForItem_args()
3311
    args.itemId = itemId
3312
    args.write(self._oprot)
3313
    self._oprot.writeMessageEnd()
3314
    self._oprot.trans.flush()
3315
 
3316
  def recv_getFreebieForItem(self, ):
3317
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3318
    if mtype == TMessageType.EXCEPTION:
3319
      x = TApplicationException()
3320
      x.read(self._iprot)
3321
      self._iprot.readMessageEnd()
3322
      raise x
3323
    result = getFreebieForItem_result()
3324
    result.read(self._iprot)
3325
    self._iprot.readMessageEnd()
3326
    if result.success is not None:
3327
      return result.success
3328
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
3329
 
3330
  def addOrUpdateFreebieForItem(self, freebieItem):
3331
    """
3332
    Parameters:
3333
     - freebieItem
3334
    """
3335
    self.send_addOrUpdateFreebieForItem(freebieItem)
3336
    self.recv_addOrUpdateFreebieForItem()
3337
 
3338
  def send_addOrUpdateFreebieForItem(self, freebieItem):
3339
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
3340
    args = addOrUpdateFreebieForItem_args()
3341
    args.freebieItem = freebieItem
3342
    args.write(self._oprot)
3343
    self._oprot.writeMessageEnd()
3344
    self._oprot.trans.flush()
3345
 
3346
  def recv_addOrUpdateFreebieForItem(self, ):
3347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3348
    if mtype == TMessageType.EXCEPTION:
3349
      x = TApplicationException()
3350
      x.read(self._iprot)
3351
      self._iprot.readMessageEnd()
3352
      raise x
3353
    result = addOrUpdateFreebieForItem_result()
3354
    result.read(self._iprot)
3355
    self._iprot.readMessageEnd()
3356
    return
3357
 
7256 rajveer 3358
  def getStorePricing(self, itemId):
3359
    """
3360
    Parameters:
3361
     - itemId
3362
    """
3363
    self.send_getStorePricing(itemId)
3364
    return self.recv_getStorePricing()
7190 amar.kumar 3365
 
7256 rajveer 3366
  def send_getStorePricing(self, itemId):
3367
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
3368
    args = getStorePricing_args()
3369
    args.itemId = itemId
3370
    args.write(self._oprot)
3371
    self._oprot.writeMessageEnd()
3372
    self._oprot.trans.flush()
3373
 
3374
  def recv_getStorePricing(self, ):
3375
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3376
    if mtype == TMessageType.EXCEPTION:
3377
      x = TApplicationException()
3378
      x.read(self._iprot)
3379
      self._iprot.readMessageEnd()
3380
      raise x
3381
    result = getStorePricing_result()
3382
    result.read(self._iprot)
3383
    self._iprot.readMessageEnd()
3384
    if result.success is not None:
3385
      return result.success
3386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
3387
 
3388
 
5944 mandeep.dh 3389
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3390
  def __init__(self, handler):
3391
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3392
    self._processMap["addItem"] = Processor.process_addItem
3393
    self._processMap["updateItem"] = Processor.process_updateItem
3394
    self._processMap["isActive"] = Processor.process_isActive
3395
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
3396
    self._processMap["startItemOn"] = Processor.process_startItemOn
3397
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
3398
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3399
    self._processMap["getItem"] = Processor.process_getItem
3400
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
3401
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
3402
    self._processMap["getAllItems"] = Processor.process_getAllItems
3403
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
3404
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
3405
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
3406
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
3407
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
3408
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
3409
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
3410
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
3411
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
3412
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
3413
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
3414
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
3415
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
3416
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
3417
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
3418
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
3419
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
3420
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
3421
    self._processMap["addCategory"] = Processor.process_addCategory
3422
    self._processMap["getCategory"] = Processor.process_getCategory
3423
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
3424
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
3425
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 3426
    self._processMap["addTag"] = Processor.process_addTag
3427
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
3428
    self._processMap["deleteTag"] = Processor.process_deleteTag
3429
    self._processMap["getAllTags"] = Processor.process_getAllTags
3430
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 3431
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 3432
    self._processMap["addBanner"] = Processor.process_addBanner
3433
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
3434
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
3435
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
3436
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 3437
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
3438
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
3439
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
5944 mandeep.dh 3440
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
3441
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
3442
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
3443
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
3444
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
3445
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
3446
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
3447
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
3448
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
3449
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
3450
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
3451
    self._processMap["getAllSources"] = Processor.process_getAllSources
3452
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
3453
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
3454
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
3455
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3456
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3457
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3458
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3459
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3460
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3461
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3462
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3463
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3464
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3465
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3466
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3467
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3468
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3469
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3470
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3471
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3472
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 3473
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 3474
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
3475
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7256 rajveer 3476
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
5944 mandeep.dh 3477
 
3478
  def process(self, iprot, oprot):
3479
    (name, type, seqid) = iprot.readMessageBegin()
3480
    if name not in self._processMap:
3481
      iprot.skip(TType.STRUCT)
3482
      iprot.readMessageEnd()
3483
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3484
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3485
      x.write(oprot)
3486
      oprot.writeMessageEnd()
3487
      oprot.trans.flush()
3488
      return
3489
    else:
3490
      self._processMap[name](self, seqid, iprot, oprot)
3491
    return True
3492
 
3493
  def process_addItem(self, seqid, iprot, oprot):
3494
    args = addItem_args()
3495
    args.read(iprot)
3496
    iprot.readMessageEnd()
3497
    result = addItem_result()
3498
    try:
3499
      result.success = self._handler.addItem(args.item)
3500
    except CatalogServiceException, cex:
3501
      result.cex = cex
3502
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3503
    result.write(oprot)
3504
    oprot.writeMessageEnd()
3505
    oprot.trans.flush()
3506
 
3507
  def process_updateItem(self, seqid, iprot, oprot):
3508
    args = updateItem_args()
3509
    args.read(iprot)
3510
    iprot.readMessageEnd()
3511
    result = updateItem_result()
3512
    try:
3513
      result.success = self._handler.updateItem(args.item)
3514
    except CatalogServiceException, cex:
3515
      result.cex = cex
3516
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3517
    result.write(oprot)
3518
    oprot.writeMessageEnd()
3519
    oprot.trans.flush()
3520
 
3521
  def process_isActive(self, seqid, iprot, oprot):
3522
    args = isActive_args()
3523
    args.read(iprot)
3524
    iprot.readMessageEnd()
3525
    result = isActive_result()
3526
    try:
3527
      result.success = self._handler.isActive(args.itemId)
3528
    except CatalogServiceException, isex:
3529
      result.isex = isex
3530
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3531
    result.write(oprot)
3532
    oprot.writeMessageEnd()
3533
    oprot.trans.flush()
3534
 
3535
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3536
    args = getItemStatusDescription_args()
3537
    args.read(iprot)
3538
    iprot.readMessageEnd()
3539
    result = getItemStatusDescription_result()
3540
    try:
3541
      result.success = self._handler.getItemStatusDescription(args.itemId)
3542
    except CatalogServiceException, isex:
3543
      result.isex = isex
3544
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3545
    result.write(oprot)
3546
    oprot.writeMessageEnd()
3547
    oprot.trans.flush()
3548
 
3549
  def process_startItemOn(self, seqid, iprot, oprot):
3550
    args = startItemOn_args()
3551
    args.read(iprot)
3552
    iprot.readMessageEnd()
3553
    result = startItemOn_result()
3554
    try:
3555
      self._handler.startItemOn(args.item_id, args.timestamp)
3556
    except CatalogServiceException, cex:
3557
      result.cex = cex
3558
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3559
    result.write(oprot)
3560
    oprot.writeMessageEnd()
3561
    oprot.trans.flush()
3562
 
3563
  def process_retireItemOn(self, seqid, iprot, oprot):
3564
    args = retireItemOn_args()
3565
    args.read(iprot)
3566
    iprot.readMessageEnd()
3567
    result = retireItemOn_result()
3568
    try:
3569
      self._handler.retireItemOn(args.item_id, args.timestamp)
3570
    except CatalogServiceException, cex:
3571
      result.cex = cex
3572
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3573
    result.write(oprot)
3574
    oprot.writeMessageEnd()
3575
    oprot.trans.flush()
3576
 
3577
  def process_changeItemStatus(self, seqid, iprot, oprot):
3578
    args = changeItemStatus_args()
3579
    args.read(iprot)
3580
    iprot.readMessageEnd()
3581
    result = changeItemStatus_result()
3582
    try:
3583
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3584
    except CatalogServiceException, cex:
3585
      result.cex = cex
3586
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3587
    result.write(oprot)
3588
    oprot.writeMessageEnd()
3589
    oprot.trans.flush()
3590
 
3591
  def process_getItem(self, seqid, iprot, oprot):
3592
    args = getItem_args()
3593
    args.read(iprot)
3594
    iprot.readMessageEnd()
3595
    result = getItem_result()
3596
    try:
3597
      result.success = self._handler.getItem(args.item_id)
3598
    except CatalogServiceException, cex:
3599
      result.cex = cex
3600
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3601
    result.write(oprot)
3602
    oprot.writeMessageEnd()
3603
    oprot.trans.flush()
3604
 
3605
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3606
    args = getItemsByCatalogId_args()
3607
    args.read(iprot)
3608
    iprot.readMessageEnd()
3609
    result = getItemsByCatalogId_result()
3610
    try:
3611
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3612
    except CatalogServiceException, cex:
3613
      result.cex = cex
3614
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3615
    result.write(oprot)
3616
    oprot.writeMessageEnd()
3617
    oprot.trans.flush()
3618
 
3619
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3620
    args = getValidItemsByCatalogId_args()
3621
    args.read(iprot)
3622
    iprot.readMessageEnd()
3623
    result = getValidItemsByCatalogId_result()
3624
    try:
3625
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3626
    except CatalogServiceException, cex:
3627
      result.cex = cex
3628
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3629
    result.write(oprot)
3630
    oprot.writeMessageEnd()
3631
    oprot.trans.flush()
3632
 
3633
  def process_getAllItems(self, seqid, iprot, oprot):
3634
    args = getAllItems_args()
3635
    args.read(iprot)
3636
    iprot.readMessageEnd()
3637
    result = getAllItems_result()
3638
    try:
3639
      result.success = self._handler.getAllItems(args.isActive)
3640
    except CatalogServiceException, cex:
3641
      result.cex = cex
3642
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3643
    result.write(oprot)
3644
    oprot.writeMessageEnd()
3645
    oprot.trans.flush()
3646
 
3647
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3648
    args = getAllItemsByStatus_args()
3649
    args.read(iprot)
3650
    iprot.readMessageEnd()
3651
    result = getAllItemsByStatus_result()
3652
    try:
3653
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3654
    except CatalogServiceException, cex:
3655
      result.cex = cex
3656
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3657
    result.write(oprot)
3658
    oprot.writeMessageEnd()
3659
    oprot.trans.flush()
3660
 
3661
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3662
    args = markItemAsContentComplete_args()
3663
    args.read(iprot)
3664
    iprot.readMessageEnd()
3665
    result = markItemAsContentComplete_result()
3666
    try:
3667
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3668
    except CatalogServiceException, cex:
3669
      result.cex = cex
3670
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3671
    result.write(oprot)
3672
    oprot.writeMessageEnd()
3673
    oprot.trans.flush()
3674
 
3675
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3676
    args = getAllItemsInRange_args()
3677
    args.read(iprot)
3678
    iprot.readMessageEnd()
3679
    result = getAllItemsInRange_result()
3680
    try:
3681
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3682
    except CatalogServiceException, cex:
3683
      result.cex = cex
3684
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3685
    result.write(oprot)
3686
    oprot.writeMessageEnd()
3687
    oprot.trans.flush()
3688
 
3689
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3690
    args = getAllItemsByStatusInRange_args()
3691
    args.read(iprot)
3692
    iprot.readMessageEnd()
3693
    result = getAllItemsByStatusInRange_result()
3694
    try:
3695
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3696
    except CatalogServiceException, cex:
3697
      result.cex = cex
3698
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3699
    result.write(oprot)
3700
    oprot.writeMessageEnd()
3701
    oprot.trans.flush()
3702
 
3703
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3704
    args = getItemCountByStatus_args()
3705
    args.read(iprot)
3706
    iprot.readMessageEnd()
3707
    result = getItemCountByStatus_result()
3708
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3709
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3710
    result.write(oprot)
3711
    oprot.writeMessageEnd()
3712
    oprot.trans.flush()
3713
 
3714
  def process_getBestSellers(self, seqid, iprot, oprot):
3715
    args = getBestSellers_args()
3716
    args.read(iprot)
3717
    iprot.readMessageEnd()
3718
    result = getBestSellers_result()
3719
    try:
3720
      result.success = self._handler.getBestSellers()
3721
    except CatalogServiceException, isex:
3722
      result.isex = isex
3723
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3724
    result.write(oprot)
3725
    oprot.writeMessageEnd()
3726
    oprot.trans.flush()
3727
 
3728
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3729
    args = getBestSellersCatalogIds_args()
3730
    args.read(iprot)
3731
    iprot.readMessageEnd()
3732
    result = getBestSellersCatalogIds_result()
3733
    try:
3734
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3735
    except CatalogServiceException, cex:
3736
      result.cex = cex
3737
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3738
    result.write(oprot)
3739
    oprot.writeMessageEnd()
3740
    oprot.trans.flush()
3741
 
3742
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3743
    args = getBestSellersCount_args()
3744
    args.read(iprot)
3745
    iprot.readMessageEnd()
3746
    result = getBestSellersCount_result()
3747
    try:
3748
      result.success = self._handler.getBestSellersCount()
3749
    except CatalogServiceException, cex:
3750
      result.cex = cex
3751
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3752
    result.write(oprot)
3753
    oprot.writeMessageEnd()
3754
    oprot.trans.flush()
3755
 
3756
  def process_getBestDeals(self, seqid, iprot, oprot):
3757
    args = getBestDeals_args()
3758
    args.read(iprot)
3759
    iprot.readMessageEnd()
3760
    result = getBestDeals_result()
3761
    try:
3762
      result.success = self._handler.getBestDeals()
3763
    except CatalogServiceException, isex:
3764
      result.isex = isex
3765
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3766
    result.write(oprot)
3767
    oprot.writeMessageEnd()
3768
    oprot.trans.flush()
3769
 
3770
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3771
    args = getBestDealsCatalogIds_args()
3772
    args.read(iprot)
3773
    iprot.readMessageEnd()
3774
    result = getBestDealsCatalogIds_result()
3775
    try:
3776
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3777
    except CatalogServiceException, cex:
3778
      result.cex = cex
3779
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3780
    result.write(oprot)
3781
    oprot.writeMessageEnd()
3782
    oprot.trans.flush()
3783
 
3784
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3785
    args = getBestDealsCount_args()
3786
    args.read(iprot)
3787
    iprot.readMessageEnd()
3788
    result = getBestDealsCount_result()
3789
    try:
3790
      result.success = self._handler.getBestDealsCount()
3791
    except CatalogServiceException, cex:
3792
      result.cex = cex
3793
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3794
    result.write(oprot)
3795
    oprot.writeMessageEnd()
3796
    oprot.trans.flush()
3797
 
3798
  def process_getComingSoon(self, seqid, iprot, oprot):
3799
    args = getComingSoon_args()
3800
    args.read(iprot)
3801
    iprot.readMessageEnd()
3802
    result = getComingSoon_result()
3803
    try:
3804
      result.success = self._handler.getComingSoon()
3805
    except CatalogServiceException, isex:
3806
      result.isex = isex
3807
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3808
    result.write(oprot)
3809
    oprot.writeMessageEnd()
3810
    oprot.trans.flush()
3811
 
3812
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3813
    args = getComingSoonCatalogIds_args()
3814
    args.read(iprot)
3815
    iprot.readMessageEnd()
3816
    result = getComingSoonCatalogIds_result()
3817
    try:
3818
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3819
    except CatalogServiceException, cex:
3820
      result.cex = cex
3821
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3822
    result.write(oprot)
3823
    oprot.writeMessageEnd()
3824
    oprot.trans.flush()
3825
 
3826
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3827
    args = getComingSoonCount_args()
3828
    args.read(iprot)
3829
    iprot.readMessageEnd()
3830
    result = getComingSoonCount_result()
3831
    try:
3832
      result.success = self._handler.getComingSoonCount()
3833
    except CatalogServiceException, cex:
3834
      result.cex = cex
3835
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3836
    result.write(oprot)
3837
    oprot.writeMessageEnd()
3838
    oprot.trans.flush()
3839
 
3840
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3841
    args = getLatestArrivals_args()
3842
    args.read(iprot)
3843
    iprot.readMessageEnd()
3844
    result = getLatestArrivals_result()
3845
    try:
3846
      result.success = self._handler.getLatestArrivals()
3847
    except CatalogServiceException, isex:
3848
      result.isex = isex
3849
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3850
    result.write(oprot)
3851
    oprot.writeMessageEnd()
3852
    oprot.trans.flush()
3853
 
3854
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3855
    args = getLatestArrivalsCatalogIds_args()
3856
    args.read(iprot)
3857
    iprot.readMessageEnd()
3858
    result = getLatestArrivalsCatalogIds_result()
3859
    try:
3860
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3861
    except CatalogServiceException, cex:
3862
      result.cex = cex
3863
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3864
    result.write(oprot)
3865
    oprot.writeMessageEnd()
3866
    oprot.trans.flush()
3867
 
3868
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3869
    args = getLatestArrivalsCount_args()
3870
    args.read(iprot)
3871
    iprot.readMessageEnd()
3872
    result = getLatestArrivalsCount_result()
3873
    try:
3874
      result.success = self._handler.getLatestArrivalsCount()
3875
    except CatalogServiceException, cex:
3876
      result.cex = cex
3877
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3878
    result.write(oprot)
3879
    oprot.writeMessageEnd()
3880
    oprot.trans.flush()
3881
 
3882
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3883
    args = generateNewEntityID_args()
3884
    args.read(iprot)
3885
    iprot.readMessageEnd()
3886
    result = generateNewEntityID_result()
3887
    result.success = self._handler.generateNewEntityID()
3888
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3889
    result.write(oprot)
3890
    oprot.writeMessageEnd()
3891
    oprot.trans.flush()
3892
 
3893
  def process_addCategory(self, seqid, iprot, oprot):
3894
    args = addCategory_args()
3895
    args.read(iprot)
3896
    iprot.readMessageEnd()
3897
    result = addCategory_result()
3898
    result.success = self._handler.addCategory(args.category)
3899
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3900
    result.write(oprot)
3901
    oprot.writeMessageEnd()
3902
    oprot.trans.flush()
3903
 
3904
  def process_getCategory(self, seqid, iprot, oprot):
3905
    args = getCategory_args()
3906
    args.read(iprot)
3907
    iprot.readMessageEnd()
3908
    result = getCategory_result()
3909
    result.success = self._handler.getCategory(args.id)
3910
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3911
    result.write(oprot)
3912
    oprot.writeMessageEnd()
3913
    oprot.trans.flush()
3914
 
3915
  def process_getAllCategories(self, seqid, iprot, oprot):
3916
    args = getAllCategories_args()
3917
    args.read(iprot)
3918
    iprot.readMessageEnd()
3919
    result = getAllCategories_result()
3920
    result.success = self._handler.getAllCategories()
3921
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3922
    result.write(oprot)
3923
    oprot.writeMessageEnd()
3924
    oprot.trans.flush()
3925
 
3926
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3927
    args = getAllSimilarItems_args()
3928
    args.read(iprot)
3929
    iprot.readMessageEnd()
3930
    result = getAllSimilarItems_result()
3931
    result.success = self._handler.getAllSimilarItems(args.itemId)
3932
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3933
    result.write(oprot)
3934
    oprot.writeMessageEnd()
3935
    oprot.trans.flush()
3936
 
3937
  def process_addSimilarItem(self, seqid, iprot, oprot):
3938
    args = addSimilarItem_args()
3939
    args.read(iprot)
3940
    iprot.readMessageEnd()
3941
    result = addSimilarItem_result()
3942
    try:
3943
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3944
    except CatalogServiceException, cex:
3945
      result.cex = cex
3946
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3947
    result.write(oprot)
3948
    oprot.writeMessageEnd()
3949
    oprot.trans.flush()
3950
 
6512 kshitij.so 3951
  def process_addTag(self, seqid, iprot, oprot):
3952
    args = addTag_args()
3953
    args.read(iprot)
3954
    iprot.readMessageEnd()
3955
    result = addTag_result()
3956
    result.success = self._handler.addTag(args.displayName, args.itemId)
3957
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3958
    result.write(oprot)
3959
    oprot.writeMessageEnd()
3960
    oprot.trans.flush()
3961
 
3962
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3963
    args = deleteEntityTag_args()
3964
    args.read(iprot)
3965
    iprot.readMessageEnd()
3966
    result = deleteEntityTag_result()
3967
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3968
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3969
    result.write(oprot)
3970
    oprot.writeMessageEnd()
3971
    oprot.trans.flush()
3972
 
3973
  def process_deleteTag(self, seqid, iprot, oprot):
3974
    args = deleteTag_args()
3975
    args.read(iprot)
3976
    iprot.readMessageEnd()
3977
    result = deleteTag_result()
3978
    result.success = self._handler.deleteTag(args.displayName)
3979
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3980
    result.write(oprot)
3981
    oprot.writeMessageEnd()
3982
    oprot.trans.flush()
3983
 
3984
  def process_getAllTags(self, seqid, iprot, oprot):
3985
    args = getAllTags_args()
3986
    args.read(iprot)
3987
    iprot.readMessageEnd()
3988
    result = getAllTags_result()
3989
    result.success = self._handler.getAllTags()
3990
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3991
    result.write(oprot)
3992
    oprot.writeMessageEnd()
3993
    oprot.trans.flush()
3994
 
3995
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3996
    args = getAllEntitiesByTagName_args()
3997
    args.read(iprot)
3998
    iprot.readMessageEnd()
3999
    result = getAllEntitiesByTagName_result()
4000
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
4001
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
4002
    result.write(oprot)
4003
    oprot.writeMessageEnd()
4004
    oprot.trans.flush()
4005
 
6845 amit.gupta 4006
  def process_getAllEntityTags(self, seqid, iprot, oprot):
4007
    args = getAllEntityTags_args()
4008
    args.read(iprot)
4009
    iprot.readMessageEnd()
4010
    result = getAllEntityTags_result()
4011
    result.success = self._handler.getAllEntityTags()
4012
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
4013
    result.write(oprot)
4014
    oprot.writeMessageEnd()
4015
    oprot.trans.flush()
4016
 
6850 kshitij.so 4017
  def process_addBanner(self, seqid, iprot, oprot):
4018
    args = addBanner_args()
4019
    args.read(iprot)
4020
    iprot.readMessageEnd()
4021
    result = addBanner_result()
4022
    result.success = self._handler.addBanner(args.bannerName, args.imageName, args.link, args.priority, args.isActive, args.hasMap)
4023
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
4024
    result.write(oprot)
4025
    oprot.writeMessageEnd()
4026
    oprot.trans.flush()
4027
 
4028
  def process_getAllBanners(self, seqid, iprot, oprot):
4029
    args = getAllBanners_args()
4030
    args.read(iprot)
4031
    iprot.readMessageEnd()
4032
    result = getAllBanners_result()
4033
    result.success = self._handler.getAllBanners()
4034
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
4035
    result.write(oprot)
4036
    oprot.writeMessageEnd()
4037
    oprot.trans.flush()
4038
 
4039
  def process_deleteBanner(self, seqid, iprot, oprot):
4040
    args = deleteBanner_args()
4041
    args.read(iprot)
4042
    iprot.readMessageEnd()
4043
    result = deleteBanner_result()
4044
    result.success = self._handler.deleteBanner(args.bannerName)
4045
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
4046
    result.write(oprot)
4047
    oprot.writeMessageEnd()
4048
    oprot.trans.flush()
4049
 
4050
  def process_getBannerDetails(self, seqid, iprot, oprot):
4051
    args = getBannerDetails_args()
4052
    args.read(iprot)
4053
    iprot.readMessageEnd()
4054
    result = getBannerDetails_result()
4055
    result.success = self._handler.getBannerDetails(args.bannerName)
4056
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
4057
    result.write(oprot)
4058
    oprot.writeMessageEnd()
4059
    oprot.trans.flush()
4060
 
4061
  def process_getActiveBanners(self, seqid, iprot, oprot):
4062
    args = getActiveBanners_args()
4063
    args.read(iprot)
4064
    iprot.readMessageEnd()
4065
    result = getActiveBanners_result()
4066
    result.success = self._handler.getActiveBanners()
4067
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
4068
    result.write(oprot)
4069
    oprot.writeMessageEnd()
4070
    oprot.trans.flush()
4071
 
6849 kshitij.so 4072
  def process_addBannerMap(self, seqid, iprot, oprot):
4073
    args = addBannerMap_args()
4074
    args.read(iprot)
4075
    iprot.readMessageEnd()
4076
    result = addBannerMap_result()
4077
    result.success = self._handler.addBannerMap(args.bannerName, args.mapLink, args.coordinates)
4078
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
4079
    result.write(oprot)
4080
    oprot.writeMessageEnd()
4081
    oprot.trans.flush()
4082
 
4083
  def process_deleteBannerMap(self, seqid, iprot, oprot):
4084
    args = deleteBannerMap_args()
4085
    args.read(iprot)
4086
    iprot.readMessageEnd()
4087
    result = deleteBannerMap_result()
4088
    result.success = self._handler.deleteBannerMap(args.bannerName)
4089
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
4090
    result.write(oprot)
4091
    oprot.writeMessageEnd()
4092
    oprot.trans.flush()
4093
 
4094
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
4095
    args = getBannerMapDetails_args()
4096
    args.read(iprot)
4097
    iprot.readMessageEnd()
4098
    result = getBannerMapDetails_result()
4099
    result.success = self._handler.getBannerMapDetails(args.bannerName)
4100
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
4101
    result.write(oprot)
4102
    oprot.writeMessageEnd()
4103
    oprot.trans.flush()
4104
 
5944 mandeep.dh 4105
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
4106
    args = deleteSimilarItem_args()
4107
    args.read(iprot)
4108
    iprot.readMessageEnd()
4109
    result = deleteSimilarItem_result()
4110
    try:
4111
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
4112
    except CatalogServiceException, cex:
4113
      result.cex = cex
4114
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
4115
    result.write(oprot)
4116
    oprot.writeMessageEnd()
4117
    oprot.trans.flush()
4118
 
4119
  def process_checkSimilarItem(self, seqid, iprot, oprot):
4120
    args = checkSimilarItem_args()
4121
    args.read(iprot)
4122
    iprot.readMessageEnd()
4123
    result = checkSimilarItem_result()
4124
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
4125
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
4126
    result.write(oprot)
4127
    oprot.writeMessageEnd()
4128
    oprot.trans.flush()
4129
 
4130
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
4131
    args = validateRiskyStatus_args()
4132
    args.read(iprot)
4133
    iprot.readMessageEnd()
4134
    result = validateRiskyStatus_result()
4135
    self._handler.validateRiskyStatus(args.itemId)
4136
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
4137
    result.write(oprot)
4138
    oprot.writeMessageEnd()
4139
    oprot.trans.flush()
4140
 
4141
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
4142
    args = changeItemRiskyFlag_args()
4143
    args.read(iprot)
4144
    iprot.readMessageEnd()
4145
    result = changeItemRiskyFlag_result()
4146
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
4147
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
4148
    result.write(oprot)
4149
    oprot.writeMessageEnd()
4150
    oprot.trans.flush()
4151
 
4152
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
4153
    args = getItemsByRiskyFlag_args()
4154
    args.read(iprot)
4155
    iprot.readMessageEnd()
4156
    result = getItemsByRiskyFlag_result()
4157
    result.success = self._handler.getItemsByRiskyFlag()
4158
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
4159
    result.write(oprot)
4160
    oprot.writeMessageEnd()
4161
    oprot.trans.flush()
4162
 
4163
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
4164
    args = getItemsForMasterSheet_args()
4165
    args.read(iprot)
4166
    iprot.readMessageEnd()
4167
    result = getItemsForMasterSheet_result()
4168
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
4169
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
4170
    result.write(oprot)
4171
    oprot.writeMessageEnd()
4172
    oprot.trans.flush()
4173
 
4174
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
4175
    args = getSimilarItemsCatalogIds_args()
4176
    args.read(iprot)
4177
    iprot.readMessageEnd()
4178
    result = getSimilarItemsCatalogIds_result()
4179
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
4180
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
4181
    result.write(oprot)
4182
    oprot.writeMessageEnd()
4183
    oprot.trans.flush()
4184
 
4185
  def process_addProductNotification(self, seqid, iprot, oprot):
4186
    args = addProductNotification_args()
4187
    args.read(iprot)
4188
    iprot.readMessageEnd()
4189
    result = addProductNotification_result()
4190
    result.success = self._handler.addProductNotification(args.itemId, args.email)
4191
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
4192
    result.write(oprot)
4193
    oprot.writeMessageEnd()
4194
    oprot.trans.flush()
4195
 
4196
  def process_sendProductNotifications(self, seqid, iprot, oprot):
4197
    args = sendProductNotifications_args()
4198
    args.read(iprot)
4199
    iprot.readMessageEnd()
4200
    result = sendProductNotifications_result()
4201
    result.success = self._handler.sendProductNotifications()
4202
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
4203
    result.write(oprot)
4204
    oprot.writeMessageEnd()
4205
    oprot.trans.flush()
4206
 
4207
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
4208
    args = getAllBrandsByCategory_args()
4209
    args.read(iprot)
4210
    iprot.readMessageEnd()
4211
    result = getAllBrandsByCategory_result()
4212
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
4213
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
4214
    result.write(oprot)
4215
    oprot.writeMessageEnd()
4216
    oprot.trans.flush()
4217
 
4218
  def process_getAllBrands(self, seqid, iprot, oprot):
4219
    args = getAllBrands_args()
4220
    args.read(iprot)
4221
    iprot.readMessageEnd()
4222
    result = getAllBrands_result()
4223
    result.success = self._handler.getAllBrands()
4224
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
4225
    result.write(oprot)
4226
    oprot.writeMessageEnd()
4227
    oprot.trans.flush()
4228
 
4229
  def process_getAllSources(self, seqid, iprot, oprot):
4230
    args = getAllSources_args()
4231
    args.read(iprot)
4232
    iprot.readMessageEnd()
4233
    result = getAllSources_result()
4234
    result.success = self._handler.getAllSources()
4235
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
4236
    result.write(oprot)
4237
    oprot.writeMessageEnd()
4238
    oprot.trans.flush()
4239
 
4240
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
4241
    args = getItemPricingBySource_args()
4242
    args.read(iprot)
4243
    iprot.readMessageEnd()
4244
    result = getItemPricingBySource_result()
4245
    try:
4246
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
4247
    except CatalogServiceException, cex:
4248
      result.cex = cex
4249
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
4250
    result.write(oprot)
4251
    oprot.writeMessageEnd()
4252
    oprot.trans.flush()
4253
 
4254
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
4255
    args = addSourceItemPricing_args()
4256
    args.read(iprot)
4257
    iprot.readMessageEnd()
4258
    result = addSourceItemPricing_result()
4259
    try:
4260
      self._handler.addSourceItemPricing(args.sourceItemPricing)
4261
    except CatalogServiceException, cex:
4262
      result.cex = cex
4263
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
4264
    result.write(oprot)
4265
    oprot.writeMessageEnd()
4266
    oprot.trans.flush()
4267
 
4268
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
4269
    args = getAllSourcePricing_args()
4270
    args.read(iprot)
4271
    iprot.readMessageEnd()
4272
    result = getAllSourcePricing_result()
4273
    try:
4274
      result.success = self._handler.getAllSourcePricing(args.itemId)
4275
    except CatalogServiceException, cex:
4276
      result.cex = cex
4277
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
4278
    result.write(oprot)
4279
    oprot.writeMessageEnd()
4280
    oprot.trans.flush()
4281
 
4282
  def process_getItemForSource(self, seqid, iprot, oprot):
4283
    args = getItemForSource_args()
4284
    args.read(iprot)
4285
    iprot.readMessageEnd()
4286
    result = getItemForSource_result()
4287
    try:
4288
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
4289
    except CatalogServiceException, cex:
4290
      result.cex = cex
4291
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
4292
    result.write(oprot)
4293
    oprot.writeMessageEnd()
4294
    oprot.trans.flush()
4295
 
4296
  def process_searchItemsInRange(self, seqid, iprot, oprot):
4297
    args = searchItemsInRange_args()
4298
    args.read(iprot)
4299
    iprot.readMessageEnd()
4300
    result = searchItemsInRange_result()
4301
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
4302
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
4303
    result.write(oprot)
4304
    oprot.writeMessageEnd()
4305
    oprot.trans.flush()
4306
 
4307
  def process_getSearchResultCount(self, seqid, iprot, oprot):
4308
    args = getSearchResultCount_args()
4309
    args.read(iprot)
4310
    iprot.readMessageEnd()
4311
    result = getSearchResultCount_result()
4312
    result.success = self._handler.getSearchResultCount(args.searchTerms)
4313
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
4314
    result.write(oprot)
4315
    oprot.writeMessageEnd()
4316
    oprot.trans.flush()
4317
 
4318
  def process_getProductNotifications(self, seqid, iprot, oprot):
4319
    args = getProductNotifications_args()
4320
    args.read(iprot)
4321
    iprot.readMessageEnd()
4322
    result = getProductNotifications_result()
4323
    result.success = self._handler.getProductNotifications(args.startDateTime)
4324
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
4325
    result.write(oprot)
4326
    oprot.writeMessageEnd()
4327
    oprot.trans.flush()
4328
 
4329
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
4330
    args = getProductNotificationRequestCount_args()
4331
    args.read(iprot)
4332
    iprot.readMessageEnd()
4333
    result = getProductNotificationRequestCount_result()
4334
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
4335
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
4336
    result.write(oprot)
4337
    oprot.writeMessageEnd()
4338
    oprot.trans.flush()
4339
 
4340
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
4341
    args = addAuthorizationLog_args()
4342
    args.read(iprot)
4343
    iprot.readMessageEnd()
4344
    result = addAuthorizationLog_result()
4345
    try:
4346
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
4347
    except CatalogServiceException, cex:
4348
      result.cex = cex
4349
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
4350
    result.write(oprot)
4351
    oprot.writeMessageEnd()
4352
    oprot.trans.flush()
4353
 
4354
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
4355
    args = addupdateVoucherForItem_args()
4356
    args.read(iprot)
4357
    iprot.readMessageEnd()
4358
    result = addupdateVoucherForItem_result()
4359
    try:
4360
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
4361
    except CatalogServiceException, cex:
4362
      result.cex = cex
4363
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
4364
    result.write(oprot)
4365
    oprot.writeMessageEnd()
4366
    oprot.trans.flush()
4367
 
4368
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
4369
    args = deleteVoucherForItem_args()
4370
    args.read(iprot)
4371
    iprot.readMessageEnd()
4372
    result = deleteVoucherForItem_result()
4373
    try:
4374
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
4375
    except CatalogServiceException, cex:
4376
      result.cex = cex
4377
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
4378
    result.write(oprot)
4379
    oprot.writeMessageEnd()
4380
    oprot.trans.flush()
4381
 
4382
  def process_getVoucherAmount(self, seqid, iprot, oprot):
4383
    args = getVoucherAmount_args()
4384
    args.read(iprot)
4385
    iprot.readMessageEnd()
4386
    result = getVoucherAmount_result()
4387
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
4388
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
4389
    result.write(oprot)
4390
    oprot.writeMessageEnd()
4391
    oprot.trans.flush()
4392
 
4393
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
4394
    args = getAllItemVouchers_args()
4395
    args.read(iprot)
4396
    iprot.readMessageEnd()
4397
    result = getAllItemVouchers_result()
4398
    result.success = self._handler.getAllItemVouchers(args.itemId)
4399
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
4400
    result.write(oprot)
4401
    oprot.writeMessageEnd()
4402
    oprot.trans.flush()
4403
 
4404
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
4405
    args = isValidCatalogItemId_args()
4406
    args.read(iprot)
4407
    iprot.readMessageEnd()
4408
    result = isValidCatalogItemId_result()
4409
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
4410
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
4411
    result.write(oprot)
4412
    oprot.writeMessageEnd()
4413
    oprot.trans.flush()
4414
 
6039 amit.gupta 4415
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
4416
    args = getVatPercentageForItem_args()
4417
    args.read(iprot)
4418
    iprot.readMessageEnd()
4419
    result = getVatPercentageForItem_result()
4420
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
4421
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
4422
    result.write(oprot)
4423
    oprot.writeMessageEnd()
4424
    oprot.trans.flush()
5944 mandeep.dh 4425
 
6039 amit.gupta 4426
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
4427
    args = getVatAmountForItem_args()
4428
    args.read(iprot)
4429
    iprot.readMessageEnd()
4430
    result = getVatAmountForItem_result()
4431
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
4432
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
4433
    result.write(oprot)
4434
    oprot.writeMessageEnd()
4435
    oprot.trans.flush()
4436
 
6531 vikram.rag 4437
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
4438
    args = getAllIgnoredInventoryUpdateItemsList_args()
4439
    args.read(iprot)
4440
    iprot.readMessageEnd()
4441
    result = getAllIgnoredInventoryUpdateItemsList_result()
4442
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
4443
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
4444
    result.write(oprot)
4445
    oprot.writeMessageEnd()
4446
    oprot.trans.flush()
6039 amit.gupta 4447
 
6821 amar.kumar 4448
  def process_getAllAliveItems(self, seqid, iprot, oprot):
4449
    args = getAllAliveItems_args()
4450
    args.read(iprot)
4451
    iprot.readMessageEnd()
4452
    result = getAllAliveItems_result()
4453
    result.success = self._handler.getAllAliveItems()
4454
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
4455
    result.write(oprot)
4456
    oprot.writeMessageEnd()
4457
    oprot.trans.flush()
4458
 
6805 anupam.sin 4459
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
4460
    args = getInsuranceAmount_args()
4461
    args.read(iprot)
4462
    iprot.readMessageEnd()
4463
    result = getInsuranceAmount_result()
6921 anupam.sin 4464
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 4465
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
4466
    result.write(oprot)
4467
    oprot.writeMessageEnd()
4468
    oprot.trans.flush()
6531 vikram.rag 4469
 
6805 anupam.sin 4470
  def process_getInsurer(self, seqid, iprot, oprot):
4471
    args = getInsurer_args()
4472
    args.read(iprot)
4473
    iprot.readMessageEnd()
4474
    result = getInsurer_result()
4475
    result.success = self._handler.getInsurer(args.insurerId)
4476
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
4477
    result.write(oprot)
4478
    oprot.writeMessageEnd()
4479
    oprot.trans.flush()
4480
 
6838 vikram.rag 4481
  def process_getAllInsurers(self, seqid, iprot, oprot):
4482
    args = getAllInsurers_args()
4483
    args.read(iprot)
4484
    iprot.readMessageEnd()
4485
    result = getAllInsurers_result()
4486
    result.success = self._handler.getAllInsurers()
4487
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
4488
    result.write(oprot)
4489
    oprot.writeMessageEnd()
4490
    oprot.trans.flush()
6805 anupam.sin 4491
 
6962 rajveer 4492
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
4493
    args = updateInsuranceDeclaredAmount_args()
4494
    args.read(iprot)
4495
    iprot.readMessageEnd()
4496
    result = updateInsuranceDeclaredAmount_result()
4497
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
4498
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
4499
    result.write(oprot)
4500
    oprot.writeMessageEnd()
4501
    oprot.trans.flush()
6838 vikram.rag 4502
 
7190 amar.kumar 4503
  def process_getFreebieForItem(self, seqid, iprot, oprot):
4504
    args = getFreebieForItem_args()
4505
    args.read(iprot)
4506
    iprot.readMessageEnd()
4507
    result = getFreebieForItem_result()
4508
    result.success = self._handler.getFreebieForItem(args.itemId)
4509
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
4510
    result.write(oprot)
4511
    oprot.writeMessageEnd()
4512
    oprot.trans.flush()
6962 rajveer 4513
 
7190 amar.kumar 4514
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
4515
    args = addOrUpdateFreebieForItem_args()
4516
    args.read(iprot)
4517
    iprot.readMessageEnd()
4518
    result = addOrUpdateFreebieForItem_result()
4519
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
4520
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
4521
    result.write(oprot)
4522
    oprot.writeMessageEnd()
4523
    oprot.trans.flush()
4524
 
7256 rajveer 4525
  def process_getStorePricing(self, seqid, iprot, oprot):
4526
    args = getStorePricing_args()
4527
    args.read(iprot)
4528
    iprot.readMessageEnd()
4529
    result = getStorePricing_result()
4530
    result.success = self._handler.getStorePricing(args.itemId)
4531
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
4532
    result.write(oprot)
4533
    oprot.writeMessageEnd()
4534
    oprot.trans.flush()
7190 amar.kumar 4535
 
7256 rajveer 4536
 
5944 mandeep.dh 4537
# HELPER FUNCTIONS AND STRUCTURES
4538
 
4539
class addItem_args:
4540
  """
4541
  Attributes:
4542
   - item
4543
  """
4544
 
4545
  thrift_spec = (
4546
    None, # 0
4547
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4548
  )
4549
 
4550
  def __init__(self, item=None,):
4551
    self.item = item
4552
 
4553
  def read(self, iprot):
4554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4556
      return
4557
    iprot.readStructBegin()
4558
    while True:
4559
      (fname, ftype, fid) = iprot.readFieldBegin()
4560
      if ftype == TType.STOP:
4561
        break
4562
      if fid == 1:
4563
        if ftype == TType.STRUCT:
4564
          self.item = Item()
4565
          self.item.read(iprot)
4566
        else:
4567
          iprot.skip(ftype)
4568
      else:
4569
        iprot.skip(ftype)
4570
      iprot.readFieldEnd()
4571
    iprot.readStructEnd()
4572
 
4573
  def write(self, oprot):
4574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4576
      return
4577
    oprot.writeStructBegin('addItem_args')
4578
    if self.item is not None:
4579
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4580
      self.item.write(oprot)
4581
      oprot.writeFieldEnd()
4582
    oprot.writeFieldStop()
4583
    oprot.writeStructEnd()
4584
 
4585
  def validate(self):
4586
    return
4587
 
4588
 
4589
  def __repr__(self):
4590
    L = ['%s=%r' % (key, value)
4591
      for key, value in self.__dict__.iteritems()]
4592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4593
 
4594
  def __eq__(self, other):
4595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4596
 
4597
  def __ne__(self, other):
4598
    return not (self == other)
4599
 
4600
class addItem_result:
4601
  """
4602
  Attributes:
4603
   - success
4604
   - cex
4605
  """
4606
 
4607
  thrift_spec = (
4608
    (0, TType.I64, 'success', None, None, ), # 0
4609
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4610
  )
4611
 
4612
  def __init__(self, success=None, cex=None,):
4613
    self.success = success
4614
    self.cex = cex
4615
 
4616
  def read(self, iprot):
4617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4619
      return
4620
    iprot.readStructBegin()
4621
    while True:
4622
      (fname, ftype, fid) = iprot.readFieldBegin()
4623
      if ftype == TType.STOP:
4624
        break
4625
      if fid == 0:
4626
        if ftype == TType.I64:
4627
          self.success = iprot.readI64();
4628
        else:
4629
          iprot.skip(ftype)
4630
      elif fid == 1:
4631
        if ftype == TType.STRUCT:
4632
          self.cex = CatalogServiceException()
4633
          self.cex.read(iprot)
4634
        else:
4635
          iprot.skip(ftype)
4636
      else:
4637
        iprot.skip(ftype)
4638
      iprot.readFieldEnd()
4639
    iprot.readStructEnd()
4640
 
4641
  def write(self, oprot):
4642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4644
      return
4645
    oprot.writeStructBegin('addItem_result')
4646
    if self.success is not None:
4647
      oprot.writeFieldBegin('success', TType.I64, 0)
4648
      oprot.writeI64(self.success)
4649
      oprot.writeFieldEnd()
4650
    if self.cex is not None:
4651
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4652
      self.cex.write(oprot)
4653
      oprot.writeFieldEnd()
4654
    oprot.writeFieldStop()
4655
    oprot.writeStructEnd()
4656
 
4657
  def validate(self):
4658
    return
4659
 
4660
 
4661
  def __repr__(self):
4662
    L = ['%s=%r' % (key, value)
4663
      for key, value in self.__dict__.iteritems()]
4664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4665
 
4666
  def __eq__(self, other):
4667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4668
 
4669
  def __ne__(self, other):
4670
    return not (self == other)
4671
 
4672
class updateItem_args:
4673
  """
4674
  Attributes:
4675
   - item
4676
  """
4677
 
4678
  thrift_spec = (
4679
    None, # 0
4680
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4681
  )
4682
 
4683
  def __init__(self, item=None,):
4684
    self.item = item
4685
 
4686
  def read(self, iprot):
4687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4689
      return
4690
    iprot.readStructBegin()
4691
    while True:
4692
      (fname, ftype, fid) = iprot.readFieldBegin()
4693
      if ftype == TType.STOP:
4694
        break
4695
      if fid == 1:
4696
        if ftype == TType.STRUCT:
4697
          self.item = Item()
4698
          self.item.read(iprot)
4699
        else:
4700
          iprot.skip(ftype)
4701
      else:
4702
        iprot.skip(ftype)
4703
      iprot.readFieldEnd()
4704
    iprot.readStructEnd()
4705
 
4706
  def write(self, oprot):
4707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4709
      return
4710
    oprot.writeStructBegin('updateItem_args')
4711
    if self.item is not None:
4712
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4713
      self.item.write(oprot)
4714
      oprot.writeFieldEnd()
4715
    oprot.writeFieldStop()
4716
    oprot.writeStructEnd()
4717
 
4718
  def validate(self):
4719
    return
4720
 
4721
 
4722
  def __repr__(self):
4723
    L = ['%s=%r' % (key, value)
4724
      for key, value in self.__dict__.iteritems()]
4725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4726
 
4727
  def __eq__(self, other):
4728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4729
 
4730
  def __ne__(self, other):
4731
    return not (self == other)
4732
 
4733
class updateItem_result:
4734
  """
4735
  Attributes:
4736
   - success
4737
   - cex
4738
  """
4739
 
4740
  thrift_spec = (
4741
    (0, TType.I64, 'success', None, None, ), # 0
4742
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4743
  )
4744
 
4745
  def __init__(self, success=None, cex=None,):
4746
    self.success = success
4747
    self.cex = cex
4748
 
4749
  def read(self, iprot):
4750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4752
      return
4753
    iprot.readStructBegin()
4754
    while True:
4755
      (fname, ftype, fid) = iprot.readFieldBegin()
4756
      if ftype == TType.STOP:
4757
        break
4758
      if fid == 0:
4759
        if ftype == TType.I64:
4760
          self.success = iprot.readI64();
4761
        else:
4762
          iprot.skip(ftype)
4763
      elif fid == 1:
4764
        if ftype == TType.STRUCT:
4765
          self.cex = CatalogServiceException()
4766
          self.cex.read(iprot)
4767
        else:
4768
          iprot.skip(ftype)
4769
      else:
4770
        iprot.skip(ftype)
4771
      iprot.readFieldEnd()
4772
    iprot.readStructEnd()
4773
 
4774
  def write(self, oprot):
4775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4777
      return
4778
    oprot.writeStructBegin('updateItem_result')
4779
    if self.success is not None:
4780
      oprot.writeFieldBegin('success', TType.I64, 0)
4781
      oprot.writeI64(self.success)
4782
      oprot.writeFieldEnd()
4783
    if self.cex is not None:
4784
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4785
      self.cex.write(oprot)
4786
      oprot.writeFieldEnd()
4787
    oprot.writeFieldStop()
4788
    oprot.writeStructEnd()
4789
 
4790
  def validate(self):
4791
    return
4792
 
4793
 
4794
  def __repr__(self):
4795
    L = ['%s=%r' % (key, value)
4796
      for key, value in self.__dict__.iteritems()]
4797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4798
 
4799
  def __eq__(self, other):
4800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4801
 
4802
  def __ne__(self, other):
4803
    return not (self == other)
4804
 
4805
class isActive_args:
4806
  """
4807
  Attributes:
4808
   - itemId
4809
  """
4810
 
4811
  thrift_spec = (
4812
    None, # 0
4813
    (1, TType.I64, 'itemId', None, None, ), # 1
4814
  )
4815
 
4816
  def __init__(self, itemId=None,):
4817
    self.itemId = itemId
4818
 
4819
  def read(self, iprot):
4820
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4821
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4822
      return
4823
    iprot.readStructBegin()
4824
    while True:
4825
      (fname, ftype, fid) = iprot.readFieldBegin()
4826
      if ftype == TType.STOP:
4827
        break
4828
      if fid == 1:
4829
        if ftype == TType.I64:
4830
          self.itemId = iprot.readI64();
4831
        else:
4832
          iprot.skip(ftype)
4833
      else:
4834
        iprot.skip(ftype)
4835
      iprot.readFieldEnd()
4836
    iprot.readStructEnd()
4837
 
4838
  def write(self, oprot):
4839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4841
      return
4842
    oprot.writeStructBegin('isActive_args')
4843
    if self.itemId is not None:
4844
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4845
      oprot.writeI64(self.itemId)
4846
      oprot.writeFieldEnd()
4847
    oprot.writeFieldStop()
4848
    oprot.writeStructEnd()
4849
 
4850
  def validate(self):
4851
    return
4852
 
4853
 
4854
  def __repr__(self):
4855
    L = ['%s=%r' % (key, value)
4856
      for key, value in self.__dict__.iteritems()]
4857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4858
 
4859
  def __eq__(self, other):
4860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4861
 
4862
  def __ne__(self, other):
4863
    return not (self == other)
4864
 
4865
class isActive_result:
4866
  """
4867
  Attributes:
4868
   - success
4869
   - isex
4870
  """
4871
 
4872
  thrift_spec = (
4873
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4874
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4875
  )
4876
 
4877
  def __init__(self, success=None, isex=None,):
4878
    self.success = success
4879
    self.isex = isex
4880
 
4881
  def read(self, iprot):
4882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4884
      return
4885
    iprot.readStructBegin()
4886
    while True:
4887
      (fname, ftype, fid) = iprot.readFieldBegin()
4888
      if ftype == TType.STOP:
4889
        break
4890
      if fid == 0:
4891
        if ftype == TType.STRUCT:
4892
          self.success = ItemShippingInfo()
4893
          self.success.read(iprot)
4894
        else:
4895
          iprot.skip(ftype)
4896
      elif fid == 1:
4897
        if ftype == TType.STRUCT:
4898
          self.isex = CatalogServiceException()
4899
          self.isex.read(iprot)
4900
        else:
4901
          iprot.skip(ftype)
4902
      else:
4903
        iprot.skip(ftype)
4904
      iprot.readFieldEnd()
4905
    iprot.readStructEnd()
4906
 
4907
  def write(self, oprot):
4908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4910
      return
4911
    oprot.writeStructBegin('isActive_result')
4912
    if self.success is not None:
4913
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4914
      self.success.write(oprot)
4915
      oprot.writeFieldEnd()
4916
    if self.isex is not None:
4917
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4918
      self.isex.write(oprot)
4919
      oprot.writeFieldEnd()
4920
    oprot.writeFieldStop()
4921
    oprot.writeStructEnd()
4922
 
4923
  def validate(self):
4924
    return
4925
 
4926
 
4927
  def __repr__(self):
4928
    L = ['%s=%r' % (key, value)
4929
      for key, value in self.__dict__.iteritems()]
4930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4931
 
4932
  def __eq__(self, other):
4933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4934
 
4935
  def __ne__(self, other):
4936
    return not (self == other)
4937
 
4938
class getItemStatusDescription_args:
4939
  """
4940
  Attributes:
4941
   - itemId
4942
  """
4943
 
4944
  thrift_spec = (
4945
    None, # 0
4946
    (1, TType.I64, 'itemId', None, None, ), # 1
4947
  )
4948
 
4949
  def __init__(self, itemId=None,):
4950
    self.itemId = itemId
4951
 
4952
  def read(self, iprot):
4953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4955
      return
4956
    iprot.readStructBegin()
4957
    while True:
4958
      (fname, ftype, fid) = iprot.readFieldBegin()
4959
      if ftype == TType.STOP:
4960
        break
4961
      if fid == 1:
4962
        if ftype == TType.I64:
4963
          self.itemId = iprot.readI64();
4964
        else:
4965
          iprot.skip(ftype)
4966
      else:
4967
        iprot.skip(ftype)
4968
      iprot.readFieldEnd()
4969
    iprot.readStructEnd()
4970
 
4971
  def write(self, oprot):
4972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4974
      return
4975
    oprot.writeStructBegin('getItemStatusDescription_args')
4976
    if self.itemId is not None:
4977
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4978
      oprot.writeI64(self.itemId)
4979
      oprot.writeFieldEnd()
4980
    oprot.writeFieldStop()
4981
    oprot.writeStructEnd()
4982
 
4983
  def validate(self):
4984
    return
4985
 
4986
 
4987
  def __repr__(self):
4988
    L = ['%s=%r' % (key, value)
4989
      for key, value in self.__dict__.iteritems()]
4990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4991
 
4992
  def __eq__(self, other):
4993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4994
 
4995
  def __ne__(self, other):
4996
    return not (self == other)
4997
 
4998
class getItemStatusDescription_result:
4999
  """
5000
  Attributes:
5001
   - success
5002
   - isex
5003
  """
5004
 
5005
  thrift_spec = (
5006
    (0, TType.STRING, 'success', None, None, ), # 0
5007
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5008
  )
5009
 
5010
  def __init__(self, success=None, isex=None,):
5011
    self.success = success
5012
    self.isex = isex
5013
 
5014
  def read(self, iprot):
5015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5017
      return
5018
    iprot.readStructBegin()
5019
    while True:
5020
      (fname, ftype, fid) = iprot.readFieldBegin()
5021
      if ftype == TType.STOP:
5022
        break
5023
      if fid == 0:
5024
        if ftype == TType.STRING:
5025
          self.success = iprot.readString();
5026
        else:
5027
          iprot.skip(ftype)
5028
      elif fid == 1:
5029
        if ftype == TType.STRUCT:
5030
          self.isex = CatalogServiceException()
5031
          self.isex.read(iprot)
5032
        else:
5033
          iprot.skip(ftype)
5034
      else:
5035
        iprot.skip(ftype)
5036
      iprot.readFieldEnd()
5037
    iprot.readStructEnd()
5038
 
5039
  def write(self, oprot):
5040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5042
      return
5043
    oprot.writeStructBegin('getItemStatusDescription_result')
5044
    if self.success is not None:
5045
      oprot.writeFieldBegin('success', TType.STRING, 0)
5046
      oprot.writeString(self.success)
5047
      oprot.writeFieldEnd()
5048
    if self.isex is not None:
5049
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5050
      self.isex.write(oprot)
5051
      oprot.writeFieldEnd()
5052
    oprot.writeFieldStop()
5053
    oprot.writeStructEnd()
5054
 
5055
  def validate(self):
5056
    return
5057
 
5058
 
5059
  def __repr__(self):
5060
    L = ['%s=%r' % (key, value)
5061
      for key, value in self.__dict__.iteritems()]
5062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5063
 
5064
  def __eq__(self, other):
5065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5066
 
5067
  def __ne__(self, other):
5068
    return not (self == other)
5069
 
5070
class startItemOn_args:
5071
  """
5072
  Attributes:
5073
   - item_id
5074
   - timestamp
5075
  """
5076
 
5077
  thrift_spec = (
5078
    None, # 0
5079
    (1, TType.I64, 'item_id', None, None, ), # 1
5080
    (2, TType.I64, 'timestamp', None, None, ), # 2
5081
  )
5082
 
5083
  def __init__(self, item_id=None, timestamp=None,):
5084
    self.item_id = item_id
5085
    self.timestamp = timestamp
5086
 
5087
  def read(self, iprot):
5088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5090
      return
5091
    iprot.readStructBegin()
5092
    while True:
5093
      (fname, ftype, fid) = iprot.readFieldBegin()
5094
      if ftype == TType.STOP:
5095
        break
5096
      if fid == 1:
5097
        if ftype == TType.I64:
5098
          self.item_id = iprot.readI64();
5099
        else:
5100
          iprot.skip(ftype)
5101
      elif fid == 2:
5102
        if ftype == TType.I64:
5103
          self.timestamp = iprot.readI64();
5104
        else:
5105
          iprot.skip(ftype)
5106
      else:
5107
        iprot.skip(ftype)
5108
      iprot.readFieldEnd()
5109
    iprot.readStructEnd()
5110
 
5111
  def write(self, oprot):
5112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5114
      return
5115
    oprot.writeStructBegin('startItemOn_args')
5116
    if self.item_id is not None:
5117
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5118
      oprot.writeI64(self.item_id)
5119
      oprot.writeFieldEnd()
5120
    if self.timestamp is not None:
5121
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5122
      oprot.writeI64(self.timestamp)
5123
      oprot.writeFieldEnd()
5124
    oprot.writeFieldStop()
5125
    oprot.writeStructEnd()
5126
 
5127
  def validate(self):
5128
    return
5129
 
5130
 
5131
  def __repr__(self):
5132
    L = ['%s=%r' % (key, value)
5133
      for key, value in self.__dict__.iteritems()]
5134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5135
 
5136
  def __eq__(self, other):
5137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5138
 
5139
  def __ne__(self, other):
5140
    return not (self == other)
5141
 
5142
class startItemOn_result:
5143
  """
5144
  Attributes:
5145
   - cex
5146
  """
5147
 
5148
  thrift_spec = (
5149
    None, # 0
5150
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5151
  )
5152
 
5153
  def __init__(self, cex=None,):
5154
    self.cex = cex
5155
 
5156
  def read(self, iprot):
5157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5159
      return
5160
    iprot.readStructBegin()
5161
    while True:
5162
      (fname, ftype, fid) = iprot.readFieldBegin()
5163
      if ftype == TType.STOP:
5164
        break
5165
      if fid == 1:
5166
        if ftype == TType.STRUCT:
5167
          self.cex = CatalogServiceException()
5168
          self.cex.read(iprot)
5169
        else:
5170
          iprot.skip(ftype)
5171
      else:
5172
        iprot.skip(ftype)
5173
      iprot.readFieldEnd()
5174
    iprot.readStructEnd()
5175
 
5176
  def write(self, oprot):
5177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5179
      return
5180
    oprot.writeStructBegin('startItemOn_result')
5181
    if self.cex is not None:
5182
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5183
      self.cex.write(oprot)
5184
      oprot.writeFieldEnd()
5185
    oprot.writeFieldStop()
5186
    oprot.writeStructEnd()
5187
 
5188
  def validate(self):
5189
    return
5190
 
5191
 
5192
  def __repr__(self):
5193
    L = ['%s=%r' % (key, value)
5194
      for key, value in self.__dict__.iteritems()]
5195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5196
 
5197
  def __eq__(self, other):
5198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5199
 
5200
  def __ne__(self, other):
5201
    return not (self == other)
5202
 
5203
class retireItemOn_args:
5204
  """
5205
  Attributes:
5206
   - item_id
5207
   - timestamp
5208
  """
5209
 
5210
  thrift_spec = (
5211
    None, # 0
5212
    (1, TType.I64, 'item_id', None, None, ), # 1
5213
    (2, TType.I64, 'timestamp', None, None, ), # 2
5214
  )
5215
 
5216
  def __init__(self, item_id=None, timestamp=None,):
5217
    self.item_id = item_id
5218
    self.timestamp = timestamp
5219
 
5220
  def read(self, iprot):
5221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5223
      return
5224
    iprot.readStructBegin()
5225
    while True:
5226
      (fname, ftype, fid) = iprot.readFieldBegin()
5227
      if ftype == TType.STOP:
5228
        break
5229
      if fid == 1:
5230
        if ftype == TType.I64:
5231
          self.item_id = iprot.readI64();
5232
        else:
5233
          iprot.skip(ftype)
5234
      elif fid == 2:
5235
        if ftype == TType.I64:
5236
          self.timestamp = iprot.readI64();
5237
        else:
5238
          iprot.skip(ftype)
5239
      else:
5240
        iprot.skip(ftype)
5241
      iprot.readFieldEnd()
5242
    iprot.readStructEnd()
5243
 
5244
  def write(self, oprot):
5245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5247
      return
5248
    oprot.writeStructBegin('retireItemOn_args')
5249
    if self.item_id is not None:
5250
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5251
      oprot.writeI64(self.item_id)
5252
      oprot.writeFieldEnd()
5253
    if self.timestamp is not None:
5254
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5255
      oprot.writeI64(self.timestamp)
5256
      oprot.writeFieldEnd()
5257
    oprot.writeFieldStop()
5258
    oprot.writeStructEnd()
5259
 
5260
  def validate(self):
5261
    return
5262
 
5263
 
5264
  def __repr__(self):
5265
    L = ['%s=%r' % (key, value)
5266
      for key, value in self.__dict__.iteritems()]
5267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5268
 
5269
  def __eq__(self, other):
5270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5271
 
5272
  def __ne__(self, other):
5273
    return not (self == other)
5274
 
5275
class retireItemOn_result:
5276
  """
5277
  Attributes:
5278
   - cex
5279
  """
5280
 
5281
  thrift_spec = (
5282
    None, # 0
5283
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5284
  )
5285
 
5286
  def __init__(self, cex=None,):
5287
    self.cex = cex
5288
 
5289
  def read(self, iprot):
5290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5292
      return
5293
    iprot.readStructBegin()
5294
    while True:
5295
      (fname, ftype, fid) = iprot.readFieldBegin()
5296
      if ftype == TType.STOP:
5297
        break
5298
      if fid == 1:
5299
        if ftype == TType.STRUCT:
5300
          self.cex = CatalogServiceException()
5301
          self.cex.read(iprot)
5302
        else:
5303
          iprot.skip(ftype)
5304
      else:
5305
        iprot.skip(ftype)
5306
      iprot.readFieldEnd()
5307
    iprot.readStructEnd()
5308
 
5309
  def write(self, oprot):
5310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5312
      return
5313
    oprot.writeStructBegin('retireItemOn_result')
5314
    if self.cex is not None:
5315
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5316
      self.cex.write(oprot)
5317
      oprot.writeFieldEnd()
5318
    oprot.writeFieldStop()
5319
    oprot.writeStructEnd()
5320
 
5321
  def validate(self):
5322
    return
5323
 
5324
 
5325
  def __repr__(self):
5326
    L = ['%s=%r' % (key, value)
5327
      for key, value in self.__dict__.iteritems()]
5328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5329
 
5330
  def __eq__(self, other):
5331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5332
 
5333
  def __ne__(self, other):
5334
    return not (self == other)
5335
 
5336
class changeItemStatus_args:
5337
  """
5338
  Attributes:
5339
   - item_id
5340
   - timestamp
5341
   - newstatus
5342
  """
5343
 
5344
  thrift_spec = (
5345
    None, # 0
5346
    (1, TType.I64, 'item_id', None, None, ), # 1
5347
    (2, TType.I64, 'timestamp', None, None, ), # 2
5348
    (3, TType.I32, 'newstatus', None, None, ), # 3
5349
  )
5350
 
5351
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
5352
    self.item_id = item_id
5353
    self.timestamp = timestamp
5354
    self.newstatus = newstatus
5355
 
5356
  def read(self, iprot):
5357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5359
      return
5360
    iprot.readStructBegin()
5361
    while True:
5362
      (fname, ftype, fid) = iprot.readFieldBegin()
5363
      if ftype == TType.STOP:
5364
        break
5365
      if fid == 1:
5366
        if ftype == TType.I64:
5367
          self.item_id = iprot.readI64();
5368
        else:
5369
          iprot.skip(ftype)
5370
      elif fid == 2:
5371
        if ftype == TType.I64:
5372
          self.timestamp = iprot.readI64();
5373
        else:
5374
          iprot.skip(ftype)
5375
      elif fid == 3:
5376
        if ftype == TType.I32:
5377
          self.newstatus = iprot.readI32();
5378
        else:
5379
          iprot.skip(ftype)
5380
      else:
5381
        iprot.skip(ftype)
5382
      iprot.readFieldEnd()
5383
    iprot.readStructEnd()
5384
 
5385
  def write(self, oprot):
5386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5388
      return
5389
    oprot.writeStructBegin('changeItemStatus_args')
5390
    if self.item_id is not None:
5391
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5392
      oprot.writeI64(self.item_id)
5393
      oprot.writeFieldEnd()
5394
    if self.timestamp is not None:
5395
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5396
      oprot.writeI64(self.timestamp)
5397
      oprot.writeFieldEnd()
5398
    if self.newstatus is not None:
5399
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
5400
      oprot.writeI32(self.newstatus)
5401
      oprot.writeFieldEnd()
5402
    oprot.writeFieldStop()
5403
    oprot.writeStructEnd()
5404
 
5405
  def validate(self):
5406
    return
5407
 
5408
 
5409
  def __repr__(self):
5410
    L = ['%s=%r' % (key, value)
5411
      for key, value in self.__dict__.iteritems()]
5412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5413
 
5414
  def __eq__(self, other):
5415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5416
 
5417
  def __ne__(self, other):
5418
    return not (self == other)
5419
 
5420
class changeItemStatus_result:
5421
  """
5422
  Attributes:
5423
   - cex
5424
  """
5425
 
5426
  thrift_spec = (
5427
    None, # 0
5428
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5429
  )
5430
 
5431
  def __init__(self, cex=None,):
5432
    self.cex = cex
5433
 
5434
  def read(self, iprot):
5435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5437
      return
5438
    iprot.readStructBegin()
5439
    while True:
5440
      (fname, ftype, fid) = iprot.readFieldBegin()
5441
      if ftype == TType.STOP:
5442
        break
5443
      if fid == 1:
5444
        if ftype == TType.STRUCT:
5445
          self.cex = CatalogServiceException()
5446
          self.cex.read(iprot)
5447
        else:
5448
          iprot.skip(ftype)
5449
      else:
5450
        iprot.skip(ftype)
5451
      iprot.readFieldEnd()
5452
    iprot.readStructEnd()
5453
 
5454
  def write(self, oprot):
5455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5457
      return
5458
    oprot.writeStructBegin('changeItemStatus_result')
5459
    if self.cex is not None:
5460
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5461
      self.cex.write(oprot)
5462
      oprot.writeFieldEnd()
5463
    oprot.writeFieldStop()
5464
    oprot.writeStructEnd()
5465
 
5466
  def validate(self):
5467
    return
5468
 
5469
 
5470
  def __repr__(self):
5471
    L = ['%s=%r' % (key, value)
5472
      for key, value in self.__dict__.iteritems()]
5473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5474
 
5475
  def __eq__(self, other):
5476
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5477
 
5478
  def __ne__(self, other):
5479
    return not (self == other)
5480
 
5481
class getItem_args:
5482
  """
5483
  Attributes:
5484
   - item_id
5485
  """
5486
 
5487
  thrift_spec = (
5488
    None, # 0
5489
    (1, TType.I64, 'item_id', None, None, ), # 1
5490
  )
5491
 
5492
  def __init__(self, item_id=None,):
5493
    self.item_id = item_id
5494
 
5495
  def read(self, iprot):
5496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5498
      return
5499
    iprot.readStructBegin()
5500
    while True:
5501
      (fname, ftype, fid) = iprot.readFieldBegin()
5502
      if ftype == TType.STOP:
5503
        break
5504
      if fid == 1:
5505
        if ftype == TType.I64:
5506
          self.item_id = iprot.readI64();
5507
        else:
5508
          iprot.skip(ftype)
5509
      else:
5510
        iprot.skip(ftype)
5511
      iprot.readFieldEnd()
5512
    iprot.readStructEnd()
5513
 
5514
  def write(self, oprot):
5515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5517
      return
5518
    oprot.writeStructBegin('getItem_args')
5519
    if self.item_id is not None:
5520
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5521
      oprot.writeI64(self.item_id)
5522
      oprot.writeFieldEnd()
5523
    oprot.writeFieldStop()
5524
    oprot.writeStructEnd()
5525
 
5526
  def validate(self):
5527
    return
5528
 
5529
 
5530
  def __repr__(self):
5531
    L = ['%s=%r' % (key, value)
5532
      for key, value in self.__dict__.iteritems()]
5533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5534
 
5535
  def __eq__(self, other):
5536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5537
 
5538
  def __ne__(self, other):
5539
    return not (self == other)
5540
 
5541
class getItem_result:
5542
  """
5543
  Attributes:
5544
   - success
5545
   - cex
5546
  """
5547
 
5548
  thrift_spec = (
5549
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
5550
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5551
  )
5552
 
5553
  def __init__(self, success=None, cex=None,):
5554
    self.success = success
5555
    self.cex = cex
5556
 
5557
  def read(self, iprot):
5558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5560
      return
5561
    iprot.readStructBegin()
5562
    while True:
5563
      (fname, ftype, fid) = iprot.readFieldBegin()
5564
      if ftype == TType.STOP:
5565
        break
5566
      if fid == 0:
5567
        if ftype == TType.STRUCT:
5568
          self.success = Item()
5569
          self.success.read(iprot)
5570
        else:
5571
          iprot.skip(ftype)
5572
      elif fid == 1:
5573
        if ftype == TType.STRUCT:
5574
          self.cex = CatalogServiceException()
5575
          self.cex.read(iprot)
5576
        else:
5577
          iprot.skip(ftype)
5578
      else:
5579
        iprot.skip(ftype)
5580
      iprot.readFieldEnd()
5581
    iprot.readStructEnd()
5582
 
5583
  def write(self, oprot):
5584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5586
      return
5587
    oprot.writeStructBegin('getItem_result')
5588
    if self.success is not None:
5589
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5590
      self.success.write(oprot)
5591
      oprot.writeFieldEnd()
5592
    if self.cex is not None:
5593
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5594
      self.cex.write(oprot)
5595
      oprot.writeFieldEnd()
5596
    oprot.writeFieldStop()
5597
    oprot.writeStructEnd()
5598
 
5599
  def validate(self):
5600
    return
5601
 
5602
 
5603
  def __repr__(self):
5604
    L = ['%s=%r' % (key, value)
5605
      for key, value in self.__dict__.iteritems()]
5606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5607
 
5608
  def __eq__(self, other):
5609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5610
 
5611
  def __ne__(self, other):
5612
    return not (self == other)
5613
 
5614
class getItemsByCatalogId_args:
5615
  """
5616
  Attributes:
5617
   - catalog_item_id
5618
  """
5619
 
5620
  thrift_spec = (
5621
    None, # 0
5622
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5623
  )
5624
 
5625
  def __init__(self, catalog_item_id=None,):
5626
    self.catalog_item_id = catalog_item_id
5627
 
5628
  def read(self, iprot):
5629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5631
      return
5632
    iprot.readStructBegin()
5633
    while True:
5634
      (fname, ftype, fid) = iprot.readFieldBegin()
5635
      if ftype == TType.STOP:
5636
        break
5637
      if fid == 1:
5638
        if ftype == TType.I64:
5639
          self.catalog_item_id = iprot.readI64();
5640
        else:
5641
          iprot.skip(ftype)
5642
      else:
5643
        iprot.skip(ftype)
5644
      iprot.readFieldEnd()
5645
    iprot.readStructEnd()
5646
 
5647
  def write(self, oprot):
5648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5650
      return
5651
    oprot.writeStructBegin('getItemsByCatalogId_args')
5652
    if self.catalog_item_id is not None:
5653
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5654
      oprot.writeI64(self.catalog_item_id)
5655
      oprot.writeFieldEnd()
5656
    oprot.writeFieldStop()
5657
    oprot.writeStructEnd()
5658
 
5659
  def validate(self):
5660
    return
5661
 
5662
 
5663
  def __repr__(self):
5664
    L = ['%s=%r' % (key, value)
5665
      for key, value in self.__dict__.iteritems()]
5666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5667
 
5668
  def __eq__(self, other):
5669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5670
 
5671
  def __ne__(self, other):
5672
    return not (self == other)
5673
 
5674
class getItemsByCatalogId_result:
5675
  """
5676
  Attributes:
5677
   - success
5678
   - cex
5679
  """
5680
 
5681
  thrift_spec = (
5682
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5683
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5684
  )
5685
 
5686
  def __init__(self, success=None, cex=None,):
5687
    self.success = success
5688
    self.cex = cex
5689
 
5690
  def read(self, iprot):
5691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5693
      return
5694
    iprot.readStructBegin()
5695
    while True:
5696
      (fname, ftype, fid) = iprot.readFieldBegin()
5697
      if ftype == TType.STOP:
5698
        break
5699
      if fid == 0:
5700
        if ftype == TType.LIST:
5701
          self.success = []
5702
          (_etype19, _size16) = iprot.readListBegin()
5703
          for _i20 in xrange(_size16):
5704
            _elem21 = Item()
5705
            _elem21.read(iprot)
5706
            self.success.append(_elem21)
5707
          iprot.readListEnd()
5708
        else:
5709
          iprot.skip(ftype)
5710
      elif fid == 1:
5711
        if ftype == TType.STRUCT:
5712
          self.cex = CatalogServiceException()
5713
          self.cex.read(iprot)
5714
        else:
5715
          iprot.skip(ftype)
5716
      else:
5717
        iprot.skip(ftype)
5718
      iprot.readFieldEnd()
5719
    iprot.readStructEnd()
5720
 
5721
  def write(self, oprot):
5722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5724
      return
5725
    oprot.writeStructBegin('getItemsByCatalogId_result')
5726
    if self.success is not None:
5727
      oprot.writeFieldBegin('success', TType.LIST, 0)
5728
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5729
      for iter22 in self.success:
5730
        iter22.write(oprot)
5731
      oprot.writeListEnd()
5732
      oprot.writeFieldEnd()
5733
    if self.cex is not None:
5734
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5735
      self.cex.write(oprot)
5736
      oprot.writeFieldEnd()
5737
    oprot.writeFieldStop()
5738
    oprot.writeStructEnd()
5739
 
5740
  def validate(self):
5741
    return
5742
 
5743
 
5744
  def __repr__(self):
5745
    L = ['%s=%r' % (key, value)
5746
      for key, value in self.__dict__.iteritems()]
5747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5748
 
5749
  def __eq__(self, other):
5750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5751
 
5752
  def __ne__(self, other):
5753
    return not (self == other)
5754
 
5755
class getValidItemsByCatalogId_args:
5756
  """
5757
  Attributes:
5758
   - catalog_item_id
5759
  """
5760
 
5761
  thrift_spec = (
5762
    None, # 0
5763
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5764
  )
5765
 
5766
  def __init__(self, catalog_item_id=None,):
5767
    self.catalog_item_id = catalog_item_id
5768
 
5769
  def read(self, iprot):
5770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5772
      return
5773
    iprot.readStructBegin()
5774
    while True:
5775
      (fname, ftype, fid) = iprot.readFieldBegin()
5776
      if ftype == TType.STOP:
5777
        break
5778
      if fid == 1:
5779
        if ftype == TType.I64:
5780
          self.catalog_item_id = iprot.readI64();
5781
        else:
5782
          iprot.skip(ftype)
5783
      else:
5784
        iprot.skip(ftype)
5785
      iprot.readFieldEnd()
5786
    iprot.readStructEnd()
5787
 
5788
  def write(self, oprot):
5789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5791
      return
5792
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5793
    if self.catalog_item_id is not None:
5794
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5795
      oprot.writeI64(self.catalog_item_id)
5796
      oprot.writeFieldEnd()
5797
    oprot.writeFieldStop()
5798
    oprot.writeStructEnd()
5799
 
5800
  def validate(self):
5801
    return
5802
 
5803
 
5804
  def __repr__(self):
5805
    L = ['%s=%r' % (key, value)
5806
      for key, value in self.__dict__.iteritems()]
5807
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5808
 
5809
  def __eq__(self, other):
5810
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5811
 
5812
  def __ne__(self, other):
5813
    return not (self == other)
5814
 
5815
class getValidItemsByCatalogId_result:
5816
  """
5817
  Attributes:
5818
   - success
5819
   - cex
5820
  """
5821
 
5822
  thrift_spec = (
5823
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5824
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5825
  )
5826
 
5827
  def __init__(self, success=None, cex=None,):
5828
    self.success = success
5829
    self.cex = cex
5830
 
5831
  def read(self, iprot):
5832
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5833
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5834
      return
5835
    iprot.readStructBegin()
5836
    while True:
5837
      (fname, ftype, fid) = iprot.readFieldBegin()
5838
      if ftype == TType.STOP:
5839
        break
5840
      if fid == 0:
5841
        if ftype == TType.LIST:
5842
          self.success = []
5843
          (_etype26, _size23) = iprot.readListBegin()
5844
          for _i27 in xrange(_size23):
5845
            _elem28 = Item()
5846
            _elem28.read(iprot)
5847
            self.success.append(_elem28)
5848
          iprot.readListEnd()
5849
        else:
5850
          iprot.skip(ftype)
5851
      elif fid == 1:
5852
        if ftype == TType.STRUCT:
5853
          self.cex = CatalogServiceException()
5854
          self.cex.read(iprot)
5855
        else:
5856
          iprot.skip(ftype)
5857
      else:
5858
        iprot.skip(ftype)
5859
      iprot.readFieldEnd()
5860
    iprot.readStructEnd()
5861
 
5862
  def write(self, oprot):
5863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5865
      return
5866
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5867
    if self.success is not None:
5868
      oprot.writeFieldBegin('success', TType.LIST, 0)
5869
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5870
      for iter29 in self.success:
5871
        iter29.write(oprot)
5872
      oprot.writeListEnd()
5873
      oprot.writeFieldEnd()
5874
    if self.cex is not None:
5875
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5876
      self.cex.write(oprot)
5877
      oprot.writeFieldEnd()
5878
    oprot.writeFieldStop()
5879
    oprot.writeStructEnd()
5880
 
5881
  def validate(self):
5882
    return
5883
 
5884
 
5885
  def __repr__(self):
5886
    L = ['%s=%r' % (key, value)
5887
      for key, value in self.__dict__.iteritems()]
5888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5889
 
5890
  def __eq__(self, other):
5891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5892
 
5893
  def __ne__(self, other):
5894
    return not (self == other)
5895
 
5896
class getAllItems_args:
5897
  """
5898
  Attributes:
5899
   - isActive
5900
  """
5901
 
5902
  thrift_spec = (
5903
    None, # 0
5904
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5905
  )
5906
 
5907
  def __init__(self, isActive=None,):
5908
    self.isActive = isActive
5909
 
5910
  def read(self, iprot):
5911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5913
      return
5914
    iprot.readStructBegin()
5915
    while True:
5916
      (fname, ftype, fid) = iprot.readFieldBegin()
5917
      if ftype == TType.STOP:
5918
        break
5919
      if fid == 1:
5920
        if ftype == TType.BOOL:
5921
          self.isActive = iprot.readBool();
5922
        else:
5923
          iprot.skip(ftype)
5924
      else:
5925
        iprot.skip(ftype)
5926
      iprot.readFieldEnd()
5927
    iprot.readStructEnd()
5928
 
5929
  def write(self, oprot):
5930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5932
      return
5933
    oprot.writeStructBegin('getAllItems_args')
5934
    if self.isActive is not None:
5935
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5936
      oprot.writeBool(self.isActive)
5937
      oprot.writeFieldEnd()
5938
    oprot.writeFieldStop()
5939
    oprot.writeStructEnd()
5940
 
5941
  def validate(self):
5942
    return
5943
 
5944
 
5945
  def __repr__(self):
5946
    L = ['%s=%r' % (key, value)
5947
      for key, value in self.__dict__.iteritems()]
5948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5949
 
5950
  def __eq__(self, other):
5951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5952
 
5953
  def __ne__(self, other):
5954
    return not (self == other)
5955
 
5956
class getAllItems_result:
5957
  """
5958
  Attributes:
5959
   - success
5960
   - cex
5961
  """
5962
 
5963
  thrift_spec = (
5964
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5965
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5966
  )
5967
 
5968
  def __init__(self, success=None, cex=None,):
5969
    self.success = success
5970
    self.cex = cex
5971
 
5972
  def read(self, iprot):
5973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5975
      return
5976
    iprot.readStructBegin()
5977
    while True:
5978
      (fname, ftype, fid) = iprot.readFieldBegin()
5979
      if ftype == TType.STOP:
5980
        break
5981
      if fid == 0:
5982
        if ftype == TType.LIST:
5983
          self.success = []
5984
          (_etype33, _size30) = iprot.readListBegin()
5985
          for _i34 in xrange(_size30):
5986
            _elem35 = Item()
5987
            _elem35.read(iprot)
5988
            self.success.append(_elem35)
5989
          iprot.readListEnd()
5990
        else:
5991
          iprot.skip(ftype)
5992
      elif fid == 1:
5993
        if ftype == TType.STRUCT:
5994
          self.cex = CatalogServiceException()
5995
          self.cex.read(iprot)
5996
        else:
5997
          iprot.skip(ftype)
5998
      else:
5999
        iprot.skip(ftype)
6000
      iprot.readFieldEnd()
6001
    iprot.readStructEnd()
6002
 
6003
  def write(self, oprot):
6004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6006
      return
6007
    oprot.writeStructBegin('getAllItems_result')
6008
    if self.success is not None:
6009
      oprot.writeFieldBegin('success', TType.LIST, 0)
6010
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6011
      for iter36 in self.success:
6012
        iter36.write(oprot)
6013
      oprot.writeListEnd()
6014
      oprot.writeFieldEnd()
6015
    if self.cex is not None:
6016
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6017
      self.cex.write(oprot)
6018
      oprot.writeFieldEnd()
6019
    oprot.writeFieldStop()
6020
    oprot.writeStructEnd()
6021
 
6022
  def validate(self):
6023
    return
6024
 
6025
 
6026
  def __repr__(self):
6027
    L = ['%s=%r' % (key, value)
6028
      for key, value in self.__dict__.iteritems()]
6029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6030
 
6031
  def __eq__(self, other):
6032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6033
 
6034
  def __ne__(self, other):
6035
    return not (self == other)
6036
 
6037
class getAllItemsByStatus_args:
6038
  """
6039
  Attributes:
6040
   - itemStatus
6041
  """
6042
 
6043
  thrift_spec = (
6044
    None, # 0
6045
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6046
  )
6047
 
6048
  def __init__(self, itemStatus=None,):
6049
    self.itemStatus = itemStatus
6050
 
6051
  def read(self, iprot):
6052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6054
      return
6055
    iprot.readStructBegin()
6056
    while True:
6057
      (fname, ftype, fid) = iprot.readFieldBegin()
6058
      if ftype == TType.STOP:
6059
        break
6060
      if fid == 1:
6061
        if ftype == TType.I32:
6062
          self.itemStatus = iprot.readI32();
6063
        else:
6064
          iprot.skip(ftype)
6065
      else:
6066
        iprot.skip(ftype)
6067
      iprot.readFieldEnd()
6068
    iprot.readStructEnd()
6069
 
6070
  def write(self, oprot):
6071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6073
      return
6074
    oprot.writeStructBegin('getAllItemsByStatus_args')
6075
    if self.itemStatus is not None:
6076
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6077
      oprot.writeI32(self.itemStatus)
6078
      oprot.writeFieldEnd()
6079
    oprot.writeFieldStop()
6080
    oprot.writeStructEnd()
6081
 
6082
  def validate(self):
6083
    return
6084
 
6085
 
6086
  def __repr__(self):
6087
    L = ['%s=%r' % (key, value)
6088
      for key, value in self.__dict__.iteritems()]
6089
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6090
 
6091
  def __eq__(self, other):
6092
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6093
 
6094
  def __ne__(self, other):
6095
    return not (self == other)
6096
 
6097
class getAllItemsByStatus_result:
6098
  """
6099
  Attributes:
6100
   - success
6101
   - cex
6102
  """
6103
 
6104
  thrift_spec = (
6105
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6106
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6107
  )
6108
 
6109
  def __init__(self, success=None, cex=None,):
6110
    self.success = success
6111
    self.cex = cex
6112
 
6113
  def read(self, iprot):
6114
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6115
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6116
      return
6117
    iprot.readStructBegin()
6118
    while True:
6119
      (fname, ftype, fid) = iprot.readFieldBegin()
6120
      if ftype == TType.STOP:
6121
        break
6122
      if fid == 0:
6123
        if ftype == TType.LIST:
6124
          self.success = []
6125
          (_etype40, _size37) = iprot.readListBegin()
6126
          for _i41 in xrange(_size37):
6127
            _elem42 = Item()
6128
            _elem42.read(iprot)
6129
            self.success.append(_elem42)
6130
          iprot.readListEnd()
6131
        else:
6132
          iprot.skip(ftype)
6133
      elif fid == 1:
6134
        if ftype == TType.STRUCT:
6135
          self.cex = CatalogServiceException()
6136
          self.cex.read(iprot)
6137
        else:
6138
          iprot.skip(ftype)
6139
      else:
6140
        iprot.skip(ftype)
6141
      iprot.readFieldEnd()
6142
    iprot.readStructEnd()
6143
 
6144
  def write(self, oprot):
6145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6147
      return
6148
    oprot.writeStructBegin('getAllItemsByStatus_result')
6149
    if self.success is not None:
6150
      oprot.writeFieldBegin('success', TType.LIST, 0)
6151
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6152
      for iter43 in self.success:
6153
        iter43.write(oprot)
6154
      oprot.writeListEnd()
6155
      oprot.writeFieldEnd()
6156
    if self.cex is not None:
6157
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6158
      self.cex.write(oprot)
6159
      oprot.writeFieldEnd()
6160
    oprot.writeFieldStop()
6161
    oprot.writeStructEnd()
6162
 
6163
  def validate(self):
6164
    return
6165
 
6166
 
6167
  def __repr__(self):
6168
    L = ['%s=%r' % (key, value)
6169
      for key, value in self.__dict__.iteritems()]
6170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6171
 
6172
  def __eq__(self, other):
6173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6174
 
6175
  def __ne__(self, other):
6176
    return not (self == other)
6177
 
6178
class markItemAsContentComplete_args:
6179
  """
6180
  Attributes:
6181
   - entityId
6182
   - category
6183
   - brand
6184
   - modelName
6185
   - modelNumber
6186
  """
6187
 
6188
  thrift_spec = (
6189
    None, # 0
6190
    (1, TType.I64, 'entityId', None, None, ), # 1
6191
    (2, TType.I64, 'category', None, None, ), # 2
6192
    (3, TType.STRING, 'brand', None, None, ), # 3
6193
    (4, TType.STRING, 'modelName', None, None, ), # 4
6194
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
6195
  )
6196
 
6197
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
6198
    self.entityId = entityId
6199
    self.category = category
6200
    self.brand = brand
6201
    self.modelName = modelName
6202
    self.modelNumber = modelNumber
6203
 
6204
  def read(self, iprot):
6205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6207
      return
6208
    iprot.readStructBegin()
6209
    while True:
6210
      (fname, ftype, fid) = iprot.readFieldBegin()
6211
      if ftype == TType.STOP:
6212
        break
6213
      if fid == 1:
6214
        if ftype == TType.I64:
6215
          self.entityId = iprot.readI64();
6216
        else:
6217
          iprot.skip(ftype)
6218
      elif fid == 2:
6219
        if ftype == TType.I64:
6220
          self.category = iprot.readI64();
6221
        else:
6222
          iprot.skip(ftype)
6223
      elif fid == 3:
6224
        if ftype == TType.STRING:
6225
          self.brand = iprot.readString();
6226
        else:
6227
          iprot.skip(ftype)
6228
      elif fid == 4:
6229
        if ftype == TType.STRING:
6230
          self.modelName = iprot.readString();
6231
        else:
6232
          iprot.skip(ftype)
6233
      elif fid == 5:
6234
        if ftype == TType.STRING:
6235
          self.modelNumber = iprot.readString();
6236
        else:
6237
          iprot.skip(ftype)
6238
      else:
6239
        iprot.skip(ftype)
6240
      iprot.readFieldEnd()
6241
    iprot.readStructEnd()
6242
 
6243
  def write(self, oprot):
6244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6246
      return
6247
    oprot.writeStructBegin('markItemAsContentComplete_args')
6248
    if self.entityId is not None:
6249
      oprot.writeFieldBegin('entityId', TType.I64, 1)
6250
      oprot.writeI64(self.entityId)
6251
      oprot.writeFieldEnd()
6252
    if self.category is not None:
6253
      oprot.writeFieldBegin('category', TType.I64, 2)
6254
      oprot.writeI64(self.category)
6255
      oprot.writeFieldEnd()
6256
    if self.brand is not None:
6257
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6258
      oprot.writeString(self.brand)
6259
      oprot.writeFieldEnd()
6260
    if self.modelName is not None:
6261
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
6262
      oprot.writeString(self.modelName)
6263
      oprot.writeFieldEnd()
6264
    if self.modelNumber is not None:
6265
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
6266
      oprot.writeString(self.modelNumber)
6267
      oprot.writeFieldEnd()
6268
    oprot.writeFieldStop()
6269
    oprot.writeStructEnd()
6270
 
6271
  def validate(self):
6272
    return
6273
 
6274
 
6275
  def __repr__(self):
6276
    L = ['%s=%r' % (key, value)
6277
      for key, value in self.__dict__.iteritems()]
6278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6279
 
6280
  def __eq__(self, other):
6281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6282
 
6283
  def __ne__(self, other):
6284
    return not (self == other)
6285
 
6286
class markItemAsContentComplete_result:
6287
  """
6288
  Attributes:
6289
   - success
6290
   - cex
6291
  """
6292
 
6293
  thrift_spec = (
6294
    (0, TType.BOOL, 'success', None, None, ), # 0
6295
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6296
  )
6297
 
6298
  def __init__(self, success=None, cex=None,):
6299
    self.success = success
6300
    self.cex = cex
6301
 
6302
  def read(self, iprot):
6303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6305
      return
6306
    iprot.readStructBegin()
6307
    while True:
6308
      (fname, ftype, fid) = iprot.readFieldBegin()
6309
      if ftype == TType.STOP:
6310
        break
6311
      if fid == 0:
6312
        if ftype == TType.BOOL:
6313
          self.success = iprot.readBool();
6314
        else:
6315
          iprot.skip(ftype)
6316
      elif fid == 1:
6317
        if ftype == TType.STRUCT:
6318
          self.cex = CatalogServiceException()
6319
          self.cex.read(iprot)
6320
        else:
6321
          iprot.skip(ftype)
6322
      else:
6323
        iprot.skip(ftype)
6324
      iprot.readFieldEnd()
6325
    iprot.readStructEnd()
6326
 
6327
  def write(self, oprot):
6328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6330
      return
6331
    oprot.writeStructBegin('markItemAsContentComplete_result')
6332
    if self.success is not None:
6333
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6334
      oprot.writeBool(self.success)
6335
      oprot.writeFieldEnd()
6336
    if self.cex is not None:
6337
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6338
      self.cex.write(oprot)
6339
      oprot.writeFieldEnd()
6340
    oprot.writeFieldStop()
6341
    oprot.writeStructEnd()
6342
 
6343
  def validate(self):
6344
    return
6345
 
6346
 
6347
  def __repr__(self):
6348
    L = ['%s=%r' % (key, value)
6349
      for key, value in self.__dict__.iteritems()]
6350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6351
 
6352
  def __eq__(self, other):
6353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6354
 
6355
  def __ne__(self, other):
6356
    return not (self == other)
6357
 
6358
class getAllItemsInRange_args:
6359
  """
6360
  Attributes:
6361
   - offset
6362
   - limit
6363
  """
6364
 
6365
  thrift_spec = (
6366
    None, # 0
6367
    (1, TType.I64, 'offset', None, None, ), # 1
6368
    (2, TType.I64, 'limit', None, None, ), # 2
6369
  )
6370
 
6371
  def __init__(self, offset=None, limit=None,):
6372
    self.offset = offset
6373
    self.limit = limit
6374
 
6375
  def read(self, iprot):
6376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6378
      return
6379
    iprot.readStructBegin()
6380
    while True:
6381
      (fname, ftype, fid) = iprot.readFieldBegin()
6382
      if ftype == TType.STOP:
6383
        break
6384
      if fid == 1:
6385
        if ftype == TType.I64:
6386
          self.offset = iprot.readI64();
6387
        else:
6388
          iprot.skip(ftype)
6389
      elif fid == 2:
6390
        if ftype == TType.I64:
6391
          self.limit = iprot.readI64();
6392
        else:
6393
          iprot.skip(ftype)
6394
      else:
6395
        iprot.skip(ftype)
6396
      iprot.readFieldEnd()
6397
    iprot.readStructEnd()
6398
 
6399
  def write(self, oprot):
6400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6402
      return
6403
    oprot.writeStructBegin('getAllItemsInRange_args')
6404
    if self.offset is not None:
6405
      oprot.writeFieldBegin('offset', TType.I64, 1)
6406
      oprot.writeI64(self.offset)
6407
      oprot.writeFieldEnd()
6408
    if self.limit is not None:
6409
      oprot.writeFieldBegin('limit', TType.I64, 2)
6410
      oprot.writeI64(self.limit)
6411
      oprot.writeFieldEnd()
6412
    oprot.writeFieldStop()
6413
    oprot.writeStructEnd()
6414
 
6415
  def validate(self):
6416
    return
6417
 
6418
 
6419
  def __repr__(self):
6420
    L = ['%s=%r' % (key, value)
6421
      for key, value in self.__dict__.iteritems()]
6422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6423
 
6424
  def __eq__(self, other):
6425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6426
 
6427
  def __ne__(self, other):
6428
    return not (self == other)
6429
 
6430
class getAllItemsInRange_result:
6431
  """
6432
  Attributes:
6433
   - success
6434
   - cex
6435
  """
6436
 
6437
  thrift_spec = (
6438
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6439
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6440
  )
6441
 
6442
  def __init__(self, success=None, cex=None,):
6443
    self.success = success
6444
    self.cex = cex
6445
 
6446
  def read(self, iprot):
6447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6449
      return
6450
    iprot.readStructBegin()
6451
    while True:
6452
      (fname, ftype, fid) = iprot.readFieldBegin()
6453
      if ftype == TType.STOP:
6454
        break
6455
      if fid == 0:
6456
        if ftype == TType.LIST:
6457
          self.success = []
6458
          (_etype47, _size44) = iprot.readListBegin()
6459
          for _i48 in xrange(_size44):
6460
            _elem49 = Item()
6461
            _elem49.read(iprot)
6462
            self.success.append(_elem49)
6463
          iprot.readListEnd()
6464
        else:
6465
          iprot.skip(ftype)
6466
      elif fid == 1:
6467
        if ftype == TType.STRUCT:
6468
          self.cex = CatalogServiceException()
6469
          self.cex.read(iprot)
6470
        else:
6471
          iprot.skip(ftype)
6472
      else:
6473
        iprot.skip(ftype)
6474
      iprot.readFieldEnd()
6475
    iprot.readStructEnd()
6476
 
6477
  def write(self, oprot):
6478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6480
      return
6481
    oprot.writeStructBegin('getAllItemsInRange_result')
6482
    if self.success is not None:
6483
      oprot.writeFieldBegin('success', TType.LIST, 0)
6484
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6485
      for iter50 in self.success:
6486
        iter50.write(oprot)
6487
      oprot.writeListEnd()
6488
      oprot.writeFieldEnd()
6489
    if self.cex is not None:
6490
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6491
      self.cex.write(oprot)
6492
      oprot.writeFieldEnd()
6493
    oprot.writeFieldStop()
6494
    oprot.writeStructEnd()
6495
 
6496
  def validate(self):
6497
    return
6498
 
6499
 
6500
  def __repr__(self):
6501
    L = ['%s=%r' % (key, value)
6502
      for key, value in self.__dict__.iteritems()]
6503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6504
 
6505
  def __eq__(self, other):
6506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6507
 
6508
  def __ne__(self, other):
6509
    return not (self == other)
6510
 
6511
class getAllItemsByStatusInRange_args:
6512
  """
6513
  Attributes:
6514
   - itemStatus
6515
   - offset
6516
   - limit
6517
  """
6518
 
6519
  thrift_spec = (
6520
    None, # 0
6521
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6522
    (2, TType.I64, 'offset', None, None, ), # 2
6523
    (3, TType.I64, 'limit', None, None, ), # 3
6524
  )
6525
 
6526
  def __init__(self, itemStatus=None, offset=None, limit=None,):
6527
    self.itemStatus = itemStatus
6528
    self.offset = offset
6529
    self.limit = limit
6530
 
6531
  def read(self, iprot):
6532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6534
      return
6535
    iprot.readStructBegin()
6536
    while True:
6537
      (fname, ftype, fid) = iprot.readFieldBegin()
6538
      if ftype == TType.STOP:
6539
        break
6540
      if fid == 1:
6541
        if ftype == TType.I32:
6542
          self.itemStatus = iprot.readI32();
6543
        else:
6544
          iprot.skip(ftype)
6545
      elif fid == 2:
6546
        if ftype == TType.I64:
6547
          self.offset = iprot.readI64();
6548
        else:
6549
          iprot.skip(ftype)
6550
      elif fid == 3:
6551
        if ftype == TType.I64:
6552
          self.limit = iprot.readI64();
6553
        else:
6554
          iprot.skip(ftype)
6555
      else:
6556
        iprot.skip(ftype)
6557
      iprot.readFieldEnd()
6558
    iprot.readStructEnd()
6559
 
6560
  def write(self, oprot):
6561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6563
      return
6564
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
6565
    if self.itemStatus is not None:
6566
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6567
      oprot.writeI32(self.itemStatus)
6568
      oprot.writeFieldEnd()
6569
    if self.offset is not None:
6570
      oprot.writeFieldBegin('offset', TType.I64, 2)
6571
      oprot.writeI64(self.offset)
6572
      oprot.writeFieldEnd()
6573
    if self.limit is not None:
6574
      oprot.writeFieldBegin('limit', TType.I64, 3)
6575
      oprot.writeI64(self.limit)
6576
      oprot.writeFieldEnd()
6577
    oprot.writeFieldStop()
6578
    oprot.writeStructEnd()
6579
 
6580
  def validate(self):
6581
    return
6582
 
6583
 
6584
  def __repr__(self):
6585
    L = ['%s=%r' % (key, value)
6586
      for key, value in self.__dict__.iteritems()]
6587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6588
 
6589
  def __eq__(self, other):
6590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6591
 
6592
  def __ne__(self, other):
6593
    return not (self == other)
6594
 
6595
class getAllItemsByStatusInRange_result:
6596
  """
6597
  Attributes:
6598
   - success
6599
   - cex
6600
  """
6601
 
6602
  thrift_spec = (
6603
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6604
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6605
  )
6606
 
6607
  def __init__(self, success=None, cex=None,):
6608
    self.success = success
6609
    self.cex = cex
6610
 
6611
  def read(self, iprot):
6612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6614
      return
6615
    iprot.readStructBegin()
6616
    while True:
6617
      (fname, ftype, fid) = iprot.readFieldBegin()
6618
      if ftype == TType.STOP:
6619
        break
6620
      if fid == 0:
6621
        if ftype == TType.LIST:
6622
          self.success = []
6623
          (_etype54, _size51) = iprot.readListBegin()
6624
          for _i55 in xrange(_size51):
6625
            _elem56 = Item()
6626
            _elem56.read(iprot)
6627
            self.success.append(_elem56)
6628
          iprot.readListEnd()
6629
        else:
6630
          iprot.skip(ftype)
6631
      elif fid == 1:
6632
        if ftype == TType.STRUCT:
6633
          self.cex = CatalogServiceException()
6634
          self.cex.read(iprot)
6635
        else:
6636
          iprot.skip(ftype)
6637
      else:
6638
        iprot.skip(ftype)
6639
      iprot.readFieldEnd()
6640
    iprot.readStructEnd()
6641
 
6642
  def write(self, oprot):
6643
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6644
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6645
      return
6646
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6647
    if self.success is not None:
6648
      oprot.writeFieldBegin('success', TType.LIST, 0)
6649
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6650
      for iter57 in self.success:
6651
        iter57.write(oprot)
6652
      oprot.writeListEnd()
6653
      oprot.writeFieldEnd()
6654
    if self.cex is not None:
6655
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6656
      self.cex.write(oprot)
6657
      oprot.writeFieldEnd()
6658
    oprot.writeFieldStop()
6659
    oprot.writeStructEnd()
6660
 
6661
  def validate(self):
6662
    return
6663
 
6664
 
6665
  def __repr__(self):
6666
    L = ['%s=%r' % (key, value)
6667
      for key, value in self.__dict__.iteritems()]
6668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6669
 
6670
  def __eq__(self, other):
6671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6672
 
6673
  def __ne__(self, other):
6674
    return not (self == other)
6675
 
6676
class getItemCountByStatus_args:
6677
  """
6678
  Attributes:
6679
   - useStatus
6680
   - itemStatus
6681
  """
6682
 
6683
  thrift_spec = (
6684
    None, # 0
6685
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6686
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6687
  )
6688
 
6689
  def __init__(self, useStatus=None, itemStatus=None,):
6690
    self.useStatus = useStatus
6691
    self.itemStatus = itemStatus
6692
 
6693
  def read(self, iprot):
6694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6696
      return
6697
    iprot.readStructBegin()
6698
    while True:
6699
      (fname, ftype, fid) = iprot.readFieldBegin()
6700
      if ftype == TType.STOP:
6701
        break
6702
      if fid == 1:
6703
        if ftype == TType.BOOL:
6704
          self.useStatus = iprot.readBool();
6705
        else:
6706
          iprot.skip(ftype)
6707
      elif fid == 2:
6708
        if ftype == TType.I32:
6709
          self.itemStatus = iprot.readI32();
6710
        else:
6711
          iprot.skip(ftype)
6712
      else:
6713
        iprot.skip(ftype)
6714
      iprot.readFieldEnd()
6715
    iprot.readStructEnd()
6716
 
6717
  def write(self, oprot):
6718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6720
      return
6721
    oprot.writeStructBegin('getItemCountByStatus_args')
6722
    if self.useStatus is not None:
6723
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6724
      oprot.writeBool(self.useStatus)
6725
      oprot.writeFieldEnd()
6726
    if self.itemStatus is not None:
6727
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6728
      oprot.writeI32(self.itemStatus)
6729
      oprot.writeFieldEnd()
6730
    oprot.writeFieldStop()
6731
    oprot.writeStructEnd()
6732
 
6733
  def validate(self):
6734
    return
6735
 
6736
 
6737
  def __repr__(self):
6738
    L = ['%s=%r' % (key, value)
6739
      for key, value in self.__dict__.iteritems()]
6740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6741
 
6742
  def __eq__(self, other):
6743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6744
 
6745
  def __ne__(self, other):
6746
    return not (self == other)
6747
 
6748
class getItemCountByStatus_result:
6749
  """
6750
  Attributes:
6751
   - success
6752
  """
6753
 
6754
  thrift_spec = (
6755
    (0, TType.I32, 'success', None, None, ), # 0
6756
  )
6757
 
6758
  def __init__(self, success=None,):
6759
    self.success = success
6760
 
6761
  def read(self, iprot):
6762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6764
      return
6765
    iprot.readStructBegin()
6766
    while True:
6767
      (fname, ftype, fid) = iprot.readFieldBegin()
6768
      if ftype == TType.STOP:
6769
        break
6770
      if fid == 0:
6771
        if ftype == TType.I32:
6772
          self.success = iprot.readI32();
6773
        else:
6774
          iprot.skip(ftype)
6775
      else:
6776
        iprot.skip(ftype)
6777
      iprot.readFieldEnd()
6778
    iprot.readStructEnd()
6779
 
6780
  def write(self, oprot):
6781
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6782
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6783
      return
6784
    oprot.writeStructBegin('getItemCountByStatus_result')
6785
    if self.success is not None:
6786
      oprot.writeFieldBegin('success', TType.I32, 0)
6787
      oprot.writeI32(self.success)
6788
      oprot.writeFieldEnd()
6789
    oprot.writeFieldStop()
6790
    oprot.writeStructEnd()
6791
 
6792
  def validate(self):
6793
    return
6794
 
6795
 
6796
  def __repr__(self):
6797
    L = ['%s=%r' % (key, value)
6798
      for key, value in self.__dict__.iteritems()]
6799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6800
 
6801
  def __eq__(self, other):
6802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6803
 
6804
  def __ne__(self, other):
6805
    return not (self == other)
6806
 
6807
class getBestSellers_args:
6808
 
6809
  thrift_spec = (
6810
  )
6811
 
6812
  def read(self, iprot):
6813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6815
      return
6816
    iprot.readStructBegin()
6817
    while True:
6818
      (fname, ftype, fid) = iprot.readFieldBegin()
6819
      if ftype == TType.STOP:
6820
        break
6821
      else:
6822
        iprot.skip(ftype)
6823
      iprot.readFieldEnd()
6824
    iprot.readStructEnd()
6825
 
6826
  def write(self, oprot):
6827
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6828
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6829
      return
6830
    oprot.writeStructBegin('getBestSellers_args')
6831
    oprot.writeFieldStop()
6832
    oprot.writeStructEnd()
6833
 
6834
  def validate(self):
6835
    return
6836
 
6837
 
6838
  def __repr__(self):
6839
    L = ['%s=%r' % (key, value)
6840
      for key, value in self.__dict__.iteritems()]
6841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6842
 
6843
  def __eq__(self, other):
6844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6845
 
6846
  def __ne__(self, other):
6847
    return not (self == other)
6848
 
6849
class getBestSellers_result:
6850
  """
6851
  Attributes:
6852
   - success
6853
   - isex
6854
  """
6855
 
6856
  thrift_spec = (
6857
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6858
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6859
  )
6860
 
6861
  def __init__(self, success=None, isex=None,):
6862
    self.success = success
6863
    self.isex = isex
6864
 
6865
  def read(self, iprot):
6866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6868
      return
6869
    iprot.readStructBegin()
6870
    while True:
6871
      (fname, ftype, fid) = iprot.readFieldBegin()
6872
      if ftype == TType.STOP:
6873
        break
6874
      if fid == 0:
6875
        if ftype == TType.LIST:
6876
          self.success = []
6877
          (_etype61, _size58) = iprot.readListBegin()
6878
          for _i62 in xrange(_size58):
6879
            _elem63 = Item()
6880
            _elem63.read(iprot)
6881
            self.success.append(_elem63)
6882
          iprot.readListEnd()
6883
        else:
6884
          iprot.skip(ftype)
6885
      elif fid == 1:
6886
        if ftype == TType.STRUCT:
6887
          self.isex = CatalogServiceException()
6888
          self.isex.read(iprot)
6889
        else:
6890
          iprot.skip(ftype)
6891
      else:
6892
        iprot.skip(ftype)
6893
      iprot.readFieldEnd()
6894
    iprot.readStructEnd()
6895
 
6896
  def write(self, oprot):
6897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6899
      return
6900
    oprot.writeStructBegin('getBestSellers_result')
6901
    if self.success is not None:
6902
      oprot.writeFieldBegin('success', TType.LIST, 0)
6903
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6904
      for iter64 in self.success:
6905
        iter64.write(oprot)
6906
      oprot.writeListEnd()
6907
      oprot.writeFieldEnd()
6908
    if self.isex is not None:
6909
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6910
      self.isex.write(oprot)
6911
      oprot.writeFieldEnd()
6912
    oprot.writeFieldStop()
6913
    oprot.writeStructEnd()
6914
 
6915
  def validate(self):
6916
    return
6917
 
6918
 
6919
  def __repr__(self):
6920
    L = ['%s=%r' % (key, value)
6921
      for key, value in self.__dict__.iteritems()]
6922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6923
 
6924
  def __eq__(self, other):
6925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6926
 
6927
  def __ne__(self, other):
6928
    return not (self == other)
6929
 
6930
class getBestSellersCatalogIds_args:
6931
  """
6932
  Attributes:
6933
   - beginIndex
6934
   - totalItems
6935
   - brand
6936
   - category
6937
  """
6938
 
6939
  thrift_spec = (
6940
    None, # 0
6941
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6942
    (2, TType.I64, 'totalItems', None, None, ), # 2
6943
    (3, TType.STRING, 'brand', None, None, ), # 3
6944
    (4, TType.I64, 'category', None, None, ), # 4
6945
  )
6946
 
6947
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6948
    self.beginIndex = beginIndex
6949
    self.totalItems = totalItems
6950
    self.brand = brand
6951
    self.category = category
6952
 
6953
  def read(self, iprot):
6954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6956
      return
6957
    iprot.readStructBegin()
6958
    while True:
6959
      (fname, ftype, fid) = iprot.readFieldBegin()
6960
      if ftype == TType.STOP:
6961
        break
6962
      if fid == 1:
6963
        if ftype == TType.I64:
6964
          self.beginIndex = iprot.readI64();
6965
        else:
6966
          iprot.skip(ftype)
6967
      elif fid == 2:
6968
        if ftype == TType.I64:
6969
          self.totalItems = iprot.readI64();
6970
        else:
6971
          iprot.skip(ftype)
6972
      elif fid == 3:
6973
        if ftype == TType.STRING:
6974
          self.brand = iprot.readString();
6975
        else:
6976
          iprot.skip(ftype)
6977
      elif fid == 4:
6978
        if ftype == TType.I64:
6979
          self.category = iprot.readI64();
6980
        else:
6981
          iprot.skip(ftype)
6982
      else:
6983
        iprot.skip(ftype)
6984
      iprot.readFieldEnd()
6985
    iprot.readStructEnd()
6986
 
6987
  def write(self, oprot):
6988
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6989
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6990
      return
6991
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6992
    if self.beginIndex is not None:
6993
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6994
      oprot.writeI64(self.beginIndex)
6995
      oprot.writeFieldEnd()
6996
    if self.totalItems is not None:
6997
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6998
      oprot.writeI64(self.totalItems)
6999
      oprot.writeFieldEnd()
7000
    if self.brand is not None:
7001
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7002
      oprot.writeString(self.brand)
7003
      oprot.writeFieldEnd()
7004
    if self.category is not None:
7005
      oprot.writeFieldBegin('category', TType.I64, 4)
7006
      oprot.writeI64(self.category)
7007
      oprot.writeFieldEnd()
7008
    oprot.writeFieldStop()
7009
    oprot.writeStructEnd()
7010
 
7011
  def validate(self):
7012
    return
7013
 
7014
 
7015
  def __repr__(self):
7016
    L = ['%s=%r' % (key, value)
7017
      for key, value in self.__dict__.iteritems()]
7018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7019
 
7020
  def __eq__(self, other):
7021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7022
 
7023
  def __ne__(self, other):
7024
    return not (self == other)
7025
 
7026
class getBestSellersCatalogIds_result:
7027
  """
7028
  Attributes:
7029
   - success
7030
   - cex
7031
  """
7032
 
7033
  thrift_spec = (
7034
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7035
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7036
  )
7037
 
7038
  def __init__(self, success=None, cex=None,):
7039
    self.success = success
7040
    self.cex = cex
7041
 
7042
  def read(self, iprot):
7043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7045
      return
7046
    iprot.readStructBegin()
7047
    while True:
7048
      (fname, ftype, fid) = iprot.readFieldBegin()
7049
      if ftype == TType.STOP:
7050
        break
7051
      if fid == 0:
7052
        if ftype == TType.LIST:
7053
          self.success = []
7054
          (_etype68, _size65) = iprot.readListBegin()
7055
          for _i69 in xrange(_size65):
7056
            _elem70 = iprot.readI64();
7057
            self.success.append(_elem70)
7058
          iprot.readListEnd()
7059
        else:
7060
          iprot.skip(ftype)
7061
      elif fid == 1:
7062
        if ftype == TType.STRUCT:
7063
          self.cex = CatalogServiceException()
7064
          self.cex.read(iprot)
7065
        else:
7066
          iprot.skip(ftype)
7067
      else:
7068
        iprot.skip(ftype)
7069
      iprot.readFieldEnd()
7070
    iprot.readStructEnd()
7071
 
7072
  def write(self, oprot):
7073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7075
      return
7076
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
7077
    if self.success is not None:
7078
      oprot.writeFieldBegin('success', TType.LIST, 0)
7079
      oprot.writeListBegin(TType.I64, len(self.success))
7080
      for iter71 in self.success:
7081
        oprot.writeI64(iter71)
7082
      oprot.writeListEnd()
7083
      oprot.writeFieldEnd()
7084
    if self.cex is not None:
7085
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7086
      self.cex.write(oprot)
7087
      oprot.writeFieldEnd()
7088
    oprot.writeFieldStop()
7089
    oprot.writeStructEnd()
7090
 
7091
  def validate(self):
7092
    return
7093
 
7094
 
7095
  def __repr__(self):
7096
    L = ['%s=%r' % (key, value)
7097
      for key, value in self.__dict__.iteritems()]
7098
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7099
 
7100
  def __eq__(self, other):
7101
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7102
 
7103
  def __ne__(self, other):
7104
    return not (self == other)
7105
 
7106
class getBestSellersCount_args:
7107
 
7108
  thrift_spec = (
7109
  )
7110
 
7111
  def read(self, iprot):
7112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7114
      return
7115
    iprot.readStructBegin()
7116
    while True:
7117
      (fname, ftype, fid) = iprot.readFieldBegin()
7118
      if ftype == TType.STOP:
7119
        break
7120
      else:
7121
        iprot.skip(ftype)
7122
      iprot.readFieldEnd()
7123
    iprot.readStructEnd()
7124
 
7125
  def write(self, oprot):
7126
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7127
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7128
      return
7129
    oprot.writeStructBegin('getBestSellersCount_args')
7130
    oprot.writeFieldStop()
7131
    oprot.writeStructEnd()
7132
 
7133
  def validate(self):
7134
    return
7135
 
7136
 
7137
  def __repr__(self):
7138
    L = ['%s=%r' % (key, value)
7139
      for key, value in self.__dict__.iteritems()]
7140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7141
 
7142
  def __eq__(self, other):
7143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7144
 
7145
  def __ne__(self, other):
7146
    return not (self == other)
7147
 
7148
class getBestSellersCount_result:
7149
  """
7150
  Attributes:
7151
   - success
7152
   - cex
7153
  """
7154
 
7155
  thrift_spec = (
7156
    (0, TType.I64, 'success', None, None, ), # 0
7157
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7158
  )
7159
 
7160
  def __init__(self, success=None, cex=None,):
7161
    self.success = success
7162
    self.cex = cex
7163
 
7164
  def read(self, iprot):
7165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7167
      return
7168
    iprot.readStructBegin()
7169
    while True:
7170
      (fname, ftype, fid) = iprot.readFieldBegin()
7171
      if ftype == TType.STOP:
7172
        break
7173
      if fid == 0:
7174
        if ftype == TType.I64:
7175
          self.success = iprot.readI64();
7176
        else:
7177
          iprot.skip(ftype)
7178
      elif fid == 1:
7179
        if ftype == TType.STRUCT:
7180
          self.cex = CatalogServiceException()
7181
          self.cex.read(iprot)
7182
        else:
7183
          iprot.skip(ftype)
7184
      else:
7185
        iprot.skip(ftype)
7186
      iprot.readFieldEnd()
7187
    iprot.readStructEnd()
7188
 
7189
  def write(self, oprot):
7190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7192
      return
7193
    oprot.writeStructBegin('getBestSellersCount_result')
7194
    if self.success is not None:
7195
      oprot.writeFieldBegin('success', TType.I64, 0)
7196
      oprot.writeI64(self.success)
7197
      oprot.writeFieldEnd()
7198
    if self.cex is not None:
7199
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7200
      self.cex.write(oprot)
7201
      oprot.writeFieldEnd()
7202
    oprot.writeFieldStop()
7203
    oprot.writeStructEnd()
7204
 
7205
  def validate(self):
7206
    return
7207
 
7208
 
7209
  def __repr__(self):
7210
    L = ['%s=%r' % (key, value)
7211
      for key, value in self.__dict__.iteritems()]
7212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7213
 
7214
  def __eq__(self, other):
7215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7216
 
7217
  def __ne__(self, other):
7218
    return not (self == other)
7219
 
7220
class getBestDeals_args:
7221
 
7222
  thrift_spec = (
7223
  )
7224
 
7225
  def read(self, iprot):
7226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7228
      return
7229
    iprot.readStructBegin()
7230
    while True:
7231
      (fname, ftype, fid) = iprot.readFieldBegin()
7232
      if ftype == TType.STOP:
7233
        break
7234
      else:
7235
        iprot.skip(ftype)
7236
      iprot.readFieldEnd()
7237
    iprot.readStructEnd()
7238
 
7239
  def write(self, oprot):
7240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7242
      return
7243
    oprot.writeStructBegin('getBestDeals_args')
7244
    oprot.writeFieldStop()
7245
    oprot.writeStructEnd()
7246
 
7247
  def validate(self):
7248
    return
7249
 
7250
 
7251
  def __repr__(self):
7252
    L = ['%s=%r' % (key, value)
7253
      for key, value in self.__dict__.iteritems()]
7254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7255
 
7256
  def __eq__(self, other):
7257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7258
 
7259
  def __ne__(self, other):
7260
    return not (self == other)
7261
 
7262
class getBestDeals_result:
7263
  """
7264
  Attributes:
7265
   - success
7266
   - isex
7267
  """
7268
 
7269
  thrift_spec = (
7270
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7271
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7272
  )
7273
 
7274
  def __init__(self, success=None, isex=None,):
7275
    self.success = success
7276
    self.isex = isex
7277
 
7278
  def read(self, iprot):
7279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7281
      return
7282
    iprot.readStructBegin()
7283
    while True:
7284
      (fname, ftype, fid) = iprot.readFieldBegin()
7285
      if ftype == TType.STOP:
7286
        break
7287
      if fid == 0:
7288
        if ftype == TType.LIST:
7289
          self.success = []
7290
          (_etype75, _size72) = iprot.readListBegin()
7291
          for _i76 in xrange(_size72):
7292
            _elem77 = Item()
7293
            _elem77.read(iprot)
7294
            self.success.append(_elem77)
7295
          iprot.readListEnd()
7296
        else:
7297
          iprot.skip(ftype)
7298
      elif fid == 1:
7299
        if ftype == TType.STRUCT:
7300
          self.isex = CatalogServiceException()
7301
          self.isex.read(iprot)
7302
        else:
7303
          iprot.skip(ftype)
7304
      else:
7305
        iprot.skip(ftype)
7306
      iprot.readFieldEnd()
7307
    iprot.readStructEnd()
7308
 
7309
  def write(self, oprot):
7310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7312
      return
7313
    oprot.writeStructBegin('getBestDeals_result')
7314
    if self.success is not None:
7315
      oprot.writeFieldBegin('success', TType.LIST, 0)
7316
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7317
      for iter78 in self.success:
7318
        iter78.write(oprot)
7319
      oprot.writeListEnd()
7320
      oprot.writeFieldEnd()
7321
    if self.isex is not None:
7322
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7323
      self.isex.write(oprot)
7324
      oprot.writeFieldEnd()
7325
    oprot.writeFieldStop()
7326
    oprot.writeStructEnd()
7327
 
7328
  def validate(self):
7329
    return
7330
 
7331
 
7332
  def __repr__(self):
7333
    L = ['%s=%r' % (key, value)
7334
      for key, value in self.__dict__.iteritems()]
7335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7336
 
7337
  def __eq__(self, other):
7338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7339
 
7340
  def __ne__(self, other):
7341
    return not (self == other)
7342
 
7343
class getBestDealsCatalogIds_args:
7344
  """
7345
  Attributes:
7346
   - beginIndex
7347
   - totalItems
7348
   - brand
7349
   - category
7350
  """
7351
 
7352
  thrift_spec = (
7353
    None, # 0
7354
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7355
    (2, TType.I64, 'totalItems', None, None, ), # 2
7356
    (3, TType.STRING, 'brand', None, None, ), # 3
7357
    (4, TType.I64, 'category', None, None, ), # 4
7358
  )
7359
 
7360
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7361
    self.beginIndex = beginIndex
7362
    self.totalItems = totalItems
7363
    self.brand = brand
7364
    self.category = category
7365
 
7366
  def read(self, iprot):
7367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7369
      return
7370
    iprot.readStructBegin()
7371
    while True:
7372
      (fname, ftype, fid) = iprot.readFieldBegin()
7373
      if ftype == TType.STOP:
7374
        break
7375
      if fid == 1:
7376
        if ftype == TType.I64:
7377
          self.beginIndex = iprot.readI64();
7378
        else:
7379
          iprot.skip(ftype)
7380
      elif fid == 2:
7381
        if ftype == TType.I64:
7382
          self.totalItems = iprot.readI64();
7383
        else:
7384
          iprot.skip(ftype)
7385
      elif fid == 3:
7386
        if ftype == TType.STRING:
7387
          self.brand = iprot.readString();
7388
        else:
7389
          iprot.skip(ftype)
7390
      elif fid == 4:
7391
        if ftype == TType.I64:
7392
          self.category = iprot.readI64();
7393
        else:
7394
          iprot.skip(ftype)
7395
      else:
7396
        iprot.skip(ftype)
7397
      iprot.readFieldEnd()
7398
    iprot.readStructEnd()
7399
 
7400
  def write(self, oprot):
7401
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7402
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7403
      return
7404
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
7405
    if self.beginIndex is not None:
7406
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7407
      oprot.writeI64(self.beginIndex)
7408
      oprot.writeFieldEnd()
7409
    if self.totalItems is not None:
7410
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7411
      oprot.writeI64(self.totalItems)
7412
      oprot.writeFieldEnd()
7413
    if self.brand is not None:
7414
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7415
      oprot.writeString(self.brand)
7416
      oprot.writeFieldEnd()
7417
    if self.category is not None:
7418
      oprot.writeFieldBegin('category', TType.I64, 4)
7419
      oprot.writeI64(self.category)
7420
      oprot.writeFieldEnd()
7421
    oprot.writeFieldStop()
7422
    oprot.writeStructEnd()
7423
 
7424
  def validate(self):
7425
    return
7426
 
7427
 
7428
  def __repr__(self):
7429
    L = ['%s=%r' % (key, value)
7430
      for key, value in self.__dict__.iteritems()]
7431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7432
 
7433
  def __eq__(self, other):
7434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7435
 
7436
  def __ne__(self, other):
7437
    return not (self == other)
7438
 
7439
class getBestDealsCatalogIds_result:
7440
  """
7441
  Attributes:
7442
   - success
7443
   - cex
7444
  """
7445
 
7446
  thrift_spec = (
7447
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7448
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7449
  )
7450
 
7451
  def __init__(self, success=None, cex=None,):
7452
    self.success = success
7453
    self.cex = cex
7454
 
7455
  def read(self, iprot):
7456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7458
      return
7459
    iprot.readStructBegin()
7460
    while True:
7461
      (fname, ftype, fid) = iprot.readFieldBegin()
7462
      if ftype == TType.STOP:
7463
        break
7464
      if fid == 0:
7465
        if ftype == TType.LIST:
7466
          self.success = []
7467
          (_etype82, _size79) = iprot.readListBegin()
7468
          for _i83 in xrange(_size79):
7469
            _elem84 = iprot.readI64();
7470
            self.success.append(_elem84)
7471
          iprot.readListEnd()
7472
        else:
7473
          iprot.skip(ftype)
7474
      elif fid == 1:
7475
        if ftype == TType.STRUCT:
7476
          self.cex = CatalogServiceException()
7477
          self.cex.read(iprot)
7478
        else:
7479
          iprot.skip(ftype)
7480
      else:
7481
        iprot.skip(ftype)
7482
      iprot.readFieldEnd()
7483
    iprot.readStructEnd()
7484
 
7485
  def write(self, oprot):
7486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7488
      return
7489
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
7490
    if self.success is not None:
7491
      oprot.writeFieldBegin('success', TType.LIST, 0)
7492
      oprot.writeListBegin(TType.I64, len(self.success))
7493
      for iter85 in self.success:
7494
        oprot.writeI64(iter85)
7495
      oprot.writeListEnd()
7496
      oprot.writeFieldEnd()
7497
    if self.cex is not None:
7498
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7499
      self.cex.write(oprot)
7500
      oprot.writeFieldEnd()
7501
    oprot.writeFieldStop()
7502
    oprot.writeStructEnd()
7503
 
7504
  def validate(self):
7505
    return
7506
 
7507
 
7508
  def __repr__(self):
7509
    L = ['%s=%r' % (key, value)
7510
      for key, value in self.__dict__.iteritems()]
7511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7512
 
7513
  def __eq__(self, other):
7514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7515
 
7516
  def __ne__(self, other):
7517
    return not (self == other)
7518
 
7519
class getBestDealsCount_args:
7520
 
7521
  thrift_spec = (
7522
  )
7523
 
7524
  def read(self, iprot):
7525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7527
      return
7528
    iprot.readStructBegin()
7529
    while True:
7530
      (fname, ftype, fid) = iprot.readFieldBegin()
7531
      if ftype == TType.STOP:
7532
        break
7533
      else:
7534
        iprot.skip(ftype)
7535
      iprot.readFieldEnd()
7536
    iprot.readStructEnd()
7537
 
7538
  def write(self, oprot):
7539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7541
      return
7542
    oprot.writeStructBegin('getBestDealsCount_args')
7543
    oprot.writeFieldStop()
7544
    oprot.writeStructEnd()
7545
 
7546
  def validate(self):
7547
    return
7548
 
7549
 
7550
  def __repr__(self):
7551
    L = ['%s=%r' % (key, value)
7552
      for key, value in self.__dict__.iteritems()]
7553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7554
 
7555
  def __eq__(self, other):
7556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7557
 
7558
  def __ne__(self, other):
7559
    return not (self == other)
7560
 
7561
class getBestDealsCount_result:
7562
  """
7563
  Attributes:
7564
   - success
7565
   - cex
7566
  """
7567
 
7568
  thrift_spec = (
7569
    (0, TType.I64, 'success', None, None, ), # 0
7570
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7571
  )
7572
 
7573
  def __init__(self, success=None, cex=None,):
7574
    self.success = success
7575
    self.cex = cex
7576
 
7577
  def read(self, iprot):
7578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7580
      return
7581
    iprot.readStructBegin()
7582
    while True:
7583
      (fname, ftype, fid) = iprot.readFieldBegin()
7584
      if ftype == TType.STOP:
7585
        break
7586
      if fid == 0:
7587
        if ftype == TType.I64:
7588
          self.success = iprot.readI64();
7589
        else:
7590
          iprot.skip(ftype)
7591
      elif fid == 1:
7592
        if ftype == TType.STRUCT:
7593
          self.cex = CatalogServiceException()
7594
          self.cex.read(iprot)
7595
        else:
7596
          iprot.skip(ftype)
7597
      else:
7598
        iprot.skip(ftype)
7599
      iprot.readFieldEnd()
7600
    iprot.readStructEnd()
7601
 
7602
  def write(self, oprot):
7603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7605
      return
7606
    oprot.writeStructBegin('getBestDealsCount_result')
7607
    if self.success is not None:
7608
      oprot.writeFieldBegin('success', TType.I64, 0)
7609
      oprot.writeI64(self.success)
7610
      oprot.writeFieldEnd()
7611
    if self.cex is not None:
7612
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7613
      self.cex.write(oprot)
7614
      oprot.writeFieldEnd()
7615
    oprot.writeFieldStop()
7616
    oprot.writeStructEnd()
7617
 
7618
  def validate(self):
7619
    return
7620
 
7621
 
7622
  def __repr__(self):
7623
    L = ['%s=%r' % (key, value)
7624
      for key, value in self.__dict__.iteritems()]
7625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7626
 
7627
  def __eq__(self, other):
7628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7629
 
7630
  def __ne__(self, other):
7631
    return not (self == other)
7632
 
7633
class getComingSoon_args:
7634
 
7635
  thrift_spec = (
7636
  )
7637
 
7638
  def read(self, iprot):
7639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7641
      return
7642
    iprot.readStructBegin()
7643
    while True:
7644
      (fname, ftype, fid) = iprot.readFieldBegin()
7645
      if ftype == TType.STOP:
7646
        break
7647
      else:
7648
        iprot.skip(ftype)
7649
      iprot.readFieldEnd()
7650
    iprot.readStructEnd()
7651
 
7652
  def write(self, oprot):
7653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7655
      return
7656
    oprot.writeStructBegin('getComingSoon_args')
7657
    oprot.writeFieldStop()
7658
    oprot.writeStructEnd()
7659
 
7660
  def validate(self):
7661
    return
7662
 
7663
 
7664
  def __repr__(self):
7665
    L = ['%s=%r' % (key, value)
7666
      for key, value in self.__dict__.iteritems()]
7667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7668
 
7669
  def __eq__(self, other):
7670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7671
 
7672
  def __ne__(self, other):
7673
    return not (self == other)
7674
 
7675
class getComingSoon_result:
7676
  """
7677
  Attributes:
7678
   - success
7679
   - isex
7680
  """
7681
 
7682
  thrift_spec = (
7683
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7684
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7685
  )
7686
 
7687
  def __init__(self, success=None, isex=None,):
7688
    self.success = success
7689
    self.isex = isex
7690
 
7691
  def read(self, iprot):
7692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7694
      return
7695
    iprot.readStructBegin()
7696
    while True:
7697
      (fname, ftype, fid) = iprot.readFieldBegin()
7698
      if ftype == TType.STOP:
7699
        break
7700
      if fid == 0:
7701
        if ftype == TType.LIST:
7702
          self.success = []
7703
          (_etype89, _size86) = iprot.readListBegin()
7704
          for _i90 in xrange(_size86):
7705
            _elem91 = Item()
7706
            _elem91.read(iprot)
7707
            self.success.append(_elem91)
7708
          iprot.readListEnd()
7709
        else:
7710
          iprot.skip(ftype)
7711
      elif fid == 1:
7712
        if ftype == TType.STRUCT:
7713
          self.isex = CatalogServiceException()
7714
          self.isex.read(iprot)
7715
        else:
7716
          iprot.skip(ftype)
7717
      else:
7718
        iprot.skip(ftype)
7719
      iprot.readFieldEnd()
7720
    iprot.readStructEnd()
7721
 
7722
  def write(self, oprot):
7723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7725
      return
7726
    oprot.writeStructBegin('getComingSoon_result')
7727
    if self.success is not None:
7728
      oprot.writeFieldBegin('success', TType.LIST, 0)
7729
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7730
      for iter92 in self.success:
7731
        iter92.write(oprot)
7732
      oprot.writeListEnd()
7733
      oprot.writeFieldEnd()
7734
    if self.isex is not None:
7735
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7736
      self.isex.write(oprot)
7737
      oprot.writeFieldEnd()
7738
    oprot.writeFieldStop()
7739
    oprot.writeStructEnd()
7740
 
7741
  def validate(self):
7742
    return
7743
 
7744
 
7745
  def __repr__(self):
7746
    L = ['%s=%r' % (key, value)
7747
      for key, value in self.__dict__.iteritems()]
7748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7749
 
7750
  def __eq__(self, other):
7751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7752
 
7753
  def __ne__(self, other):
7754
    return not (self == other)
7755
 
7756
class getComingSoonCatalogIds_args:
7757
  """
7758
  Attributes:
7759
   - beginIndex
7760
   - totalItems
7761
   - brand
7762
   - category
7763
  """
7764
 
7765
  thrift_spec = (
7766
    None, # 0
7767
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7768
    (2, TType.I64, 'totalItems', None, None, ), # 2
7769
    (3, TType.STRING, 'brand', None, None, ), # 3
7770
    (4, TType.I64, 'category', None, None, ), # 4
7771
  )
7772
 
7773
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7774
    self.beginIndex = beginIndex
7775
    self.totalItems = totalItems
7776
    self.brand = brand
7777
    self.category = category
7778
 
7779
  def read(self, iprot):
7780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7782
      return
7783
    iprot.readStructBegin()
7784
    while True:
7785
      (fname, ftype, fid) = iprot.readFieldBegin()
7786
      if ftype == TType.STOP:
7787
        break
7788
      if fid == 1:
7789
        if ftype == TType.I64:
7790
          self.beginIndex = iprot.readI64();
7791
        else:
7792
          iprot.skip(ftype)
7793
      elif fid == 2:
7794
        if ftype == TType.I64:
7795
          self.totalItems = iprot.readI64();
7796
        else:
7797
          iprot.skip(ftype)
7798
      elif fid == 3:
7799
        if ftype == TType.STRING:
7800
          self.brand = iprot.readString();
7801
        else:
7802
          iprot.skip(ftype)
7803
      elif fid == 4:
7804
        if ftype == TType.I64:
7805
          self.category = iprot.readI64();
7806
        else:
7807
          iprot.skip(ftype)
7808
      else:
7809
        iprot.skip(ftype)
7810
      iprot.readFieldEnd()
7811
    iprot.readStructEnd()
7812
 
7813
  def write(self, oprot):
7814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7816
      return
7817
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7818
    if self.beginIndex is not None:
7819
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7820
      oprot.writeI64(self.beginIndex)
7821
      oprot.writeFieldEnd()
7822
    if self.totalItems is not None:
7823
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7824
      oprot.writeI64(self.totalItems)
7825
      oprot.writeFieldEnd()
7826
    if self.brand is not None:
7827
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7828
      oprot.writeString(self.brand)
7829
      oprot.writeFieldEnd()
7830
    if self.category is not None:
7831
      oprot.writeFieldBegin('category', TType.I64, 4)
7832
      oprot.writeI64(self.category)
7833
      oprot.writeFieldEnd()
7834
    oprot.writeFieldStop()
7835
    oprot.writeStructEnd()
7836
 
7837
  def validate(self):
7838
    return
7839
 
7840
 
7841
  def __repr__(self):
7842
    L = ['%s=%r' % (key, value)
7843
      for key, value in self.__dict__.iteritems()]
7844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7845
 
7846
  def __eq__(self, other):
7847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7848
 
7849
  def __ne__(self, other):
7850
    return not (self == other)
7851
 
7852
class getComingSoonCatalogIds_result:
7853
  """
7854
  Attributes:
7855
   - success
7856
   - cex
7857
  """
7858
 
7859
  thrift_spec = (
7860
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7861
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7862
  )
7863
 
7864
  def __init__(self, success=None, cex=None,):
7865
    self.success = success
7866
    self.cex = cex
7867
 
7868
  def read(self, iprot):
7869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7871
      return
7872
    iprot.readStructBegin()
7873
    while True:
7874
      (fname, ftype, fid) = iprot.readFieldBegin()
7875
      if ftype == TType.STOP:
7876
        break
7877
      if fid == 0:
7878
        if ftype == TType.LIST:
7879
          self.success = []
7880
          (_etype96, _size93) = iprot.readListBegin()
7881
          for _i97 in xrange(_size93):
7882
            _elem98 = iprot.readI64();
7883
            self.success.append(_elem98)
7884
          iprot.readListEnd()
7885
        else:
7886
          iprot.skip(ftype)
7887
      elif fid == 1:
7888
        if ftype == TType.STRUCT:
7889
          self.cex = CatalogServiceException()
7890
          self.cex.read(iprot)
7891
        else:
7892
          iprot.skip(ftype)
7893
      else:
7894
        iprot.skip(ftype)
7895
      iprot.readFieldEnd()
7896
    iprot.readStructEnd()
7897
 
7898
  def write(self, oprot):
7899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7901
      return
7902
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7903
    if self.success is not None:
7904
      oprot.writeFieldBegin('success', TType.LIST, 0)
7905
      oprot.writeListBegin(TType.I64, len(self.success))
7906
      for iter99 in self.success:
7907
        oprot.writeI64(iter99)
7908
      oprot.writeListEnd()
7909
      oprot.writeFieldEnd()
7910
    if self.cex is not None:
7911
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7912
      self.cex.write(oprot)
7913
      oprot.writeFieldEnd()
7914
    oprot.writeFieldStop()
7915
    oprot.writeStructEnd()
7916
 
7917
  def validate(self):
7918
    return
7919
 
7920
 
7921
  def __repr__(self):
7922
    L = ['%s=%r' % (key, value)
7923
      for key, value in self.__dict__.iteritems()]
7924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7925
 
7926
  def __eq__(self, other):
7927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7928
 
7929
  def __ne__(self, other):
7930
    return not (self == other)
7931
 
7932
class getComingSoonCount_args:
7933
 
7934
  thrift_spec = (
7935
  )
7936
 
7937
  def read(self, iprot):
7938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7940
      return
7941
    iprot.readStructBegin()
7942
    while True:
7943
      (fname, ftype, fid) = iprot.readFieldBegin()
7944
      if ftype == TType.STOP:
7945
        break
7946
      else:
7947
        iprot.skip(ftype)
7948
      iprot.readFieldEnd()
7949
    iprot.readStructEnd()
7950
 
7951
  def write(self, oprot):
7952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7954
      return
7955
    oprot.writeStructBegin('getComingSoonCount_args')
7956
    oprot.writeFieldStop()
7957
    oprot.writeStructEnd()
7958
 
7959
  def validate(self):
7960
    return
7961
 
7962
 
7963
  def __repr__(self):
7964
    L = ['%s=%r' % (key, value)
7965
      for key, value in self.__dict__.iteritems()]
7966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7967
 
7968
  def __eq__(self, other):
7969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7970
 
7971
  def __ne__(self, other):
7972
    return not (self == other)
7973
 
7974
class getComingSoonCount_result:
7975
  """
7976
  Attributes:
7977
   - success
7978
   - cex
7979
  """
7980
 
7981
  thrift_spec = (
7982
    (0, TType.I64, 'success', None, None, ), # 0
7983
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7984
  )
7985
 
7986
  def __init__(self, success=None, cex=None,):
7987
    self.success = success
7988
    self.cex = cex
7989
 
7990
  def read(self, iprot):
7991
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7992
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7993
      return
7994
    iprot.readStructBegin()
7995
    while True:
7996
      (fname, ftype, fid) = iprot.readFieldBegin()
7997
      if ftype == TType.STOP:
7998
        break
7999
      if fid == 0:
8000
        if ftype == TType.I64:
8001
          self.success = iprot.readI64();
8002
        else:
8003
          iprot.skip(ftype)
8004
      elif fid == 1:
8005
        if ftype == TType.STRUCT:
8006
          self.cex = CatalogServiceException()
8007
          self.cex.read(iprot)
8008
        else:
8009
          iprot.skip(ftype)
8010
      else:
8011
        iprot.skip(ftype)
8012
      iprot.readFieldEnd()
8013
    iprot.readStructEnd()
8014
 
8015
  def write(self, oprot):
8016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8018
      return
8019
    oprot.writeStructBegin('getComingSoonCount_result')
8020
    if self.success is not None:
8021
      oprot.writeFieldBegin('success', TType.I64, 0)
8022
      oprot.writeI64(self.success)
8023
      oprot.writeFieldEnd()
8024
    if self.cex is not None:
8025
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8026
      self.cex.write(oprot)
8027
      oprot.writeFieldEnd()
8028
    oprot.writeFieldStop()
8029
    oprot.writeStructEnd()
8030
 
8031
  def validate(self):
8032
    return
8033
 
8034
 
8035
  def __repr__(self):
8036
    L = ['%s=%r' % (key, value)
8037
      for key, value in self.__dict__.iteritems()]
8038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8039
 
8040
  def __eq__(self, other):
8041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8042
 
8043
  def __ne__(self, other):
8044
    return not (self == other)
8045
 
8046
class getLatestArrivals_args:
8047
 
8048
  thrift_spec = (
8049
  )
8050
 
8051
  def read(self, iprot):
8052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8054
      return
8055
    iprot.readStructBegin()
8056
    while True:
8057
      (fname, ftype, fid) = iprot.readFieldBegin()
8058
      if ftype == TType.STOP:
8059
        break
8060
      else:
8061
        iprot.skip(ftype)
8062
      iprot.readFieldEnd()
8063
    iprot.readStructEnd()
8064
 
8065
  def write(self, oprot):
8066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8068
      return
8069
    oprot.writeStructBegin('getLatestArrivals_args')
8070
    oprot.writeFieldStop()
8071
    oprot.writeStructEnd()
8072
 
8073
  def validate(self):
8074
    return
8075
 
8076
 
8077
  def __repr__(self):
8078
    L = ['%s=%r' % (key, value)
8079
      for key, value in self.__dict__.iteritems()]
8080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8081
 
8082
  def __eq__(self, other):
8083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8084
 
8085
  def __ne__(self, other):
8086
    return not (self == other)
8087
 
8088
class getLatestArrivals_result:
8089
  """
8090
  Attributes:
8091
   - success
8092
   - isex
8093
  """
8094
 
8095
  thrift_spec = (
8096
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8097
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8098
  )
8099
 
8100
  def __init__(self, success=None, isex=None,):
8101
    self.success = success
8102
    self.isex = isex
8103
 
8104
  def read(self, iprot):
8105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8107
      return
8108
    iprot.readStructBegin()
8109
    while True:
8110
      (fname, ftype, fid) = iprot.readFieldBegin()
8111
      if ftype == TType.STOP:
8112
        break
8113
      if fid == 0:
8114
        if ftype == TType.LIST:
8115
          self.success = []
8116
          (_etype103, _size100) = iprot.readListBegin()
8117
          for _i104 in xrange(_size100):
8118
            _elem105 = Item()
8119
            _elem105.read(iprot)
8120
            self.success.append(_elem105)
8121
          iprot.readListEnd()
8122
        else:
8123
          iprot.skip(ftype)
8124
      elif fid == 1:
8125
        if ftype == TType.STRUCT:
8126
          self.isex = CatalogServiceException()
8127
          self.isex.read(iprot)
8128
        else:
8129
          iprot.skip(ftype)
8130
      else:
8131
        iprot.skip(ftype)
8132
      iprot.readFieldEnd()
8133
    iprot.readStructEnd()
8134
 
8135
  def write(self, oprot):
8136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8138
      return
8139
    oprot.writeStructBegin('getLatestArrivals_result')
8140
    if self.success is not None:
8141
      oprot.writeFieldBegin('success', TType.LIST, 0)
8142
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8143
      for iter106 in self.success:
8144
        iter106.write(oprot)
8145
      oprot.writeListEnd()
8146
      oprot.writeFieldEnd()
8147
    if self.isex is not None:
8148
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8149
      self.isex.write(oprot)
8150
      oprot.writeFieldEnd()
8151
    oprot.writeFieldStop()
8152
    oprot.writeStructEnd()
8153
 
8154
  def validate(self):
8155
    return
8156
 
8157
 
8158
  def __repr__(self):
8159
    L = ['%s=%r' % (key, value)
8160
      for key, value in self.__dict__.iteritems()]
8161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8162
 
8163
  def __eq__(self, other):
8164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8165
 
8166
  def __ne__(self, other):
8167
    return not (self == other)
8168
 
8169
class getLatestArrivalsCatalogIds_args:
8170
  """
8171
  Attributes:
8172
   - beginIndex
8173
   - totalItems
8174
   - brand
8175
   - categories
8176
  """
8177
 
8178
  thrift_spec = (
8179
    None, # 0
8180
    (1, TType.I64, 'beginIndex', None, None, ), # 1
8181
    (2, TType.I64, 'totalItems', None, None, ), # 2
8182
    (3, TType.STRING, 'brand', None, None, ), # 3
8183
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
8184
  )
8185
 
8186
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
8187
    self.beginIndex = beginIndex
8188
    self.totalItems = totalItems
8189
    self.brand = brand
8190
    self.categories = categories
8191
 
8192
  def read(self, iprot):
8193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8195
      return
8196
    iprot.readStructBegin()
8197
    while True:
8198
      (fname, ftype, fid) = iprot.readFieldBegin()
8199
      if ftype == TType.STOP:
8200
        break
8201
      if fid == 1:
8202
        if ftype == TType.I64:
8203
          self.beginIndex = iprot.readI64();
8204
        else:
8205
          iprot.skip(ftype)
8206
      elif fid == 2:
8207
        if ftype == TType.I64:
8208
          self.totalItems = iprot.readI64();
8209
        else:
8210
          iprot.skip(ftype)
8211
      elif fid == 3:
8212
        if ftype == TType.STRING:
8213
          self.brand = iprot.readString();
8214
        else:
8215
          iprot.skip(ftype)
8216
      elif fid == 4:
8217
        if ftype == TType.LIST:
8218
          self.categories = []
8219
          (_etype110, _size107) = iprot.readListBegin()
8220
          for _i111 in xrange(_size107):
8221
            _elem112 = iprot.readI64();
8222
            self.categories.append(_elem112)
8223
          iprot.readListEnd()
8224
        else:
8225
          iprot.skip(ftype)
8226
      else:
8227
        iprot.skip(ftype)
8228
      iprot.readFieldEnd()
8229
    iprot.readStructEnd()
8230
 
8231
  def write(self, oprot):
8232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8234
      return
8235
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
8236
    if self.beginIndex is not None:
8237
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
8238
      oprot.writeI64(self.beginIndex)
8239
      oprot.writeFieldEnd()
8240
    if self.totalItems is not None:
8241
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
8242
      oprot.writeI64(self.totalItems)
8243
      oprot.writeFieldEnd()
8244
    if self.brand is not None:
8245
      oprot.writeFieldBegin('brand', TType.STRING, 3)
8246
      oprot.writeString(self.brand)
8247
      oprot.writeFieldEnd()
8248
    if self.categories is not None:
8249
      oprot.writeFieldBegin('categories', TType.LIST, 4)
8250
      oprot.writeListBegin(TType.I64, len(self.categories))
8251
      for iter113 in self.categories:
8252
        oprot.writeI64(iter113)
8253
      oprot.writeListEnd()
8254
      oprot.writeFieldEnd()
8255
    oprot.writeFieldStop()
8256
    oprot.writeStructEnd()
8257
 
8258
  def validate(self):
8259
    return
8260
 
8261
 
8262
  def __repr__(self):
8263
    L = ['%s=%r' % (key, value)
8264
      for key, value in self.__dict__.iteritems()]
8265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8266
 
8267
  def __eq__(self, other):
8268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8269
 
8270
  def __ne__(self, other):
8271
    return not (self == other)
8272
 
8273
class getLatestArrivalsCatalogIds_result:
8274
  """
8275
  Attributes:
8276
   - success
8277
   - cex
8278
  """
8279
 
8280
  thrift_spec = (
8281
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8282
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8283
  )
8284
 
8285
  def __init__(self, success=None, cex=None,):
8286
    self.success = success
8287
    self.cex = cex
8288
 
8289
  def read(self, iprot):
8290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8292
      return
8293
    iprot.readStructBegin()
8294
    while True:
8295
      (fname, ftype, fid) = iprot.readFieldBegin()
8296
      if ftype == TType.STOP:
8297
        break
8298
      if fid == 0:
8299
        if ftype == TType.LIST:
8300
          self.success = []
8301
          (_etype117, _size114) = iprot.readListBegin()
8302
          for _i118 in xrange(_size114):
8303
            _elem119 = iprot.readI64();
8304
            self.success.append(_elem119)
8305
          iprot.readListEnd()
8306
        else:
8307
          iprot.skip(ftype)
8308
      elif fid == 1:
8309
        if ftype == TType.STRUCT:
8310
          self.cex = CatalogServiceException()
8311
          self.cex.read(iprot)
8312
        else:
8313
          iprot.skip(ftype)
8314
      else:
8315
        iprot.skip(ftype)
8316
      iprot.readFieldEnd()
8317
    iprot.readStructEnd()
8318
 
8319
  def write(self, oprot):
8320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8322
      return
8323
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
8324
    if self.success is not None:
8325
      oprot.writeFieldBegin('success', TType.LIST, 0)
8326
      oprot.writeListBegin(TType.I64, len(self.success))
8327
      for iter120 in self.success:
8328
        oprot.writeI64(iter120)
8329
      oprot.writeListEnd()
8330
      oprot.writeFieldEnd()
8331
    if self.cex is not None:
8332
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8333
      self.cex.write(oprot)
8334
      oprot.writeFieldEnd()
8335
    oprot.writeFieldStop()
8336
    oprot.writeStructEnd()
8337
 
8338
  def validate(self):
8339
    return
8340
 
8341
 
8342
  def __repr__(self):
8343
    L = ['%s=%r' % (key, value)
8344
      for key, value in self.__dict__.iteritems()]
8345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8346
 
8347
  def __eq__(self, other):
8348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8349
 
8350
  def __ne__(self, other):
8351
    return not (self == other)
8352
 
8353
class getLatestArrivalsCount_args:
8354
 
8355
  thrift_spec = (
8356
  )
8357
 
8358
  def read(self, iprot):
8359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8361
      return
8362
    iprot.readStructBegin()
8363
    while True:
8364
      (fname, ftype, fid) = iprot.readFieldBegin()
8365
      if ftype == TType.STOP:
8366
        break
8367
      else:
8368
        iprot.skip(ftype)
8369
      iprot.readFieldEnd()
8370
    iprot.readStructEnd()
8371
 
8372
  def write(self, oprot):
8373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8375
      return
8376
    oprot.writeStructBegin('getLatestArrivalsCount_args')
8377
    oprot.writeFieldStop()
8378
    oprot.writeStructEnd()
8379
 
8380
  def validate(self):
8381
    return
8382
 
8383
 
8384
  def __repr__(self):
8385
    L = ['%s=%r' % (key, value)
8386
      for key, value in self.__dict__.iteritems()]
8387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8388
 
8389
  def __eq__(self, other):
8390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8391
 
8392
  def __ne__(self, other):
8393
    return not (self == other)
8394
 
8395
class getLatestArrivalsCount_result:
8396
  """
8397
  Attributes:
8398
   - success
8399
   - cex
8400
  """
8401
 
8402
  thrift_spec = (
8403
    (0, TType.I64, 'success', None, None, ), # 0
8404
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8405
  )
8406
 
8407
  def __init__(self, success=None, cex=None,):
8408
    self.success = success
8409
    self.cex = cex
8410
 
8411
  def read(self, iprot):
8412
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8413
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8414
      return
8415
    iprot.readStructBegin()
8416
    while True:
8417
      (fname, ftype, fid) = iprot.readFieldBegin()
8418
      if ftype == TType.STOP:
8419
        break
8420
      if fid == 0:
8421
        if ftype == TType.I64:
8422
          self.success = iprot.readI64();
8423
        else:
8424
          iprot.skip(ftype)
8425
      elif fid == 1:
8426
        if ftype == TType.STRUCT:
8427
          self.cex = CatalogServiceException()
8428
          self.cex.read(iprot)
8429
        else:
8430
          iprot.skip(ftype)
8431
      else:
8432
        iprot.skip(ftype)
8433
      iprot.readFieldEnd()
8434
    iprot.readStructEnd()
8435
 
8436
  def write(self, oprot):
8437
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8438
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8439
      return
8440
    oprot.writeStructBegin('getLatestArrivalsCount_result')
8441
    if self.success is not None:
8442
      oprot.writeFieldBegin('success', TType.I64, 0)
8443
      oprot.writeI64(self.success)
8444
      oprot.writeFieldEnd()
8445
    if self.cex is not None:
8446
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8447
      self.cex.write(oprot)
8448
      oprot.writeFieldEnd()
8449
    oprot.writeFieldStop()
8450
    oprot.writeStructEnd()
8451
 
8452
  def validate(self):
8453
    return
8454
 
8455
 
8456
  def __repr__(self):
8457
    L = ['%s=%r' % (key, value)
8458
      for key, value in self.__dict__.iteritems()]
8459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8460
 
8461
  def __eq__(self, other):
8462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8463
 
8464
  def __ne__(self, other):
8465
    return not (self == other)
8466
 
8467
class generateNewEntityID_args:
8468
 
8469
  thrift_spec = (
8470
  )
8471
 
8472
  def read(self, iprot):
8473
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8474
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8475
      return
8476
    iprot.readStructBegin()
8477
    while True:
8478
      (fname, ftype, fid) = iprot.readFieldBegin()
8479
      if ftype == TType.STOP:
8480
        break
8481
      else:
8482
        iprot.skip(ftype)
8483
      iprot.readFieldEnd()
8484
    iprot.readStructEnd()
8485
 
8486
  def write(self, oprot):
8487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8489
      return
8490
    oprot.writeStructBegin('generateNewEntityID_args')
8491
    oprot.writeFieldStop()
8492
    oprot.writeStructEnd()
8493
 
8494
  def validate(self):
8495
    return
8496
 
8497
 
8498
  def __repr__(self):
8499
    L = ['%s=%r' % (key, value)
8500
      for key, value in self.__dict__.iteritems()]
8501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8502
 
8503
  def __eq__(self, other):
8504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8505
 
8506
  def __ne__(self, other):
8507
    return not (self == other)
8508
 
8509
class generateNewEntityID_result:
8510
  """
8511
  Attributes:
8512
   - success
8513
  """
8514
 
8515
  thrift_spec = (
8516
    (0, TType.I64, 'success', None, None, ), # 0
8517
  )
8518
 
8519
  def __init__(self, success=None,):
8520
    self.success = success
8521
 
8522
  def read(self, iprot):
8523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8525
      return
8526
    iprot.readStructBegin()
8527
    while True:
8528
      (fname, ftype, fid) = iprot.readFieldBegin()
8529
      if ftype == TType.STOP:
8530
        break
8531
      if fid == 0:
8532
        if ftype == TType.I64:
8533
          self.success = iprot.readI64();
8534
        else:
8535
          iprot.skip(ftype)
8536
      else:
8537
        iprot.skip(ftype)
8538
      iprot.readFieldEnd()
8539
    iprot.readStructEnd()
8540
 
8541
  def write(self, oprot):
8542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8544
      return
8545
    oprot.writeStructBegin('generateNewEntityID_result')
8546
    if self.success is not None:
8547
      oprot.writeFieldBegin('success', TType.I64, 0)
8548
      oprot.writeI64(self.success)
8549
      oprot.writeFieldEnd()
8550
    oprot.writeFieldStop()
8551
    oprot.writeStructEnd()
8552
 
8553
  def validate(self):
8554
    return
8555
 
8556
 
8557
  def __repr__(self):
8558
    L = ['%s=%r' % (key, value)
8559
      for key, value in self.__dict__.iteritems()]
8560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8561
 
8562
  def __eq__(self, other):
8563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8564
 
8565
  def __ne__(self, other):
8566
    return not (self == other)
8567
 
8568
class addCategory_args:
8569
  """
8570
  Attributes:
8571
   - category
8572
  """
8573
 
8574
  thrift_spec = (
8575
    None, # 0
8576
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
8577
  )
8578
 
8579
  def __init__(self, category=None,):
8580
    self.category = category
8581
 
8582
  def read(self, iprot):
8583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8585
      return
8586
    iprot.readStructBegin()
8587
    while True:
8588
      (fname, ftype, fid) = iprot.readFieldBegin()
8589
      if ftype == TType.STOP:
8590
        break
8591
      if fid == 1:
8592
        if ftype == TType.STRUCT:
8593
          self.category = Category()
8594
          self.category.read(iprot)
8595
        else:
8596
          iprot.skip(ftype)
8597
      else:
8598
        iprot.skip(ftype)
8599
      iprot.readFieldEnd()
8600
    iprot.readStructEnd()
8601
 
8602
  def write(self, oprot):
8603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8605
      return
8606
    oprot.writeStructBegin('addCategory_args')
8607
    if self.category is not None:
8608
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8609
      self.category.write(oprot)
8610
      oprot.writeFieldEnd()
8611
    oprot.writeFieldStop()
8612
    oprot.writeStructEnd()
8613
 
8614
  def validate(self):
8615
    return
8616
 
8617
 
8618
  def __repr__(self):
8619
    L = ['%s=%r' % (key, value)
8620
      for key, value in self.__dict__.iteritems()]
8621
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8622
 
8623
  def __eq__(self, other):
8624
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8625
 
8626
  def __ne__(self, other):
8627
    return not (self == other)
8628
 
8629
class addCategory_result:
8630
  """
8631
  Attributes:
8632
   - success
8633
  """
8634
 
8635
  thrift_spec = (
8636
    (0, TType.BOOL, 'success', None, None, ), # 0
8637
  )
8638
 
8639
  def __init__(self, success=None,):
8640
    self.success = success
8641
 
8642
  def read(self, iprot):
8643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8645
      return
8646
    iprot.readStructBegin()
8647
    while True:
8648
      (fname, ftype, fid) = iprot.readFieldBegin()
8649
      if ftype == TType.STOP:
8650
        break
8651
      if fid == 0:
8652
        if ftype == TType.BOOL:
8653
          self.success = iprot.readBool();
8654
        else:
8655
          iprot.skip(ftype)
8656
      else:
8657
        iprot.skip(ftype)
8658
      iprot.readFieldEnd()
8659
    iprot.readStructEnd()
8660
 
8661
  def write(self, oprot):
8662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8664
      return
8665
    oprot.writeStructBegin('addCategory_result')
8666
    if self.success is not None:
8667
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8668
      oprot.writeBool(self.success)
8669
      oprot.writeFieldEnd()
8670
    oprot.writeFieldStop()
8671
    oprot.writeStructEnd()
8672
 
8673
  def validate(self):
8674
    return
8675
 
8676
 
8677
  def __repr__(self):
8678
    L = ['%s=%r' % (key, value)
8679
      for key, value in self.__dict__.iteritems()]
8680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8681
 
8682
  def __eq__(self, other):
8683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8684
 
8685
  def __ne__(self, other):
8686
    return not (self == other)
8687
 
8688
class getCategory_args:
8689
  """
8690
  Attributes:
8691
   - id
8692
  """
8693
 
8694
  thrift_spec = (
8695
    None, # 0
8696
    (1, TType.I64, 'id', None, None, ), # 1
8697
  )
8698
 
8699
  def __init__(self, id=None,):
8700
    self.id = id
8701
 
8702
  def read(self, iprot):
8703
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8704
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8705
      return
8706
    iprot.readStructBegin()
8707
    while True:
8708
      (fname, ftype, fid) = iprot.readFieldBegin()
8709
      if ftype == TType.STOP:
8710
        break
8711
      if fid == 1:
8712
        if ftype == TType.I64:
8713
          self.id = iprot.readI64();
8714
        else:
8715
          iprot.skip(ftype)
8716
      else:
8717
        iprot.skip(ftype)
8718
      iprot.readFieldEnd()
8719
    iprot.readStructEnd()
8720
 
8721
  def write(self, oprot):
8722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8724
      return
8725
    oprot.writeStructBegin('getCategory_args')
8726
    if self.id is not None:
8727
      oprot.writeFieldBegin('id', TType.I64, 1)
8728
      oprot.writeI64(self.id)
8729
      oprot.writeFieldEnd()
8730
    oprot.writeFieldStop()
8731
    oprot.writeStructEnd()
8732
 
8733
  def validate(self):
8734
    return
8735
 
8736
 
8737
  def __repr__(self):
8738
    L = ['%s=%r' % (key, value)
8739
      for key, value in self.__dict__.iteritems()]
8740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8741
 
8742
  def __eq__(self, other):
8743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8744
 
8745
  def __ne__(self, other):
8746
    return not (self == other)
8747
 
8748
class getCategory_result:
8749
  """
8750
  Attributes:
8751
   - success
8752
  """
8753
 
8754
  thrift_spec = (
8755
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8756
  )
8757
 
8758
  def __init__(self, success=None,):
8759
    self.success = success
8760
 
8761
  def read(self, iprot):
8762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8764
      return
8765
    iprot.readStructBegin()
8766
    while True:
8767
      (fname, ftype, fid) = iprot.readFieldBegin()
8768
      if ftype == TType.STOP:
8769
        break
8770
      if fid == 0:
8771
        if ftype == TType.STRUCT:
8772
          self.success = Category()
8773
          self.success.read(iprot)
8774
        else:
8775
          iprot.skip(ftype)
8776
      else:
8777
        iprot.skip(ftype)
8778
      iprot.readFieldEnd()
8779
    iprot.readStructEnd()
8780
 
8781
  def write(self, oprot):
8782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8784
      return
8785
    oprot.writeStructBegin('getCategory_result')
8786
    if self.success is not None:
8787
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8788
      self.success.write(oprot)
8789
      oprot.writeFieldEnd()
8790
    oprot.writeFieldStop()
8791
    oprot.writeStructEnd()
8792
 
8793
  def validate(self):
8794
    return
8795
 
8796
 
8797
  def __repr__(self):
8798
    L = ['%s=%r' % (key, value)
8799
      for key, value in self.__dict__.iteritems()]
8800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8801
 
8802
  def __eq__(self, other):
8803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8804
 
8805
  def __ne__(self, other):
8806
    return not (self == other)
8807
 
8808
class getAllCategories_args:
8809
 
8810
  thrift_spec = (
8811
  )
8812
 
8813
  def read(self, iprot):
8814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8816
      return
8817
    iprot.readStructBegin()
8818
    while True:
8819
      (fname, ftype, fid) = iprot.readFieldBegin()
8820
      if ftype == TType.STOP:
8821
        break
8822
      else:
8823
        iprot.skip(ftype)
8824
      iprot.readFieldEnd()
8825
    iprot.readStructEnd()
8826
 
8827
  def write(self, oprot):
8828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8830
      return
8831
    oprot.writeStructBegin('getAllCategories_args')
8832
    oprot.writeFieldStop()
8833
    oprot.writeStructEnd()
8834
 
8835
  def validate(self):
8836
    return
8837
 
8838
 
8839
  def __repr__(self):
8840
    L = ['%s=%r' % (key, value)
8841
      for key, value in self.__dict__.iteritems()]
8842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8843
 
8844
  def __eq__(self, other):
8845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8846
 
8847
  def __ne__(self, other):
8848
    return not (self == other)
8849
 
8850
class getAllCategories_result:
8851
  """
8852
  Attributes:
8853
   - success
8854
  """
8855
 
8856
  thrift_spec = (
8857
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8858
  )
8859
 
8860
  def __init__(self, success=None,):
8861
    self.success = success
8862
 
8863
  def read(self, iprot):
8864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8866
      return
8867
    iprot.readStructBegin()
8868
    while True:
8869
      (fname, ftype, fid) = iprot.readFieldBegin()
8870
      if ftype == TType.STOP:
8871
        break
8872
      if fid == 0:
8873
        if ftype == TType.LIST:
8874
          self.success = []
8875
          (_etype124, _size121) = iprot.readListBegin()
8876
          for _i125 in xrange(_size121):
8877
            _elem126 = Category()
8878
            _elem126.read(iprot)
8879
            self.success.append(_elem126)
8880
          iprot.readListEnd()
8881
        else:
8882
          iprot.skip(ftype)
8883
      else:
8884
        iprot.skip(ftype)
8885
      iprot.readFieldEnd()
8886
    iprot.readStructEnd()
8887
 
8888
  def write(self, oprot):
8889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8891
      return
8892
    oprot.writeStructBegin('getAllCategories_result')
8893
    if self.success is not None:
8894
      oprot.writeFieldBegin('success', TType.LIST, 0)
8895
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8896
      for iter127 in self.success:
8897
        iter127.write(oprot)
8898
      oprot.writeListEnd()
8899
      oprot.writeFieldEnd()
8900
    oprot.writeFieldStop()
8901
    oprot.writeStructEnd()
8902
 
8903
  def validate(self):
8904
    return
8905
 
8906
 
8907
  def __repr__(self):
8908
    L = ['%s=%r' % (key, value)
8909
      for key, value in self.__dict__.iteritems()]
8910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8911
 
8912
  def __eq__(self, other):
8913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8914
 
8915
  def __ne__(self, other):
8916
    return not (self == other)
8917
 
8918
class getAllSimilarItems_args:
8919
  """
8920
  Attributes:
8921
   - itemId
8922
  """
8923
 
8924
  thrift_spec = (
8925
    None, # 0
8926
    (1, TType.I64, 'itemId', None, None, ), # 1
8927
  )
8928
 
8929
  def __init__(self, itemId=None,):
8930
    self.itemId = itemId
8931
 
8932
  def read(self, iprot):
8933
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8934
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8935
      return
8936
    iprot.readStructBegin()
8937
    while True:
8938
      (fname, ftype, fid) = iprot.readFieldBegin()
8939
      if ftype == TType.STOP:
8940
        break
8941
      if fid == 1:
8942
        if ftype == TType.I64:
8943
          self.itemId = iprot.readI64();
8944
        else:
8945
          iprot.skip(ftype)
8946
      else:
8947
        iprot.skip(ftype)
8948
      iprot.readFieldEnd()
8949
    iprot.readStructEnd()
8950
 
8951
  def write(self, oprot):
8952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8954
      return
8955
    oprot.writeStructBegin('getAllSimilarItems_args')
8956
    if self.itemId is not None:
8957
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8958
      oprot.writeI64(self.itemId)
8959
      oprot.writeFieldEnd()
8960
    oprot.writeFieldStop()
8961
    oprot.writeStructEnd()
8962
 
8963
  def validate(self):
8964
    return
8965
 
8966
 
8967
  def __repr__(self):
8968
    L = ['%s=%r' % (key, value)
8969
      for key, value in self.__dict__.iteritems()]
8970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8971
 
8972
  def __eq__(self, other):
8973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8974
 
8975
  def __ne__(self, other):
8976
    return not (self == other)
8977
 
8978
class getAllSimilarItems_result:
8979
  """
8980
  Attributes:
8981
   - success
8982
  """
8983
 
8984
  thrift_spec = (
8985
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8986
  )
8987
 
8988
  def __init__(self, success=None,):
8989
    self.success = success
8990
 
8991
  def read(self, iprot):
8992
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8993
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8994
      return
8995
    iprot.readStructBegin()
8996
    while True:
8997
      (fname, ftype, fid) = iprot.readFieldBegin()
8998
      if ftype == TType.STOP:
8999
        break
9000
      if fid == 0:
9001
        if ftype == TType.LIST:
9002
          self.success = []
9003
          (_etype131, _size128) = iprot.readListBegin()
9004
          for _i132 in xrange(_size128):
9005
            _elem133 = Item()
9006
            _elem133.read(iprot)
9007
            self.success.append(_elem133)
9008
          iprot.readListEnd()
9009
        else:
9010
          iprot.skip(ftype)
9011
      else:
9012
        iprot.skip(ftype)
9013
      iprot.readFieldEnd()
9014
    iprot.readStructEnd()
9015
 
9016
  def write(self, oprot):
9017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9019
      return
9020
    oprot.writeStructBegin('getAllSimilarItems_result')
9021
    if self.success is not None:
9022
      oprot.writeFieldBegin('success', TType.LIST, 0)
9023
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9024
      for iter134 in self.success:
9025
        iter134.write(oprot)
9026
      oprot.writeListEnd()
9027
      oprot.writeFieldEnd()
9028
    oprot.writeFieldStop()
9029
    oprot.writeStructEnd()
9030
 
9031
  def validate(self):
9032
    return
9033
 
9034
 
9035
  def __repr__(self):
9036
    L = ['%s=%r' % (key, value)
9037
      for key, value in self.__dict__.iteritems()]
9038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9039
 
9040
  def __eq__(self, other):
9041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9042
 
9043
  def __ne__(self, other):
9044
    return not (self == other)
9045
 
9046
class addSimilarItem_args:
9047
  """
9048
  Attributes:
9049
   - itemId
9050
   - catalogItemId
9051
  """
9052
 
9053
  thrift_spec = (
9054
    None, # 0
9055
    (1, TType.I64, 'itemId', None, None, ), # 1
9056
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9057
  )
9058
 
9059
  def __init__(self, itemId=None, catalogItemId=None,):
9060
    self.itemId = itemId
9061
    self.catalogItemId = catalogItemId
9062
 
9063
  def read(self, iprot):
9064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9066
      return
9067
    iprot.readStructBegin()
9068
    while True:
9069
      (fname, ftype, fid) = iprot.readFieldBegin()
9070
      if ftype == TType.STOP:
9071
        break
9072
      if fid == 1:
9073
        if ftype == TType.I64:
9074
          self.itemId = iprot.readI64();
9075
        else:
9076
          iprot.skip(ftype)
9077
      elif fid == 2:
9078
        if ftype == TType.I64:
9079
          self.catalogItemId = iprot.readI64();
9080
        else:
9081
          iprot.skip(ftype)
9082
      else:
9083
        iprot.skip(ftype)
9084
      iprot.readFieldEnd()
9085
    iprot.readStructEnd()
9086
 
9087
  def write(self, oprot):
9088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9090
      return
9091
    oprot.writeStructBegin('addSimilarItem_args')
9092
    if self.itemId is not None:
9093
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9094
      oprot.writeI64(self.itemId)
9095
      oprot.writeFieldEnd()
9096
    if self.catalogItemId is not None:
9097
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9098
      oprot.writeI64(self.catalogItemId)
9099
      oprot.writeFieldEnd()
9100
    oprot.writeFieldStop()
9101
    oprot.writeStructEnd()
9102
 
9103
  def validate(self):
9104
    return
9105
 
9106
 
9107
  def __repr__(self):
9108
    L = ['%s=%r' % (key, value)
9109
      for key, value in self.__dict__.iteritems()]
9110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9111
 
9112
  def __eq__(self, other):
9113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9114
 
9115
  def __ne__(self, other):
9116
    return not (self == other)
9117
 
9118
class addSimilarItem_result:
9119
  """
9120
  Attributes:
9121
   - success
9122
   - cex
9123
  """
9124
 
9125
  thrift_spec = (
9126
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
9127
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9128
  )
9129
 
9130
  def __init__(self, success=None, cex=None,):
9131
    self.success = success
9132
    self.cex = cex
9133
 
9134
  def read(self, iprot):
9135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9137
      return
9138
    iprot.readStructBegin()
9139
    while True:
9140
      (fname, ftype, fid) = iprot.readFieldBegin()
9141
      if ftype == TType.STOP:
9142
        break
9143
      if fid == 0:
9144
        if ftype == TType.STRUCT:
9145
          self.success = Item()
9146
          self.success.read(iprot)
9147
        else:
9148
          iprot.skip(ftype)
9149
      elif fid == 1:
9150
        if ftype == TType.STRUCT:
9151
          self.cex = CatalogServiceException()
9152
          self.cex.read(iprot)
9153
        else:
9154
          iprot.skip(ftype)
9155
      else:
9156
        iprot.skip(ftype)
9157
      iprot.readFieldEnd()
9158
    iprot.readStructEnd()
9159
 
9160
  def write(self, oprot):
9161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9163
      return
9164
    oprot.writeStructBegin('addSimilarItem_result')
9165
    if self.success is not None:
9166
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9167
      self.success.write(oprot)
9168
      oprot.writeFieldEnd()
9169
    if self.cex is not None:
9170
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9171
      self.cex.write(oprot)
9172
      oprot.writeFieldEnd()
9173
    oprot.writeFieldStop()
9174
    oprot.writeStructEnd()
9175
 
9176
  def validate(self):
9177
    return
9178
 
9179
 
9180
  def __repr__(self):
9181
    L = ['%s=%r' % (key, value)
9182
      for key, value in self.__dict__.iteritems()]
9183
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9184
 
9185
  def __eq__(self, other):
9186
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9187
 
9188
  def __ne__(self, other):
9189
    return not (self == other)
9190
 
6512 kshitij.so 9191
class addTag_args:
9192
  """
9193
  Attributes:
9194
   - displayName
9195
   - itemId
9196
  """
9197
 
9198
  thrift_spec = (
9199
    None, # 0
9200
    (1, TType.STRING, 'displayName', None, None, ), # 1
9201
    (2, TType.I64, 'itemId', None, None, ), # 2
9202
  )
9203
 
9204
  def __init__(self, displayName=None, itemId=None,):
9205
    self.displayName = displayName
9206
    self.itemId = itemId
9207
 
9208
  def read(self, iprot):
9209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9211
      return
9212
    iprot.readStructBegin()
9213
    while True:
9214
      (fname, ftype, fid) = iprot.readFieldBegin()
9215
      if ftype == TType.STOP:
9216
        break
9217
      if fid == 1:
9218
        if ftype == TType.STRING:
9219
          self.displayName = iprot.readString();
9220
        else:
9221
          iprot.skip(ftype)
9222
      elif fid == 2:
9223
        if ftype == TType.I64:
9224
          self.itemId = iprot.readI64();
9225
        else:
9226
          iprot.skip(ftype)
9227
      else:
9228
        iprot.skip(ftype)
9229
      iprot.readFieldEnd()
9230
    iprot.readStructEnd()
9231
 
9232
  def write(self, oprot):
9233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9235
      return
9236
    oprot.writeStructBegin('addTag_args')
9237
    if self.displayName is not None:
9238
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9239
      oprot.writeString(self.displayName)
9240
      oprot.writeFieldEnd()
9241
    if self.itemId is not None:
9242
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9243
      oprot.writeI64(self.itemId)
9244
      oprot.writeFieldEnd()
9245
    oprot.writeFieldStop()
9246
    oprot.writeStructEnd()
9247
 
9248
  def validate(self):
9249
    return
9250
 
9251
 
9252
  def __repr__(self):
9253
    L = ['%s=%r' % (key, value)
9254
      for key, value in self.__dict__.iteritems()]
9255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9256
 
9257
  def __eq__(self, other):
9258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9259
 
9260
  def __ne__(self, other):
9261
    return not (self == other)
9262
 
9263
class addTag_result:
9264
  """
9265
  Attributes:
9266
   - success
9267
  """
9268
 
9269
  thrift_spec = (
9270
    (0, TType.BOOL, 'success', None, None, ), # 0
9271
  )
9272
 
9273
  def __init__(self, success=None,):
9274
    self.success = success
9275
 
9276
  def read(self, iprot):
9277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9279
      return
9280
    iprot.readStructBegin()
9281
    while True:
9282
      (fname, ftype, fid) = iprot.readFieldBegin()
9283
      if ftype == TType.STOP:
9284
        break
9285
      if fid == 0:
9286
        if ftype == TType.BOOL:
9287
          self.success = iprot.readBool();
9288
        else:
9289
          iprot.skip(ftype)
9290
      else:
9291
        iprot.skip(ftype)
9292
      iprot.readFieldEnd()
9293
    iprot.readStructEnd()
9294
 
9295
  def write(self, oprot):
9296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9298
      return
9299
    oprot.writeStructBegin('addTag_result')
9300
    if self.success is not None:
9301
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9302
      oprot.writeBool(self.success)
9303
      oprot.writeFieldEnd()
9304
    oprot.writeFieldStop()
9305
    oprot.writeStructEnd()
9306
 
9307
  def validate(self):
9308
    return
9309
 
9310
 
9311
  def __repr__(self):
9312
    L = ['%s=%r' % (key, value)
9313
      for key, value in self.__dict__.iteritems()]
9314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9315
 
9316
  def __eq__(self, other):
9317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9318
 
9319
  def __ne__(self, other):
9320
    return not (self == other)
9321
 
9322
class deleteEntityTag_args:
9323
  """
9324
  Attributes:
9325
   - displayName
9326
   - itemId
9327
  """
9328
 
9329
  thrift_spec = (
9330
    None, # 0
9331
    (1, TType.STRING, 'displayName', None, None, ), # 1
9332
    (2, TType.I64, 'itemId', None, None, ), # 2
9333
  )
9334
 
9335
  def __init__(self, displayName=None, itemId=None,):
9336
    self.displayName = displayName
9337
    self.itemId = itemId
9338
 
9339
  def read(self, iprot):
9340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9342
      return
9343
    iprot.readStructBegin()
9344
    while True:
9345
      (fname, ftype, fid) = iprot.readFieldBegin()
9346
      if ftype == TType.STOP:
9347
        break
9348
      if fid == 1:
9349
        if ftype == TType.STRING:
9350
          self.displayName = iprot.readString();
9351
        else:
9352
          iprot.skip(ftype)
9353
      elif fid == 2:
9354
        if ftype == TType.I64:
9355
          self.itemId = iprot.readI64();
9356
        else:
9357
          iprot.skip(ftype)
9358
      else:
9359
        iprot.skip(ftype)
9360
      iprot.readFieldEnd()
9361
    iprot.readStructEnd()
9362
 
9363
  def write(self, oprot):
9364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9366
      return
9367
    oprot.writeStructBegin('deleteEntityTag_args')
9368
    if self.displayName is not None:
9369
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9370
      oprot.writeString(self.displayName)
9371
      oprot.writeFieldEnd()
9372
    if self.itemId is not None:
9373
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9374
      oprot.writeI64(self.itemId)
9375
      oprot.writeFieldEnd()
9376
    oprot.writeFieldStop()
9377
    oprot.writeStructEnd()
9378
 
9379
  def validate(self):
9380
    return
9381
 
9382
 
9383
  def __repr__(self):
9384
    L = ['%s=%r' % (key, value)
9385
      for key, value in self.__dict__.iteritems()]
9386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9387
 
9388
  def __eq__(self, other):
9389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9390
 
9391
  def __ne__(self, other):
9392
    return not (self == other)
9393
 
9394
class deleteEntityTag_result:
9395
  """
9396
  Attributes:
9397
   - success
9398
  """
9399
 
9400
  thrift_spec = (
9401
    (0, TType.BOOL, 'success', None, None, ), # 0
9402
  )
9403
 
9404
  def __init__(self, success=None,):
9405
    self.success = success
9406
 
9407
  def read(self, iprot):
9408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9410
      return
9411
    iprot.readStructBegin()
9412
    while True:
9413
      (fname, ftype, fid) = iprot.readFieldBegin()
9414
      if ftype == TType.STOP:
9415
        break
9416
      if fid == 0:
9417
        if ftype == TType.BOOL:
9418
          self.success = iprot.readBool();
9419
        else:
9420
          iprot.skip(ftype)
9421
      else:
9422
        iprot.skip(ftype)
9423
      iprot.readFieldEnd()
9424
    iprot.readStructEnd()
9425
 
9426
  def write(self, oprot):
9427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9429
      return
9430
    oprot.writeStructBegin('deleteEntityTag_result')
9431
    if self.success is not None:
9432
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9433
      oprot.writeBool(self.success)
9434
      oprot.writeFieldEnd()
9435
    oprot.writeFieldStop()
9436
    oprot.writeStructEnd()
9437
 
9438
  def validate(self):
9439
    return
9440
 
9441
 
9442
  def __repr__(self):
9443
    L = ['%s=%r' % (key, value)
9444
      for key, value in self.__dict__.iteritems()]
9445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9446
 
9447
  def __eq__(self, other):
9448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9449
 
9450
  def __ne__(self, other):
9451
    return not (self == other)
9452
 
9453
class deleteTag_args:
9454
  """
9455
  Attributes:
9456
   - displayName
9457
  """
9458
 
9459
  thrift_spec = (
9460
    None, # 0
9461
    (1, TType.STRING, 'displayName', None, None, ), # 1
9462
  )
9463
 
9464
  def __init__(self, displayName=None,):
9465
    self.displayName = displayName
9466
 
9467
  def read(self, iprot):
9468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9470
      return
9471
    iprot.readStructBegin()
9472
    while True:
9473
      (fname, ftype, fid) = iprot.readFieldBegin()
9474
      if ftype == TType.STOP:
9475
        break
9476
      if fid == 1:
9477
        if ftype == TType.STRING:
9478
          self.displayName = iprot.readString();
9479
        else:
9480
          iprot.skip(ftype)
9481
      else:
9482
        iprot.skip(ftype)
9483
      iprot.readFieldEnd()
9484
    iprot.readStructEnd()
9485
 
9486
  def write(self, oprot):
9487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9489
      return
9490
    oprot.writeStructBegin('deleteTag_args')
9491
    if self.displayName is not None:
9492
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9493
      oprot.writeString(self.displayName)
9494
      oprot.writeFieldEnd()
9495
    oprot.writeFieldStop()
9496
    oprot.writeStructEnd()
9497
 
9498
  def validate(self):
9499
    return
9500
 
9501
 
9502
  def __repr__(self):
9503
    L = ['%s=%r' % (key, value)
9504
      for key, value in self.__dict__.iteritems()]
9505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9506
 
9507
  def __eq__(self, other):
9508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9509
 
9510
  def __ne__(self, other):
9511
    return not (self == other)
9512
 
9513
class deleteTag_result:
9514
  """
9515
  Attributes:
9516
   - success
9517
  """
9518
 
9519
  thrift_spec = (
9520
    (0, TType.BOOL, 'success', None, None, ), # 0
9521
  )
9522
 
9523
  def __init__(self, success=None,):
9524
    self.success = success
9525
 
9526
  def read(self, iprot):
9527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9529
      return
9530
    iprot.readStructBegin()
9531
    while True:
9532
      (fname, ftype, fid) = iprot.readFieldBegin()
9533
      if ftype == TType.STOP:
9534
        break
9535
      if fid == 0:
9536
        if ftype == TType.BOOL:
9537
          self.success = iprot.readBool();
9538
        else:
9539
          iprot.skip(ftype)
9540
      else:
9541
        iprot.skip(ftype)
9542
      iprot.readFieldEnd()
9543
    iprot.readStructEnd()
9544
 
9545
  def write(self, oprot):
9546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9548
      return
9549
    oprot.writeStructBegin('deleteTag_result')
9550
    if self.success is not None:
9551
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9552
      oprot.writeBool(self.success)
9553
      oprot.writeFieldEnd()
9554
    oprot.writeFieldStop()
9555
    oprot.writeStructEnd()
9556
 
9557
  def validate(self):
9558
    return
9559
 
9560
 
9561
  def __repr__(self):
9562
    L = ['%s=%r' % (key, value)
9563
      for key, value in self.__dict__.iteritems()]
9564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9565
 
9566
  def __eq__(self, other):
9567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9568
 
9569
  def __ne__(self, other):
9570
    return not (self == other)
9571
 
9572
class getAllTags_args:
9573
 
9574
  thrift_spec = (
9575
  )
9576
 
9577
  def read(self, iprot):
9578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9580
      return
9581
    iprot.readStructBegin()
9582
    while True:
9583
      (fname, ftype, fid) = iprot.readFieldBegin()
9584
      if ftype == TType.STOP:
9585
        break
9586
      else:
9587
        iprot.skip(ftype)
9588
      iprot.readFieldEnd()
9589
    iprot.readStructEnd()
9590
 
9591
  def write(self, oprot):
9592
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9593
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9594
      return
9595
    oprot.writeStructBegin('getAllTags_args')
9596
    oprot.writeFieldStop()
9597
    oprot.writeStructEnd()
9598
 
9599
  def validate(self):
9600
    return
9601
 
9602
 
9603
  def __repr__(self):
9604
    L = ['%s=%r' % (key, value)
9605
      for key, value in self.__dict__.iteritems()]
9606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9607
 
9608
  def __eq__(self, other):
9609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9610
 
9611
  def __ne__(self, other):
9612
    return not (self == other)
9613
 
9614
class getAllTags_result:
9615
  """
9616
  Attributes:
9617
   - success
9618
  """
9619
 
9620
  thrift_spec = (
9621
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9622
  )
9623
 
9624
  def __init__(self, success=None,):
9625
    self.success = success
9626
 
9627
  def read(self, iprot):
9628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9630
      return
9631
    iprot.readStructBegin()
9632
    while True:
9633
      (fname, ftype, fid) = iprot.readFieldBegin()
9634
      if ftype == TType.STOP:
9635
        break
9636
      if fid == 0:
9637
        if ftype == TType.LIST:
9638
          self.success = []
9639
          (_etype138, _size135) = iprot.readListBegin()
9640
          for _i139 in xrange(_size135):
9641
            _elem140 = iprot.readString();
9642
            self.success.append(_elem140)
9643
          iprot.readListEnd()
9644
        else:
9645
          iprot.skip(ftype)
9646
      else:
9647
        iprot.skip(ftype)
9648
      iprot.readFieldEnd()
9649
    iprot.readStructEnd()
9650
 
9651
  def write(self, oprot):
9652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9654
      return
9655
    oprot.writeStructBegin('getAllTags_result')
9656
    if self.success is not None:
9657
      oprot.writeFieldBegin('success', TType.LIST, 0)
9658
      oprot.writeListBegin(TType.STRING, len(self.success))
9659
      for iter141 in self.success:
9660
        oprot.writeString(iter141)
9661
      oprot.writeListEnd()
9662
      oprot.writeFieldEnd()
9663
    oprot.writeFieldStop()
9664
    oprot.writeStructEnd()
9665
 
9666
  def validate(self):
9667
    return
9668
 
9669
 
9670
  def __repr__(self):
9671
    L = ['%s=%r' % (key, value)
9672
      for key, value in self.__dict__.iteritems()]
9673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9674
 
9675
  def __eq__(self, other):
9676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9677
 
9678
  def __ne__(self, other):
9679
    return not (self == other)
9680
 
9681
class getAllEntitiesByTagName_args:
9682
  """
9683
  Attributes:
9684
   - displayName
9685
  """
9686
 
9687
  thrift_spec = (
9688
    None, # 0
9689
    (1, TType.STRING, 'displayName', None, None, ), # 1
9690
  )
9691
 
9692
  def __init__(self, displayName=None,):
9693
    self.displayName = displayName
9694
 
9695
  def read(self, iprot):
9696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9698
      return
9699
    iprot.readStructBegin()
9700
    while True:
9701
      (fname, ftype, fid) = iprot.readFieldBegin()
9702
      if ftype == TType.STOP:
9703
        break
9704
      if fid == 1:
9705
        if ftype == TType.STRING:
9706
          self.displayName = iprot.readString();
9707
        else:
9708
          iprot.skip(ftype)
9709
      else:
9710
        iprot.skip(ftype)
9711
      iprot.readFieldEnd()
9712
    iprot.readStructEnd()
9713
 
9714
  def write(self, oprot):
9715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9717
      return
9718
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9719
    if self.displayName is not None:
9720
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9721
      oprot.writeString(self.displayName)
9722
      oprot.writeFieldEnd()
9723
    oprot.writeFieldStop()
9724
    oprot.writeStructEnd()
9725
 
9726
  def validate(self):
9727
    return
9728
 
9729
 
9730
  def __repr__(self):
9731
    L = ['%s=%r' % (key, value)
9732
      for key, value in self.__dict__.iteritems()]
9733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9734
 
9735
  def __eq__(self, other):
9736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9737
 
9738
  def __ne__(self, other):
9739
    return not (self == other)
9740
 
9741
class getAllEntitiesByTagName_result:
9742
  """
9743
  Attributes:
9744
   - success
9745
  """
9746
 
9747
  thrift_spec = (
9748
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9749
  )
9750
 
9751
  def __init__(self, success=None,):
9752
    self.success = success
9753
 
9754
  def read(self, iprot):
9755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9757
      return
9758
    iprot.readStructBegin()
9759
    while True:
9760
      (fname, ftype, fid) = iprot.readFieldBegin()
9761
      if ftype == TType.STOP:
9762
        break
9763
      if fid == 0:
9764
        if ftype == TType.LIST:
9765
          self.success = []
9766
          (_etype145, _size142) = iprot.readListBegin()
9767
          for _i146 in xrange(_size142):
9768
            _elem147 = iprot.readI64();
9769
            self.success.append(_elem147)
9770
          iprot.readListEnd()
9771
        else:
9772
          iprot.skip(ftype)
9773
      else:
9774
        iprot.skip(ftype)
9775
      iprot.readFieldEnd()
9776
    iprot.readStructEnd()
9777
 
9778
  def write(self, oprot):
9779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9781
      return
9782
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9783
    if self.success is not None:
9784
      oprot.writeFieldBegin('success', TType.LIST, 0)
9785
      oprot.writeListBegin(TType.I64, len(self.success))
9786
      for iter148 in self.success:
9787
        oprot.writeI64(iter148)
9788
      oprot.writeListEnd()
9789
      oprot.writeFieldEnd()
9790
    oprot.writeFieldStop()
9791
    oprot.writeStructEnd()
9792
 
9793
  def validate(self):
9794
    return
9795
 
9796
 
9797
  def __repr__(self):
9798
    L = ['%s=%r' % (key, value)
9799
      for key, value in self.__dict__.iteritems()]
9800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9801
 
9802
  def __eq__(self, other):
9803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9804
 
9805
  def __ne__(self, other):
9806
    return not (self == other)
9807
 
6845 amit.gupta 9808
class getAllEntityTags_args:
9809
 
9810
  thrift_spec = (
9811
  )
9812
 
9813
  def read(self, iprot):
9814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9816
      return
9817
    iprot.readStructBegin()
9818
    while True:
9819
      (fname, ftype, fid) = iprot.readFieldBegin()
9820
      if ftype == TType.STOP:
9821
        break
9822
      else:
9823
        iprot.skip(ftype)
9824
      iprot.readFieldEnd()
9825
    iprot.readStructEnd()
9826
 
9827
  def write(self, oprot):
9828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9830
      return
9831
    oprot.writeStructBegin('getAllEntityTags_args')
9832
    oprot.writeFieldStop()
9833
    oprot.writeStructEnd()
9834
 
9835
  def validate(self):
9836
    return
9837
 
9838
 
9839
  def __repr__(self):
9840
    L = ['%s=%r' % (key, value)
9841
      for key, value in self.__dict__.iteritems()]
9842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9843
 
9844
  def __eq__(self, other):
9845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9846
 
9847
  def __ne__(self, other):
9848
    return not (self == other)
9849
 
9850
class getAllEntityTags_result:
9851
  """
9852
  Attributes:
9853
   - success
9854
  """
9855
 
9856
  thrift_spec = (
9857
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
9858
  )
9859
 
9860
  def __init__(self, success=None,):
9861
    self.success = success
9862
 
9863
  def read(self, iprot):
9864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9866
      return
9867
    iprot.readStructBegin()
9868
    while True:
9869
      (fname, ftype, fid) = iprot.readFieldBegin()
9870
      if ftype == TType.STOP:
9871
        break
9872
      if fid == 0:
9873
        if ftype == TType.MAP:
9874
          self.success = {}
9875
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
9876
          for _i153 in xrange(_size149):
9877
            _key154 = iprot.readI64();
9878
            _val155 = []
9879
            (_etype159, _size156) = iprot.readListBegin()
9880
            for _i160 in xrange(_size156):
9881
              _elem161 = iprot.readString();
9882
              _val155.append(_elem161)
9883
            iprot.readListEnd()
9884
            self.success[_key154] = _val155
9885
          iprot.readMapEnd()
9886
        else:
9887
          iprot.skip(ftype)
9888
      else:
9889
        iprot.skip(ftype)
9890
      iprot.readFieldEnd()
9891
    iprot.readStructEnd()
9892
 
9893
  def write(self, oprot):
9894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9896
      return
9897
    oprot.writeStructBegin('getAllEntityTags_result')
9898
    if self.success is not None:
9899
      oprot.writeFieldBegin('success', TType.MAP, 0)
9900
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
9901
      for kiter162,viter163 in self.success.items():
9902
        oprot.writeI64(kiter162)
9903
        oprot.writeListBegin(TType.STRING, len(viter163))
9904
        for iter164 in viter163:
9905
          oprot.writeString(iter164)
9906
        oprot.writeListEnd()
9907
      oprot.writeMapEnd()
9908
      oprot.writeFieldEnd()
9909
    oprot.writeFieldStop()
9910
    oprot.writeStructEnd()
9911
 
9912
  def validate(self):
9913
    return
9914
 
9915
 
9916
  def __repr__(self):
9917
    L = ['%s=%r' % (key, value)
9918
      for key, value in self.__dict__.iteritems()]
9919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9920
 
9921
  def __eq__(self, other):
9922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9923
 
9924
  def __ne__(self, other):
9925
    return not (self == other)
9926
 
6850 kshitij.so 9927
class addBanner_args:
9928
  """
9929
  Attributes:
9930
   - bannerName
9931
   - imageName
9932
   - link
9933
   - priority
9934
   - isActive
9935
   - hasMap
9936
  """
9937
 
9938
  thrift_spec = (
9939
    None, # 0
9940
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9941
    (2, TType.STRING, 'imageName', None, None, ), # 2
9942
    (3, TType.STRING, 'link', None, None, ), # 3
9943
    (4, TType.I64, 'priority', None, None, ), # 4
9944
    (5, TType.BOOL, 'isActive', None, None, ), # 5
9945
    (6, TType.BOOL, 'hasMap', None, None, ), # 6
9946
  )
9947
 
9948
  def __init__(self, bannerName=None, imageName=None, link=None, priority=None, isActive=None, hasMap=None,):
9949
    self.bannerName = bannerName
9950
    self.imageName = imageName
9951
    self.link = link
9952
    self.priority = priority
9953
    self.isActive = isActive
9954
    self.hasMap = hasMap
9955
 
9956
  def read(self, iprot):
9957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9959
      return
9960
    iprot.readStructBegin()
9961
    while True:
9962
      (fname, ftype, fid) = iprot.readFieldBegin()
9963
      if ftype == TType.STOP:
9964
        break
9965
      if fid == 1:
9966
        if ftype == TType.STRING:
9967
          self.bannerName = iprot.readString();
9968
        else:
9969
          iprot.skip(ftype)
9970
      elif fid == 2:
9971
        if ftype == TType.STRING:
9972
          self.imageName = iprot.readString();
9973
        else:
9974
          iprot.skip(ftype)
9975
      elif fid == 3:
9976
        if ftype == TType.STRING:
9977
          self.link = iprot.readString();
9978
        else:
9979
          iprot.skip(ftype)
9980
      elif fid == 4:
9981
        if ftype == TType.I64:
9982
          self.priority = iprot.readI64();
9983
        else:
9984
          iprot.skip(ftype)
9985
      elif fid == 5:
9986
        if ftype == TType.BOOL:
9987
          self.isActive = iprot.readBool();
9988
        else:
9989
          iprot.skip(ftype)
9990
      elif fid == 6:
9991
        if ftype == TType.BOOL:
9992
          self.hasMap = iprot.readBool();
9993
        else:
9994
          iprot.skip(ftype)
9995
      else:
9996
        iprot.skip(ftype)
9997
      iprot.readFieldEnd()
9998
    iprot.readStructEnd()
9999
 
10000
  def write(self, oprot):
10001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10003
      return
10004
    oprot.writeStructBegin('addBanner_args')
10005
    if self.bannerName is not None:
10006
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10007
      oprot.writeString(self.bannerName)
10008
      oprot.writeFieldEnd()
10009
    if self.imageName is not None:
10010
      oprot.writeFieldBegin('imageName', TType.STRING, 2)
10011
      oprot.writeString(self.imageName)
10012
      oprot.writeFieldEnd()
10013
    if self.link is not None:
10014
      oprot.writeFieldBegin('link', TType.STRING, 3)
10015
      oprot.writeString(self.link)
10016
      oprot.writeFieldEnd()
10017
    if self.priority is not None:
10018
      oprot.writeFieldBegin('priority', TType.I64, 4)
10019
      oprot.writeI64(self.priority)
10020
      oprot.writeFieldEnd()
10021
    if self.isActive is not None:
10022
      oprot.writeFieldBegin('isActive', TType.BOOL, 5)
10023
      oprot.writeBool(self.isActive)
10024
      oprot.writeFieldEnd()
10025
    if self.hasMap is not None:
10026
      oprot.writeFieldBegin('hasMap', TType.BOOL, 6)
10027
      oprot.writeBool(self.hasMap)
10028
      oprot.writeFieldEnd()
10029
    oprot.writeFieldStop()
10030
    oprot.writeStructEnd()
10031
 
10032
  def validate(self):
10033
    return
10034
 
10035
 
10036
  def __repr__(self):
10037
    L = ['%s=%r' % (key, value)
10038
      for key, value in self.__dict__.iteritems()]
10039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10040
 
10041
  def __eq__(self, other):
10042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10043
 
10044
  def __ne__(self, other):
10045
    return not (self == other)
10046
 
10047
class addBanner_result:
10048
  """
10049
  Attributes:
10050
   - success
10051
  """
10052
 
10053
  thrift_spec = (
10054
    (0, TType.BOOL, 'success', None, None, ), # 0
10055
  )
10056
 
10057
  def __init__(self, success=None,):
10058
    self.success = success
10059
 
10060
  def read(self, iprot):
10061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10063
      return
10064
    iprot.readStructBegin()
10065
    while True:
10066
      (fname, ftype, fid) = iprot.readFieldBegin()
10067
      if ftype == TType.STOP:
10068
        break
10069
      if fid == 0:
10070
        if ftype == TType.BOOL:
10071
          self.success = iprot.readBool();
10072
        else:
10073
          iprot.skip(ftype)
10074
      else:
10075
        iprot.skip(ftype)
10076
      iprot.readFieldEnd()
10077
    iprot.readStructEnd()
10078
 
10079
  def write(self, oprot):
10080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10082
      return
10083
    oprot.writeStructBegin('addBanner_result')
10084
    if self.success is not None:
10085
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10086
      oprot.writeBool(self.success)
10087
      oprot.writeFieldEnd()
10088
    oprot.writeFieldStop()
10089
    oprot.writeStructEnd()
10090
 
10091
  def validate(self):
10092
    return
10093
 
10094
 
10095
  def __repr__(self):
10096
    L = ['%s=%r' % (key, value)
10097
      for key, value in self.__dict__.iteritems()]
10098
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10099
 
10100
  def __eq__(self, other):
10101
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10102
 
10103
  def __ne__(self, other):
10104
    return not (self == other)
10105
 
10106
class getAllBanners_args:
10107
 
10108
  thrift_spec = (
10109
  )
10110
 
10111
  def read(self, iprot):
10112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10114
      return
10115
    iprot.readStructBegin()
10116
    while True:
10117
      (fname, ftype, fid) = iprot.readFieldBegin()
10118
      if ftype == TType.STOP:
10119
        break
10120
      else:
10121
        iprot.skip(ftype)
10122
      iprot.readFieldEnd()
10123
    iprot.readStructEnd()
10124
 
10125
  def write(self, oprot):
10126
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10127
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10128
      return
10129
    oprot.writeStructBegin('getAllBanners_args')
10130
    oprot.writeFieldStop()
10131
    oprot.writeStructEnd()
10132
 
10133
  def validate(self):
10134
    return
10135
 
10136
 
10137
  def __repr__(self):
10138
    L = ['%s=%r' % (key, value)
10139
      for key, value in self.__dict__.iteritems()]
10140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10141
 
10142
  def __eq__(self, other):
10143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10144
 
10145
  def __ne__(self, other):
10146
    return not (self == other)
10147
 
10148
class getAllBanners_result:
10149
  """
10150
  Attributes:
10151
   - success
10152
  """
10153
 
10154
  thrift_spec = (
10155
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10156
  )
10157
 
10158
  def __init__(self, success=None,):
10159
    self.success = success
10160
 
10161
  def read(self, iprot):
10162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10164
      return
10165
    iprot.readStructBegin()
10166
    while True:
10167
      (fname, ftype, fid) = iprot.readFieldBegin()
10168
      if ftype == TType.STOP:
10169
        break
10170
      if fid == 0:
10171
        if ftype == TType.LIST:
10172
          self.success = []
10173
          (_etype168, _size165) = iprot.readListBegin()
10174
          for _i169 in xrange(_size165):
10175
            _elem170 = iprot.readString();
10176
            self.success.append(_elem170)
10177
          iprot.readListEnd()
10178
        else:
10179
          iprot.skip(ftype)
10180
      else:
10181
        iprot.skip(ftype)
10182
      iprot.readFieldEnd()
10183
    iprot.readStructEnd()
10184
 
10185
  def write(self, oprot):
10186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10188
      return
10189
    oprot.writeStructBegin('getAllBanners_result')
10190
    if self.success is not None:
10191
      oprot.writeFieldBegin('success', TType.LIST, 0)
10192
      oprot.writeListBegin(TType.STRING, len(self.success))
10193
      for iter171 in self.success:
10194
        oprot.writeString(iter171)
10195
      oprot.writeListEnd()
10196
      oprot.writeFieldEnd()
10197
    oprot.writeFieldStop()
10198
    oprot.writeStructEnd()
10199
 
10200
  def validate(self):
10201
    return
10202
 
10203
 
10204
  def __repr__(self):
10205
    L = ['%s=%r' % (key, value)
10206
      for key, value in self.__dict__.iteritems()]
10207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10208
 
10209
  def __eq__(self, other):
10210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10211
 
10212
  def __ne__(self, other):
10213
    return not (self == other)
10214
 
10215
class deleteBanner_args:
10216
  """
10217
  Attributes:
10218
   - bannerName
10219
  """
10220
 
10221
  thrift_spec = (
10222
    None, # 0
10223
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10224
  )
10225
 
10226
  def __init__(self, bannerName=None,):
10227
    self.bannerName = bannerName
10228
 
10229
  def read(self, iprot):
10230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10232
      return
10233
    iprot.readStructBegin()
10234
    while True:
10235
      (fname, ftype, fid) = iprot.readFieldBegin()
10236
      if ftype == TType.STOP:
10237
        break
10238
      if fid == 1:
10239
        if ftype == TType.STRING:
10240
          self.bannerName = iprot.readString();
10241
        else:
10242
          iprot.skip(ftype)
10243
      else:
10244
        iprot.skip(ftype)
10245
      iprot.readFieldEnd()
10246
    iprot.readStructEnd()
10247
 
10248
  def write(self, oprot):
10249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10251
      return
10252
    oprot.writeStructBegin('deleteBanner_args')
10253
    if self.bannerName is not None:
10254
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10255
      oprot.writeString(self.bannerName)
10256
      oprot.writeFieldEnd()
10257
    oprot.writeFieldStop()
10258
    oprot.writeStructEnd()
10259
 
10260
  def validate(self):
10261
    return
10262
 
10263
 
10264
  def __repr__(self):
10265
    L = ['%s=%r' % (key, value)
10266
      for key, value in self.__dict__.iteritems()]
10267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10268
 
10269
  def __eq__(self, other):
10270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10271
 
10272
  def __ne__(self, other):
10273
    return not (self == other)
10274
 
10275
class deleteBanner_result:
10276
  """
10277
  Attributes:
10278
   - success
10279
  """
10280
 
10281
  thrift_spec = (
10282
    (0, TType.BOOL, 'success', None, None, ), # 0
10283
  )
10284
 
10285
  def __init__(self, success=None,):
10286
    self.success = success
10287
 
10288
  def read(self, iprot):
10289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10291
      return
10292
    iprot.readStructBegin()
10293
    while True:
10294
      (fname, ftype, fid) = iprot.readFieldBegin()
10295
      if ftype == TType.STOP:
10296
        break
10297
      if fid == 0:
10298
        if ftype == TType.BOOL:
10299
          self.success = iprot.readBool();
10300
        else:
10301
          iprot.skip(ftype)
10302
      else:
10303
        iprot.skip(ftype)
10304
      iprot.readFieldEnd()
10305
    iprot.readStructEnd()
10306
 
10307
  def write(self, oprot):
10308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10310
      return
10311
    oprot.writeStructBegin('deleteBanner_result')
10312
    if self.success is not None:
10313
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10314
      oprot.writeBool(self.success)
10315
      oprot.writeFieldEnd()
10316
    oprot.writeFieldStop()
10317
    oprot.writeStructEnd()
10318
 
10319
  def validate(self):
10320
    return
10321
 
10322
 
10323
  def __repr__(self):
10324
    L = ['%s=%r' % (key, value)
10325
      for key, value in self.__dict__.iteritems()]
10326
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10327
 
10328
  def __eq__(self, other):
10329
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10330
 
10331
  def __ne__(self, other):
10332
    return not (self == other)
10333
 
10334
class getBannerDetails_args:
10335
  """
10336
  Attributes:
10337
   - bannerName
10338
  """
10339
 
10340
  thrift_spec = (
10341
    None, # 0
10342
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10343
  )
10344
 
10345
  def __init__(self, bannerName=None,):
10346
    self.bannerName = bannerName
10347
 
10348
  def read(self, iprot):
10349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10351
      return
10352
    iprot.readStructBegin()
10353
    while True:
10354
      (fname, ftype, fid) = iprot.readFieldBegin()
10355
      if ftype == TType.STOP:
10356
        break
10357
      if fid == 1:
10358
        if ftype == TType.STRING:
10359
          self.bannerName = iprot.readString();
10360
        else:
10361
          iprot.skip(ftype)
10362
      else:
10363
        iprot.skip(ftype)
10364
      iprot.readFieldEnd()
10365
    iprot.readStructEnd()
10366
 
10367
  def write(self, oprot):
10368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10370
      return
10371
    oprot.writeStructBegin('getBannerDetails_args')
10372
    if self.bannerName is not None:
10373
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10374
      oprot.writeString(self.bannerName)
10375
      oprot.writeFieldEnd()
10376
    oprot.writeFieldStop()
10377
    oprot.writeStructEnd()
10378
 
10379
  def validate(self):
10380
    return
10381
 
10382
 
10383
  def __repr__(self):
10384
    L = ['%s=%r' % (key, value)
10385
      for key, value in self.__dict__.iteritems()]
10386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10387
 
10388
  def __eq__(self, other):
10389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10390
 
10391
  def __ne__(self, other):
10392
    return not (self == other)
10393
 
10394
class getBannerDetails_result:
10395
  """
10396
  Attributes:
10397
   - success
10398
  """
10399
 
10400
  thrift_spec = (
10401
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
10402
  )
10403
 
10404
  def __init__(self, success=None,):
10405
    self.success = success
10406
 
10407
  def read(self, iprot):
10408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10410
      return
10411
    iprot.readStructBegin()
10412
    while True:
10413
      (fname, ftype, fid) = iprot.readFieldBegin()
10414
      if ftype == TType.STOP:
10415
        break
10416
      if fid == 0:
10417
        if ftype == TType.STRUCT:
10418
          self.success = Banner()
10419
          self.success.read(iprot)
10420
        else:
10421
          iprot.skip(ftype)
10422
      else:
10423
        iprot.skip(ftype)
10424
      iprot.readFieldEnd()
10425
    iprot.readStructEnd()
10426
 
10427
  def write(self, oprot):
10428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10430
      return
10431
    oprot.writeStructBegin('getBannerDetails_result')
10432
    if self.success is not None:
10433
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10434
      self.success.write(oprot)
10435
      oprot.writeFieldEnd()
10436
    oprot.writeFieldStop()
10437
    oprot.writeStructEnd()
10438
 
10439
  def validate(self):
10440
    return
10441
 
10442
 
10443
  def __repr__(self):
10444
    L = ['%s=%r' % (key, value)
10445
      for key, value in self.__dict__.iteritems()]
10446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10447
 
10448
  def __eq__(self, other):
10449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10450
 
10451
  def __ne__(self, other):
10452
    return not (self == other)
10453
 
10454
class getActiveBanners_args:
10455
 
10456
  thrift_spec = (
10457
  )
10458
 
10459
  def read(self, iprot):
10460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10462
      return
10463
    iprot.readStructBegin()
10464
    while True:
10465
      (fname, ftype, fid) = iprot.readFieldBegin()
10466
      if ftype == TType.STOP:
10467
        break
10468
      else:
10469
        iprot.skip(ftype)
10470
      iprot.readFieldEnd()
10471
    iprot.readStructEnd()
10472
 
10473
  def write(self, oprot):
10474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10476
      return
10477
    oprot.writeStructBegin('getActiveBanners_args')
10478
    oprot.writeFieldStop()
10479
    oprot.writeStructEnd()
10480
 
10481
  def validate(self):
10482
    return
10483
 
10484
 
10485
  def __repr__(self):
10486
    L = ['%s=%r' % (key, value)
10487
      for key, value in self.__dict__.iteritems()]
10488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10489
 
10490
  def __eq__(self, other):
10491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10492
 
10493
  def __ne__(self, other):
10494
    return not (self == other)
10495
 
10496
class getActiveBanners_result:
10497
  """
10498
  Attributes:
10499
   - success
10500
  """
10501
 
10502
  thrift_spec = (
10503
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
10504
  )
10505
 
10506
  def __init__(self, success=None,):
10507
    self.success = success
10508
 
10509
  def read(self, iprot):
10510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10512
      return
10513
    iprot.readStructBegin()
10514
    while True:
10515
      (fname, ftype, fid) = iprot.readFieldBegin()
10516
      if ftype == TType.STOP:
10517
        break
10518
      if fid == 0:
10519
        if ftype == TType.LIST:
10520
          self.success = []
10521
          (_etype175, _size172) = iprot.readListBegin()
10522
          for _i176 in xrange(_size172):
10523
            _elem177 = Banner()
10524
            _elem177.read(iprot)
10525
            self.success.append(_elem177)
10526
          iprot.readListEnd()
10527
        else:
10528
          iprot.skip(ftype)
10529
      else:
10530
        iprot.skip(ftype)
10531
      iprot.readFieldEnd()
10532
    iprot.readStructEnd()
10533
 
10534
  def write(self, oprot):
10535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10537
      return
10538
    oprot.writeStructBegin('getActiveBanners_result')
10539
    if self.success is not None:
10540
      oprot.writeFieldBegin('success', TType.LIST, 0)
10541
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10542
      for iter178 in self.success:
10543
        iter178.write(oprot)
10544
      oprot.writeListEnd()
10545
      oprot.writeFieldEnd()
10546
    oprot.writeFieldStop()
10547
    oprot.writeStructEnd()
10548
 
10549
  def validate(self):
10550
    return
10551
 
10552
 
10553
  def __repr__(self):
10554
    L = ['%s=%r' % (key, value)
10555
      for key, value in self.__dict__.iteritems()]
10556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10557
 
10558
  def __eq__(self, other):
10559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10560
 
10561
  def __ne__(self, other):
10562
    return not (self == other)
10563
 
6849 kshitij.so 10564
class addBannerMap_args:
10565
  """
10566
  Attributes:
10567
   - bannerName
10568
   - mapLink
10569
   - coordinates
10570
  """
10571
 
10572
  thrift_spec = (
10573
    None, # 0
10574
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10575
    (2, TType.STRING, 'mapLink', None, None, ), # 2
10576
    (3, TType.STRING, 'coordinates', None, None, ), # 3
10577
  )
10578
 
10579
  def __init__(self, bannerName=None, mapLink=None, coordinates=None,):
10580
    self.bannerName = bannerName
10581
    self.mapLink = mapLink
10582
    self.coordinates = coordinates
10583
 
10584
  def read(self, iprot):
10585
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10586
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10587
      return
10588
    iprot.readStructBegin()
10589
    while True:
10590
      (fname, ftype, fid) = iprot.readFieldBegin()
10591
      if ftype == TType.STOP:
10592
        break
10593
      if fid == 1:
10594
        if ftype == TType.STRING:
10595
          self.bannerName = iprot.readString();
10596
        else:
10597
          iprot.skip(ftype)
10598
      elif fid == 2:
10599
        if ftype == TType.STRING:
10600
          self.mapLink = iprot.readString();
10601
        else:
10602
          iprot.skip(ftype)
10603
      elif fid == 3:
10604
        if ftype == TType.STRING:
10605
          self.coordinates = iprot.readString();
10606
        else:
10607
          iprot.skip(ftype)
10608
      else:
10609
        iprot.skip(ftype)
10610
      iprot.readFieldEnd()
10611
    iprot.readStructEnd()
10612
 
10613
  def write(self, oprot):
10614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10616
      return
10617
    oprot.writeStructBegin('addBannerMap_args')
10618
    if self.bannerName is not None:
10619
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10620
      oprot.writeString(self.bannerName)
10621
      oprot.writeFieldEnd()
10622
    if self.mapLink is not None:
10623
      oprot.writeFieldBegin('mapLink', TType.STRING, 2)
10624
      oprot.writeString(self.mapLink)
10625
      oprot.writeFieldEnd()
10626
    if self.coordinates is not None:
10627
      oprot.writeFieldBegin('coordinates', TType.STRING, 3)
10628
      oprot.writeString(self.coordinates)
10629
      oprot.writeFieldEnd()
10630
    oprot.writeFieldStop()
10631
    oprot.writeStructEnd()
10632
 
10633
  def validate(self):
10634
    return
10635
 
10636
 
10637
  def __repr__(self):
10638
    L = ['%s=%r' % (key, value)
10639
      for key, value in self.__dict__.iteritems()]
10640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10641
 
10642
  def __eq__(self, other):
10643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10644
 
10645
  def __ne__(self, other):
10646
    return not (self == other)
10647
 
10648
class addBannerMap_result:
10649
  """
10650
  Attributes:
10651
   - success
10652
  """
10653
 
10654
  thrift_spec = (
10655
    (0, TType.BOOL, 'success', None, None, ), # 0
10656
  )
10657
 
10658
  def __init__(self, success=None,):
10659
    self.success = success
10660
 
10661
  def read(self, iprot):
10662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10664
      return
10665
    iprot.readStructBegin()
10666
    while True:
10667
      (fname, ftype, fid) = iprot.readFieldBegin()
10668
      if ftype == TType.STOP:
10669
        break
10670
      if fid == 0:
10671
        if ftype == TType.BOOL:
10672
          self.success = iprot.readBool();
10673
        else:
10674
          iprot.skip(ftype)
10675
      else:
10676
        iprot.skip(ftype)
10677
      iprot.readFieldEnd()
10678
    iprot.readStructEnd()
10679
 
10680
  def write(self, oprot):
10681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10683
      return
10684
    oprot.writeStructBegin('addBannerMap_result')
10685
    if self.success is not None:
10686
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10687
      oprot.writeBool(self.success)
10688
      oprot.writeFieldEnd()
10689
    oprot.writeFieldStop()
10690
    oprot.writeStructEnd()
10691
 
10692
  def validate(self):
10693
    return
10694
 
10695
 
10696
  def __repr__(self):
10697
    L = ['%s=%r' % (key, value)
10698
      for key, value in self.__dict__.iteritems()]
10699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10700
 
10701
  def __eq__(self, other):
10702
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10703
 
10704
  def __ne__(self, other):
10705
    return not (self == other)
10706
 
10707
class deleteBannerMap_args:
10708
  """
10709
  Attributes:
10710
   - bannerName
10711
  """
10712
 
10713
  thrift_spec = (
10714
    None, # 0
10715
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10716
  )
10717
 
10718
  def __init__(self, bannerName=None,):
10719
    self.bannerName = bannerName
10720
 
10721
  def read(self, iprot):
10722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10724
      return
10725
    iprot.readStructBegin()
10726
    while True:
10727
      (fname, ftype, fid) = iprot.readFieldBegin()
10728
      if ftype == TType.STOP:
10729
        break
10730
      if fid == 1:
10731
        if ftype == TType.STRING:
10732
          self.bannerName = iprot.readString();
10733
        else:
10734
          iprot.skip(ftype)
10735
      else:
10736
        iprot.skip(ftype)
10737
      iprot.readFieldEnd()
10738
    iprot.readStructEnd()
10739
 
10740
  def write(self, oprot):
10741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10743
      return
10744
    oprot.writeStructBegin('deleteBannerMap_args')
10745
    if self.bannerName is not None:
10746
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10747
      oprot.writeString(self.bannerName)
10748
      oprot.writeFieldEnd()
10749
    oprot.writeFieldStop()
10750
    oprot.writeStructEnd()
10751
 
10752
  def validate(self):
10753
    return
10754
 
10755
 
10756
  def __repr__(self):
10757
    L = ['%s=%r' % (key, value)
10758
      for key, value in self.__dict__.iteritems()]
10759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10760
 
10761
  def __eq__(self, other):
10762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10763
 
10764
  def __ne__(self, other):
10765
    return not (self == other)
10766
 
10767
class deleteBannerMap_result:
10768
  """
10769
  Attributes:
10770
   - success
10771
  """
10772
 
10773
  thrift_spec = (
10774
    (0, TType.BOOL, 'success', None, None, ), # 0
10775
  )
10776
 
10777
  def __init__(self, success=None,):
10778
    self.success = success
10779
 
10780
  def read(self, iprot):
10781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10783
      return
10784
    iprot.readStructBegin()
10785
    while True:
10786
      (fname, ftype, fid) = iprot.readFieldBegin()
10787
      if ftype == TType.STOP:
10788
        break
10789
      if fid == 0:
10790
        if ftype == TType.BOOL:
10791
          self.success = iprot.readBool();
10792
        else:
10793
          iprot.skip(ftype)
10794
      else:
10795
        iprot.skip(ftype)
10796
      iprot.readFieldEnd()
10797
    iprot.readStructEnd()
10798
 
10799
  def write(self, oprot):
10800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10802
      return
10803
    oprot.writeStructBegin('deleteBannerMap_result')
10804
    if self.success is not None:
10805
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10806
      oprot.writeBool(self.success)
10807
      oprot.writeFieldEnd()
10808
    oprot.writeFieldStop()
10809
    oprot.writeStructEnd()
10810
 
10811
  def validate(self):
10812
    return
10813
 
10814
 
10815
  def __repr__(self):
10816
    L = ['%s=%r' % (key, value)
10817
      for key, value in self.__dict__.iteritems()]
10818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10819
 
10820
  def __eq__(self, other):
10821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10822
 
10823
  def __ne__(self, other):
10824
    return not (self == other)
10825
 
10826
class getBannerMapDetails_args:
10827
  """
10828
  Attributes:
10829
   - bannerName
10830
  """
10831
 
10832
  thrift_spec = (
10833
    None, # 0
10834
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10835
  )
10836
 
10837
  def __init__(self, bannerName=None,):
10838
    self.bannerName = bannerName
10839
 
10840
  def read(self, iprot):
10841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10843
      return
10844
    iprot.readStructBegin()
10845
    while True:
10846
      (fname, ftype, fid) = iprot.readFieldBegin()
10847
      if ftype == TType.STOP:
10848
        break
10849
      if fid == 1:
10850
        if ftype == TType.STRING:
10851
          self.bannerName = iprot.readString();
10852
        else:
10853
          iprot.skip(ftype)
10854
      else:
10855
        iprot.skip(ftype)
10856
      iprot.readFieldEnd()
10857
    iprot.readStructEnd()
10858
 
10859
  def write(self, oprot):
10860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10862
      return
10863
    oprot.writeStructBegin('getBannerMapDetails_args')
10864
    if self.bannerName is not None:
10865
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10866
      oprot.writeString(self.bannerName)
10867
      oprot.writeFieldEnd()
10868
    oprot.writeFieldStop()
10869
    oprot.writeStructEnd()
10870
 
10871
  def validate(self):
10872
    return
10873
 
10874
 
10875
  def __repr__(self):
10876
    L = ['%s=%r' % (key, value)
10877
      for key, value in self.__dict__.iteritems()]
10878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10879
 
10880
  def __eq__(self, other):
10881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10882
 
10883
  def __ne__(self, other):
10884
    return not (self == other)
10885
 
10886
class getBannerMapDetails_result:
10887
  """
10888
  Attributes:
10889
   - success
10890
  """
10891
 
10892
  thrift_spec = (
10893
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
10894
  )
10895
 
10896
  def __init__(self, success=None,):
10897
    self.success = success
10898
 
10899
  def read(self, iprot):
10900
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10901
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10902
      return
10903
    iprot.readStructBegin()
10904
    while True:
10905
      (fname, ftype, fid) = iprot.readFieldBegin()
10906
      if ftype == TType.STOP:
10907
        break
10908
      if fid == 0:
10909
        if ftype == TType.LIST:
10910
          self.success = []
6850 kshitij.so 10911
          (_etype182, _size179) = iprot.readListBegin()
10912
          for _i183 in xrange(_size179):
10913
            _elem184 = BannerMap()
10914
            _elem184.read(iprot)
10915
            self.success.append(_elem184)
6849 kshitij.so 10916
          iprot.readListEnd()
10917
        else:
10918
          iprot.skip(ftype)
10919
      else:
10920
        iprot.skip(ftype)
10921
      iprot.readFieldEnd()
10922
    iprot.readStructEnd()
10923
 
10924
  def write(self, oprot):
10925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10927
      return
10928
    oprot.writeStructBegin('getBannerMapDetails_result')
10929
    if self.success is not None:
10930
      oprot.writeFieldBegin('success', TType.LIST, 0)
10931
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 10932
      for iter185 in self.success:
10933
        iter185.write(oprot)
6849 kshitij.so 10934
      oprot.writeListEnd()
10935
      oprot.writeFieldEnd()
10936
    oprot.writeFieldStop()
10937
    oprot.writeStructEnd()
10938
 
10939
  def validate(self):
10940
    return
10941
 
10942
 
10943
  def __repr__(self):
10944
    L = ['%s=%r' % (key, value)
10945
      for key, value in self.__dict__.iteritems()]
10946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10947
 
10948
  def __eq__(self, other):
10949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10950
 
10951
  def __ne__(self, other):
10952
    return not (self == other)
10953
 
5944 mandeep.dh 10954
class deleteSimilarItem_args:
10955
  """
10956
  Attributes:
10957
   - itemId
10958
   - catalogItemId
10959
  """
10960
 
10961
  thrift_spec = (
10962
    None, # 0
10963
    (1, TType.I64, 'itemId', None, None, ), # 1
10964
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
10965
  )
10966
 
10967
  def __init__(self, itemId=None, catalogItemId=None,):
10968
    self.itemId = itemId
10969
    self.catalogItemId = catalogItemId
10970
 
10971
  def read(self, iprot):
10972
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10973
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10974
      return
10975
    iprot.readStructBegin()
10976
    while True:
10977
      (fname, ftype, fid) = iprot.readFieldBegin()
10978
      if ftype == TType.STOP:
10979
        break
10980
      if fid == 1:
10981
        if ftype == TType.I64:
10982
          self.itemId = iprot.readI64();
10983
        else:
10984
          iprot.skip(ftype)
10985
      elif fid == 2:
10986
        if ftype == TType.I64:
10987
          self.catalogItemId = iprot.readI64();
10988
        else:
10989
          iprot.skip(ftype)
10990
      else:
10991
        iprot.skip(ftype)
10992
      iprot.readFieldEnd()
10993
    iprot.readStructEnd()
10994
 
10995
  def write(self, oprot):
10996
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10997
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10998
      return
10999
    oprot.writeStructBegin('deleteSimilarItem_args')
11000
    if self.itemId is not None:
11001
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11002
      oprot.writeI64(self.itemId)
11003
      oprot.writeFieldEnd()
11004
    if self.catalogItemId is not None:
11005
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
11006
      oprot.writeI64(self.catalogItemId)
11007
      oprot.writeFieldEnd()
11008
    oprot.writeFieldStop()
11009
    oprot.writeStructEnd()
11010
 
11011
  def validate(self):
11012
    return
11013
 
11014
 
11015
  def __repr__(self):
11016
    L = ['%s=%r' % (key, value)
11017
      for key, value in self.__dict__.iteritems()]
11018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11019
 
11020
  def __eq__(self, other):
11021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11022
 
11023
  def __ne__(self, other):
11024
    return not (self == other)
11025
 
11026
class deleteSimilarItem_result:
11027
  """
11028
  Attributes:
11029
   - success
11030
   - cex
11031
  """
11032
 
11033
  thrift_spec = (
11034
    (0, TType.BOOL, 'success', None, None, ), # 0
11035
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11036
  )
11037
 
11038
  def __init__(self, success=None, cex=None,):
11039
    self.success = success
11040
    self.cex = cex
11041
 
11042
  def read(self, iprot):
11043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11045
      return
11046
    iprot.readStructBegin()
11047
    while True:
11048
      (fname, ftype, fid) = iprot.readFieldBegin()
11049
      if ftype == TType.STOP:
11050
        break
11051
      if fid == 0:
11052
        if ftype == TType.BOOL:
11053
          self.success = iprot.readBool();
11054
        else:
11055
          iprot.skip(ftype)
11056
      elif fid == 1:
11057
        if ftype == TType.STRUCT:
11058
          self.cex = CatalogServiceException()
11059
          self.cex.read(iprot)
11060
        else:
11061
          iprot.skip(ftype)
11062
      else:
11063
        iprot.skip(ftype)
11064
      iprot.readFieldEnd()
11065
    iprot.readStructEnd()
11066
 
11067
  def write(self, oprot):
11068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11070
      return
11071
    oprot.writeStructBegin('deleteSimilarItem_result')
11072
    if self.success is not None:
11073
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11074
      oprot.writeBool(self.success)
11075
      oprot.writeFieldEnd()
11076
    if self.cex is not None:
11077
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11078
      self.cex.write(oprot)
11079
      oprot.writeFieldEnd()
11080
    oprot.writeFieldStop()
11081
    oprot.writeStructEnd()
11082
 
11083
  def validate(self):
11084
    return
11085
 
11086
 
11087
  def __repr__(self):
11088
    L = ['%s=%r' % (key, value)
11089
      for key, value in self.__dict__.iteritems()]
11090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11091
 
11092
  def __eq__(self, other):
11093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11094
 
11095
  def __ne__(self, other):
11096
    return not (self == other)
11097
 
11098
class checkSimilarItem_args:
11099
  """
11100
  Attributes:
11101
   - brand
11102
   - modelNumber
11103
   - modelName
11104
   - color
11105
  """
11106
 
11107
  thrift_spec = (
11108
    None, # 0
11109
    (1, TType.STRING, 'brand', None, None, ), # 1
11110
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
11111
    (3, TType.STRING, 'modelName', None, None, ), # 3
11112
    (4, TType.STRING, 'color', None, None, ), # 4
11113
  )
11114
 
11115
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
11116
    self.brand = brand
11117
    self.modelNumber = modelNumber
11118
    self.modelName = modelName
11119
    self.color = color
11120
 
11121
  def read(self, iprot):
11122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11124
      return
11125
    iprot.readStructBegin()
11126
    while True:
11127
      (fname, ftype, fid) = iprot.readFieldBegin()
11128
      if ftype == TType.STOP:
11129
        break
11130
      if fid == 1:
11131
        if ftype == TType.STRING:
11132
          self.brand = iprot.readString();
11133
        else:
11134
          iprot.skip(ftype)
11135
      elif fid == 2:
11136
        if ftype == TType.STRING:
11137
          self.modelNumber = iprot.readString();
11138
        else:
11139
          iprot.skip(ftype)
11140
      elif fid == 3:
11141
        if ftype == TType.STRING:
11142
          self.modelName = iprot.readString();
11143
        else:
11144
          iprot.skip(ftype)
11145
      elif fid == 4:
11146
        if ftype == TType.STRING:
11147
          self.color = iprot.readString();
11148
        else:
11149
          iprot.skip(ftype)
11150
      else:
11151
        iprot.skip(ftype)
11152
      iprot.readFieldEnd()
11153
    iprot.readStructEnd()
11154
 
11155
  def write(self, oprot):
11156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11158
      return
11159
    oprot.writeStructBegin('checkSimilarItem_args')
11160
    if self.brand is not None:
11161
      oprot.writeFieldBegin('brand', TType.STRING, 1)
11162
      oprot.writeString(self.brand)
11163
      oprot.writeFieldEnd()
11164
    if self.modelNumber is not None:
11165
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
11166
      oprot.writeString(self.modelNumber)
11167
      oprot.writeFieldEnd()
11168
    if self.modelName is not None:
11169
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
11170
      oprot.writeString(self.modelName)
11171
      oprot.writeFieldEnd()
11172
    if self.color is not None:
11173
      oprot.writeFieldBegin('color', TType.STRING, 4)
11174
      oprot.writeString(self.color)
11175
      oprot.writeFieldEnd()
11176
    oprot.writeFieldStop()
11177
    oprot.writeStructEnd()
11178
 
11179
  def validate(self):
11180
    return
11181
 
11182
 
11183
  def __repr__(self):
11184
    L = ['%s=%r' % (key, value)
11185
      for key, value in self.__dict__.iteritems()]
11186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11187
 
11188
  def __eq__(self, other):
11189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11190
 
11191
  def __ne__(self, other):
11192
    return not (self == other)
11193
 
11194
class checkSimilarItem_result:
11195
  """
11196
  Attributes:
11197
   - success
11198
  """
11199
 
11200
  thrift_spec = (
11201
    (0, TType.I64, 'success', None, None, ), # 0
11202
  )
11203
 
11204
  def __init__(self, success=None,):
11205
    self.success = success
11206
 
11207
  def read(self, iprot):
11208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11210
      return
11211
    iprot.readStructBegin()
11212
    while True:
11213
      (fname, ftype, fid) = iprot.readFieldBegin()
11214
      if ftype == TType.STOP:
11215
        break
11216
      if fid == 0:
11217
        if ftype == TType.I64:
11218
          self.success = iprot.readI64();
11219
        else:
11220
          iprot.skip(ftype)
11221
      else:
11222
        iprot.skip(ftype)
11223
      iprot.readFieldEnd()
11224
    iprot.readStructEnd()
11225
 
11226
  def write(self, oprot):
11227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11229
      return
11230
    oprot.writeStructBegin('checkSimilarItem_result')
11231
    if self.success is not None:
11232
      oprot.writeFieldBegin('success', TType.I64, 0)
11233
      oprot.writeI64(self.success)
11234
      oprot.writeFieldEnd()
11235
    oprot.writeFieldStop()
11236
    oprot.writeStructEnd()
11237
 
11238
  def validate(self):
11239
    return
11240
 
11241
 
11242
  def __repr__(self):
11243
    L = ['%s=%r' % (key, value)
11244
      for key, value in self.__dict__.iteritems()]
11245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11246
 
11247
  def __eq__(self, other):
11248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11249
 
11250
  def __ne__(self, other):
11251
    return not (self == other)
11252
 
11253
class validateRiskyStatus_args:
11254
  """
11255
  Attributes:
11256
   - itemId
11257
  """
11258
 
11259
  thrift_spec = (
11260
    None, # 0
11261
    (1, TType.I64, 'itemId', None, None, ), # 1
11262
  )
11263
 
11264
  def __init__(self, itemId=None,):
11265
    self.itemId = itemId
11266
 
11267
  def read(self, iprot):
11268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11270
      return
11271
    iprot.readStructBegin()
11272
    while True:
11273
      (fname, ftype, fid) = iprot.readFieldBegin()
11274
      if ftype == TType.STOP:
11275
        break
11276
      if fid == 1:
11277
        if ftype == TType.I64:
11278
          self.itemId = iprot.readI64();
11279
        else:
11280
          iprot.skip(ftype)
11281
      else:
11282
        iprot.skip(ftype)
11283
      iprot.readFieldEnd()
11284
    iprot.readStructEnd()
11285
 
11286
  def write(self, oprot):
11287
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11288
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11289
      return
11290
    oprot.writeStructBegin('validateRiskyStatus_args')
11291
    if self.itemId is not None:
11292
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11293
      oprot.writeI64(self.itemId)
11294
      oprot.writeFieldEnd()
11295
    oprot.writeFieldStop()
11296
    oprot.writeStructEnd()
11297
 
11298
  def validate(self):
11299
    return
11300
 
11301
 
11302
  def __repr__(self):
11303
    L = ['%s=%r' % (key, value)
11304
      for key, value in self.__dict__.iteritems()]
11305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11306
 
11307
  def __eq__(self, other):
11308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11309
 
11310
  def __ne__(self, other):
11311
    return not (self == other)
11312
 
11313
class validateRiskyStatus_result:
11314
 
11315
  thrift_spec = (
11316
  )
11317
 
11318
  def read(self, iprot):
11319
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11320
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11321
      return
11322
    iprot.readStructBegin()
11323
    while True:
11324
      (fname, ftype, fid) = iprot.readFieldBegin()
11325
      if ftype == TType.STOP:
11326
        break
11327
      else:
11328
        iprot.skip(ftype)
11329
      iprot.readFieldEnd()
11330
    iprot.readStructEnd()
11331
 
11332
  def write(self, oprot):
11333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11335
      return
11336
    oprot.writeStructBegin('validateRiskyStatus_result')
11337
    oprot.writeFieldStop()
11338
    oprot.writeStructEnd()
11339
 
11340
  def validate(self):
11341
    return
11342
 
11343
 
11344
  def __repr__(self):
11345
    L = ['%s=%r' % (key, value)
11346
      for key, value in self.__dict__.iteritems()]
11347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11348
 
11349
  def __eq__(self, other):
11350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11351
 
11352
  def __ne__(self, other):
11353
    return not (self == other)
11354
 
11355
class changeItemRiskyFlag_args:
11356
  """
11357
  Attributes:
11358
   - itemId
11359
   - risky
11360
  """
11361
 
11362
  thrift_spec = (
11363
    None, # 0
11364
    (1, TType.I64, 'itemId', None, None, ), # 1
11365
    (2, TType.BOOL, 'risky', None, None, ), # 2
11366
  )
11367
 
11368
  def __init__(self, itemId=None, risky=None,):
11369
    self.itemId = itemId
11370
    self.risky = risky
11371
 
11372
  def read(self, iprot):
11373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11375
      return
11376
    iprot.readStructBegin()
11377
    while True:
11378
      (fname, ftype, fid) = iprot.readFieldBegin()
11379
      if ftype == TType.STOP:
11380
        break
11381
      if fid == 1:
11382
        if ftype == TType.I64:
11383
          self.itemId = iprot.readI64();
11384
        else:
11385
          iprot.skip(ftype)
11386
      elif fid == 2:
11387
        if ftype == TType.BOOL:
11388
          self.risky = iprot.readBool();
11389
        else:
11390
          iprot.skip(ftype)
11391
      else:
11392
        iprot.skip(ftype)
11393
      iprot.readFieldEnd()
11394
    iprot.readStructEnd()
11395
 
11396
  def write(self, oprot):
11397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11399
      return
11400
    oprot.writeStructBegin('changeItemRiskyFlag_args')
11401
    if self.itemId is not None:
11402
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11403
      oprot.writeI64(self.itemId)
11404
      oprot.writeFieldEnd()
11405
    if self.risky is not None:
11406
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
11407
      oprot.writeBool(self.risky)
11408
      oprot.writeFieldEnd()
11409
    oprot.writeFieldStop()
11410
    oprot.writeStructEnd()
11411
 
11412
  def validate(self):
11413
    return
11414
 
11415
 
11416
  def __repr__(self):
11417
    L = ['%s=%r' % (key, value)
11418
      for key, value in self.__dict__.iteritems()]
11419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11420
 
11421
  def __eq__(self, other):
11422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11423
 
11424
  def __ne__(self, other):
11425
    return not (self == other)
11426
 
11427
class changeItemRiskyFlag_result:
11428
 
11429
  thrift_spec = (
11430
  )
11431
 
11432
  def read(self, iprot):
11433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11435
      return
11436
    iprot.readStructBegin()
11437
    while True:
11438
      (fname, ftype, fid) = iprot.readFieldBegin()
11439
      if ftype == TType.STOP:
11440
        break
11441
      else:
11442
        iprot.skip(ftype)
11443
      iprot.readFieldEnd()
11444
    iprot.readStructEnd()
11445
 
11446
  def write(self, oprot):
11447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11449
      return
11450
    oprot.writeStructBegin('changeItemRiskyFlag_result')
11451
    oprot.writeFieldStop()
11452
    oprot.writeStructEnd()
11453
 
11454
  def validate(self):
11455
    return
11456
 
11457
 
11458
  def __repr__(self):
11459
    L = ['%s=%r' % (key, value)
11460
      for key, value in self.__dict__.iteritems()]
11461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11462
 
11463
  def __eq__(self, other):
11464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11465
 
11466
  def __ne__(self, other):
11467
    return not (self == other)
11468
 
11469
class getItemsByRiskyFlag_args:
11470
 
11471
  thrift_spec = (
11472
  )
11473
 
11474
  def read(self, iprot):
11475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11477
      return
11478
    iprot.readStructBegin()
11479
    while True:
11480
      (fname, ftype, fid) = iprot.readFieldBegin()
11481
      if ftype == TType.STOP:
11482
        break
11483
      else:
11484
        iprot.skip(ftype)
11485
      iprot.readFieldEnd()
11486
    iprot.readStructEnd()
11487
 
11488
  def write(self, oprot):
11489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11491
      return
11492
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
11493
    oprot.writeFieldStop()
11494
    oprot.writeStructEnd()
11495
 
11496
  def validate(self):
11497
    return
11498
 
11499
 
11500
  def __repr__(self):
11501
    L = ['%s=%r' % (key, value)
11502
      for key, value in self.__dict__.iteritems()]
11503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11504
 
11505
  def __eq__(self, other):
11506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11507
 
11508
  def __ne__(self, other):
11509
    return not (self == other)
11510
 
11511
class getItemsByRiskyFlag_result:
11512
  """
11513
  Attributes:
11514
   - success
11515
  """
11516
 
11517
  thrift_spec = (
11518
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11519
  )
11520
 
11521
  def __init__(self, success=None,):
11522
    self.success = success
11523
 
11524
  def read(self, iprot):
11525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11527
      return
11528
    iprot.readStructBegin()
11529
    while True:
11530
      (fname, ftype, fid) = iprot.readFieldBegin()
11531
      if ftype == TType.STOP:
11532
        break
11533
      if fid == 0:
11534
        if ftype == TType.LIST:
11535
          self.success = []
6850 kshitij.so 11536
          (_etype189, _size186) = iprot.readListBegin()
11537
          for _i190 in xrange(_size186):
11538
            _elem191 = Item()
11539
            _elem191.read(iprot)
11540
            self.success.append(_elem191)
5944 mandeep.dh 11541
          iprot.readListEnd()
11542
        else:
11543
          iprot.skip(ftype)
11544
      else:
11545
        iprot.skip(ftype)
11546
      iprot.readFieldEnd()
11547
    iprot.readStructEnd()
11548
 
11549
  def write(self, oprot):
11550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11552
      return
11553
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
11554
    if self.success is not None:
11555
      oprot.writeFieldBegin('success', TType.LIST, 0)
11556
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11557
      for iter192 in self.success:
11558
        iter192.write(oprot)
5944 mandeep.dh 11559
      oprot.writeListEnd()
11560
      oprot.writeFieldEnd()
11561
    oprot.writeFieldStop()
11562
    oprot.writeStructEnd()
11563
 
11564
  def validate(self):
11565
    return
11566
 
11567
 
11568
  def __repr__(self):
11569
    L = ['%s=%r' % (key, value)
11570
      for key, value in self.__dict__.iteritems()]
11571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11572
 
11573
  def __eq__(self, other):
11574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11575
 
11576
  def __ne__(self, other):
11577
    return not (self == other)
11578
 
11579
class getItemsForMasterSheet_args:
11580
  """
11581
  Attributes:
11582
   - category
11583
   - brand
11584
  """
11585
 
11586
  thrift_spec = (
11587
    None, # 0
11588
    (1, TType.STRING, 'category', None, None, ), # 1
11589
    (2, TType.STRING, 'brand', None, None, ), # 2
11590
  )
11591
 
11592
  def __init__(self, category=None, brand=None,):
11593
    self.category = category
11594
    self.brand = brand
11595
 
11596
  def read(self, iprot):
11597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11599
      return
11600
    iprot.readStructBegin()
11601
    while True:
11602
      (fname, ftype, fid) = iprot.readFieldBegin()
11603
      if ftype == TType.STOP:
11604
        break
11605
      if fid == 1:
11606
        if ftype == TType.STRING:
11607
          self.category = iprot.readString();
11608
        else:
11609
          iprot.skip(ftype)
11610
      elif fid == 2:
11611
        if ftype == TType.STRING:
11612
          self.brand = iprot.readString();
11613
        else:
11614
          iprot.skip(ftype)
11615
      else:
11616
        iprot.skip(ftype)
11617
      iprot.readFieldEnd()
11618
    iprot.readStructEnd()
11619
 
11620
  def write(self, oprot):
11621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11623
      return
11624
    oprot.writeStructBegin('getItemsForMasterSheet_args')
11625
    if self.category is not None:
11626
      oprot.writeFieldBegin('category', TType.STRING, 1)
11627
      oprot.writeString(self.category)
11628
      oprot.writeFieldEnd()
11629
    if self.brand is not None:
11630
      oprot.writeFieldBegin('brand', TType.STRING, 2)
11631
      oprot.writeString(self.brand)
11632
      oprot.writeFieldEnd()
11633
    oprot.writeFieldStop()
11634
    oprot.writeStructEnd()
11635
 
11636
  def validate(self):
11637
    return
11638
 
11639
 
11640
  def __repr__(self):
11641
    L = ['%s=%r' % (key, value)
11642
      for key, value in self.__dict__.iteritems()]
11643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11644
 
11645
  def __eq__(self, other):
11646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11647
 
11648
  def __ne__(self, other):
11649
    return not (self == other)
11650
 
11651
class getItemsForMasterSheet_result:
11652
  """
11653
  Attributes:
11654
   - success
11655
  """
11656
 
11657
  thrift_spec = (
11658
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11659
  )
11660
 
11661
  def __init__(self, success=None,):
11662
    self.success = success
11663
 
11664
  def read(self, iprot):
11665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11667
      return
11668
    iprot.readStructBegin()
11669
    while True:
11670
      (fname, ftype, fid) = iprot.readFieldBegin()
11671
      if ftype == TType.STOP:
11672
        break
11673
      if fid == 0:
11674
        if ftype == TType.LIST:
11675
          self.success = []
6850 kshitij.so 11676
          (_etype196, _size193) = iprot.readListBegin()
11677
          for _i197 in xrange(_size193):
11678
            _elem198 = Item()
11679
            _elem198.read(iprot)
11680
            self.success.append(_elem198)
5944 mandeep.dh 11681
          iprot.readListEnd()
11682
        else:
11683
          iprot.skip(ftype)
11684
      else:
11685
        iprot.skip(ftype)
11686
      iprot.readFieldEnd()
11687
    iprot.readStructEnd()
11688
 
11689
  def write(self, oprot):
11690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11692
      return
11693
    oprot.writeStructBegin('getItemsForMasterSheet_result')
11694
    if self.success is not None:
11695
      oprot.writeFieldBegin('success', TType.LIST, 0)
11696
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11697
      for iter199 in self.success:
11698
        iter199.write(oprot)
5944 mandeep.dh 11699
      oprot.writeListEnd()
11700
      oprot.writeFieldEnd()
11701
    oprot.writeFieldStop()
11702
    oprot.writeStructEnd()
11703
 
11704
  def validate(self):
11705
    return
11706
 
11707
 
11708
  def __repr__(self):
11709
    L = ['%s=%r' % (key, value)
11710
      for key, value in self.__dict__.iteritems()]
11711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11712
 
11713
  def __eq__(self, other):
11714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11715
 
11716
  def __ne__(self, other):
11717
    return not (self == other)
11718
 
11719
class getSimilarItemsCatalogIds_args:
11720
  """
11721
  Attributes:
11722
   - beginIndex
11723
   - totalItems
11724
   - itemId
11725
  """
11726
 
11727
  thrift_spec = (
11728
    None, # 0
11729
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11730
    (2, TType.I64, 'totalItems', None, None, ), # 2
11731
    (3, TType.I64, 'itemId', None, None, ), # 3
11732
  )
11733
 
11734
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
11735
    self.beginIndex = beginIndex
11736
    self.totalItems = totalItems
11737
    self.itemId = itemId
11738
 
11739
  def read(self, iprot):
11740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11742
      return
11743
    iprot.readStructBegin()
11744
    while True:
11745
      (fname, ftype, fid) = iprot.readFieldBegin()
11746
      if ftype == TType.STOP:
11747
        break
11748
      if fid == 1:
11749
        if ftype == TType.I64:
11750
          self.beginIndex = iprot.readI64();
11751
        else:
11752
          iprot.skip(ftype)
11753
      elif fid == 2:
11754
        if ftype == TType.I64:
11755
          self.totalItems = iprot.readI64();
11756
        else:
11757
          iprot.skip(ftype)
11758
      elif fid == 3:
11759
        if ftype == TType.I64:
11760
          self.itemId = iprot.readI64();
11761
        else:
11762
          iprot.skip(ftype)
11763
      else:
11764
        iprot.skip(ftype)
11765
      iprot.readFieldEnd()
11766
    iprot.readStructEnd()
11767
 
11768
  def write(self, oprot):
11769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11771
      return
11772
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
11773
    if self.beginIndex is not None:
11774
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11775
      oprot.writeI64(self.beginIndex)
11776
      oprot.writeFieldEnd()
11777
    if self.totalItems is not None:
11778
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11779
      oprot.writeI64(self.totalItems)
11780
      oprot.writeFieldEnd()
11781
    if self.itemId is not None:
11782
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11783
      oprot.writeI64(self.itemId)
11784
      oprot.writeFieldEnd()
11785
    oprot.writeFieldStop()
11786
    oprot.writeStructEnd()
11787
 
11788
  def validate(self):
11789
    return
11790
 
11791
 
11792
  def __repr__(self):
11793
    L = ['%s=%r' % (key, value)
11794
      for key, value in self.__dict__.iteritems()]
11795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11796
 
11797
  def __eq__(self, other):
11798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11799
 
11800
  def __ne__(self, other):
11801
    return not (self == other)
11802
 
11803
class getSimilarItemsCatalogIds_result:
11804
  """
11805
  Attributes:
11806
   - success
11807
  """
11808
 
11809
  thrift_spec = (
11810
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11811
  )
11812
 
11813
  def __init__(self, success=None,):
11814
    self.success = success
11815
 
11816
  def read(self, iprot):
11817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11819
      return
11820
    iprot.readStructBegin()
11821
    while True:
11822
      (fname, ftype, fid) = iprot.readFieldBegin()
11823
      if ftype == TType.STOP:
11824
        break
11825
      if fid == 0:
11826
        if ftype == TType.LIST:
11827
          self.success = []
6850 kshitij.so 11828
          (_etype203, _size200) = iprot.readListBegin()
11829
          for _i204 in xrange(_size200):
11830
            _elem205 = iprot.readI64();
11831
            self.success.append(_elem205)
5944 mandeep.dh 11832
          iprot.readListEnd()
11833
        else:
11834
          iprot.skip(ftype)
11835
      else:
11836
        iprot.skip(ftype)
11837
      iprot.readFieldEnd()
11838
    iprot.readStructEnd()
11839
 
11840
  def write(self, oprot):
11841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11843
      return
11844
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
11845
    if self.success is not None:
11846
      oprot.writeFieldBegin('success', TType.LIST, 0)
11847
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 11848
      for iter206 in self.success:
11849
        oprot.writeI64(iter206)
5944 mandeep.dh 11850
      oprot.writeListEnd()
11851
      oprot.writeFieldEnd()
11852
    oprot.writeFieldStop()
11853
    oprot.writeStructEnd()
11854
 
11855
  def validate(self):
11856
    return
11857
 
11858
 
11859
  def __repr__(self):
11860
    L = ['%s=%r' % (key, value)
11861
      for key, value in self.__dict__.iteritems()]
11862
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11863
 
11864
  def __eq__(self, other):
11865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11866
 
11867
  def __ne__(self, other):
11868
    return not (self == other)
11869
 
11870
class addProductNotification_args:
11871
  """
11872
  Attributes:
11873
   - itemId
11874
   - email
11875
  """
11876
 
11877
  thrift_spec = None
11878
  def __init__(self, itemId=None, email=None,):
11879
    self.itemId = itemId
11880
    self.email = email
11881
 
11882
  def read(self, iprot):
11883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11885
      return
11886
    iprot.readStructBegin()
11887
    while True:
11888
      (fname, ftype, fid) = iprot.readFieldBegin()
11889
      if ftype == TType.STOP:
11890
        break
11891
      if fid == -1:
11892
        if ftype == TType.I64:
11893
          self.itemId = iprot.readI64();
11894
        else:
11895
          iprot.skip(ftype)
11896
      elif fid == -2:
11897
        if ftype == TType.STRING:
11898
          self.email = iprot.readString();
11899
        else:
11900
          iprot.skip(ftype)
11901
      else:
11902
        iprot.skip(ftype)
11903
      iprot.readFieldEnd()
11904
    iprot.readStructEnd()
11905
 
11906
  def write(self, oprot):
11907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11909
      return
11910
    oprot.writeStructBegin('addProductNotification_args')
11911
    if self.email is not None:
11912
      oprot.writeFieldBegin('email', TType.STRING, -2)
11913
      oprot.writeString(self.email)
11914
      oprot.writeFieldEnd()
11915
    if self.itemId is not None:
11916
      oprot.writeFieldBegin('itemId', TType.I64, -1)
11917
      oprot.writeI64(self.itemId)
11918
      oprot.writeFieldEnd()
11919
    oprot.writeFieldStop()
11920
    oprot.writeStructEnd()
11921
 
11922
  def validate(self):
11923
    return
11924
 
11925
 
11926
  def __repr__(self):
11927
    L = ['%s=%r' % (key, value)
11928
      for key, value in self.__dict__.iteritems()]
11929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11930
 
11931
  def __eq__(self, other):
11932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11933
 
11934
  def __ne__(self, other):
11935
    return not (self == other)
11936
 
11937
class addProductNotification_result:
11938
  """
11939
  Attributes:
11940
   - success
11941
  """
11942
 
11943
  thrift_spec = (
11944
    (0, TType.BOOL, 'success', None, None, ), # 0
11945
  )
11946
 
11947
  def __init__(self, success=None,):
11948
    self.success = success
11949
 
11950
  def read(self, iprot):
11951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11953
      return
11954
    iprot.readStructBegin()
11955
    while True:
11956
      (fname, ftype, fid) = iprot.readFieldBegin()
11957
      if ftype == TType.STOP:
11958
        break
11959
      if fid == 0:
11960
        if ftype == TType.BOOL:
11961
          self.success = iprot.readBool();
11962
        else:
11963
          iprot.skip(ftype)
11964
      else:
11965
        iprot.skip(ftype)
11966
      iprot.readFieldEnd()
11967
    iprot.readStructEnd()
11968
 
11969
  def write(self, oprot):
11970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11972
      return
11973
    oprot.writeStructBegin('addProductNotification_result')
11974
    if self.success is not None:
11975
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11976
      oprot.writeBool(self.success)
11977
      oprot.writeFieldEnd()
11978
    oprot.writeFieldStop()
11979
    oprot.writeStructEnd()
11980
 
11981
  def validate(self):
11982
    return
11983
 
11984
 
11985
  def __repr__(self):
11986
    L = ['%s=%r' % (key, value)
11987
      for key, value in self.__dict__.iteritems()]
11988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11989
 
11990
  def __eq__(self, other):
11991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11992
 
11993
  def __ne__(self, other):
11994
    return not (self == other)
11995
 
11996
class sendProductNotifications_args:
11997
 
11998
  thrift_spec = (
11999
  )
12000
 
12001
  def read(self, iprot):
12002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12004
      return
12005
    iprot.readStructBegin()
12006
    while True:
12007
      (fname, ftype, fid) = iprot.readFieldBegin()
12008
      if ftype == TType.STOP:
12009
        break
12010
      else:
12011
        iprot.skip(ftype)
12012
      iprot.readFieldEnd()
12013
    iprot.readStructEnd()
12014
 
12015
  def write(self, oprot):
12016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12018
      return
12019
    oprot.writeStructBegin('sendProductNotifications_args')
12020
    oprot.writeFieldStop()
12021
    oprot.writeStructEnd()
12022
 
12023
  def validate(self):
12024
    return
12025
 
12026
 
12027
  def __repr__(self):
12028
    L = ['%s=%r' % (key, value)
12029
      for key, value in self.__dict__.iteritems()]
12030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12031
 
12032
  def __eq__(self, other):
12033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12034
 
12035
  def __ne__(self, other):
12036
    return not (self == other)
12037
 
12038
class sendProductNotifications_result:
12039
  """
12040
  Attributes:
12041
   - success
12042
  """
12043
 
12044
  thrift_spec = (
12045
    (0, TType.BOOL, 'success', None, None, ), # 0
12046
  )
12047
 
12048
  def __init__(self, success=None,):
12049
    self.success = success
12050
 
12051
  def read(self, iprot):
12052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12054
      return
12055
    iprot.readStructBegin()
12056
    while True:
12057
      (fname, ftype, fid) = iprot.readFieldBegin()
12058
      if ftype == TType.STOP:
12059
        break
12060
      if fid == 0:
12061
        if ftype == TType.BOOL:
12062
          self.success = iprot.readBool();
12063
        else:
12064
          iprot.skip(ftype)
12065
      else:
12066
        iprot.skip(ftype)
12067
      iprot.readFieldEnd()
12068
    iprot.readStructEnd()
12069
 
12070
  def write(self, oprot):
12071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12073
      return
12074
    oprot.writeStructBegin('sendProductNotifications_result')
12075
    if self.success is not None:
12076
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12077
      oprot.writeBool(self.success)
12078
      oprot.writeFieldEnd()
12079
    oprot.writeFieldStop()
12080
    oprot.writeStructEnd()
12081
 
12082
  def validate(self):
12083
    return
12084
 
12085
 
12086
  def __repr__(self):
12087
    L = ['%s=%r' % (key, value)
12088
      for key, value in self.__dict__.iteritems()]
12089
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12090
 
12091
  def __eq__(self, other):
12092
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12093
 
12094
  def __ne__(self, other):
12095
    return not (self == other)
12096
 
12097
class getAllBrandsByCategory_args:
12098
  """
12099
  Attributes:
12100
   - categoryId
12101
  """
12102
 
12103
  thrift_spec = (
12104
    None, # 0
12105
    (1, TType.I64, 'categoryId', None, None, ), # 1
12106
  )
12107
 
12108
  def __init__(self, categoryId=None,):
12109
    self.categoryId = categoryId
12110
 
12111
  def read(self, iprot):
12112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12114
      return
12115
    iprot.readStructBegin()
12116
    while True:
12117
      (fname, ftype, fid) = iprot.readFieldBegin()
12118
      if ftype == TType.STOP:
12119
        break
12120
      if fid == 1:
12121
        if ftype == TType.I64:
12122
          self.categoryId = iprot.readI64();
12123
        else:
12124
          iprot.skip(ftype)
12125
      else:
12126
        iprot.skip(ftype)
12127
      iprot.readFieldEnd()
12128
    iprot.readStructEnd()
12129
 
12130
  def write(self, oprot):
12131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12133
      return
12134
    oprot.writeStructBegin('getAllBrandsByCategory_args')
12135
    if self.categoryId is not None:
12136
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
12137
      oprot.writeI64(self.categoryId)
12138
      oprot.writeFieldEnd()
12139
    oprot.writeFieldStop()
12140
    oprot.writeStructEnd()
12141
 
12142
  def validate(self):
12143
    return
12144
 
12145
 
12146
  def __repr__(self):
12147
    L = ['%s=%r' % (key, value)
12148
      for key, value in self.__dict__.iteritems()]
12149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12150
 
12151
  def __eq__(self, other):
12152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12153
 
12154
  def __ne__(self, other):
12155
    return not (self == other)
12156
 
12157
class getAllBrandsByCategory_result:
12158
  """
12159
  Attributes:
12160
   - success
12161
  """
12162
 
12163
  thrift_spec = (
12164
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12165
  )
12166
 
12167
  def __init__(self, success=None,):
12168
    self.success = success
12169
 
12170
  def read(self, iprot):
12171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12173
      return
12174
    iprot.readStructBegin()
12175
    while True:
12176
      (fname, ftype, fid) = iprot.readFieldBegin()
12177
      if ftype == TType.STOP:
12178
        break
12179
      if fid == 0:
12180
        if ftype == TType.LIST:
12181
          self.success = []
6850 kshitij.so 12182
          (_etype210, _size207) = iprot.readListBegin()
12183
          for _i211 in xrange(_size207):
12184
            _elem212 = iprot.readString();
12185
            self.success.append(_elem212)
5944 mandeep.dh 12186
          iprot.readListEnd()
12187
        else:
12188
          iprot.skip(ftype)
12189
      else:
12190
        iprot.skip(ftype)
12191
      iprot.readFieldEnd()
12192
    iprot.readStructEnd()
12193
 
12194
  def write(self, oprot):
12195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12197
      return
12198
    oprot.writeStructBegin('getAllBrandsByCategory_result')
12199
    if self.success is not None:
12200
      oprot.writeFieldBegin('success', TType.LIST, 0)
12201
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12202
      for iter213 in self.success:
12203
        oprot.writeString(iter213)
5944 mandeep.dh 12204
      oprot.writeListEnd()
12205
      oprot.writeFieldEnd()
12206
    oprot.writeFieldStop()
12207
    oprot.writeStructEnd()
12208
 
12209
  def validate(self):
12210
    return
12211
 
12212
 
12213
  def __repr__(self):
12214
    L = ['%s=%r' % (key, value)
12215
      for key, value in self.__dict__.iteritems()]
12216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12217
 
12218
  def __eq__(self, other):
12219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12220
 
12221
  def __ne__(self, other):
12222
    return not (self == other)
12223
 
12224
class getAllBrands_args:
12225
 
12226
  thrift_spec = (
12227
  )
12228
 
12229
  def read(self, iprot):
12230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12232
      return
12233
    iprot.readStructBegin()
12234
    while True:
12235
      (fname, ftype, fid) = iprot.readFieldBegin()
12236
      if ftype == TType.STOP:
12237
        break
12238
      else:
12239
        iprot.skip(ftype)
12240
      iprot.readFieldEnd()
12241
    iprot.readStructEnd()
12242
 
12243
  def write(self, oprot):
12244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12246
      return
12247
    oprot.writeStructBegin('getAllBrands_args')
12248
    oprot.writeFieldStop()
12249
    oprot.writeStructEnd()
12250
 
12251
  def validate(self):
12252
    return
12253
 
12254
 
12255
  def __repr__(self):
12256
    L = ['%s=%r' % (key, value)
12257
      for key, value in self.__dict__.iteritems()]
12258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12259
 
12260
  def __eq__(self, other):
12261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12262
 
12263
  def __ne__(self, other):
12264
    return not (self == other)
12265
 
12266
class getAllBrands_result:
12267
  """
12268
  Attributes:
12269
   - success
12270
  """
12271
 
12272
  thrift_spec = (
12273
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12274
  )
12275
 
12276
  def __init__(self, success=None,):
12277
    self.success = success
12278
 
12279
  def read(self, iprot):
12280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12282
      return
12283
    iprot.readStructBegin()
12284
    while True:
12285
      (fname, ftype, fid) = iprot.readFieldBegin()
12286
      if ftype == TType.STOP:
12287
        break
12288
      if fid == 0:
12289
        if ftype == TType.LIST:
12290
          self.success = []
6850 kshitij.so 12291
          (_etype217, _size214) = iprot.readListBegin()
12292
          for _i218 in xrange(_size214):
12293
            _elem219 = iprot.readString();
12294
            self.success.append(_elem219)
5944 mandeep.dh 12295
          iprot.readListEnd()
12296
        else:
12297
          iprot.skip(ftype)
12298
      else:
12299
        iprot.skip(ftype)
12300
      iprot.readFieldEnd()
12301
    iprot.readStructEnd()
12302
 
12303
  def write(self, oprot):
12304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12306
      return
12307
    oprot.writeStructBegin('getAllBrands_result')
12308
    if self.success is not None:
12309
      oprot.writeFieldBegin('success', TType.LIST, 0)
12310
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12311
      for iter220 in self.success:
12312
        oprot.writeString(iter220)
5944 mandeep.dh 12313
      oprot.writeListEnd()
12314
      oprot.writeFieldEnd()
12315
    oprot.writeFieldStop()
12316
    oprot.writeStructEnd()
12317
 
12318
  def validate(self):
12319
    return
12320
 
12321
 
12322
  def __repr__(self):
12323
    L = ['%s=%r' % (key, value)
12324
      for key, value in self.__dict__.iteritems()]
12325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12326
 
12327
  def __eq__(self, other):
12328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12329
 
12330
  def __ne__(self, other):
12331
    return not (self == other)
12332
 
12333
class getAllSources_args:
12334
 
12335
  thrift_spec = (
12336
  )
12337
 
12338
  def read(self, iprot):
12339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12341
      return
12342
    iprot.readStructBegin()
12343
    while True:
12344
      (fname, ftype, fid) = iprot.readFieldBegin()
12345
      if ftype == TType.STOP:
12346
        break
12347
      else:
12348
        iprot.skip(ftype)
12349
      iprot.readFieldEnd()
12350
    iprot.readStructEnd()
12351
 
12352
  def write(self, oprot):
12353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12355
      return
12356
    oprot.writeStructBegin('getAllSources_args')
12357
    oprot.writeFieldStop()
12358
    oprot.writeStructEnd()
12359
 
12360
  def validate(self):
12361
    return
12362
 
12363
 
12364
  def __repr__(self):
12365
    L = ['%s=%r' % (key, value)
12366
      for key, value in self.__dict__.iteritems()]
12367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12368
 
12369
  def __eq__(self, other):
12370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12371
 
12372
  def __ne__(self, other):
12373
    return not (self == other)
12374
 
12375
class getAllSources_result:
12376
  """
12377
  Attributes:
12378
   - success
12379
  """
12380
 
12381
  thrift_spec = (
12382
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
12383
  )
12384
 
12385
  def __init__(self, success=None,):
12386
    self.success = success
12387
 
12388
  def read(self, iprot):
12389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12391
      return
12392
    iprot.readStructBegin()
12393
    while True:
12394
      (fname, ftype, fid) = iprot.readFieldBegin()
12395
      if ftype == TType.STOP:
12396
        break
12397
      if fid == 0:
12398
        if ftype == TType.LIST:
12399
          self.success = []
6850 kshitij.so 12400
          (_etype224, _size221) = iprot.readListBegin()
12401
          for _i225 in xrange(_size221):
12402
            _elem226 = Source()
12403
            _elem226.read(iprot)
12404
            self.success.append(_elem226)
5944 mandeep.dh 12405
          iprot.readListEnd()
12406
        else:
12407
          iprot.skip(ftype)
12408
      else:
12409
        iprot.skip(ftype)
12410
      iprot.readFieldEnd()
12411
    iprot.readStructEnd()
12412
 
12413
  def write(self, oprot):
12414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12416
      return
12417
    oprot.writeStructBegin('getAllSources_result')
12418
    if self.success is not None:
12419
      oprot.writeFieldBegin('success', TType.LIST, 0)
12420
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12421
      for iter227 in self.success:
12422
        iter227.write(oprot)
5944 mandeep.dh 12423
      oprot.writeListEnd()
12424
      oprot.writeFieldEnd()
12425
    oprot.writeFieldStop()
12426
    oprot.writeStructEnd()
12427
 
12428
  def validate(self):
12429
    return
12430
 
12431
 
12432
  def __repr__(self):
12433
    L = ['%s=%r' % (key, value)
12434
      for key, value in self.__dict__.iteritems()]
12435
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12436
 
12437
  def __eq__(self, other):
12438
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12439
 
12440
  def __ne__(self, other):
12441
    return not (self == other)
12442
 
12443
class getItemPricingBySource_args:
12444
  """
12445
  Attributes:
12446
   - itemId
12447
   - sourceId
12448
  """
12449
 
12450
  thrift_spec = (
12451
    None, # 0
12452
    (1, TType.I64, 'itemId', None, None, ), # 1
12453
    (2, TType.I64, 'sourceId', None, None, ), # 2
12454
  )
12455
 
12456
  def __init__(self, itemId=None, sourceId=None,):
12457
    self.itemId = itemId
12458
    self.sourceId = sourceId
12459
 
12460
  def read(self, iprot):
12461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12463
      return
12464
    iprot.readStructBegin()
12465
    while True:
12466
      (fname, ftype, fid) = iprot.readFieldBegin()
12467
      if ftype == TType.STOP:
12468
        break
12469
      if fid == 1:
12470
        if ftype == TType.I64:
12471
          self.itemId = iprot.readI64();
12472
        else:
12473
          iprot.skip(ftype)
12474
      elif fid == 2:
12475
        if ftype == TType.I64:
12476
          self.sourceId = iprot.readI64();
12477
        else:
12478
          iprot.skip(ftype)
12479
      else:
12480
        iprot.skip(ftype)
12481
      iprot.readFieldEnd()
12482
    iprot.readStructEnd()
12483
 
12484
  def write(self, oprot):
12485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12487
      return
12488
    oprot.writeStructBegin('getItemPricingBySource_args')
12489
    if self.itemId is not None:
12490
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12491
      oprot.writeI64(self.itemId)
12492
      oprot.writeFieldEnd()
12493
    if self.sourceId is not None:
12494
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12495
      oprot.writeI64(self.sourceId)
12496
      oprot.writeFieldEnd()
12497
    oprot.writeFieldStop()
12498
    oprot.writeStructEnd()
12499
 
12500
  def validate(self):
12501
    return
12502
 
12503
 
12504
  def __repr__(self):
12505
    L = ['%s=%r' % (key, value)
12506
      for key, value in self.__dict__.iteritems()]
12507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12508
 
12509
  def __eq__(self, other):
12510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12511
 
12512
  def __ne__(self, other):
12513
    return not (self == other)
12514
 
12515
class getItemPricingBySource_result:
12516
  """
12517
  Attributes:
12518
   - success
12519
   - cex
12520
  """
12521
 
12522
  thrift_spec = (
12523
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
12524
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12525
  )
12526
 
12527
  def __init__(self, success=None, cex=None,):
12528
    self.success = success
12529
    self.cex = cex
12530
 
12531
  def read(self, iprot):
12532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12534
      return
12535
    iprot.readStructBegin()
12536
    while True:
12537
      (fname, ftype, fid) = iprot.readFieldBegin()
12538
      if ftype == TType.STOP:
12539
        break
12540
      if fid == 0:
12541
        if ftype == TType.STRUCT:
12542
          self.success = SourceItemPricing()
12543
          self.success.read(iprot)
12544
        else:
12545
          iprot.skip(ftype)
12546
      elif fid == 1:
12547
        if ftype == TType.STRUCT:
12548
          self.cex = CatalogServiceException()
12549
          self.cex.read(iprot)
12550
        else:
12551
          iprot.skip(ftype)
12552
      else:
12553
        iprot.skip(ftype)
12554
      iprot.readFieldEnd()
12555
    iprot.readStructEnd()
12556
 
12557
  def write(self, oprot):
12558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12560
      return
12561
    oprot.writeStructBegin('getItemPricingBySource_result')
12562
    if self.success is not None:
12563
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12564
      self.success.write(oprot)
12565
      oprot.writeFieldEnd()
12566
    if self.cex is not None:
12567
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12568
      self.cex.write(oprot)
12569
      oprot.writeFieldEnd()
12570
    oprot.writeFieldStop()
12571
    oprot.writeStructEnd()
12572
 
12573
  def validate(self):
12574
    return
12575
 
12576
 
12577
  def __repr__(self):
12578
    L = ['%s=%r' % (key, value)
12579
      for key, value in self.__dict__.iteritems()]
12580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12581
 
12582
  def __eq__(self, other):
12583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12584
 
12585
  def __ne__(self, other):
12586
    return not (self == other)
12587
 
12588
class addSourceItemPricing_args:
12589
  """
12590
  Attributes:
12591
   - sourceItemPricing
12592
  """
12593
 
12594
  thrift_spec = (
12595
    None, # 0
12596
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
12597
  )
12598
 
12599
  def __init__(self, sourceItemPricing=None,):
12600
    self.sourceItemPricing = sourceItemPricing
12601
 
12602
  def read(self, iprot):
12603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12605
      return
12606
    iprot.readStructBegin()
12607
    while True:
12608
      (fname, ftype, fid) = iprot.readFieldBegin()
12609
      if ftype == TType.STOP:
12610
        break
12611
      if fid == 1:
12612
        if ftype == TType.STRUCT:
12613
          self.sourceItemPricing = SourceItemPricing()
12614
          self.sourceItemPricing.read(iprot)
12615
        else:
12616
          iprot.skip(ftype)
12617
      else:
12618
        iprot.skip(ftype)
12619
      iprot.readFieldEnd()
12620
    iprot.readStructEnd()
12621
 
12622
  def write(self, oprot):
12623
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12624
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12625
      return
12626
    oprot.writeStructBegin('addSourceItemPricing_args')
12627
    if self.sourceItemPricing is not None:
12628
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
12629
      self.sourceItemPricing.write(oprot)
12630
      oprot.writeFieldEnd()
12631
    oprot.writeFieldStop()
12632
    oprot.writeStructEnd()
12633
 
12634
  def validate(self):
12635
    return
12636
 
12637
 
12638
  def __repr__(self):
12639
    L = ['%s=%r' % (key, value)
12640
      for key, value in self.__dict__.iteritems()]
12641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12642
 
12643
  def __eq__(self, other):
12644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12645
 
12646
  def __ne__(self, other):
12647
    return not (self == other)
12648
 
12649
class addSourceItemPricing_result:
12650
  """
12651
  Attributes:
12652
   - cex
12653
  """
12654
 
12655
  thrift_spec = (
12656
    None, # 0
12657
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12658
  )
12659
 
12660
  def __init__(self, cex=None,):
12661
    self.cex = cex
12662
 
12663
  def read(self, iprot):
12664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12666
      return
12667
    iprot.readStructBegin()
12668
    while True:
12669
      (fname, ftype, fid) = iprot.readFieldBegin()
12670
      if ftype == TType.STOP:
12671
        break
12672
      if fid == 1:
12673
        if ftype == TType.STRUCT:
12674
          self.cex = CatalogServiceException()
12675
          self.cex.read(iprot)
12676
        else:
12677
          iprot.skip(ftype)
12678
      else:
12679
        iprot.skip(ftype)
12680
      iprot.readFieldEnd()
12681
    iprot.readStructEnd()
12682
 
12683
  def write(self, oprot):
12684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12686
      return
12687
    oprot.writeStructBegin('addSourceItemPricing_result')
12688
    if self.cex is not None:
12689
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12690
      self.cex.write(oprot)
12691
      oprot.writeFieldEnd()
12692
    oprot.writeFieldStop()
12693
    oprot.writeStructEnd()
12694
 
12695
  def validate(self):
12696
    return
12697
 
12698
 
12699
  def __repr__(self):
12700
    L = ['%s=%r' % (key, value)
12701
      for key, value in self.__dict__.iteritems()]
12702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12703
 
12704
  def __eq__(self, other):
12705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12706
 
12707
  def __ne__(self, other):
12708
    return not (self == other)
12709
 
12710
class getAllSourcePricing_args:
12711
  """
12712
  Attributes:
12713
   - itemId
12714
  """
12715
 
12716
  thrift_spec = (
12717
    None, # 0
12718
    (1, TType.I64, 'itemId', None, None, ), # 1
12719
  )
12720
 
12721
  def __init__(self, itemId=None,):
12722
    self.itemId = itemId
12723
 
12724
  def read(self, iprot):
12725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12727
      return
12728
    iprot.readStructBegin()
12729
    while True:
12730
      (fname, ftype, fid) = iprot.readFieldBegin()
12731
      if ftype == TType.STOP:
12732
        break
12733
      if fid == 1:
12734
        if ftype == TType.I64:
12735
          self.itemId = iprot.readI64();
12736
        else:
12737
          iprot.skip(ftype)
12738
      else:
12739
        iprot.skip(ftype)
12740
      iprot.readFieldEnd()
12741
    iprot.readStructEnd()
12742
 
12743
  def write(self, oprot):
12744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12746
      return
12747
    oprot.writeStructBegin('getAllSourcePricing_args')
12748
    if self.itemId is not None:
12749
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12750
      oprot.writeI64(self.itemId)
12751
      oprot.writeFieldEnd()
12752
    oprot.writeFieldStop()
12753
    oprot.writeStructEnd()
12754
 
12755
  def validate(self):
12756
    return
12757
 
12758
 
12759
  def __repr__(self):
12760
    L = ['%s=%r' % (key, value)
12761
      for key, value in self.__dict__.iteritems()]
12762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12763
 
12764
  def __eq__(self, other):
12765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12766
 
12767
  def __ne__(self, other):
12768
    return not (self == other)
12769
 
12770
class getAllSourcePricing_result:
12771
  """
12772
  Attributes:
12773
   - success
12774
   - cex
12775
  """
12776
 
12777
  thrift_spec = (
12778
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
12779
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12780
  )
12781
 
12782
  def __init__(self, success=None, cex=None,):
12783
    self.success = success
12784
    self.cex = cex
12785
 
12786
  def read(self, iprot):
12787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12789
      return
12790
    iprot.readStructBegin()
12791
    while True:
12792
      (fname, ftype, fid) = iprot.readFieldBegin()
12793
      if ftype == TType.STOP:
12794
        break
12795
      if fid == 0:
12796
        if ftype == TType.LIST:
12797
          self.success = []
6850 kshitij.so 12798
          (_etype231, _size228) = iprot.readListBegin()
12799
          for _i232 in xrange(_size228):
12800
            _elem233 = SourceItemPricing()
12801
            _elem233.read(iprot)
12802
            self.success.append(_elem233)
5944 mandeep.dh 12803
          iprot.readListEnd()
12804
        else:
12805
          iprot.skip(ftype)
12806
      elif fid == 1:
12807
        if ftype == TType.STRUCT:
12808
          self.cex = CatalogServiceException()
12809
          self.cex.read(iprot)
12810
        else:
12811
          iprot.skip(ftype)
12812
      else:
12813
        iprot.skip(ftype)
12814
      iprot.readFieldEnd()
12815
    iprot.readStructEnd()
12816
 
12817
  def write(self, oprot):
12818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12820
      return
12821
    oprot.writeStructBegin('getAllSourcePricing_result')
12822
    if self.success is not None:
12823
      oprot.writeFieldBegin('success', TType.LIST, 0)
12824
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12825
      for iter234 in self.success:
12826
        iter234.write(oprot)
5944 mandeep.dh 12827
      oprot.writeListEnd()
12828
      oprot.writeFieldEnd()
12829
    if self.cex is not None:
12830
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12831
      self.cex.write(oprot)
12832
      oprot.writeFieldEnd()
12833
    oprot.writeFieldStop()
12834
    oprot.writeStructEnd()
12835
 
12836
  def validate(self):
12837
    return
12838
 
12839
 
12840
  def __repr__(self):
12841
    L = ['%s=%r' % (key, value)
12842
      for key, value in self.__dict__.iteritems()]
12843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12844
 
12845
  def __eq__(self, other):
12846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12847
 
12848
  def __ne__(self, other):
12849
    return not (self == other)
12850
 
12851
class getItemForSource_args:
12852
  """
12853
  Attributes:
12854
   - item_id
12855
   - sourceId
12856
  """
12857
 
12858
  thrift_spec = (
12859
    None, # 0
12860
    (1, TType.I64, 'item_id', None, None, ), # 1
12861
    (2, TType.I64, 'sourceId', None, None, ), # 2
12862
  )
12863
 
12864
  def __init__(self, item_id=None, sourceId=None,):
12865
    self.item_id = item_id
12866
    self.sourceId = sourceId
12867
 
12868
  def read(self, iprot):
12869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12871
      return
12872
    iprot.readStructBegin()
12873
    while True:
12874
      (fname, ftype, fid) = iprot.readFieldBegin()
12875
      if ftype == TType.STOP:
12876
        break
12877
      if fid == 1:
12878
        if ftype == TType.I64:
12879
          self.item_id = iprot.readI64();
12880
        else:
12881
          iprot.skip(ftype)
12882
      elif fid == 2:
12883
        if ftype == TType.I64:
12884
          self.sourceId = iprot.readI64();
12885
        else:
12886
          iprot.skip(ftype)
12887
      else:
12888
        iprot.skip(ftype)
12889
      iprot.readFieldEnd()
12890
    iprot.readStructEnd()
12891
 
12892
  def write(self, oprot):
12893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12895
      return
12896
    oprot.writeStructBegin('getItemForSource_args')
12897
    if self.item_id is not None:
12898
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12899
      oprot.writeI64(self.item_id)
12900
      oprot.writeFieldEnd()
12901
    if self.sourceId is not None:
12902
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12903
      oprot.writeI64(self.sourceId)
12904
      oprot.writeFieldEnd()
12905
    oprot.writeFieldStop()
12906
    oprot.writeStructEnd()
12907
 
12908
  def validate(self):
12909
    return
12910
 
12911
 
12912
  def __repr__(self):
12913
    L = ['%s=%r' % (key, value)
12914
      for key, value in self.__dict__.iteritems()]
12915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12916
 
12917
  def __eq__(self, other):
12918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12919
 
12920
  def __ne__(self, other):
12921
    return not (self == other)
12922
 
12923
class getItemForSource_result:
12924
  """
12925
  Attributes:
12926
   - success
12927
   - cex
12928
  """
12929
 
12930
  thrift_spec = (
12931
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
12932
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12933
  )
12934
 
12935
  def __init__(self, success=None, cex=None,):
12936
    self.success = success
12937
    self.cex = cex
12938
 
12939
  def read(self, iprot):
12940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12942
      return
12943
    iprot.readStructBegin()
12944
    while True:
12945
      (fname, ftype, fid) = iprot.readFieldBegin()
12946
      if ftype == TType.STOP:
12947
        break
12948
      if fid == 0:
12949
        if ftype == TType.STRUCT:
12950
          self.success = Item()
12951
          self.success.read(iprot)
12952
        else:
12953
          iprot.skip(ftype)
12954
      elif fid == 1:
12955
        if ftype == TType.STRUCT:
12956
          self.cex = CatalogServiceException()
12957
          self.cex.read(iprot)
12958
        else:
12959
          iprot.skip(ftype)
12960
      else:
12961
        iprot.skip(ftype)
12962
      iprot.readFieldEnd()
12963
    iprot.readStructEnd()
12964
 
12965
  def write(self, oprot):
12966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12968
      return
12969
    oprot.writeStructBegin('getItemForSource_result')
12970
    if self.success is not None:
12971
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12972
      self.success.write(oprot)
12973
      oprot.writeFieldEnd()
12974
    if self.cex is not None:
12975
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12976
      self.cex.write(oprot)
12977
      oprot.writeFieldEnd()
12978
    oprot.writeFieldStop()
12979
    oprot.writeStructEnd()
12980
 
12981
  def validate(self):
12982
    return
12983
 
12984
 
12985
  def __repr__(self):
12986
    L = ['%s=%r' % (key, value)
12987
      for key, value in self.__dict__.iteritems()]
12988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12989
 
12990
  def __eq__(self, other):
12991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12992
 
12993
  def __ne__(self, other):
12994
    return not (self == other)
12995
 
12996
class searchItemsInRange_args:
12997
  """
12998
  Attributes:
12999
   - searchTerms
13000
   - offset
13001
   - limit
13002
  """
13003
 
13004
  thrift_spec = (
13005
    None, # 0
13006
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13007
    (2, TType.I64, 'offset', None, None, ), # 2
13008
    (3, TType.I64, 'limit', None, None, ), # 3
13009
  )
13010
 
13011
  def __init__(self, searchTerms=None, offset=None, limit=None,):
13012
    self.searchTerms = searchTerms
13013
    self.offset = offset
13014
    self.limit = limit
13015
 
13016
  def read(self, iprot):
13017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13019
      return
13020
    iprot.readStructBegin()
13021
    while True:
13022
      (fname, ftype, fid) = iprot.readFieldBegin()
13023
      if ftype == TType.STOP:
13024
        break
13025
      if fid == 1:
13026
        if ftype == TType.LIST:
13027
          self.searchTerms = []
6850 kshitij.so 13028
          (_etype238, _size235) = iprot.readListBegin()
13029
          for _i239 in xrange(_size235):
13030
            _elem240 = iprot.readString();
13031
            self.searchTerms.append(_elem240)
5944 mandeep.dh 13032
          iprot.readListEnd()
13033
        else:
13034
          iprot.skip(ftype)
13035
      elif fid == 2:
13036
        if ftype == TType.I64:
13037
          self.offset = iprot.readI64();
13038
        else:
13039
          iprot.skip(ftype)
13040
      elif fid == 3:
13041
        if ftype == TType.I64:
13042
          self.limit = iprot.readI64();
13043
        else:
13044
          iprot.skip(ftype)
13045
      else:
13046
        iprot.skip(ftype)
13047
      iprot.readFieldEnd()
13048
    iprot.readStructEnd()
13049
 
13050
  def write(self, oprot):
13051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13053
      return
13054
    oprot.writeStructBegin('searchItemsInRange_args')
13055
    if self.searchTerms is not None:
13056
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13057
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13058
      for iter241 in self.searchTerms:
13059
        oprot.writeString(iter241)
5944 mandeep.dh 13060
      oprot.writeListEnd()
13061
      oprot.writeFieldEnd()
13062
    if self.offset is not None:
13063
      oprot.writeFieldBegin('offset', TType.I64, 2)
13064
      oprot.writeI64(self.offset)
13065
      oprot.writeFieldEnd()
13066
    if self.limit is not None:
13067
      oprot.writeFieldBegin('limit', TType.I64, 3)
13068
      oprot.writeI64(self.limit)
13069
      oprot.writeFieldEnd()
13070
    oprot.writeFieldStop()
13071
    oprot.writeStructEnd()
13072
 
13073
  def validate(self):
13074
    return
13075
 
13076
 
13077
  def __repr__(self):
13078
    L = ['%s=%r' % (key, value)
13079
      for key, value in self.__dict__.iteritems()]
13080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13081
 
13082
  def __eq__(self, other):
13083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13084
 
13085
  def __ne__(self, other):
13086
    return not (self == other)
13087
 
13088
class searchItemsInRange_result:
13089
  """
13090
  Attributes:
13091
   - success
13092
  """
13093
 
13094
  thrift_spec = (
13095
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13096
  )
13097
 
13098
  def __init__(self, success=None,):
13099
    self.success = success
13100
 
13101
  def read(self, iprot):
13102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13104
      return
13105
    iprot.readStructBegin()
13106
    while True:
13107
      (fname, ftype, fid) = iprot.readFieldBegin()
13108
      if ftype == TType.STOP:
13109
        break
13110
      if fid == 0:
13111
        if ftype == TType.LIST:
13112
          self.success = []
6850 kshitij.so 13113
          (_etype245, _size242) = iprot.readListBegin()
13114
          for _i246 in xrange(_size242):
13115
            _elem247 = Item()
13116
            _elem247.read(iprot)
13117
            self.success.append(_elem247)
5944 mandeep.dh 13118
          iprot.readListEnd()
13119
        else:
13120
          iprot.skip(ftype)
13121
      else:
13122
        iprot.skip(ftype)
13123
      iprot.readFieldEnd()
13124
    iprot.readStructEnd()
13125
 
13126
  def write(self, oprot):
13127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13129
      return
13130
    oprot.writeStructBegin('searchItemsInRange_result')
13131
    if self.success is not None:
13132
      oprot.writeFieldBegin('success', TType.LIST, 0)
13133
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13134
      for iter248 in self.success:
13135
        iter248.write(oprot)
5944 mandeep.dh 13136
      oprot.writeListEnd()
13137
      oprot.writeFieldEnd()
13138
    oprot.writeFieldStop()
13139
    oprot.writeStructEnd()
13140
 
13141
  def validate(self):
13142
    return
13143
 
13144
 
13145
  def __repr__(self):
13146
    L = ['%s=%r' % (key, value)
13147
      for key, value in self.__dict__.iteritems()]
13148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13149
 
13150
  def __eq__(self, other):
13151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13152
 
13153
  def __ne__(self, other):
13154
    return not (self == other)
13155
 
13156
class getSearchResultCount_args:
13157
  """
13158
  Attributes:
13159
   - searchTerms
13160
  """
13161
 
13162
  thrift_spec = (
13163
    None, # 0
13164
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13165
  )
13166
 
13167
  def __init__(self, searchTerms=None,):
13168
    self.searchTerms = searchTerms
13169
 
13170
  def read(self, iprot):
13171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13173
      return
13174
    iprot.readStructBegin()
13175
    while True:
13176
      (fname, ftype, fid) = iprot.readFieldBegin()
13177
      if ftype == TType.STOP:
13178
        break
13179
      if fid == 1:
13180
        if ftype == TType.LIST:
13181
          self.searchTerms = []
6850 kshitij.so 13182
          (_etype252, _size249) = iprot.readListBegin()
13183
          for _i253 in xrange(_size249):
13184
            _elem254 = iprot.readString();
13185
            self.searchTerms.append(_elem254)
5944 mandeep.dh 13186
          iprot.readListEnd()
13187
        else:
13188
          iprot.skip(ftype)
13189
      else:
13190
        iprot.skip(ftype)
13191
      iprot.readFieldEnd()
13192
    iprot.readStructEnd()
13193
 
13194
  def write(self, oprot):
13195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13197
      return
13198
    oprot.writeStructBegin('getSearchResultCount_args')
13199
    if self.searchTerms is not None:
13200
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13201
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13202
      for iter255 in self.searchTerms:
13203
        oprot.writeString(iter255)
5944 mandeep.dh 13204
      oprot.writeListEnd()
13205
      oprot.writeFieldEnd()
13206
    oprot.writeFieldStop()
13207
    oprot.writeStructEnd()
13208
 
13209
  def validate(self):
13210
    return
13211
 
13212
 
13213
  def __repr__(self):
13214
    L = ['%s=%r' % (key, value)
13215
      for key, value in self.__dict__.iteritems()]
13216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13217
 
13218
  def __eq__(self, other):
13219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13220
 
13221
  def __ne__(self, other):
13222
    return not (self == other)
13223
 
13224
class getSearchResultCount_result:
13225
  """
13226
  Attributes:
13227
   - success
13228
  """
13229
 
13230
  thrift_spec = (
13231
    (0, TType.I32, 'success', None, None, ), # 0
13232
  )
13233
 
13234
  def __init__(self, success=None,):
13235
    self.success = success
13236
 
13237
  def read(self, iprot):
13238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13240
      return
13241
    iprot.readStructBegin()
13242
    while True:
13243
      (fname, ftype, fid) = iprot.readFieldBegin()
13244
      if ftype == TType.STOP:
13245
        break
13246
      if fid == 0:
13247
        if ftype == TType.I32:
13248
          self.success = iprot.readI32();
13249
        else:
13250
          iprot.skip(ftype)
13251
      else:
13252
        iprot.skip(ftype)
13253
      iprot.readFieldEnd()
13254
    iprot.readStructEnd()
13255
 
13256
  def write(self, oprot):
13257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13259
      return
13260
    oprot.writeStructBegin('getSearchResultCount_result')
13261
    if self.success is not None:
13262
      oprot.writeFieldBegin('success', TType.I32, 0)
13263
      oprot.writeI32(self.success)
13264
      oprot.writeFieldEnd()
13265
    oprot.writeFieldStop()
13266
    oprot.writeStructEnd()
13267
 
13268
  def validate(self):
13269
    return
13270
 
13271
 
13272
  def __repr__(self):
13273
    L = ['%s=%r' % (key, value)
13274
      for key, value in self.__dict__.iteritems()]
13275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13276
 
13277
  def __eq__(self, other):
13278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13279
 
13280
  def __ne__(self, other):
13281
    return not (self == other)
13282
 
13283
class getProductNotifications_args:
13284
  """
13285
  Attributes:
13286
   - startDateTime
13287
  """
13288
 
13289
  thrift_spec = (
13290
    None, # 0
13291
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13292
  )
13293
 
13294
  def __init__(self, startDateTime=None,):
13295
    self.startDateTime = startDateTime
13296
 
13297
  def read(self, iprot):
13298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13300
      return
13301
    iprot.readStructBegin()
13302
    while True:
13303
      (fname, ftype, fid) = iprot.readFieldBegin()
13304
      if ftype == TType.STOP:
13305
        break
13306
      if fid == 1:
13307
        if ftype == TType.I64:
13308
          self.startDateTime = iprot.readI64();
13309
        else:
13310
          iprot.skip(ftype)
13311
      else:
13312
        iprot.skip(ftype)
13313
      iprot.readFieldEnd()
13314
    iprot.readStructEnd()
13315
 
13316
  def write(self, oprot):
13317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13319
      return
13320
    oprot.writeStructBegin('getProductNotifications_args')
13321
    if self.startDateTime is not None:
13322
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13323
      oprot.writeI64(self.startDateTime)
13324
      oprot.writeFieldEnd()
13325
    oprot.writeFieldStop()
13326
    oprot.writeStructEnd()
13327
 
13328
  def validate(self):
13329
    return
13330
 
13331
 
13332
  def __repr__(self):
13333
    L = ['%s=%r' % (key, value)
13334
      for key, value in self.__dict__.iteritems()]
13335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13336
 
13337
  def __eq__(self, other):
13338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13339
 
13340
  def __ne__(self, other):
13341
    return not (self == other)
13342
 
13343
class getProductNotifications_result:
13344
  """
13345
  Attributes:
13346
   - success
13347
  """
13348
 
13349
  thrift_spec = (
13350
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
13351
  )
13352
 
13353
  def __init__(self, success=None,):
13354
    self.success = success
13355
 
13356
  def read(self, iprot):
13357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13359
      return
13360
    iprot.readStructBegin()
13361
    while True:
13362
      (fname, ftype, fid) = iprot.readFieldBegin()
13363
      if ftype == TType.STOP:
13364
        break
13365
      if fid == 0:
13366
        if ftype == TType.LIST:
13367
          self.success = []
6850 kshitij.so 13368
          (_etype259, _size256) = iprot.readListBegin()
13369
          for _i260 in xrange(_size256):
13370
            _elem261 = ProductNotificationRequest()
13371
            _elem261.read(iprot)
13372
            self.success.append(_elem261)
5944 mandeep.dh 13373
          iprot.readListEnd()
13374
        else:
13375
          iprot.skip(ftype)
13376
      else:
13377
        iprot.skip(ftype)
13378
      iprot.readFieldEnd()
13379
    iprot.readStructEnd()
13380
 
13381
  def write(self, oprot):
13382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13384
      return
13385
    oprot.writeStructBegin('getProductNotifications_result')
13386
    if self.success is not None:
13387
      oprot.writeFieldBegin('success', TType.LIST, 0)
13388
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13389
      for iter262 in self.success:
13390
        iter262.write(oprot)
5944 mandeep.dh 13391
      oprot.writeListEnd()
13392
      oprot.writeFieldEnd()
13393
    oprot.writeFieldStop()
13394
    oprot.writeStructEnd()
13395
 
13396
  def validate(self):
13397
    return
13398
 
13399
 
13400
  def __repr__(self):
13401
    L = ['%s=%r' % (key, value)
13402
      for key, value in self.__dict__.iteritems()]
13403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13404
 
13405
  def __eq__(self, other):
13406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13407
 
13408
  def __ne__(self, other):
13409
    return not (self == other)
13410
 
13411
class getProductNotificationRequestCount_args:
13412
  """
13413
  Attributes:
13414
   - startDateTime
13415
  """
13416
 
13417
  thrift_spec = (
13418
    None, # 0
13419
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13420
  )
13421
 
13422
  def __init__(self, startDateTime=None,):
13423
    self.startDateTime = startDateTime
13424
 
13425
  def read(self, iprot):
13426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13428
      return
13429
    iprot.readStructBegin()
13430
    while True:
13431
      (fname, ftype, fid) = iprot.readFieldBegin()
13432
      if ftype == TType.STOP:
13433
        break
13434
      if fid == 1:
13435
        if ftype == TType.I64:
13436
          self.startDateTime = iprot.readI64();
13437
        else:
13438
          iprot.skip(ftype)
13439
      else:
13440
        iprot.skip(ftype)
13441
      iprot.readFieldEnd()
13442
    iprot.readStructEnd()
13443
 
13444
  def write(self, oprot):
13445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13447
      return
13448
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
13449
    if self.startDateTime is not None:
13450
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13451
      oprot.writeI64(self.startDateTime)
13452
      oprot.writeFieldEnd()
13453
    oprot.writeFieldStop()
13454
    oprot.writeStructEnd()
13455
 
13456
  def validate(self):
13457
    return
13458
 
13459
 
13460
  def __repr__(self):
13461
    L = ['%s=%r' % (key, value)
13462
      for key, value in self.__dict__.iteritems()]
13463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13464
 
13465
  def __eq__(self, other):
13466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13467
 
13468
  def __ne__(self, other):
13469
    return not (self == other)
13470
 
13471
class getProductNotificationRequestCount_result:
13472
  """
13473
  Attributes:
13474
   - success
13475
  """
13476
 
13477
  thrift_spec = (
13478
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
13479
  )
13480
 
13481
  def __init__(self, success=None,):
13482
    self.success = success
13483
 
13484
  def read(self, iprot):
13485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13487
      return
13488
    iprot.readStructBegin()
13489
    while True:
13490
      (fname, ftype, fid) = iprot.readFieldBegin()
13491
      if ftype == TType.STOP:
13492
        break
13493
      if fid == 0:
13494
        if ftype == TType.LIST:
13495
          self.success = []
6850 kshitij.so 13496
          (_etype266, _size263) = iprot.readListBegin()
13497
          for _i267 in xrange(_size263):
13498
            _elem268 = ProductNotificationRequestCount()
13499
            _elem268.read(iprot)
13500
            self.success.append(_elem268)
5944 mandeep.dh 13501
          iprot.readListEnd()
13502
        else:
13503
          iprot.skip(ftype)
13504
      else:
13505
        iprot.skip(ftype)
13506
      iprot.readFieldEnd()
13507
    iprot.readStructEnd()
13508
 
13509
  def write(self, oprot):
13510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13512
      return
13513
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
13514
    if self.success is not None:
13515
      oprot.writeFieldBegin('success', TType.LIST, 0)
13516
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13517
      for iter269 in self.success:
13518
        iter269.write(oprot)
5944 mandeep.dh 13519
      oprot.writeListEnd()
13520
      oprot.writeFieldEnd()
13521
    oprot.writeFieldStop()
13522
    oprot.writeStructEnd()
13523
 
13524
  def validate(self):
13525
    return
13526
 
13527
 
13528
  def __repr__(self):
13529
    L = ['%s=%r' % (key, value)
13530
      for key, value in self.__dict__.iteritems()]
13531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13532
 
13533
  def __eq__(self, other):
13534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13535
 
13536
  def __ne__(self, other):
13537
    return not (self == other)
13538
 
13539
class addAuthorizationLog_args:
13540
  """
13541
  Attributes:
13542
   - itemId
13543
   - username
13544
   - reason
13545
  """
13546
 
13547
  thrift_spec = (
13548
    None, # 0
13549
    (1, TType.I64, 'itemId', None, None, ), # 1
13550
    (2, TType.STRING, 'username', None, None, ), # 2
13551
    (3, TType.STRING, 'reason', None, None, ), # 3
13552
  )
13553
 
13554
  def __init__(self, itemId=None, username=None, reason=None,):
13555
    self.itemId = itemId
13556
    self.username = username
13557
    self.reason = reason
13558
 
13559
  def read(self, iprot):
13560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13562
      return
13563
    iprot.readStructBegin()
13564
    while True:
13565
      (fname, ftype, fid) = iprot.readFieldBegin()
13566
      if ftype == TType.STOP:
13567
        break
13568
      if fid == 1:
13569
        if ftype == TType.I64:
13570
          self.itemId = iprot.readI64();
13571
        else:
13572
          iprot.skip(ftype)
13573
      elif fid == 2:
13574
        if ftype == TType.STRING:
13575
          self.username = iprot.readString();
13576
        else:
13577
          iprot.skip(ftype)
13578
      elif fid == 3:
13579
        if ftype == TType.STRING:
13580
          self.reason = iprot.readString();
13581
        else:
13582
          iprot.skip(ftype)
13583
      else:
13584
        iprot.skip(ftype)
13585
      iprot.readFieldEnd()
13586
    iprot.readStructEnd()
13587
 
13588
  def write(self, oprot):
13589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13591
      return
13592
    oprot.writeStructBegin('addAuthorizationLog_args')
13593
    if self.itemId is not None:
13594
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13595
      oprot.writeI64(self.itemId)
13596
      oprot.writeFieldEnd()
13597
    if self.username is not None:
13598
      oprot.writeFieldBegin('username', TType.STRING, 2)
13599
      oprot.writeString(self.username)
13600
      oprot.writeFieldEnd()
13601
    if self.reason is not None:
13602
      oprot.writeFieldBegin('reason', TType.STRING, 3)
13603
      oprot.writeString(self.reason)
13604
      oprot.writeFieldEnd()
13605
    oprot.writeFieldStop()
13606
    oprot.writeStructEnd()
13607
 
13608
  def validate(self):
13609
    return
13610
 
13611
 
13612
  def __repr__(self):
13613
    L = ['%s=%r' % (key, value)
13614
      for key, value in self.__dict__.iteritems()]
13615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13616
 
13617
  def __eq__(self, other):
13618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13619
 
13620
  def __ne__(self, other):
13621
    return not (self == other)
13622
 
13623
class addAuthorizationLog_result:
13624
  """
13625
  Attributes:
13626
   - success
13627
   - cex
13628
  """
13629
 
13630
  thrift_spec = (
13631
    (0, TType.BOOL, 'success', None, None, ), # 0
13632
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13633
  )
13634
 
13635
  def __init__(self, success=None, cex=None,):
13636
    self.success = success
13637
    self.cex = cex
13638
 
13639
  def read(self, iprot):
13640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13642
      return
13643
    iprot.readStructBegin()
13644
    while True:
13645
      (fname, ftype, fid) = iprot.readFieldBegin()
13646
      if ftype == TType.STOP:
13647
        break
13648
      if fid == 0:
13649
        if ftype == TType.BOOL:
13650
          self.success = iprot.readBool();
13651
        else:
13652
          iprot.skip(ftype)
13653
      elif fid == 1:
13654
        if ftype == TType.STRUCT:
13655
          self.cex = CatalogServiceException()
13656
          self.cex.read(iprot)
13657
        else:
13658
          iprot.skip(ftype)
13659
      else:
13660
        iprot.skip(ftype)
13661
      iprot.readFieldEnd()
13662
    iprot.readStructEnd()
13663
 
13664
  def write(self, oprot):
13665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13667
      return
13668
    oprot.writeStructBegin('addAuthorizationLog_result')
13669
    if self.success is not None:
13670
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13671
      oprot.writeBool(self.success)
13672
      oprot.writeFieldEnd()
13673
    if self.cex is not None:
13674
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13675
      self.cex.write(oprot)
13676
      oprot.writeFieldEnd()
13677
    oprot.writeFieldStop()
13678
    oprot.writeStructEnd()
13679
 
13680
  def validate(self):
13681
    return
13682
 
13683
 
13684
  def __repr__(self):
13685
    L = ['%s=%r' % (key, value)
13686
      for key, value in self.__dict__.iteritems()]
13687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13688
 
13689
  def __eq__(self, other):
13690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13691
 
13692
  def __ne__(self, other):
13693
    return not (self == other)
13694
 
13695
class addupdateVoucherForItem_args:
13696
  """
13697
  Attributes:
13698
   - catalog_item_id
13699
   - voucherType
13700
   - voucherAmount
13701
  """
13702
 
13703
  thrift_spec = (
13704
    None, # 0
13705
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13706
    (2, TType.I64, 'voucherType', None, None, ), # 2
13707
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
13708
  )
13709
 
13710
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
13711
    self.catalog_item_id = catalog_item_id
13712
    self.voucherType = voucherType
13713
    self.voucherAmount = voucherAmount
13714
 
13715
  def read(self, iprot):
13716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13718
      return
13719
    iprot.readStructBegin()
13720
    while True:
13721
      (fname, ftype, fid) = iprot.readFieldBegin()
13722
      if ftype == TType.STOP:
13723
        break
13724
      if fid == 1:
13725
        if ftype == TType.I64:
13726
          self.catalog_item_id = iprot.readI64();
13727
        else:
13728
          iprot.skip(ftype)
13729
      elif fid == 2:
13730
        if ftype == TType.I64:
13731
          self.voucherType = iprot.readI64();
13732
        else:
13733
          iprot.skip(ftype)
13734
      elif fid == 3:
13735
        if ftype == TType.I64:
13736
          self.voucherAmount = iprot.readI64();
13737
        else:
13738
          iprot.skip(ftype)
13739
      else:
13740
        iprot.skip(ftype)
13741
      iprot.readFieldEnd()
13742
    iprot.readStructEnd()
13743
 
13744
  def write(self, oprot):
13745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13747
      return
13748
    oprot.writeStructBegin('addupdateVoucherForItem_args')
13749
    if self.catalog_item_id is not None:
13750
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13751
      oprot.writeI64(self.catalog_item_id)
13752
      oprot.writeFieldEnd()
13753
    if self.voucherType is not None:
13754
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13755
      oprot.writeI64(self.voucherType)
13756
      oprot.writeFieldEnd()
13757
    if self.voucherAmount is not None:
13758
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
13759
      oprot.writeI64(self.voucherAmount)
13760
      oprot.writeFieldEnd()
13761
    oprot.writeFieldStop()
13762
    oprot.writeStructEnd()
13763
 
13764
  def validate(self):
13765
    return
13766
 
13767
 
13768
  def __repr__(self):
13769
    L = ['%s=%r' % (key, value)
13770
      for key, value in self.__dict__.iteritems()]
13771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13772
 
13773
  def __eq__(self, other):
13774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13775
 
13776
  def __ne__(self, other):
13777
    return not (self == other)
13778
 
13779
class addupdateVoucherForItem_result:
13780
  """
13781
  Attributes:
13782
   - success
13783
   - cex
13784
  """
13785
 
13786
  thrift_spec = (
13787
    (0, TType.BOOL, 'success', None, None, ), # 0
13788
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13789
  )
13790
 
13791
  def __init__(self, success=None, cex=None,):
13792
    self.success = success
13793
    self.cex = cex
13794
 
13795
  def read(self, iprot):
13796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13798
      return
13799
    iprot.readStructBegin()
13800
    while True:
13801
      (fname, ftype, fid) = iprot.readFieldBegin()
13802
      if ftype == TType.STOP:
13803
        break
13804
      if fid == 0:
13805
        if ftype == TType.BOOL:
13806
          self.success = iprot.readBool();
13807
        else:
13808
          iprot.skip(ftype)
13809
      elif fid == 1:
13810
        if ftype == TType.STRUCT:
13811
          self.cex = CatalogServiceException()
13812
          self.cex.read(iprot)
13813
        else:
13814
          iprot.skip(ftype)
13815
      else:
13816
        iprot.skip(ftype)
13817
      iprot.readFieldEnd()
13818
    iprot.readStructEnd()
13819
 
13820
  def write(self, oprot):
13821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13823
      return
13824
    oprot.writeStructBegin('addupdateVoucherForItem_result')
13825
    if self.success is not None:
13826
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13827
      oprot.writeBool(self.success)
13828
      oprot.writeFieldEnd()
13829
    if self.cex is not None:
13830
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13831
      self.cex.write(oprot)
13832
      oprot.writeFieldEnd()
13833
    oprot.writeFieldStop()
13834
    oprot.writeStructEnd()
13835
 
13836
  def validate(self):
13837
    return
13838
 
13839
 
13840
  def __repr__(self):
13841
    L = ['%s=%r' % (key, value)
13842
      for key, value in self.__dict__.iteritems()]
13843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13844
 
13845
  def __eq__(self, other):
13846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13847
 
13848
  def __ne__(self, other):
13849
    return not (self == other)
13850
 
13851
class deleteVoucherForItem_args:
13852
  """
13853
  Attributes:
13854
   - catalog_item_id
13855
   - voucherType
13856
  """
13857
 
13858
  thrift_spec = (
13859
    None, # 0
13860
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13861
    (2, TType.I64, 'voucherType', None, None, ), # 2
13862
  )
13863
 
13864
  def __init__(self, catalog_item_id=None, voucherType=None,):
13865
    self.catalog_item_id = catalog_item_id
13866
    self.voucherType = voucherType
13867
 
13868
  def read(self, iprot):
13869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13871
      return
13872
    iprot.readStructBegin()
13873
    while True:
13874
      (fname, ftype, fid) = iprot.readFieldBegin()
13875
      if ftype == TType.STOP:
13876
        break
13877
      if fid == 1:
13878
        if ftype == TType.I64:
13879
          self.catalog_item_id = iprot.readI64();
13880
        else:
13881
          iprot.skip(ftype)
13882
      elif fid == 2:
13883
        if ftype == TType.I64:
13884
          self.voucherType = iprot.readI64();
13885
        else:
13886
          iprot.skip(ftype)
13887
      else:
13888
        iprot.skip(ftype)
13889
      iprot.readFieldEnd()
13890
    iprot.readStructEnd()
13891
 
13892
  def write(self, oprot):
13893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13895
      return
13896
    oprot.writeStructBegin('deleteVoucherForItem_args')
13897
    if self.catalog_item_id is not None:
13898
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13899
      oprot.writeI64(self.catalog_item_id)
13900
      oprot.writeFieldEnd()
13901
    if self.voucherType is not None:
13902
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13903
      oprot.writeI64(self.voucherType)
13904
      oprot.writeFieldEnd()
13905
    oprot.writeFieldStop()
13906
    oprot.writeStructEnd()
13907
 
13908
  def validate(self):
13909
    return
13910
 
13911
 
13912
  def __repr__(self):
13913
    L = ['%s=%r' % (key, value)
13914
      for key, value in self.__dict__.iteritems()]
13915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13916
 
13917
  def __eq__(self, other):
13918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13919
 
13920
  def __ne__(self, other):
13921
    return not (self == other)
13922
 
13923
class deleteVoucherForItem_result:
13924
  """
13925
  Attributes:
13926
   - success
13927
   - cex
13928
  """
13929
 
13930
  thrift_spec = (
13931
    (0, TType.BOOL, 'success', None, None, ), # 0
13932
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13933
  )
13934
 
13935
  def __init__(self, success=None, cex=None,):
13936
    self.success = success
13937
    self.cex = cex
13938
 
13939
  def read(self, iprot):
13940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13942
      return
13943
    iprot.readStructBegin()
13944
    while True:
13945
      (fname, ftype, fid) = iprot.readFieldBegin()
13946
      if ftype == TType.STOP:
13947
        break
13948
      if fid == 0:
13949
        if ftype == TType.BOOL:
13950
          self.success = iprot.readBool();
13951
        else:
13952
          iprot.skip(ftype)
13953
      elif fid == 1:
13954
        if ftype == TType.STRUCT:
13955
          self.cex = CatalogServiceException()
13956
          self.cex.read(iprot)
13957
        else:
13958
          iprot.skip(ftype)
13959
      else:
13960
        iprot.skip(ftype)
13961
      iprot.readFieldEnd()
13962
    iprot.readStructEnd()
13963
 
13964
  def write(self, oprot):
13965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13967
      return
13968
    oprot.writeStructBegin('deleteVoucherForItem_result')
13969
    if self.success is not None:
13970
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13971
      oprot.writeBool(self.success)
13972
      oprot.writeFieldEnd()
13973
    if self.cex is not None:
13974
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13975
      self.cex.write(oprot)
13976
      oprot.writeFieldEnd()
13977
    oprot.writeFieldStop()
13978
    oprot.writeStructEnd()
13979
 
13980
  def validate(self):
13981
    return
13982
 
13983
 
13984
  def __repr__(self):
13985
    L = ['%s=%r' % (key, value)
13986
      for key, value in self.__dict__.iteritems()]
13987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13988
 
13989
  def __eq__(self, other):
13990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13991
 
13992
  def __ne__(self, other):
13993
    return not (self == other)
13994
 
13995
class getVoucherAmount_args:
13996
  """
13997
  Attributes:
13998
   - itemId
13999
   - voucherType
14000
  """
14001
 
14002
  thrift_spec = (
14003
    None, # 0
14004
    (1, TType.I64, 'itemId', None, None, ), # 1
14005
    (2, TType.I64, 'voucherType', None, None, ), # 2
14006
  )
14007
 
14008
  def __init__(self, itemId=None, voucherType=None,):
14009
    self.itemId = itemId
14010
    self.voucherType = voucherType
14011
 
14012
  def read(self, iprot):
14013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14015
      return
14016
    iprot.readStructBegin()
14017
    while True:
14018
      (fname, ftype, fid) = iprot.readFieldBegin()
14019
      if ftype == TType.STOP:
14020
        break
14021
      if fid == 1:
14022
        if ftype == TType.I64:
14023
          self.itemId = iprot.readI64();
14024
        else:
14025
          iprot.skip(ftype)
14026
      elif fid == 2:
14027
        if ftype == TType.I64:
14028
          self.voucherType = iprot.readI64();
14029
        else:
14030
          iprot.skip(ftype)
14031
      else:
14032
        iprot.skip(ftype)
14033
      iprot.readFieldEnd()
14034
    iprot.readStructEnd()
14035
 
14036
  def write(self, oprot):
14037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14039
      return
14040
    oprot.writeStructBegin('getVoucherAmount_args')
14041
    if self.itemId is not None:
14042
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14043
      oprot.writeI64(self.itemId)
14044
      oprot.writeFieldEnd()
14045
    if self.voucherType is not None:
14046
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
14047
      oprot.writeI64(self.voucherType)
14048
      oprot.writeFieldEnd()
14049
    oprot.writeFieldStop()
14050
    oprot.writeStructEnd()
14051
 
14052
  def validate(self):
14053
    return
14054
 
14055
 
14056
  def __repr__(self):
14057
    L = ['%s=%r' % (key, value)
14058
      for key, value in self.__dict__.iteritems()]
14059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14060
 
14061
  def __eq__(self, other):
14062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14063
 
14064
  def __ne__(self, other):
14065
    return not (self == other)
14066
 
14067
class getVoucherAmount_result:
14068
  """
14069
  Attributes:
14070
   - success
14071
  """
14072
 
14073
  thrift_spec = (
14074
    (0, TType.I64, 'success', None, None, ), # 0
14075
  )
14076
 
14077
  def __init__(self, success=None,):
14078
    self.success = success
14079
 
14080
  def read(self, iprot):
14081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14083
      return
14084
    iprot.readStructBegin()
14085
    while True:
14086
      (fname, ftype, fid) = iprot.readFieldBegin()
14087
      if ftype == TType.STOP:
14088
        break
14089
      if fid == 0:
14090
        if ftype == TType.I64:
14091
          self.success = iprot.readI64();
14092
        else:
14093
          iprot.skip(ftype)
14094
      else:
14095
        iprot.skip(ftype)
14096
      iprot.readFieldEnd()
14097
    iprot.readStructEnd()
14098
 
14099
  def write(self, oprot):
14100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14102
      return
14103
    oprot.writeStructBegin('getVoucherAmount_result')
14104
    if self.success is not None:
14105
      oprot.writeFieldBegin('success', TType.I64, 0)
14106
      oprot.writeI64(self.success)
14107
      oprot.writeFieldEnd()
14108
    oprot.writeFieldStop()
14109
    oprot.writeStructEnd()
14110
 
14111
  def validate(self):
14112
    return
14113
 
14114
 
14115
  def __repr__(self):
14116
    L = ['%s=%r' % (key, value)
14117
      for key, value in self.__dict__.iteritems()]
14118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14119
 
14120
  def __eq__(self, other):
14121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14122
 
14123
  def __ne__(self, other):
14124
    return not (self == other)
14125
 
14126
class getAllItemVouchers_args:
14127
  """
14128
  Attributes:
14129
   - itemId
14130
  """
14131
 
14132
  thrift_spec = (
14133
    None, # 0
14134
    (1, TType.I64, 'itemId', None, None, ), # 1
14135
  )
14136
 
14137
  def __init__(self, itemId=None,):
14138
    self.itemId = itemId
14139
 
14140
  def read(self, iprot):
14141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14143
      return
14144
    iprot.readStructBegin()
14145
    while True:
14146
      (fname, ftype, fid) = iprot.readFieldBegin()
14147
      if ftype == TType.STOP:
14148
        break
14149
      if fid == 1:
14150
        if ftype == TType.I64:
14151
          self.itemId = iprot.readI64();
14152
        else:
14153
          iprot.skip(ftype)
14154
      else:
14155
        iprot.skip(ftype)
14156
      iprot.readFieldEnd()
14157
    iprot.readStructEnd()
14158
 
14159
  def write(self, oprot):
14160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14162
      return
14163
    oprot.writeStructBegin('getAllItemVouchers_args')
14164
    if self.itemId is not None:
14165
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14166
      oprot.writeI64(self.itemId)
14167
      oprot.writeFieldEnd()
14168
    oprot.writeFieldStop()
14169
    oprot.writeStructEnd()
14170
 
14171
  def validate(self):
14172
    return
14173
 
14174
 
14175
  def __repr__(self):
14176
    L = ['%s=%r' % (key, value)
14177
      for key, value in self.__dict__.iteritems()]
14178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14179
 
14180
  def __eq__(self, other):
14181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14182
 
14183
  def __ne__(self, other):
14184
    return not (self == other)
14185
 
14186
class getAllItemVouchers_result:
14187
  """
14188
  Attributes:
14189
   - success
14190
  """
14191
 
14192
  thrift_spec = (
14193
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
14194
  )
14195
 
14196
  def __init__(self, success=None,):
14197
    self.success = success
14198
 
14199
  def read(self, iprot):
14200
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14201
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14202
      return
14203
    iprot.readStructBegin()
14204
    while True:
14205
      (fname, ftype, fid) = iprot.readFieldBegin()
14206
      if ftype == TType.STOP:
14207
        break
14208
      if fid == 0:
14209
        if ftype == TType.LIST:
14210
          self.success = []
7256 rajveer 14211
          (_etype273, _size270) = iprot.readListBegin()
14212
          for _i274 in xrange(_size270):
14213
            _elem275 = VoucherItemMapping()
14214
            _elem275.read(iprot)
14215
            self.success.append(_elem275)
5944 mandeep.dh 14216
          iprot.readListEnd()
14217
        else:
14218
          iprot.skip(ftype)
14219
      else:
14220
        iprot.skip(ftype)
14221
      iprot.readFieldEnd()
14222
    iprot.readStructEnd()
14223
 
14224
  def write(self, oprot):
14225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14227
      return
14228
    oprot.writeStructBegin('getAllItemVouchers_result')
14229
    if self.success is not None:
14230
      oprot.writeFieldBegin('success', TType.LIST, 0)
14231
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 14232
      for iter276 in self.success:
14233
        iter276.write(oprot)
5944 mandeep.dh 14234
      oprot.writeListEnd()
14235
      oprot.writeFieldEnd()
14236
    oprot.writeFieldStop()
14237
    oprot.writeStructEnd()
14238
 
14239
  def validate(self):
14240
    return
14241
 
14242
 
14243
  def __repr__(self):
14244
    L = ['%s=%r' % (key, value)
14245
      for key, value in self.__dict__.iteritems()]
14246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14247
 
14248
  def __eq__(self, other):
14249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14250
 
14251
  def __ne__(self, other):
14252
    return not (self == other)
14253
 
14254
class isValidCatalogItemId_args:
14255
  """
14256
  Attributes:
14257
   - catalog_item_id
14258
  """
14259
 
14260
  thrift_spec = (
14261
    None, # 0
14262
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
14263
  )
14264
 
14265
  def __init__(self, catalog_item_id=None,):
14266
    self.catalog_item_id = catalog_item_id
14267
 
14268
  def read(self, iprot):
14269
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14270
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14271
      return
14272
    iprot.readStructBegin()
14273
    while True:
14274
      (fname, ftype, fid) = iprot.readFieldBegin()
14275
      if ftype == TType.STOP:
14276
        break
14277
      if fid == 1:
14278
        if ftype == TType.I64:
14279
          self.catalog_item_id = iprot.readI64();
14280
        else:
14281
          iprot.skip(ftype)
14282
      else:
14283
        iprot.skip(ftype)
14284
      iprot.readFieldEnd()
14285
    iprot.readStructEnd()
14286
 
14287
  def write(self, oprot):
14288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14290
      return
14291
    oprot.writeStructBegin('isValidCatalogItemId_args')
14292
    if self.catalog_item_id is not None:
14293
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
14294
      oprot.writeI64(self.catalog_item_id)
14295
      oprot.writeFieldEnd()
14296
    oprot.writeFieldStop()
14297
    oprot.writeStructEnd()
14298
 
14299
  def validate(self):
14300
    return
14301
 
14302
 
14303
  def __repr__(self):
14304
    L = ['%s=%r' % (key, value)
14305
      for key, value in self.__dict__.iteritems()]
14306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14307
 
14308
  def __eq__(self, other):
14309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14310
 
14311
  def __ne__(self, other):
14312
    return not (self == other)
14313
 
14314
class isValidCatalogItemId_result:
14315
  """
14316
  Attributes:
14317
   - success
14318
  """
14319
 
14320
  thrift_spec = (
14321
    (0, TType.BOOL, 'success', None, None, ), # 0
14322
  )
14323
 
14324
  def __init__(self, success=None,):
14325
    self.success = success
14326
 
14327
  def read(self, iprot):
14328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14330
      return
14331
    iprot.readStructBegin()
14332
    while True:
14333
      (fname, ftype, fid) = iprot.readFieldBegin()
14334
      if ftype == TType.STOP:
14335
        break
14336
      if fid == 0:
14337
        if ftype == TType.BOOL:
14338
          self.success = iprot.readBool();
14339
        else:
14340
          iprot.skip(ftype)
14341
      else:
14342
        iprot.skip(ftype)
14343
      iprot.readFieldEnd()
14344
    iprot.readStructEnd()
14345
 
14346
  def write(self, oprot):
14347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14349
      return
14350
    oprot.writeStructBegin('isValidCatalogItemId_result')
14351
    if self.success is not None:
14352
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14353
      oprot.writeBool(self.success)
14354
      oprot.writeFieldEnd()
14355
    oprot.writeFieldStop()
14356
    oprot.writeStructEnd()
14357
 
14358
  def validate(self):
14359
    return
14360
 
14361
 
14362
  def __repr__(self):
14363
    L = ['%s=%r' % (key, value)
14364
      for key, value in self.__dict__.iteritems()]
14365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14366
 
14367
  def __eq__(self, other):
14368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14369
 
14370
  def __ne__(self, other):
14371
    return not (self == other)
6039 amit.gupta 14372
 
14373
class getVatPercentageForItem_args:
14374
  """
14375
  Attributes:
14376
   - itemId
14377
   - price
14378
  """
14379
 
14380
  thrift_spec = (
14381
    None, # 0
14382
    (1, TType.I64, 'itemId', None, None, ), # 1
14383
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14384
  )
14385
 
14386
  def __init__(self, itemId=None, price=None,):
14387
    self.itemId = itemId
14388
    self.price = price
14389
 
14390
  def read(self, iprot):
14391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14393
      return
14394
    iprot.readStructBegin()
14395
    while True:
14396
      (fname, ftype, fid) = iprot.readFieldBegin()
14397
      if ftype == TType.STOP:
14398
        break
14399
      if fid == 1:
14400
        if ftype == TType.I64:
14401
          self.itemId = iprot.readI64();
14402
        else:
14403
          iprot.skip(ftype)
14404
      elif fid == 2:
14405
        if ftype == TType.DOUBLE:
14406
          self.price = iprot.readDouble();
14407
        else:
14408
          iprot.skip(ftype)
14409
      else:
14410
        iprot.skip(ftype)
14411
      iprot.readFieldEnd()
14412
    iprot.readStructEnd()
14413
 
14414
  def write(self, oprot):
14415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14417
      return
14418
    oprot.writeStructBegin('getVatPercentageForItem_args')
14419
    if self.itemId is not None:
14420
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14421
      oprot.writeI64(self.itemId)
14422
      oprot.writeFieldEnd()
14423
    if self.price is not None:
14424
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14425
      oprot.writeDouble(self.price)
14426
      oprot.writeFieldEnd()
14427
    oprot.writeFieldStop()
14428
    oprot.writeStructEnd()
14429
 
14430
  def validate(self):
14431
    return
14432
 
14433
 
14434
  def __repr__(self):
14435
    L = ['%s=%r' % (key, value)
14436
      for key, value in self.__dict__.iteritems()]
14437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14438
 
14439
  def __eq__(self, other):
14440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14441
 
14442
  def __ne__(self, other):
14443
    return not (self == other)
14444
 
14445
class getVatPercentageForItem_result:
14446
  """
14447
  Attributes:
14448
   - success
14449
  """
14450
 
14451
  thrift_spec = (
14452
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14453
  )
14454
 
14455
  def __init__(self, success=None,):
14456
    self.success = success
14457
 
14458
  def read(self, iprot):
14459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14461
      return
14462
    iprot.readStructBegin()
14463
    while True:
14464
      (fname, ftype, fid) = iprot.readFieldBegin()
14465
      if ftype == TType.STOP:
14466
        break
14467
      if fid == 0:
14468
        if ftype == TType.DOUBLE:
14469
          self.success = iprot.readDouble();
14470
        else:
14471
          iprot.skip(ftype)
14472
      else:
14473
        iprot.skip(ftype)
14474
      iprot.readFieldEnd()
14475
    iprot.readStructEnd()
14476
 
14477
  def write(self, oprot):
14478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14480
      return
14481
    oprot.writeStructBegin('getVatPercentageForItem_result')
14482
    if self.success is not None:
14483
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14484
      oprot.writeDouble(self.success)
14485
      oprot.writeFieldEnd()
14486
    oprot.writeFieldStop()
14487
    oprot.writeStructEnd()
14488
 
14489
  def validate(self):
14490
    return
14491
 
14492
 
14493
  def __repr__(self):
14494
    L = ['%s=%r' % (key, value)
14495
      for key, value in self.__dict__.iteritems()]
14496
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14497
 
14498
  def __eq__(self, other):
14499
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14500
 
14501
  def __ne__(self, other):
14502
    return not (self == other)
14503
 
14504
class getVatAmountForItem_args:
14505
  """
14506
  Attributes:
14507
   - itemId
14508
   - price
14509
  """
14510
 
14511
  thrift_spec = (
14512
    None, # 0
14513
    (1, TType.I64, 'itemId', None, None, ), # 1
14514
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14515
  )
14516
 
14517
  def __init__(self, itemId=None, price=None,):
14518
    self.itemId = itemId
14519
    self.price = price
14520
 
14521
  def read(self, iprot):
14522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14524
      return
14525
    iprot.readStructBegin()
14526
    while True:
14527
      (fname, ftype, fid) = iprot.readFieldBegin()
14528
      if ftype == TType.STOP:
14529
        break
14530
      if fid == 1:
14531
        if ftype == TType.I64:
14532
          self.itemId = iprot.readI64();
14533
        else:
14534
          iprot.skip(ftype)
14535
      elif fid == 2:
14536
        if ftype == TType.DOUBLE:
14537
          self.price = iprot.readDouble();
14538
        else:
14539
          iprot.skip(ftype)
14540
      else:
14541
        iprot.skip(ftype)
14542
      iprot.readFieldEnd()
14543
    iprot.readStructEnd()
14544
 
14545
  def write(self, oprot):
14546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14548
      return
14549
    oprot.writeStructBegin('getVatAmountForItem_args')
14550
    if self.itemId is not None:
14551
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14552
      oprot.writeI64(self.itemId)
14553
      oprot.writeFieldEnd()
14554
    if self.price is not None:
14555
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14556
      oprot.writeDouble(self.price)
14557
      oprot.writeFieldEnd()
14558
    oprot.writeFieldStop()
14559
    oprot.writeStructEnd()
14560
 
14561
  def validate(self):
14562
    return
14563
 
14564
 
14565
  def __repr__(self):
14566
    L = ['%s=%r' % (key, value)
14567
      for key, value in self.__dict__.iteritems()]
14568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14569
 
14570
  def __eq__(self, other):
14571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14572
 
14573
  def __ne__(self, other):
14574
    return not (self == other)
14575
 
14576
class getVatAmountForItem_result:
14577
  """
14578
  Attributes:
14579
   - success
14580
  """
14581
 
14582
  thrift_spec = (
14583
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14584
  )
14585
 
14586
  def __init__(self, success=None,):
14587
    self.success = success
14588
 
14589
  def read(self, iprot):
14590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14592
      return
14593
    iprot.readStructBegin()
14594
    while True:
14595
      (fname, ftype, fid) = iprot.readFieldBegin()
14596
      if ftype == TType.STOP:
14597
        break
14598
      if fid == 0:
14599
        if ftype == TType.DOUBLE:
14600
          self.success = iprot.readDouble();
14601
        else:
14602
          iprot.skip(ftype)
14603
      else:
14604
        iprot.skip(ftype)
14605
      iprot.readFieldEnd()
14606
    iprot.readStructEnd()
14607
 
14608
  def write(self, oprot):
14609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14611
      return
14612
    oprot.writeStructBegin('getVatAmountForItem_result')
14613
    if self.success is not None:
14614
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14615
      oprot.writeDouble(self.success)
14616
      oprot.writeFieldEnd()
14617
    oprot.writeFieldStop()
14618
    oprot.writeStructEnd()
14619
 
14620
  def validate(self):
14621
    return
14622
 
14623
 
14624
  def __repr__(self):
14625
    L = ['%s=%r' % (key, value)
14626
      for key, value in self.__dict__.iteritems()]
14627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14628
 
14629
  def __eq__(self, other):
14630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14631
 
14632
  def __ne__(self, other):
14633
    return not (self == other)
6531 vikram.rag 14634
 
14635
class getAllIgnoredInventoryUpdateItemsList_args:
14636
  """
14637
  Attributes:
14638
   - offset
14639
   - limit
14640
  """
14641
 
14642
  thrift_spec = (
14643
    None, # 0
14644
    (1, TType.I32, 'offset', None, None, ), # 1
14645
    (2, TType.I32, 'limit', None, None, ), # 2
14646
  )
14647
 
14648
  def __init__(self, offset=None, limit=None,):
14649
    self.offset = offset
14650
    self.limit = limit
14651
 
14652
  def read(self, iprot):
14653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14655
      return
14656
    iprot.readStructBegin()
14657
    while True:
14658
      (fname, ftype, fid) = iprot.readFieldBegin()
14659
      if ftype == TType.STOP:
14660
        break
14661
      if fid == 1:
14662
        if ftype == TType.I32:
14663
          self.offset = iprot.readI32();
14664
        else:
14665
          iprot.skip(ftype)
14666
      elif fid == 2:
14667
        if ftype == TType.I32:
14668
          self.limit = iprot.readI32();
14669
        else:
14670
          iprot.skip(ftype)
14671
      else:
14672
        iprot.skip(ftype)
14673
      iprot.readFieldEnd()
14674
    iprot.readStructEnd()
14675
 
14676
  def write(self, oprot):
14677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14679
      return
14680
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
14681
    if self.offset is not None:
14682
      oprot.writeFieldBegin('offset', TType.I32, 1)
14683
      oprot.writeI32(self.offset)
14684
      oprot.writeFieldEnd()
14685
    if self.limit is not None:
14686
      oprot.writeFieldBegin('limit', TType.I32, 2)
14687
      oprot.writeI32(self.limit)
14688
      oprot.writeFieldEnd()
14689
    oprot.writeFieldStop()
14690
    oprot.writeStructEnd()
14691
 
14692
  def validate(self):
14693
    return
14694
 
14695
 
14696
  def __repr__(self):
14697
    L = ['%s=%r' % (key, value)
14698
      for key, value in self.__dict__.iteritems()]
14699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14700
 
14701
  def __eq__(self, other):
14702
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14703
 
14704
  def __ne__(self, other):
14705
    return not (self == other)
14706
 
14707
class getAllIgnoredInventoryUpdateItemsList_result:
14708
  """
14709
  Attributes:
14710
   - success
14711
  """
14712
 
14713
  thrift_spec = (
14714
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14715
  )
14716
 
14717
  def __init__(self, success=None,):
14718
    self.success = success
14719
 
14720
  def read(self, iprot):
14721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14723
      return
14724
    iprot.readStructBegin()
14725
    while True:
14726
      (fname, ftype, fid) = iprot.readFieldBegin()
14727
      if ftype == TType.STOP:
14728
        break
14729
      if fid == 0:
14730
        if ftype == TType.LIST:
14731
          self.success = []
7256 rajveer 14732
          (_etype280, _size277) = iprot.readListBegin()
14733
          for _i281 in xrange(_size277):
14734
            _elem282 = Item()
14735
            _elem282.read(iprot)
14736
            self.success.append(_elem282)
6531 vikram.rag 14737
          iprot.readListEnd()
14738
        else:
14739
          iprot.skip(ftype)
14740
      else:
14741
        iprot.skip(ftype)
14742
      iprot.readFieldEnd()
14743
    iprot.readStructEnd()
14744
 
14745
  def write(self, oprot):
14746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14748
      return
14749
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
14750
    if self.success is not None:
14751
      oprot.writeFieldBegin('success', TType.LIST, 0)
14752
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 14753
      for iter283 in self.success:
14754
        iter283.write(oprot)
6531 vikram.rag 14755
      oprot.writeListEnd()
14756
      oprot.writeFieldEnd()
14757
    oprot.writeFieldStop()
14758
    oprot.writeStructEnd()
14759
 
14760
  def validate(self):
14761
    return
14762
 
14763
 
14764
  def __repr__(self):
14765
    L = ['%s=%r' % (key, value)
14766
      for key, value in self.__dict__.iteritems()]
14767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14768
 
14769
  def __eq__(self, other):
14770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14771
 
14772
  def __ne__(self, other):
14773
    return not (self == other)
6805 anupam.sin 14774
 
6821 amar.kumar 14775
class getAllAliveItems_args:
14776
 
14777
  thrift_spec = (
14778
  )
14779
 
14780
  def read(self, iprot):
14781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14783
      return
14784
    iprot.readStructBegin()
14785
    while True:
14786
      (fname, ftype, fid) = iprot.readFieldBegin()
14787
      if ftype == TType.STOP:
14788
        break
14789
      else:
14790
        iprot.skip(ftype)
14791
      iprot.readFieldEnd()
14792
    iprot.readStructEnd()
14793
 
14794
  def write(self, oprot):
14795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14797
      return
14798
    oprot.writeStructBegin('getAllAliveItems_args')
14799
    oprot.writeFieldStop()
14800
    oprot.writeStructEnd()
14801
 
14802
  def validate(self):
14803
    return
14804
 
14805
 
14806
  def __repr__(self):
14807
    L = ['%s=%r' % (key, value)
14808
      for key, value in self.__dict__.iteritems()]
14809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14810
 
14811
  def __eq__(self, other):
14812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14813
 
14814
  def __ne__(self, other):
14815
    return not (self == other)
14816
 
14817
class getAllAliveItems_result:
14818
  """
14819
  Attributes:
14820
   - success
14821
  """
14822
 
14823
  thrift_spec = (
14824
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14825
  )
14826
 
14827
  def __init__(self, success=None,):
14828
    self.success = success
14829
 
14830
  def read(self, iprot):
14831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14833
      return
14834
    iprot.readStructBegin()
14835
    while True:
14836
      (fname, ftype, fid) = iprot.readFieldBegin()
14837
      if ftype == TType.STOP:
14838
        break
14839
      if fid == 0:
14840
        if ftype == TType.LIST:
14841
          self.success = []
7256 rajveer 14842
          (_etype287, _size284) = iprot.readListBegin()
14843
          for _i288 in xrange(_size284):
14844
            _elem289 = Item()
14845
            _elem289.read(iprot)
14846
            self.success.append(_elem289)
6821 amar.kumar 14847
          iprot.readListEnd()
14848
        else:
14849
          iprot.skip(ftype)
14850
      else:
14851
        iprot.skip(ftype)
14852
      iprot.readFieldEnd()
14853
    iprot.readStructEnd()
14854
 
14855
  def write(self, oprot):
14856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14858
      return
14859
    oprot.writeStructBegin('getAllAliveItems_result')
14860
    if self.success is not None:
14861
      oprot.writeFieldBegin('success', TType.LIST, 0)
14862
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 14863
      for iter290 in self.success:
14864
        iter290.write(oprot)
6821 amar.kumar 14865
      oprot.writeListEnd()
14866
      oprot.writeFieldEnd()
14867
    oprot.writeFieldStop()
14868
    oprot.writeStructEnd()
14869
 
14870
  def validate(self):
14871
    return
14872
 
14873
 
14874
  def __repr__(self):
14875
    L = ['%s=%r' % (key, value)
14876
      for key, value in self.__dict__.iteritems()]
14877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14878
 
14879
  def __eq__(self, other):
14880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14881
 
14882
  def __ne__(self, other):
14883
    return not (self == other)
14884
 
6805 anupam.sin 14885
class getInsuranceAmount_args:
14886
  """
14887
  Attributes:
14888
   - itemId
6921 anupam.sin 14889
   - price
6805 anupam.sin 14890
   - insurerId
14891
   - quantity
14892
  """
14893
 
14894
  thrift_spec = (
14895
    None, # 0
14896
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 14897
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14898
    (3, TType.I64, 'insurerId', None, None, ), # 3
14899
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 14900
  )
14901
 
6921 anupam.sin 14902
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 14903
    self.itemId = itemId
6921 anupam.sin 14904
    self.price = price
6805 anupam.sin 14905
    self.insurerId = insurerId
14906
    self.quantity = quantity
14907
 
14908
  def read(self, iprot):
14909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14911
      return
14912
    iprot.readStructBegin()
14913
    while True:
14914
      (fname, ftype, fid) = iprot.readFieldBegin()
14915
      if ftype == TType.STOP:
14916
        break
14917
      if fid == 1:
14918
        if ftype == TType.I64:
14919
          self.itemId = iprot.readI64();
14920
        else:
14921
          iprot.skip(ftype)
14922
      elif fid == 2:
6921 anupam.sin 14923
        if ftype == TType.DOUBLE:
14924
          self.price = iprot.readDouble();
14925
        else:
14926
          iprot.skip(ftype)
14927
      elif fid == 3:
6805 anupam.sin 14928
        if ftype == TType.I64:
14929
          self.insurerId = iprot.readI64();
14930
        else:
14931
          iprot.skip(ftype)
6921 anupam.sin 14932
      elif fid == 4:
6805 anupam.sin 14933
        if ftype == TType.I64:
14934
          self.quantity = iprot.readI64();
14935
        else:
14936
          iprot.skip(ftype)
14937
      else:
14938
        iprot.skip(ftype)
14939
      iprot.readFieldEnd()
14940
    iprot.readStructEnd()
14941
 
14942
  def write(self, oprot):
14943
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14944
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14945
      return
14946
    oprot.writeStructBegin('getInsuranceAmount_args')
14947
    if self.itemId is not None:
14948
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14949
      oprot.writeI64(self.itemId)
14950
      oprot.writeFieldEnd()
6921 anupam.sin 14951
    if self.price is not None:
14952
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14953
      oprot.writeDouble(self.price)
14954
      oprot.writeFieldEnd()
6805 anupam.sin 14955
    if self.insurerId is not None:
6921 anupam.sin 14956
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 14957
      oprot.writeI64(self.insurerId)
14958
      oprot.writeFieldEnd()
14959
    if self.quantity is not None:
6921 anupam.sin 14960
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 14961
      oprot.writeI64(self.quantity)
14962
      oprot.writeFieldEnd()
14963
    oprot.writeFieldStop()
14964
    oprot.writeStructEnd()
14965
 
14966
  def validate(self):
14967
    return
14968
 
14969
 
14970
  def __repr__(self):
14971
    L = ['%s=%r' % (key, value)
14972
      for key, value in self.__dict__.iteritems()]
14973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14974
 
14975
  def __eq__(self, other):
14976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14977
 
14978
  def __ne__(self, other):
14979
    return not (self == other)
14980
 
14981
class getInsuranceAmount_result:
14982
  """
14983
  Attributes:
14984
   - success
14985
  """
14986
 
14987
  thrift_spec = (
14988
    (0, TType.I64, 'success', None, None, ), # 0
14989
  )
14990
 
14991
  def __init__(self, success=None,):
14992
    self.success = success
14993
 
14994
  def read(self, iprot):
14995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14997
      return
14998
    iprot.readStructBegin()
14999
    while True:
15000
      (fname, ftype, fid) = iprot.readFieldBegin()
15001
      if ftype == TType.STOP:
15002
        break
15003
      if fid == 0:
15004
        if ftype == TType.I64:
15005
          self.success = iprot.readI64();
15006
        else:
15007
          iprot.skip(ftype)
15008
      else:
15009
        iprot.skip(ftype)
15010
      iprot.readFieldEnd()
15011
    iprot.readStructEnd()
15012
 
15013
  def write(self, oprot):
15014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15016
      return
15017
    oprot.writeStructBegin('getInsuranceAmount_result')
15018
    if self.success is not None:
15019
      oprot.writeFieldBegin('success', TType.I64, 0)
15020
      oprot.writeI64(self.success)
15021
      oprot.writeFieldEnd()
15022
    oprot.writeFieldStop()
15023
    oprot.writeStructEnd()
15024
 
15025
  def validate(self):
15026
    return
15027
 
15028
 
15029
  def __repr__(self):
15030
    L = ['%s=%r' % (key, value)
15031
      for key, value in self.__dict__.iteritems()]
15032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15033
 
15034
  def __eq__(self, other):
15035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15036
 
15037
  def __ne__(self, other):
15038
    return not (self == other)
15039
 
15040
class getInsurer_args:
15041
  """
15042
  Attributes:
15043
   - insurerId
15044
  """
15045
 
15046
  thrift_spec = (
15047
    None, # 0
15048
    (1, TType.I64, 'insurerId', None, None, ), # 1
15049
  )
15050
 
15051
  def __init__(self, insurerId=None,):
15052
    self.insurerId = insurerId
15053
 
15054
  def read(self, iprot):
15055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15057
      return
15058
    iprot.readStructBegin()
15059
    while True:
15060
      (fname, ftype, fid) = iprot.readFieldBegin()
15061
      if ftype == TType.STOP:
15062
        break
15063
      if fid == 1:
15064
        if ftype == TType.I64:
15065
          self.insurerId = iprot.readI64();
15066
        else:
15067
          iprot.skip(ftype)
15068
      else:
15069
        iprot.skip(ftype)
15070
      iprot.readFieldEnd()
15071
    iprot.readStructEnd()
15072
 
15073
  def write(self, oprot):
15074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15076
      return
15077
    oprot.writeStructBegin('getInsurer_args')
15078
    if self.insurerId is not None:
15079
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15080
      oprot.writeI64(self.insurerId)
15081
      oprot.writeFieldEnd()
15082
    oprot.writeFieldStop()
15083
    oprot.writeStructEnd()
15084
 
15085
  def validate(self):
15086
    return
15087
 
15088
 
15089
  def __repr__(self):
15090
    L = ['%s=%r' % (key, value)
15091
      for key, value in self.__dict__.iteritems()]
15092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15093
 
15094
  def __eq__(self, other):
15095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15096
 
15097
  def __ne__(self, other):
15098
    return not (self == other)
15099
 
15100
class getInsurer_result:
15101
  """
15102
  Attributes:
15103
   - success
15104
  """
15105
 
15106
  thrift_spec = (
15107
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
15108
  )
15109
 
15110
  def __init__(self, success=None,):
15111
    self.success = success
15112
 
15113
  def read(self, iprot):
15114
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15115
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15116
      return
15117
    iprot.readStructBegin()
15118
    while True:
15119
      (fname, ftype, fid) = iprot.readFieldBegin()
15120
      if ftype == TType.STOP:
15121
        break
15122
      if fid == 0:
15123
        if ftype == TType.STRUCT:
15124
          self.success = Insurer()
15125
          self.success.read(iprot)
15126
        else:
15127
          iprot.skip(ftype)
15128
      else:
15129
        iprot.skip(ftype)
15130
      iprot.readFieldEnd()
15131
    iprot.readStructEnd()
15132
 
15133
  def write(self, oprot):
15134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15136
      return
15137
    oprot.writeStructBegin('getInsurer_result')
15138
    if self.success is not None:
15139
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15140
      self.success.write(oprot)
15141
      oprot.writeFieldEnd()
15142
    oprot.writeFieldStop()
15143
    oprot.writeStructEnd()
15144
 
15145
  def validate(self):
15146
    return
15147
 
15148
 
15149
  def __repr__(self):
15150
    L = ['%s=%r' % (key, value)
15151
      for key, value in self.__dict__.iteritems()]
15152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15153
 
15154
  def __eq__(self, other):
15155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15156
 
15157
  def __ne__(self, other):
15158
    return not (self == other)
6838 vikram.rag 15159
 
15160
class getAllInsurers_args:
15161
 
15162
  thrift_spec = (
15163
  )
15164
 
15165
  def read(self, iprot):
15166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15168
      return
15169
    iprot.readStructBegin()
15170
    while True:
15171
      (fname, ftype, fid) = iprot.readFieldBegin()
15172
      if ftype == TType.STOP:
15173
        break
15174
      else:
15175
        iprot.skip(ftype)
15176
      iprot.readFieldEnd()
15177
    iprot.readStructEnd()
15178
 
15179
  def write(self, oprot):
15180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15182
      return
15183
    oprot.writeStructBegin('getAllInsurers_args')
15184
    oprot.writeFieldStop()
15185
    oprot.writeStructEnd()
15186
 
15187
  def validate(self):
15188
    return
15189
 
15190
 
15191
  def __repr__(self):
15192
    L = ['%s=%r' % (key, value)
15193
      for key, value in self.__dict__.iteritems()]
15194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15195
 
15196
  def __eq__(self, other):
15197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15198
 
15199
  def __ne__(self, other):
15200
    return not (self == other)
15201
 
15202
class getAllInsurers_result:
15203
  """
15204
  Attributes:
15205
   - success
15206
  """
15207
 
15208
  thrift_spec = (
15209
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
15210
  )
15211
 
15212
  def __init__(self, success=None,):
15213
    self.success = success
15214
 
15215
  def read(self, iprot):
15216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15218
      return
15219
    iprot.readStructBegin()
15220
    while True:
15221
      (fname, ftype, fid) = iprot.readFieldBegin()
15222
      if ftype == TType.STOP:
15223
        break
15224
      if fid == 0:
15225
        if ftype == TType.LIST:
15226
          self.success = []
7256 rajveer 15227
          (_etype294, _size291) = iprot.readListBegin()
15228
          for _i295 in xrange(_size291):
15229
            _elem296 = Insurer()
15230
            _elem296.read(iprot)
15231
            self.success.append(_elem296)
6838 vikram.rag 15232
          iprot.readListEnd()
15233
        else:
15234
          iprot.skip(ftype)
15235
      else:
15236
        iprot.skip(ftype)
15237
      iprot.readFieldEnd()
15238
    iprot.readStructEnd()
15239
 
15240
  def write(self, oprot):
15241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15243
      return
15244
    oprot.writeStructBegin('getAllInsurers_result')
15245
    if self.success is not None:
15246
      oprot.writeFieldBegin('success', TType.LIST, 0)
15247
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 15248
      for iter297 in self.success:
15249
        iter297.write(oprot)
6838 vikram.rag 15250
      oprot.writeListEnd()
15251
      oprot.writeFieldEnd()
15252
    oprot.writeFieldStop()
15253
    oprot.writeStructEnd()
15254
 
15255
  def validate(self):
15256
    return
15257
 
15258
 
15259
  def __repr__(self):
15260
    L = ['%s=%r' % (key, value)
15261
      for key, value in self.__dict__.iteritems()]
15262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15263
 
15264
  def __eq__(self, other):
15265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15266
 
15267
  def __ne__(self, other):
15268
    return not (self == other)
6962 rajveer 15269
 
15270
class updateInsuranceDeclaredAmount_args:
15271
  """
15272
  Attributes:
15273
   - insurerId
15274
   - amount
15275
  """
15276
 
15277
  thrift_spec = (
15278
    None, # 0
15279
    (1, TType.I64, 'insurerId', None, None, ), # 1
15280
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
15281
  )
15282
 
15283
  def __init__(self, insurerId=None, amount=None,):
15284
    self.insurerId = insurerId
15285
    self.amount = amount
15286
 
15287
  def read(self, iprot):
15288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15290
      return
15291
    iprot.readStructBegin()
15292
    while True:
15293
      (fname, ftype, fid) = iprot.readFieldBegin()
15294
      if ftype == TType.STOP:
15295
        break
15296
      if fid == 1:
15297
        if ftype == TType.I64:
15298
          self.insurerId = iprot.readI64();
15299
        else:
15300
          iprot.skip(ftype)
15301
      elif fid == 2:
15302
        if ftype == TType.DOUBLE:
15303
          self.amount = iprot.readDouble();
15304
        else:
15305
          iprot.skip(ftype)
15306
      else:
15307
        iprot.skip(ftype)
15308
      iprot.readFieldEnd()
15309
    iprot.readStructEnd()
15310
 
15311
  def write(self, oprot):
15312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15314
      return
15315
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
15316
    if self.insurerId is not None:
15317
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15318
      oprot.writeI64(self.insurerId)
15319
      oprot.writeFieldEnd()
15320
    if self.amount is not None:
15321
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
15322
      oprot.writeDouble(self.amount)
15323
      oprot.writeFieldEnd()
15324
    oprot.writeFieldStop()
15325
    oprot.writeStructEnd()
15326
 
15327
  def validate(self):
15328
    return
15329
 
15330
 
15331
  def __repr__(self):
15332
    L = ['%s=%r' % (key, value)
15333
      for key, value in self.__dict__.iteritems()]
15334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15335
 
15336
  def __eq__(self, other):
15337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15338
 
15339
  def __ne__(self, other):
15340
    return not (self == other)
15341
 
15342
class updateInsuranceDeclaredAmount_result:
15343
 
15344
  thrift_spec = (
15345
  )
15346
 
15347
  def read(self, iprot):
15348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15350
      return
15351
    iprot.readStructBegin()
15352
    while True:
15353
      (fname, ftype, fid) = iprot.readFieldBegin()
15354
      if ftype == TType.STOP:
15355
        break
15356
      else:
15357
        iprot.skip(ftype)
15358
      iprot.readFieldEnd()
15359
    iprot.readStructEnd()
15360
 
15361
  def write(self, oprot):
15362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15364
      return
15365
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
15366
    oprot.writeFieldStop()
15367
    oprot.writeStructEnd()
15368
 
15369
  def validate(self):
15370
    return
15371
 
15372
 
15373
  def __repr__(self):
15374
    L = ['%s=%r' % (key, value)
15375
      for key, value in self.__dict__.iteritems()]
15376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15377
 
15378
  def __eq__(self, other):
15379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15380
 
15381
  def __ne__(self, other):
15382
    return not (self == other)
7190 amar.kumar 15383
 
15384
class getFreebieForItem_args:
15385
  """
15386
  Attributes:
15387
   - itemId
15388
  """
15389
 
15390
  thrift_spec = (
15391
    None, # 0
15392
    (1, TType.I64, 'itemId', None, None, ), # 1
15393
  )
15394
 
15395
  def __init__(self, itemId=None,):
15396
    self.itemId = itemId
15397
 
15398
  def read(self, iprot):
15399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15401
      return
15402
    iprot.readStructBegin()
15403
    while True:
15404
      (fname, ftype, fid) = iprot.readFieldBegin()
15405
      if ftype == TType.STOP:
15406
        break
15407
      if fid == 1:
15408
        if ftype == TType.I64:
15409
          self.itemId = iprot.readI64();
15410
        else:
15411
          iprot.skip(ftype)
15412
      else:
15413
        iprot.skip(ftype)
15414
      iprot.readFieldEnd()
15415
    iprot.readStructEnd()
15416
 
15417
  def write(self, oprot):
15418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15420
      return
15421
    oprot.writeStructBegin('getFreebieForItem_args')
15422
    if self.itemId is not None:
15423
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15424
      oprot.writeI64(self.itemId)
15425
      oprot.writeFieldEnd()
15426
    oprot.writeFieldStop()
15427
    oprot.writeStructEnd()
15428
 
15429
  def validate(self):
15430
    return
15431
 
15432
 
15433
  def __repr__(self):
15434
    L = ['%s=%r' % (key, value)
15435
      for key, value in self.__dict__.iteritems()]
15436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15437
 
15438
  def __eq__(self, other):
15439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15440
 
15441
  def __ne__(self, other):
15442
    return not (self == other)
15443
 
15444
class getFreebieForItem_result:
15445
  """
15446
  Attributes:
15447
   - success
15448
  """
15449
 
15450
  thrift_spec = (
15451
    (0, TType.I64, 'success', None, None, ), # 0
15452
  )
15453
 
15454
  def __init__(self, success=None,):
15455
    self.success = success
15456
 
15457
  def read(self, iprot):
15458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15460
      return
15461
    iprot.readStructBegin()
15462
    while True:
15463
      (fname, ftype, fid) = iprot.readFieldBegin()
15464
      if ftype == TType.STOP:
15465
        break
15466
      if fid == 0:
15467
        if ftype == TType.I64:
15468
          self.success = iprot.readI64();
15469
        else:
15470
          iprot.skip(ftype)
15471
      else:
15472
        iprot.skip(ftype)
15473
      iprot.readFieldEnd()
15474
    iprot.readStructEnd()
15475
 
15476
  def write(self, oprot):
15477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15479
      return
15480
    oprot.writeStructBegin('getFreebieForItem_result')
15481
    if self.success is not None:
15482
      oprot.writeFieldBegin('success', TType.I64, 0)
15483
      oprot.writeI64(self.success)
15484
      oprot.writeFieldEnd()
15485
    oprot.writeFieldStop()
15486
    oprot.writeStructEnd()
15487
 
15488
  def validate(self):
15489
    return
15490
 
15491
 
15492
  def __repr__(self):
15493
    L = ['%s=%r' % (key, value)
15494
      for key, value in self.__dict__.iteritems()]
15495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15496
 
15497
  def __eq__(self, other):
15498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15499
 
15500
  def __ne__(self, other):
15501
    return not (self == other)
15502
 
15503
class addOrUpdateFreebieForItem_args:
15504
  """
15505
  Attributes:
15506
   - freebieItem
15507
  """
15508
 
15509
  thrift_spec = (
15510
    None, # 0
15511
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
15512
  )
15513
 
15514
  def __init__(self, freebieItem=None,):
15515
    self.freebieItem = freebieItem
15516
 
15517
  def read(self, iprot):
15518
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15519
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15520
      return
15521
    iprot.readStructBegin()
15522
    while True:
15523
      (fname, ftype, fid) = iprot.readFieldBegin()
15524
      if ftype == TType.STOP:
15525
        break
15526
      if fid == 1:
15527
        if ftype == TType.STRUCT:
15528
          self.freebieItem = FreebieItem()
15529
          self.freebieItem.read(iprot)
15530
        else:
15531
          iprot.skip(ftype)
15532
      else:
15533
        iprot.skip(ftype)
15534
      iprot.readFieldEnd()
15535
    iprot.readStructEnd()
15536
 
15537
  def write(self, oprot):
15538
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15539
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15540
      return
15541
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
15542
    if self.freebieItem is not None:
15543
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
15544
      self.freebieItem.write(oprot)
15545
      oprot.writeFieldEnd()
15546
    oprot.writeFieldStop()
15547
    oprot.writeStructEnd()
15548
 
15549
  def validate(self):
15550
    return
15551
 
15552
 
15553
  def __repr__(self):
15554
    L = ['%s=%r' % (key, value)
15555
      for key, value in self.__dict__.iteritems()]
15556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15557
 
15558
  def __eq__(self, other):
15559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15560
 
15561
  def __ne__(self, other):
15562
    return not (self == other)
15563
 
15564
class addOrUpdateFreebieForItem_result:
15565
 
15566
  thrift_spec = (
15567
  )
15568
 
15569
  def read(self, iprot):
15570
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15571
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15572
      return
15573
    iprot.readStructBegin()
15574
    while True:
15575
      (fname, ftype, fid) = iprot.readFieldBegin()
15576
      if ftype == TType.STOP:
15577
        break
15578
      else:
15579
        iprot.skip(ftype)
15580
      iprot.readFieldEnd()
15581
    iprot.readStructEnd()
15582
 
15583
  def write(self, oprot):
15584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15586
      return
15587
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
15588
    oprot.writeFieldStop()
15589
    oprot.writeStructEnd()
15590
 
15591
  def validate(self):
15592
    return
15593
 
15594
 
15595
  def __repr__(self):
15596
    L = ['%s=%r' % (key, value)
15597
      for key, value in self.__dict__.iteritems()]
15598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15599
 
15600
  def __eq__(self, other):
15601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15602
 
15603
  def __ne__(self, other):
15604
    return not (self == other)
7256 rajveer 15605
 
15606
class getStorePricing_args:
15607
  """
15608
  Attributes:
15609
   - itemId
15610
  """
15611
 
15612
  thrift_spec = (
15613
    None, # 0
15614
    (1, TType.I64, 'itemId', None, None, ), # 1
15615
  )
15616
 
15617
  def __init__(self, itemId=None,):
15618
    self.itemId = itemId
15619
 
15620
  def read(self, iprot):
15621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15623
      return
15624
    iprot.readStructBegin()
15625
    while True:
15626
      (fname, ftype, fid) = iprot.readFieldBegin()
15627
      if ftype == TType.STOP:
15628
        break
15629
      if fid == 1:
15630
        if ftype == TType.I64:
15631
          self.itemId = iprot.readI64();
15632
        else:
15633
          iprot.skip(ftype)
15634
      else:
15635
        iprot.skip(ftype)
15636
      iprot.readFieldEnd()
15637
    iprot.readStructEnd()
15638
 
15639
  def write(self, oprot):
15640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15642
      return
15643
    oprot.writeStructBegin('getStorePricing_args')
15644
    if self.itemId is not None:
15645
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15646
      oprot.writeI64(self.itemId)
15647
      oprot.writeFieldEnd()
15648
    oprot.writeFieldStop()
15649
    oprot.writeStructEnd()
15650
 
15651
  def validate(self):
15652
    return
15653
 
15654
 
15655
  def __repr__(self):
15656
    L = ['%s=%r' % (key, value)
15657
      for key, value in self.__dict__.iteritems()]
15658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15659
 
15660
  def __eq__(self, other):
15661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15662
 
15663
  def __ne__(self, other):
15664
    return not (self == other)
15665
 
15666
class getStorePricing_result:
15667
  """
15668
  Attributes:
15669
   - success
15670
  """
15671
 
15672
  thrift_spec = (
15673
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
15674
  )
15675
 
15676
  def __init__(self, success=None,):
15677
    self.success = success
15678
 
15679
  def read(self, iprot):
15680
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15681
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15682
      return
15683
    iprot.readStructBegin()
15684
    while True:
15685
      (fname, ftype, fid) = iprot.readFieldBegin()
15686
      if ftype == TType.STOP:
15687
        break
15688
      if fid == 0:
15689
        if ftype == TType.STRUCT:
15690
          self.success = StorePricing()
15691
          self.success.read(iprot)
15692
        else:
15693
          iprot.skip(ftype)
15694
      else:
15695
        iprot.skip(ftype)
15696
      iprot.readFieldEnd()
15697
    iprot.readStructEnd()
15698
 
15699
  def write(self, oprot):
15700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15702
      return
15703
    oprot.writeStructBegin('getStorePricing_result')
15704
    if self.success is not None:
15705
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15706
      self.success.write(oprot)
15707
      oprot.writeFieldEnd()
15708
    oprot.writeFieldStop()
15709
    oprot.writeStructEnd()
15710
 
15711
  def validate(self):
15712
    return
15713
 
15714
 
15715
  def __repr__(self):
15716
    L = ['%s=%r' % (key, value)
15717
      for key, value in self.__dict__.iteritems()]
15718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15719
 
15720
  def __eq__(self, other):
15721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15722
 
15723
  def __ne__(self, other):
15724
    return not (self == other)