Subversion Repositories SmartDukaan

Rev

Rev 7265 | Rev 7281 | 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
 
7272 amit.gupta 669
  def addOrUpdateBrandInfo(self, brandInfo):
670
    """
671
    Parameters:
672
     - brandInfo
673
    """
674
    pass
675
 
676
  def getBrandInfo(self, ):
677
    pass
678
 
7256 rajveer 679
  def getStorePricing(self, itemId):
680
    """
681
    Parameters:
682
     - itemId
683
    """
684
    pass
7190 amar.kumar 685
 
7265 rajveer 686
  def updateStorePricing(self, sp):
687
    """
688
    Parameters:
689
     - sp
690
    """
691
    pass
7256 rajveer 692
 
7265 rajveer 693
 
5944 mandeep.dh 694
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
695
  def __init__(self, iprot, oprot=None):
696
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
697
 
698
  def addItem(self, item):
699
    """
700
    Availability and inventory attributes
701
 
702
    Parameters:
703
     - item
704
    """
705
    self.send_addItem(item)
706
    return self.recv_addItem()
707
 
708
  def send_addItem(self, item):
709
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
710
    args = addItem_args()
711
    args.item = item
712
    args.write(self._oprot)
713
    self._oprot.writeMessageEnd()
714
    self._oprot.trans.flush()
715
 
716
  def recv_addItem(self, ):
717
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
718
    if mtype == TMessageType.EXCEPTION:
719
      x = TApplicationException()
720
      x.read(self._iprot)
721
      self._iprot.readMessageEnd()
722
      raise x
723
    result = addItem_result()
724
    result.read(self._iprot)
725
    self._iprot.readMessageEnd()
726
    if result.success is not None:
727
      return result.success
728
    if result.cex is not None:
729
      raise result.cex
730
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
731
 
732
  def updateItem(self, item):
733
    """
734
    Parameters:
735
     - item
736
    """
737
    self.send_updateItem(item)
738
    return self.recv_updateItem()
739
 
740
  def send_updateItem(self, item):
741
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
742
    args = updateItem_args()
743
    args.item = item
744
    args.write(self._oprot)
745
    self._oprot.writeMessageEnd()
746
    self._oprot.trans.flush()
747
 
748
  def recv_updateItem(self, ):
749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
750
    if mtype == TMessageType.EXCEPTION:
751
      x = TApplicationException()
752
      x.read(self._iprot)
753
      self._iprot.readMessageEnd()
754
      raise x
755
    result = updateItem_result()
756
    result.read(self._iprot)
757
    self._iprot.readMessageEnd()
758
    if result.success is not None:
759
      return result.success
760
    if result.cex is not None:
761
      raise result.cex
762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
763
 
764
  def isActive(self, itemId):
765
    """
766
    Checks if the item given to the corresponding itemId is active. If it's active,
767
    whether it's risky and if it's risky, its inventory position.
768
 
769
    Parameters:
770
     - itemId
771
    """
772
    self.send_isActive(itemId)
773
    return self.recv_isActive()
774
 
775
  def send_isActive(self, itemId):
776
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
777
    args = isActive_args()
778
    args.itemId = itemId
779
    args.write(self._oprot)
780
    self._oprot.writeMessageEnd()
781
    self._oprot.trans.flush()
782
 
783
  def recv_isActive(self, ):
784
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
785
    if mtype == TMessageType.EXCEPTION:
786
      x = TApplicationException()
787
      x.read(self._iprot)
788
      self._iprot.readMessageEnd()
789
      raise x
790
    result = isActive_result()
791
    result.read(self._iprot)
792
    self._iprot.readMessageEnd()
793
    if result.success is not None:
794
      return result.success
795
    if result.isex is not None:
796
      raise result.isex
797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
798
 
799
  def getItemStatusDescription(self, itemId):
800
    """
801
    Parameters:
802
     - itemId
803
    """
804
    self.send_getItemStatusDescription(itemId)
805
    return self.recv_getItemStatusDescription()
806
 
807
  def send_getItemStatusDescription(self, itemId):
808
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
809
    args = getItemStatusDescription_args()
810
    args.itemId = itemId
811
    args.write(self._oprot)
812
    self._oprot.writeMessageEnd()
813
    self._oprot.trans.flush()
814
 
815
  def recv_getItemStatusDescription(self, ):
816
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
817
    if mtype == TMessageType.EXCEPTION:
818
      x = TApplicationException()
819
      x.read(self._iprot)
820
      self._iprot.readMessageEnd()
821
      raise x
822
    result = getItemStatusDescription_result()
823
    result.read(self._iprot)
824
    self._iprot.readMessageEnd()
825
    if result.success is not None:
826
      return result.success
827
    if result.isex is not None:
828
      raise result.isex
829
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
830
 
831
  def startItemOn(self, item_id, timestamp):
832
    """
833
    Parameters:
834
     - item_id
835
     - timestamp
836
    """
837
    self.send_startItemOn(item_id, timestamp)
838
    self.recv_startItemOn()
839
 
840
  def send_startItemOn(self, item_id, timestamp):
841
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
842
    args = startItemOn_args()
843
    args.item_id = item_id
844
    args.timestamp = timestamp
845
    args.write(self._oprot)
846
    self._oprot.writeMessageEnd()
847
    self._oprot.trans.flush()
848
 
849
  def recv_startItemOn(self, ):
850
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
851
    if mtype == TMessageType.EXCEPTION:
852
      x = TApplicationException()
853
      x.read(self._iprot)
854
      self._iprot.readMessageEnd()
855
      raise x
856
    result = startItemOn_result()
857
    result.read(self._iprot)
858
    self._iprot.readMessageEnd()
859
    if result.cex is not None:
860
      raise result.cex
861
    return
862
 
863
  def retireItemOn(self, item_id, timestamp):
864
    """
865
    Parameters:
866
     - item_id
867
     - timestamp
868
    """
869
    self.send_retireItemOn(item_id, timestamp)
870
    self.recv_retireItemOn()
871
 
872
  def send_retireItemOn(self, item_id, timestamp):
873
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
874
    args = retireItemOn_args()
875
    args.item_id = item_id
876
    args.timestamp = timestamp
877
    args.write(self._oprot)
878
    self._oprot.writeMessageEnd()
879
    self._oprot.trans.flush()
880
 
881
  def recv_retireItemOn(self, ):
882
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
883
    if mtype == TMessageType.EXCEPTION:
884
      x = TApplicationException()
885
      x.read(self._iprot)
886
      self._iprot.readMessageEnd()
887
      raise x
888
    result = retireItemOn_result()
889
    result.read(self._iprot)
890
    self._iprot.readMessageEnd()
891
    if result.cex is not None:
892
      raise result.cex
893
    return
894
 
895
  def changeItemStatus(self, item_id, timestamp, newstatus):
896
    """
897
    Parameters:
898
     - item_id
899
     - timestamp
900
     - newstatus
901
    """
902
    self.send_changeItemStatus(item_id, timestamp, newstatus)
903
    self.recv_changeItemStatus()
904
 
905
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
906
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
907
    args = changeItemStatus_args()
908
    args.item_id = item_id
909
    args.timestamp = timestamp
910
    args.newstatus = newstatus
911
    args.write(self._oprot)
912
    self._oprot.writeMessageEnd()
913
    self._oprot.trans.flush()
914
 
915
  def recv_changeItemStatus(self, ):
916
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
917
    if mtype == TMessageType.EXCEPTION:
918
      x = TApplicationException()
919
      x.read(self._iprot)
920
      self._iprot.readMessageEnd()
921
      raise x
922
    result = changeItemStatus_result()
923
    result.read(self._iprot)
924
    self._iprot.readMessageEnd()
925
    if result.cex is not None:
926
      raise result.cex
927
    return
928
 
929
  def getItem(self, item_id):
930
    """
931
    Parameters:
932
     - item_id
933
    """
934
    self.send_getItem(item_id)
935
    return self.recv_getItem()
936
 
937
  def send_getItem(self, item_id):
938
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
939
    args = getItem_args()
940
    args.item_id = item_id
941
    args.write(self._oprot)
942
    self._oprot.writeMessageEnd()
943
    self._oprot.trans.flush()
944
 
945
  def recv_getItem(self, ):
946
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
947
    if mtype == TMessageType.EXCEPTION:
948
      x = TApplicationException()
949
      x.read(self._iprot)
950
      self._iprot.readMessageEnd()
951
      raise x
952
    result = getItem_result()
953
    result.read(self._iprot)
954
    self._iprot.readMessageEnd()
955
    if result.success is not None:
956
      return result.success
957
    if result.cex is not None:
958
      raise result.cex
959
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
960
 
961
  def getItemsByCatalogId(self, catalog_item_id):
962
    """
963
    Parameters:
964
     - catalog_item_id
965
    """
966
    self.send_getItemsByCatalogId(catalog_item_id)
967
    return self.recv_getItemsByCatalogId()
968
 
969
  def send_getItemsByCatalogId(self, catalog_item_id):
970
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
971
    args = getItemsByCatalogId_args()
972
    args.catalog_item_id = catalog_item_id
973
    args.write(self._oprot)
974
    self._oprot.writeMessageEnd()
975
    self._oprot.trans.flush()
976
 
977
  def recv_getItemsByCatalogId(self, ):
978
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
979
    if mtype == TMessageType.EXCEPTION:
980
      x = TApplicationException()
981
      x.read(self._iprot)
982
      self._iprot.readMessageEnd()
983
      raise x
984
    result = getItemsByCatalogId_result()
985
    result.read(self._iprot)
986
    self._iprot.readMessageEnd()
987
    if result.success is not None:
988
      return result.success
989
    if result.cex is not None:
990
      raise result.cex
991
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
992
 
993
  def getValidItemsByCatalogId(self, catalog_item_id):
994
    """
995
    Parameters:
996
     - catalog_item_id
997
    """
998
    self.send_getValidItemsByCatalogId(catalog_item_id)
999
    return self.recv_getValidItemsByCatalogId()
1000
 
1001
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1002
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1003
    args = getValidItemsByCatalogId_args()
1004
    args.catalog_item_id = catalog_item_id
1005
    args.write(self._oprot)
1006
    self._oprot.writeMessageEnd()
1007
    self._oprot.trans.flush()
1008
 
1009
  def recv_getValidItemsByCatalogId(self, ):
1010
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1011
    if mtype == TMessageType.EXCEPTION:
1012
      x = TApplicationException()
1013
      x.read(self._iprot)
1014
      self._iprot.readMessageEnd()
1015
      raise x
1016
    result = getValidItemsByCatalogId_result()
1017
    result.read(self._iprot)
1018
    self._iprot.readMessageEnd()
1019
    if result.success is not None:
1020
      return result.success
1021
    if result.cex is not None:
1022
      raise result.cex
1023
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1024
 
1025
  def getAllItems(self, isActive):
1026
    """
1027
    Parameters:
1028
     - isActive
1029
    """
1030
    self.send_getAllItems(isActive)
1031
    return self.recv_getAllItems()
1032
 
1033
  def send_getAllItems(self, isActive):
1034
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1035
    args = getAllItems_args()
1036
    args.isActive = isActive
1037
    args.write(self._oprot)
1038
    self._oprot.writeMessageEnd()
1039
    self._oprot.trans.flush()
1040
 
1041
  def recv_getAllItems(self, ):
1042
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1043
    if mtype == TMessageType.EXCEPTION:
1044
      x = TApplicationException()
1045
      x.read(self._iprot)
1046
      self._iprot.readMessageEnd()
1047
      raise x
1048
    result = getAllItems_result()
1049
    result.read(self._iprot)
1050
    self._iprot.readMessageEnd()
1051
    if result.success is not None:
1052
      return result.success
1053
    if result.cex is not None:
1054
      raise result.cex
1055
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1056
 
1057
  def getAllItemsByStatus(self, itemStatus):
1058
    """
1059
    Parameters:
1060
     - itemStatus
1061
    """
1062
    self.send_getAllItemsByStatus(itemStatus)
1063
    return self.recv_getAllItemsByStatus()
1064
 
1065
  def send_getAllItemsByStatus(self, itemStatus):
1066
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1067
    args = getAllItemsByStatus_args()
1068
    args.itemStatus = itemStatus
1069
    args.write(self._oprot)
1070
    self._oprot.writeMessageEnd()
1071
    self._oprot.trans.flush()
1072
 
1073
  def recv_getAllItemsByStatus(self, ):
1074
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1075
    if mtype == TMessageType.EXCEPTION:
1076
      x = TApplicationException()
1077
      x.read(self._iprot)
1078
      self._iprot.readMessageEnd()
1079
      raise x
1080
    result = getAllItemsByStatus_result()
1081
    result.read(self._iprot)
1082
    self._iprot.readMessageEnd()
1083
    if result.success is not None:
1084
      return result.success
1085
    if result.cex is not None:
1086
      raise result.cex
1087
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1088
 
1089
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1090
    """
1091
    Parameters:
1092
     - entityId
1093
     - category
1094
     - brand
1095
     - modelName
1096
     - modelNumber
1097
    """
1098
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
1099
    return self.recv_markItemAsContentComplete()
1100
 
1101
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1102
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1103
    args = markItemAsContentComplete_args()
1104
    args.entityId = entityId
1105
    args.category = category
1106
    args.brand = brand
1107
    args.modelName = modelName
1108
    args.modelNumber = modelNumber
1109
    args.write(self._oprot)
1110
    self._oprot.writeMessageEnd()
1111
    self._oprot.trans.flush()
1112
 
1113
  def recv_markItemAsContentComplete(self, ):
1114
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1115
    if mtype == TMessageType.EXCEPTION:
1116
      x = TApplicationException()
1117
      x.read(self._iprot)
1118
      self._iprot.readMessageEnd()
1119
      raise x
1120
    result = markItemAsContentComplete_result()
1121
    result.read(self._iprot)
1122
    self._iprot.readMessageEnd()
1123
    if result.success is not None:
1124
      return result.success
1125
    if result.cex is not None:
1126
      raise result.cex
1127
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1128
 
1129
  def getAllItemsInRange(self, offset, limit):
1130
    """
1131
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1132
 
1133
    Parameters:
1134
     - offset
1135
     - limit
1136
    """
1137
    self.send_getAllItemsInRange(offset, limit)
1138
    return self.recv_getAllItemsInRange()
1139
 
1140
  def send_getAllItemsInRange(self, offset, limit):
1141
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1142
    args = getAllItemsInRange_args()
1143
    args.offset = offset
1144
    args.limit = limit
1145
    args.write(self._oprot)
1146
    self._oprot.writeMessageEnd()
1147
    self._oprot.trans.flush()
1148
 
1149
  def recv_getAllItemsInRange(self, ):
1150
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1151
    if mtype == TMessageType.EXCEPTION:
1152
      x = TApplicationException()
1153
      x.read(self._iprot)
1154
      self._iprot.readMessageEnd()
1155
      raise x
1156
    result = getAllItemsInRange_result()
1157
    result.read(self._iprot)
1158
    self._iprot.readMessageEnd()
1159
    if result.success is not None:
1160
      return result.success
1161
    if result.cex is not None:
1162
      raise result.cex
1163
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1164
 
1165
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1166
    """
1167
    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.
1168
 
1169
    Parameters:
1170
     - itemStatus
1171
     - offset
1172
     - limit
1173
    """
1174
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1175
    return self.recv_getAllItemsByStatusInRange()
1176
 
1177
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1178
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1179
    args = getAllItemsByStatusInRange_args()
1180
    args.itemStatus = itemStatus
1181
    args.offset = offset
1182
    args.limit = limit
1183
    args.write(self._oprot)
1184
    self._oprot.writeMessageEnd()
1185
    self._oprot.trans.flush()
1186
 
1187
  def recv_getAllItemsByStatusInRange(self, ):
1188
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1189
    if mtype == TMessageType.EXCEPTION:
1190
      x = TApplicationException()
1191
      x.read(self._iprot)
1192
      self._iprot.readMessageEnd()
1193
      raise x
1194
    result = getAllItemsByStatusInRange_result()
1195
    result.read(self._iprot)
1196
    self._iprot.readMessageEnd()
1197
    if result.success is not None:
1198
      return result.success
1199
    if result.cex is not None:
1200
      raise result.cex
1201
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1202
 
1203
  def getItemCountByStatus(self, useStatus, itemStatus):
1204
    """
1205
    Gets a count of all items by status
1206
 
1207
    Parameters:
1208
     - useStatus
1209
     - itemStatus
1210
    """
1211
    self.send_getItemCountByStatus(useStatus, itemStatus)
1212
    return self.recv_getItemCountByStatus()
1213
 
1214
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1215
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1216
    args = getItemCountByStatus_args()
1217
    args.useStatus = useStatus
1218
    args.itemStatus = itemStatus
1219
    args.write(self._oprot)
1220
    self._oprot.writeMessageEnd()
1221
    self._oprot.trans.flush()
1222
 
1223
  def recv_getItemCountByStatus(self, ):
1224
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1225
    if mtype == TMessageType.EXCEPTION:
1226
      x = TApplicationException()
1227
      x.read(self._iprot)
1228
      self._iprot.readMessageEnd()
1229
      raise x
1230
    result = getItemCountByStatus_result()
1231
    result.read(self._iprot)
1232
    self._iprot.readMessageEnd()
1233
    if result.success is not None:
1234
      return result.success
1235
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1236
 
1237
  def getBestSellers(self, ):
1238
    self.send_getBestSellers()
1239
    return self.recv_getBestSellers()
1240
 
1241
  def send_getBestSellers(self, ):
1242
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1243
    args = getBestSellers_args()
1244
    args.write(self._oprot)
1245
    self._oprot.writeMessageEnd()
1246
    self._oprot.trans.flush()
1247
 
1248
  def recv_getBestSellers(self, ):
1249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1250
    if mtype == TMessageType.EXCEPTION:
1251
      x = TApplicationException()
1252
      x.read(self._iprot)
1253
      self._iprot.readMessageEnd()
1254
      raise x
1255
    result = getBestSellers_result()
1256
    result.read(self._iprot)
1257
    self._iprot.readMessageEnd()
1258
    if result.success is not None:
1259
      return result.success
1260
    if result.isex is not None:
1261
      raise result.isex
1262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1263
 
1264
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1265
    """
1266
    Parameters:
1267
     - beginIndex
1268
     - totalItems
1269
     - brand
1270
     - category
1271
    """
1272
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1273
    return self.recv_getBestSellersCatalogIds()
1274
 
1275
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1276
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1277
    args = getBestSellersCatalogIds_args()
1278
    args.beginIndex = beginIndex
1279
    args.totalItems = totalItems
1280
    args.brand = brand
1281
    args.category = category
1282
    args.write(self._oprot)
1283
    self._oprot.writeMessageEnd()
1284
    self._oprot.trans.flush()
1285
 
1286
  def recv_getBestSellersCatalogIds(self, ):
1287
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1288
    if mtype == TMessageType.EXCEPTION:
1289
      x = TApplicationException()
1290
      x.read(self._iprot)
1291
      self._iprot.readMessageEnd()
1292
      raise x
1293
    result = getBestSellersCatalogIds_result()
1294
    result.read(self._iprot)
1295
    self._iprot.readMessageEnd()
1296
    if result.success is not None:
1297
      return result.success
1298
    if result.cex is not None:
1299
      raise result.cex
1300
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1301
 
1302
  def getBestSellersCount(self, ):
1303
    self.send_getBestSellersCount()
1304
    return self.recv_getBestSellersCount()
1305
 
1306
  def send_getBestSellersCount(self, ):
1307
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1308
    args = getBestSellersCount_args()
1309
    args.write(self._oprot)
1310
    self._oprot.writeMessageEnd()
1311
    self._oprot.trans.flush()
1312
 
1313
  def recv_getBestSellersCount(self, ):
1314
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1315
    if mtype == TMessageType.EXCEPTION:
1316
      x = TApplicationException()
1317
      x.read(self._iprot)
1318
      self._iprot.readMessageEnd()
1319
      raise x
1320
    result = getBestSellersCount_result()
1321
    result.read(self._iprot)
1322
    self._iprot.readMessageEnd()
1323
    if result.success is not None:
1324
      return result.success
1325
    if result.cex is not None:
1326
      raise result.cex
1327
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1328
 
1329
  def getBestDeals(self, ):
1330
    self.send_getBestDeals()
1331
    return self.recv_getBestDeals()
1332
 
1333
  def send_getBestDeals(self, ):
1334
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1335
    args = getBestDeals_args()
1336
    args.write(self._oprot)
1337
    self._oprot.writeMessageEnd()
1338
    self._oprot.trans.flush()
1339
 
1340
  def recv_getBestDeals(self, ):
1341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1342
    if mtype == TMessageType.EXCEPTION:
1343
      x = TApplicationException()
1344
      x.read(self._iprot)
1345
      self._iprot.readMessageEnd()
1346
      raise x
1347
    result = getBestDeals_result()
1348
    result.read(self._iprot)
1349
    self._iprot.readMessageEnd()
1350
    if result.success is not None:
1351
      return result.success
1352
    if result.isex is not None:
1353
      raise result.isex
1354
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1355
 
1356
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1357
    """
1358
    Parameters:
1359
     - beginIndex
1360
     - totalItems
1361
     - brand
1362
     - category
1363
    """
1364
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1365
    return self.recv_getBestDealsCatalogIds()
1366
 
1367
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1368
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1369
    args = getBestDealsCatalogIds_args()
1370
    args.beginIndex = beginIndex
1371
    args.totalItems = totalItems
1372
    args.brand = brand
1373
    args.category = category
1374
    args.write(self._oprot)
1375
    self._oprot.writeMessageEnd()
1376
    self._oprot.trans.flush()
1377
 
1378
  def recv_getBestDealsCatalogIds(self, ):
1379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1380
    if mtype == TMessageType.EXCEPTION:
1381
      x = TApplicationException()
1382
      x.read(self._iprot)
1383
      self._iprot.readMessageEnd()
1384
      raise x
1385
    result = getBestDealsCatalogIds_result()
1386
    result.read(self._iprot)
1387
    self._iprot.readMessageEnd()
1388
    if result.success is not None:
1389
      return result.success
1390
    if result.cex is not None:
1391
      raise result.cex
1392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1393
 
1394
  def getBestDealsCount(self, ):
1395
    self.send_getBestDealsCount()
1396
    return self.recv_getBestDealsCount()
1397
 
1398
  def send_getBestDealsCount(self, ):
1399
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1400
    args = getBestDealsCount_args()
1401
    args.write(self._oprot)
1402
    self._oprot.writeMessageEnd()
1403
    self._oprot.trans.flush()
1404
 
1405
  def recv_getBestDealsCount(self, ):
1406
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1407
    if mtype == TMessageType.EXCEPTION:
1408
      x = TApplicationException()
1409
      x.read(self._iprot)
1410
      self._iprot.readMessageEnd()
1411
      raise x
1412
    result = getBestDealsCount_result()
1413
    result.read(self._iprot)
1414
    self._iprot.readMessageEnd()
1415
    if result.success is not None:
1416
      return result.success
1417
    if result.cex is not None:
1418
      raise result.cex
1419
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1420
 
1421
  def getComingSoon(self, ):
1422
    self.send_getComingSoon()
1423
    return self.recv_getComingSoon()
1424
 
1425
  def send_getComingSoon(self, ):
1426
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1427
    args = getComingSoon_args()
1428
    args.write(self._oprot)
1429
    self._oprot.writeMessageEnd()
1430
    self._oprot.trans.flush()
1431
 
1432
  def recv_getComingSoon(self, ):
1433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1434
    if mtype == TMessageType.EXCEPTION:
1435
      x = TApplicationException()
1436
      x.read(self._iprot)
1437
      self._iprot.readMessageEnd()
1438
      raise x
1439
    result = getComingSoon_result()
1440
    result.read(self._iprot)
1441
    self._iprot.readMessageEnd()
1442
    if result.success is not None:
1443
      return result.success
1444
    if result.isex is not None:
1445
      raise result.isex
1446
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1447
 
1448
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1449
    """
1450
    Parameters:
1451
     - beginIndex
1452
     - totalItems
1453
     - brand
1454
     - category
1455
    """
1456
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1457
    return self.recv_getComingSoonCatalogIds()
1458
 
1459
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1460
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1461
    args = getComingSoonCatalogIds_args()
1462
    args.beginIndex = beginIndex
1463
    args.totalItems = totalItems
1464
    args.brand = brand
1465
    args.category = category
1466
    args.write(self._oprot)
1467
    self._oprot.writeMessageEnd()
1468
    self._oprot.trans.flush()
1469
 
1470
  def recv_getComingSoonCatalogIds(self, ):
1471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1472
    if mtype == TMessageType.EXCEPTION:
1473
      x = TApplicationException()
1474
      x.read(self._iprot)
1475
      self._iprot.readMessageEnd()
1476
      raise x
1477
    result = getComingSoonCatalogIds_result()
1478
    result.read(self._iprot)
1479
    self._iprot.readMessageEnd()
1480
    if result.success is not None:
1481
      return result.success
1482
    if result.cex is not None:
1483
      raise result.cex
1484
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1485
 
1486
  def getComingSoonCount(self, ):
1487
    self.send_getComingSoonCount()
1488
    return self.recv_getComingSoonCount()
1489
 
1490
  def send_getComingSoonCount(self, ):
1491
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1492
    args = getComingSoonCount_args()
1493
    args.write(self._oprot)
1494
    self._oprot.writeMessageEnd()
1495
    self._oprot.trans.flush()
1496
 
1497
  def recv_getComingSoonCount(self, ):
1498
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1499
    if mtype == TMessageType.EXCEPTION:
1500
      x = TApplicationException()
1501
      x.read(self._iprot)
1502
      self._iprot.readMessageEnd()
1503
      raise x
1504
    result = getComingSoonCount_result()
1505
    result.read(self._iprot)
1506
    self._iprot.readMessageEnd()
1507
    if result.success is not None:
1508
      return result.success
1509
    if result.cex is not None:
1510
      raise result.cex
1511
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1512
 
1513
  def getLatestArrivals(self, ):
1514
    """
1515
    Returns a list of items sorted in the descending order by start date.
1516
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1517
    """
1518
    self.send_getLatestArrivals()
1519
    return self.recv_getLatestArrivals()
1520
 
1521
  def send_getLatestArrivals(self, ):
1522
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1523
    args = getLatestArrivals_args()
1524
    args.write(self._oprot)
1525
    self._oprot.writeMessageEnd()
1526
    self._oprot.trans.flush()
1527
 
1528
  def recv_getLatestArrivals(self, ):
1529
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1530
    if mtype == TMessageType.EXCEPTION:
1531
      x = TApplicationException()
1532
      x.read(self._iprot)
1533
      self._iprot.readMessageEnd()
1534
      raise x
1535
    result = getLatestArrivals_result()
1536
    result.read(self._iprot)
1537
    self._iprot.readMessageEnd()
1538
    if result.success is not None:
1539
      return result.success
1540
    if result.isex is not None:
1541
      raise result.isex
1542
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1543
 
1544
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1545
    """
1546
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1547
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1548
 
1549
    Parameters:
1550
     - beginIndex
1551
     - totalItems
1552
     - brand
1553
     - categories
1554
    """
1555
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1556
    return self.recv_getLatestArrivalsCatalogIds()
1557
 
1558
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1559
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1560
    args = getLatestArrivalsCatalogIds_args()
1561
    args.beginIndex = beginIndex
1562
    args.totalItems = totalItems
1563
    args.brand = brand
1564
    args.categories = categories
1565
    args.write(self._oprot)
1566
    self._oprot.writeMessageEnd()
1567
    self._oprot.trans.flush()
1568
 
1569
  def recv_getLatestArrivalsCatalogIds(self, ):
1570
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1571
    if mtype == TMessageType.EXCEPTION:
1572
      x = TApplicationException()
1573
      x.read(self._iprot)
1574
      self._iprot.readMessageEnd()
1575
      raise x
1576
    result = getLatestArrivalsCatalogIds_result()
1577
    result.read(self._iprot)
1578
    self._iprot.readMessageEnd()
1579
    if result.success is not None:
1580
      return result.success
1581
    if result.cex is not None:
1582
      raise result.cex
1583
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1584
 
1585
  def getLatestArrivalsCount(self, ):
1586
    """
1587
    Get the total number of latest arrivals we are willing to show.
1588
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1589
    """
1590
    self.send_getLatestArrivalsCount()
1591
    return self.recv_getLatestArrivalsCount()
1592
 
1593
  def send_getLatestArrivalsCount(self, ):
1594
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1595
    args = getLatestArrivalsCount_args()
1596
    args.write(self._oprot)
1597
    self._oprot.writeMessageEnd()
1598
    self._oprot.trans.flush()
1599
 
1600
  def recv_getLatestArrivalsCount(self, ):
1601
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1602
    if mtype == TMessageType.EXCEPTION:
1603
      x = TApplicationException()
1604
      x.read(self._iprot)
1605
      self._iprot.readMessageEnd()
1606
      raise x
1607
    result = getLatestArrivalsCount_result()
1608
    result.read(self._iprot)
1609
    self._iprot.readMessageEnd()
1610
    if result.success is not None:
1611
      return result.success
1612
    if result.cex is not None:
1613
      raise result.cex
1614
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1615
 
1616
  def generateNewEntityID(self, ):
1617
    self.send_generateNewEntityID()
1618
    return self.recv_generateNewEntityID()
1619
 
1620
  def send_generateNewEntityID(self, ):
1621
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1622
    args = generateNewEntityID_args()
1623
    args.write(self._oprot)
1624
    self._oprot.writeMessageEnd()
1625
    self._oprot.trans.flush()
1626
 
1627
  def recv_generateNewEntityID(self, ):
1628
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1629
    if mtype == TMessageType.EXCEPTION:
1630
      x = TApplicationException()
1631
      x.read(self._iprot)
1632
      self._iprot.readMessageEnd()
1633
      raise x
1634
    result = generateNewEntityID_result()
1635
    result.read(self._iprot)
1636
    self._iprot.readMessageEnd()
1637
    if result.success is not None:
1638
      return result.success
1639
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1640
 
1641
  def addCategory(self, category):
1642
    """
1643
    All category related functions
1644
 
1645
    Parameters:
1646
     - category
1647
    """
1648
    self.send_addCategory(category)
1649
    return self.recv_addCategory()
1650
 
1651
  def send_addCategory(self, category):
1652
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1653
    args = addCategory_args()
1654
    args.category = category
1655
    args.write(self._oprot)
1656
    self._oprot.writeMessageEnd()
1657
    self._oprot.trans.flush()
1658
 
1659
  def recv_addCategory(self, ):
1660
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1661
    if mtype == TMessageType.EXCEPTION:
1662
      x = TApplicationException()
1663
      x.read(self._iprot)
1664
      self._iprot.readMessageEnd()
1665
      raise x
1666
    result = addCategory_result()
1667
    result.read(self._iprot)
1668
    self._iprot.readMessageEnd()
1669
    if result.success is not None:
1670
      return result.success
1671
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1672
 
1673
  def getCategory(self, id):
1674
    """
1675
    Parameters:
1676
     - id
1677
    """
1678
    self.send_getCategory(id)
1679
    return self.recv_getCategory()
1680
 
1681
  def send_getCategory(self, id):
1682
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1683
    args = getCategory_args()
1684
    args.id = id
1685
    args.write(self._oprot)
1686
    self._oprot.writeMessageEnd()
1687
    self._oprot.trans.flush()
1688
 
1689
  def recv_getCategory(self, ):
1690
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1691
    if mtype == TMessageType.EXCEPTION:
1692
      x = TApplicationException()
1693
      x.read(self._iprot)
1694
      self._iprot.readMessageEnd()
1695
      raise x
1696
    result = getCategory_result()
1697
    result.read(self._iprot)
1698
    self._iprot.readMessageEnd()
1699
    if result.success is not None:
1700
      return result.success
1701
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1702
 
1703
  def getAllCategories(self, ):
1704
    self.send_getAllCategories()
1705
    return self.recv_getAllCategories()
1706
 
1707
  def send_getAllCategories(self, ):
1708
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1709
    args = getAllCategories_args()
1710
    args.write(self._oprot)
1711
    self._oprot.writeMessageEnd()
1712
    self._oprot.trans.flush()
1713
 
1714
  def recv_getAllCategories(self, ):
1715
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1716
    if mtype == TMessageType.EXCEPTION:
1717
      x = TApplicationException()
1718
      x.read(self._iprot)
1719
      self._iprot.readMessageEnd()
1720
      raise x
1721
    result = getAllCategories_result()
1722
    result.read(self._iprot)
1723
    self._iprot.readMessageEnd()
1724
    if result.success is not None:
1725
      return result.success
1726
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1727
 
1728
  def getAllSimilarItems(self, itemId):
1729
    """
1730
    Returns the list of similar items.
1731
 
1732
    Parameters:
1733
     - itemId
1734
    """
1735
    self.send_getAllSimilarItems(itemId)
1736
    return self.recv_getAllSimilarItems()
1737
 
1738
  def send_getAllSimilarItems(self, itemId):
1739
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1740
    args = getAllSimilarItems_args()
1741
    args.itemId = itemId
1742
    args.write(self._oprot)
1743
    self._oprot.writeMessageEnd()
1744
    self._oprot.trans.flush()
1745
 
1746
  def recv_getAllSimilarItems(self, ):
1747
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1748
    if mtype == TMessageType.EXCEPTION:
1749
      x = TApplicationException()
1750
      x.read(self._iprot)
1751
      self._iprot.readMessageEnd()
1752
      raise x
1753
    result = getAllSimilarItems_result()
1754
    result.read(self._iprot)
1755
    self._iprot.readMessageEnd()
1756
    if result.success is not None:
1757
      return result.success
1758
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1759
 
1760
  def addSimilarItem(self, itemId, catalogItemId):
1761
    """
1762
    Adds similar item.
1763
 
1764
    Parameters:
1765
     - itemId
1766
     - catalogItemId
1767
    """
1768
    self.send_addSimilarItem(itemId, catalogItemId)
1769
    return self.recv_addSimilarItem()
1770
 
1771
  def send_addSimilarItem(self, itemId, catalogItemId):
1772
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1773
    args = addSimilarItem_args()
1774
    args.itemId = itemId
1775
    args.catalogItemId = catalogItemId
1776
    args.write(self._oprot)
1777
    self._oprot.writeMessageEnd()
1778
    self._oprot.trans.flush()
1779
 
1780
  def recv_addSimilarItem(self, ):
1781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1782
    if mtype == TMessageType.EXCEPTION:
1783
      x = TApplicationException()
1784
      x.read(self._iprot)
1785
      self._iprot.readMessageEnd()
1786
      raise x
1787
    result = addSimilarItem_result()
1788
    result.read(self._iprot)
1789
    self._iprot.readMessageEnd()
1790
    if result.success is not None:
1791
      return result.success
1792
    if result.cex is not None:
1793
      raise result.cex
1794
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1795
 
6512 kshitij.so 1796
  def addTag(self, displayName, itemId):
1797
    """
1798
    Tag Related
1799
 
1800
    Parameters:
1801
     - displayName
1802
     - itemId
1803
    """
1804
    self.send_addTag(displayName, itemId)
1805
    return self.recv_addTag()
1806
 
1807
  def send_addTag(self, displayName, itemId):
1808
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1809
    args = addTag_args()
1810
    args.displayName = displayName
1811
    args.itemId = itemId
1812
    args.write(self._oprot)
1813
    self._oprot.writeMessageEnd()
1814
    self._oprot.trans.flush()
1815
 
1816
  def recv_addTag(self, ):
1817
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1818
    if mtype == TMessageType.EXCEPTION:
1819
      x = TApplicationException()
1820
      x.read(self._iprot)
1821
      self._iprot.readMessageEnd()
1822
      raise x
1823
    result = addTag_result()
1824
    result.read(self._iprot)
1825
    self._iprot.readMessageEnd()
1826
    if result.success is not None:
1827
      return result.success
1828
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1829
 
1830
  def deleteEntityTag(self, displayName, itemId):
1831
    """
1832
    Parameters:
1833
     - displayName
1834
     - itemId
1835
    """
1836
    self.send_deleteEntityTag(displayName, itemId)
1837
    return self.recv_deleteEntityTag()
1838
 
1839
  def send_deleteEntityTag(self, displayName, itemId):
1840
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1841
    args = deleteEntityTag_args()
1842
    args.displayName = displayName
1843
    args.itemId = itemId
1844
    args.write(self._oprot)
1845
    self._oprot.writeMessageEnd()
1846
    self._oprot.trans.flush()
1847
 
1848
  def recv_deleteEntityTag(self, ):
1849
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1850
    if mtype == TMessageType.EXCEPTION:
1851
      x = TApplicationException()
1852
      x.read(self._iprot)
1853
      self._iprot.readMessageEnd()
1854
      raise x
1855
    result = deleteEntityTag_result()
1856
    result.read(self._iprot)
1857
    self._iprot.readMessageEnd()
1858
    if result.success is not None:
1859
      return result.success
1860
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1861
 
1862
  def deleteTag(self, displayName):
1863
    """
1864
    Parameters:
1865
     - displayName
1866
    """
1867
    self.send_deleteTag(displayName)
1868
    return self.recv_deleteTag()
1869
 
1870
  def send_deleteTag(self, displayName):
1871
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1872
    args = deleteTag_args()
1873
    args.displayName = displayName
1874
    args.write(self._oprot)
1875
    self._oprot.writeMessageEnd()
1876
    self._oprot.trans.flush()
1877
 
1878
  def recv_deleteTag(self, ):
1879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1880
    if mtype == TMessageType.EXCEPTION:
1881
      x = TApplicationException()
1882
      x.read(self._iprot)
1883
      self._iprot.readMessageEnd()
1884
      raise x
1885
    result = deleteTag_result()
1886
    result.read(self._iprot)
1887
    self._iprot.readMessageEnd()
1888
    if result.success is not None:
1889
      return result.success
1890
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1891
 
1892
  def getAllTags(self, ):
1893
    self.send_getAllTags()
1894
    return self.recv_getAllTags()
1895
 
1896
  def send_getAllTags(self, ):
1897
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1898
    args = getAllTags_args()
1899
    args.write(self._oprot)
1900
    self._oprot.writeMessageEnd()
1901
    self._oprot.trans.flush()
1902
 
1903
  def recv_getAllTags(self, ):
1904
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1905
    if mtype == TMessageType.EXCEPTION:
1906
      x = TApplicationException()
1907
      x.read(self._iprot)
1908
      self._iprot.readMessageEnd()
1909
      raise x
1910
    result = getAllTags_result()
1911
    result.read(self._iprot)
1912
    self._iprot.readMessageEnd()
1913
    if result.success is not None:
1914
      return result.success
1915
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1916
 
1917
  def getAllEntitiesByTagName(self, displayName):
1918
    """
1919
    Parameters:
1920
     - displayName
1921
    """
1922
    self.send_getAllEntitiesByTagName(displayName)
1923
    return self.recv_getAllEntitiesByTagName()
1924
 
1925
  def send_getAllEntitiesByTagName(self, displayName):
1926
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1927
    args = getAllEntitiesByTagName_args()
1928
    args.displayName = displayName
1929
    args.write(self._oprot)
1930
    self._oprot.writeMessageEnd()
1931
    self._oprot.trans.flush()
1932
 
1933
  def recv_getAllEntitiesByTagName(self, ):
1934
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1935
    if mtype == TMessageType.EXCEPTION:
1936
      x = TApplicationException()
1937
      x.read(self._iprot)
1938
      self._iprot.readMessageEnd()
1939
      raise x
1940
    result = getAllEntitiesByTagName_result()
1941
    result.read(self._iprot)
1942
    self._iprot.readMessageEnd()
1943
    if result.success is not None:
1944
      return result.success
1945
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1946
 
6845 amit.gupta 1947
  def getAllEntityTags(self, ):
1948
    self.send_getAllEntityTags()
1949
    return self.recv_getAllEntityTags()
1950
 
1951
  def send_getAllEntityTags(self, ):
1952
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
1953
    args = getAllEntityTags_args()
1954
    args.write(self._oprot)
1955
    self._oprot.writeMessageEnd()
1956
    self._oprot.trans.flush()
1957
 
1958
  def recv_getAllEntityTags(self, ):
1959
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1960
    if mtype == TMessageType.EXCEPTION:
1961
      x = TApplicationException()
1962
      x.read(self._iprot)
1963
      self._iprot.readMessageEnd()
1964
      raise x
1965
    result = getAllEntityTags_result()
1966
    result.read(self._iprot)
1967
    self._iprot.readMessageEnd()
1968
    if result.success is not None:
1969
      return result.success
1970
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1971
 
6850 kshitij.so 1972
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1973
    """
1974
    Parameters:
1975
     - bannerName
1976
     - imageName
1977
     - link
1978
     - priority
1979
     - isActive
1980
     - hasMap
1981
    """
1982
    self.send_addBanner(bannerName, imageName, link, priority, isActive, hasMap)
1983
    return self.recv_addBanner()
1984
 
1985
  def send_addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1986
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
1987
    args = addBanner_args()
1988
    args.bannerName = bannerName
1989
    args.imageName = imageName
1990
    args.link = link
1991
    args.priority = priority
1992
    args.isActive = isActive
1993
    args.hasMap = hasMap
1994
    args.write(self._oprot)
1995
    self._oprot.writeMessageEnd()
1996
    self._oprot.trans.flush()
1997
 
1998
  def recv_addBanner(self, ):
1999
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2000
    if mtype == TMessageType.EXCEPTION:
2001
      x = TApplicationException()
2002
      x.read(self._iprot)
2003
      self._iprot.readMessageEnd()
2004
      raise x
2005
    result = addBanner_result()
2006
    result.read(self._iprot)
2007
    self._iprot.readMessageEnd()
2008
    if result.success is not None:
2009
      return result.success
2010
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
2011
 
2012
  def getAllBanners(self, ):
2013
    self.send_getAllBanners()
2014
    return self.recv_getAllBanners()
2015
 
2016
  def send_getAllBanners(self, ):
2017
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2018
    args = getAllBanners_args()
2019
    args.write(self._oprot)
2020
    self._oprot.writeMessageEnd()
2021
    self._oprot.trans.flush()
2022
 
2023
  def recv_getAllBanners(self, ):
2024
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2025
    if mtype == TMessageType.EXCEPTION:
2026
      x = TApplicationException()
2027
      x.read(self._iprot)
2028
      self._iprot.readMessageEnd()
2029
      raise x
2030
    result = getAllBanners_result()
2031
    result.read(self._iprot)
2032
    self._iprot.readMessageEnd()
2033
    if result.success is not None:
2034
      return result.success
2035
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2036
 
2037
  def deleteBanner(self, bannerName):
2038
    """
2039
    Parameters:
2040
     - bannerName
2041
    """
2042
    self.send_deleteBanner(bannerName)
2043
    return self.recv_deleteBanner()
2044
 
2045
  def send_deleteBanner(self, bannerName):
2046
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2047
    args = deleteBanner_args()
2048
    args.bannerName = bannerName
2049
    args.write(self._oprot)
2050
    self._oprot.writeMessageEnd()
2051
    self._oprot.trans.flush()
2052
 
2053
  def recv_deleteBanner(self, ):
2054
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2055
    if mtype == TMessageType.EXCEPTION:
2056
      x = TApplicationException()
2057
      x.read(self._iprot)
2058
      self._iprot.readMessageEnd()
2059
      raise x
2060
    result = deleteBanner_result()
2061
    result.read(self._iprot)
2062
    self._iprot.readMessageEnd()
2063
    if result.success is not None:
2064
      return result.success
2065
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2066
 
2067
  def getBannerDetails(self, bannerName):
2068
    """
2069
    Parameters:
2070
     - bannerName
2071
    """
2072
    self.send_getBannerDetails(bannerName)
2073
    return self.recv_getBannerDetails()
2074
 
2075
  def send_getBannerDetails(self, bannerName):
2076
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2077
    args = getBannerDetails_args()
2078
    args.bannerName = bannerName
2079
    args.write(self._oprot)
2080
    self._oprot.writeMessageEnd()
2081
    self._oprot.trans.flush()
2082
 
2083
  def recv_getBannerDetails(self, ):
2084
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2085
    if mtype == TMessageType.EXCEPTION:
2086
      x = TApplicationException()
2087
      x.read(self._iprot)
2088
      self._iprot.readMessageEnd()
2089
      raise x
2090
    result = getBannerDetails_result()
2091
    result.read(self._iprot)
2092
    self._iprot.readMessageEnd()
2093
    if result.success is not None:
2094
      return result.success
2095
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2096
 
2097
  def getActiveBanners(self, ):
2098
    self.send_getActiveBanners()
2099
    return self.recv_getActiveBanners()
2100
 
2101
  def send_getActiveBanners(self, ):
2102
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2103
    args = getActiveBanners_args()
2104
    args.write(self._oprot)
2105
    self._oprot.writeMessageEnd()
2106
    self._oprot.trans.flush()
2107
 
2108
  def recv_getActiveBanners(self, ):
2109
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2110
    if mtype == TMessageType.EXCEPTION:
2111
      x = TApplicationException()
2112
      x.read(self._iprot)
2113
      self._iprot.readMessageEnd()
2114
      raise x
2115
    result = getActiveBanners_result()
2116
    result.read(self._iprot)
2117
    self._iprot.readMessageEnd()
2118
    if result.success is not None:
2119
      return result.success
2120
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2121
 
6849 kshitij.so 2122
  def addBannerMap(self, bannerName, mapLink, coordinates):
2123
    """
2124
    Parameters:
2125
     - bannerName
2126
     - mapLink
2127
     - coordinates
2128
    """
2129
    self.send_addBannerMap(bannerName, mapLink, coordinates)
2130
    return self.recv_addBannerMap()
2131
 
2132
  def send_addBannerMap(self, bannerName, mapLink, coordinates):
2133
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2134
    args = addBannerMap_args()
2135
    args.bannerName = bannerName
2136
    args.mapLink = mapLink
2137
    args.coordinates = coordinates
2138
    args.write(self._oprot)
2139
    self._oprot.writeMessageEnd()
2140
    self._oprot.trans.flush()
2141
 
2142
  def recv_addBannerMap(self, ):
2143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2144
    if mtype == TMessageType.EXCEPTION:
2145
      x = TApplicationException()
2146
      x.read(self._iprot)
2147
      self._iprot.readMessageEnd()
2148
      raise x
2149
    result = addBannerMap_result()
2150
    result.read(self._iprot)
2151
    self._iprot.readMessageEnd()
2152
    if result.success is not None:
2153
      return result.success
2154
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2155
 
2156
  def deleteBannerMap(self, bannerName):
2157
    """
2158
    Parameters:
2159
     - bannerName
2160
    """
2161
    self.send_deleteBannerMap(bannerName)
2162
    return self.recv_deleteBannerMap()
2163
 
2164
  def send_deleteBannerMap(self, bannerName):
2165
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2166
    args = deleteBannerMap_args()
2167
    args.bannerName = bannerName
2168
    args.write(self._oprot)
2169
    self._oprot.writeMessageEnd()
2170
    self._oprot.trans.flush()
2171
 
2172
  def recv_deleteBannerMap(self, ):
2173
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2174
    if mtype == TMessageType.EXCEPTION:
2175
      x = TApplicationException()
2176
      x.read(self._iprot)
2177
      self._iprot.readMessageEnd()
2178
      raise x
2179
    result = deleteBannerMap_result()
2180
    result.read(self._iprot)
2181
    self._iprot.readMessageEnd()
2182
    if result.success is not None:
2183
      return result.success
2184
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2185
 
2186
  def getBannerMapDetails(self, bannerName):
2187
    """
2188
    Parameters:
2189
     - bannerName
2190
    """
2191
    self.send_getBannerMapDetails(bannerName)
2192
    return self.recv_getBannerMapDetails()
2193
 
2194
  def send_getBannerMapDetails(self, bannerName):
2195
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2196
    args = getBannerMapDetails_args()
2197
    args.bannerName = bannerName
2198
    args.write(self._oprot)
2199
    self._oprot.writeMessageEnd()
2200
    self._oprot.trans.flush()
2201
 
2202
  def recv_getBannerMapDetails(self, ):
2203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2204
    if mtype == TMessageType.EXCEPTION:
2205
      x = TApplicationException()
2206
      x.read(self._iprot)
2207
      self._iprot.readMessageEnd()
2208
      raise x
2209
    result = getBannerMapDetails_result()
2210
    result.read(self._iprot)
2211
    self._iprot.readMessageEnd()
2212
    if result.success is not None:
2213
      return result.success
2214
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2215
 
5944 mandeep.dh 2216
  def deleteSimilarItem(self, itemId, catalogItemId):
2217
    """
2218
    Delete similar item.
2219
 
2220
    Parameters:
2221
     - itemId
2222
     - catalogItemId
2223
    """
2224
    self.send_deleteSimilarItem(itemId, catalogItemId)
2225
    return self.recv_deleteSimilarItem()
2226
 
2227
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2228
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2229
    args = deleteSimilarItem_args()
2230
    args.itemId = itemId
2231
    args.catalogItemId = catalogItemId
2232
    args.write(self._oprot)
2233
    self._oprot.writeMessageEnd()
2234
    self._oprot.trans.flush()
2235
 
2236
  def recv_deleteSimilarItem(self, ):
2237
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2238
    if mtype == TMessageType.EXCEPTION:
2239
      x = TApplicationException()
2240
      x.read(self._iprot)
2241
      self._iprot.readMessageEnd()
2242
      raise x
2243
    result = deleteSimilarItem_result()
2244
    result.read(self._iprot)
2245
    self._iprot.readMessageEnd()
2246
    if result.success is not None:
2247
      return result.success
2248
    if result.cex is not None:
2249
      raise result.cex
2250
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2251
 
2252
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2253
    """
2254
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2255
    If yes, returns the itemId else returns 0
2256
 
2257
    Parameters:
2258
     - brand
2259
     - modelNumber
2260
     - modelName
2261
     - color
2262
    """
2263
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2264
    return self.recv_checkSimilarItem()
2265
 
2266
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2267
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2268
    args = checkSimilarItem_args()
2269
    args.brand = brand
2270
    args.modelNumber = modelNumber
2271
    args.modelName = modelName
2272
    args.color = color
2273
    args.write(self._oprot)
2274
    self._oprot.writeMessageEnd()
2275
    self._oprot.trans.flush()
2276
 
2277
  def recv_checkSimilarItem(self, ):
2278
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2279
    if mtype == TMessageType.EXCEPTION:
2280
      x = TApplicationException()
2281
      x.read(self._iprot)
2282
      self._iprot.readMessageEnd()
2283
      raise x
2284
    result = checkSimilarItem_result()
2285
    result.read(self._iprot)
2286
    self._iprot.readMessageEnd()
2287
    if result.success is not None:
2288
      return result.success
2289
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2290
 
2291
  def validateRiskyStatus(self, itemId):
2292
    """
2293
    Check wether item is risky and change status if inventory is not available for risky items
2294
 
2295
    Parameters:
2296
     - itemId
2297
    """
2298
    self.send_validateRiskyStatus(itemId)
2299
    self.recv_validateRiskyStatus()
2300
 
2301
  def send_validateRiskyStatus(self, itemId):
2302
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2303
    args = validateRiskyStatus_args()
2304
    args.itemId = itemId
2305
    args.write(self._oprot)
2306
    self._oprot.writeMessageEnd()
2307
    self._oprot.trans.flush()
2308
 
2309
  def recv_validateRiskyStatus(self, ):
2310
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2311
    if mtype == TMessageType.EXCEPTION:
2312
      x = TApplicationException()
2313
      x.read(self._iprot)
2314
      self._iprot.readMessageEnd()
2315
      raise x
2316
    result = validateRiskyStatus_result()
2317
    result.read(self._iprot)
2318
    self._iprot.readMessageEnd()
2319
    return
2320
 
2321
  def changeItemRiskyFlag(self, itemId, risky):
2322
    """
2323
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2324
 
2325
    Parameters:
2326
     - itemId
2327
     - risky
2328
    """
2329
    self.send_changeItemRiskyFlag(itemId, risky)
2330
    self.recv_changeItemRiskyFlag()
2331
 
2332
  def send_changeItemRiskyFlag(self, itemId, risky):
2333
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2334
    args = changeItemRiskyFlag_args()
2335
    args.itemId = itemId
2336
    args.risky = risky
2337
    args.write(self._oprot)
2338
    self._oprot.writeMessageEnd()
2339
    self._oprot.trans.flush()
2340
 
2341
  def recv_changeItemRiskyFlag(self, ):
2342
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2343
    if mtype == TMessageType.EXCEPTION:
2344
      x = TApplicationException()
2345
      x.read(self._iprot)
2346
      self._iprot.readMessageEnd()
2347
      raise x
2348
    result = changeItemRiskyFlag_result()
2349
    result.read(self._iprot)
2350
    self._iprot.readMessageEnd()
2351
    return
2352
 
2353
  def getItemsByRiskyFlag(self, ):
2354
    """
2355
    Returns list of items marked as risky.
2356
    """
2357
    self.send_getItemsByRiskyFlag()
2358
    return self.recv_getItemsByRiskyFlag()
2359
 
2360
  def send_getItemsByRiskyFlag(self, ):
2361
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2362
    args = getItemsByRiskyFlag_args()
2363
    args.write(self._oprot)
2364
    self._oprot.writeMessageEnd()
2365
    self._oprot.trans.flush()
2366
 
2367
  def recv_getItemsByRiskyFlag(self, ):
2368
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2369
    if mtype == TMessageType.EXCEPTION:
2370
      x = TApplicationException()
2371
      x.read(self._iprot)
2372
      self._iprot.readMessageEnd()
2373
      raise x
2374
    result = getItemsByRiskyFlag_result()
2375
    result.read(self._iprot)
2376
    self._iprot.readMessageEnd()
2377
    if result.success is not None:
2378
      return result.success
2379
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2380
 
2381
  def getItemsForMasterSheet(self, category, brand):
2382
    """
2383
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2384
 
2385
    Parameters:
2386
     - category
2387
     - brand
2388
    """
2389
    self.send_getItemsForMasterSheet(category, brand)
2390
    return self.recv_getItemsForMasterSheet()
2391
 
2392
  def send_getItemsForMasterSheet(self, category, brand):
2393
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2394
    args = getItemsForMasterSheet_args()
2395
    args.category = category
2396
    args.brand = brand
2397
    args.write(self._oprot)
2398
    self._oprot.writeMessageEnd()
2399
    self._oprot.trans.flush()
2400
 
2401
  def recv_getItemsForMasterSheet(self, ):
2402
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2403
    if mtype == TMessageType.EXCEPTION:
2404
      x = TApplicationException()
2405
      x.read(self._iprot)
2406
      self._iprot.readMessageEnd()
2407
      raise x
2408
    result = getItemsForMasterSheet_result()
2409
    result.read(self._iprot)
2410
    self._iprot.readMessageEnd()
2411
    if result.success is not None:
2412
      return result.success
2413
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2414
 
2415
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2416
    """
2417
    Returns list of catalog ids of items with same similarity index as of the given itemId
2418
 
2419
    Parameters:
2420
     - beginIndex
2421
     - totalItems
2422
     - itemId
2423
    """
2424
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2425
    return self.recv_getSimilarItemsCatalogIds()
2426
 
2427
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2428
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2429
    args = getSimilarItemsCatalogIds_args()
2430
    args.beginIndex = beginIndex
2431
    args.totalItems = totalItems
2432
    args.itemId = itemId
2433
    args.write(self._oprot)
2434
    self._oprot.writeMessageEnd()
2435
    self._oprot.trans.flush()
2436
 
2437
  def recv_getSimilarItemsCatalogIds(self, ):
2438
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2439
    if mtype == TMessageType.EXCEPTION:
2440
      x = TApplicationException()
2441
      x.read(self._iprot)
2442
      self._iprot.readMessageEnd()
2443
      raise x
2444
    result = getSimilarItemsCatalogIds_result()
2445
    result.read(self._iprot)
2446
    self._iprot.readMessageEnd()
2447
    if result.success is not None:
2448
      return result.success
2449
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2450
 
2451
  def addProductNotification(self, itemId, email):
2452
    """
2453
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2454
 
2455
    Parameters:
2456
     - itemId
2457
     - email
2458
    """
2459
    self.send_addProductNotification(itemId, email)
2460
    return self.recv_addProductNotification()
2461
 
2462
  def send_addProductNotification(self, itemId, email):
2463
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2464
    args = addProductNotification_args()
2465
    args.itemId = itemId
2466
    args.email = email
2467
    args.write(self._oprot)
2468
    self._oprot.writeMessageEnd()
2469
    self._oprot.trans.flush()
2470
 
2471
  def recv_addProductNotification(self, ):
2472
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2473
    if mtype == TMessageType.EXCEPTION:
2474
      x = TApplicationException()
2475
      x.read(self._iprot)
2476
      self._iprot.readMessageEnd()
2477
      raise x
2478
    result = addProductNotification_result()
2479
    result.read(self._iprot)
2480
    self._iprot.readMessageEnd()
2481
    if result.success is not None:
2482
      return result.success
2483
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2484
 
2485
  def sendProductNotifications(self, ):
2486
    """
2487
    Send the product notifications to the users for items which has stock.
2488
    """
2489
    self.send_sendProductNotifications()
2490
    return self.recv_sendProductNotifications()
2491
 
2492
  def send_sendProductNotifications(self, ):
2493
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2494
    args = sendProductNotifications_args()
2495
    args.write(self._oprot)
2496
    self._oprot.writeMessageEnd()
2497
    self._oprot.trans.flush()
2498
 
2499
  def recv_sendProductNotifications(self, ):
2500
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2501
    if mtype == TMessageType.EXCEPTION:
2502
      x = TApplicationException()
2503
      x.read(self._iprot)
2504
      self._iprot.readMessageEnd()
2505
      raise x
2506
    result = sendProductNotifications_result()
2507
    result.read(self._iprot)
2508
    self._iprot.readMessageEnd()
2509
    if result.success is not None:
2510
      return result.success
2511
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2512
 
2513
  def getAllBrandsByCategory(self, categoryId):
2514
    """
2515
    Returns list of brand names for a given category Id
2516
 
2517
    Parameters:
2518
     - categoryId
2519
    """
2520
    self.send_getAllBrandsByCategory(categoryId)
2521
    return self.recv_getAllBrandsByCategory()
2522
 
2523
  def send_getAllBrandsByCategory(self, categoryId):
2524
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2525
    args = getAllBrandsByCategory_args()
2526
    args.categoryId = categoryId
2527
    args.write(self._oprot)
2528
    self._oprot.writeMessageEnd()
2529
    self._oprot.trans.flush()
2530
 
2531
  def recv_getAllBrandsByCategory(self, ):
2532
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2533
    if mtype == TMessageType.EXCEPTION:
2534
      x = TApplicationException()
2535
      x.read(self._iprot)
2536
      self._iprot.readMessageEnd()
2537
      raise x
2538
    result = getAllBrandsByCategory_result()
2539
    result.read(self._iprot)
2540
    self._iprot.readMessageEnd()
2541
    if result.success is not None:
2542
      return result.success
2543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2544
 
2545
  def getAllBrands(self, ):
2546
    """
2547
    Returns list of brand names
2548
    """
2549
    self.send_getAllBrands()
2550
    return self.recv_getAllBrands()
2551
 
2552
  def send_getAllBrands(self, ):
2553
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2554
    args = getAllBrands_args()
2555
    args.write(self._oprot)
2556
    self._oprot.writeMessageEnd()
2557
    self._oprot.trans.flush()
2558
 
2559
  def recv_getAllBrands(self, ):
2560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2561
    if mtype == TMessageType.EXCEPTION:
2562
      x = TApplicationException()
2563
      x.read(self._iprot)
2564
      self._iprot.readMessageEnd()
2565
      raise x
2566
    result = getAllBrands_result()
2567
    result.read(self._iprot)
2568
    self._iprot.readMessageEnd()
2569
    if result.success is not None:
2570
      return result.success
2571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2572
 
2573
  def getAllSources(self, ):
2574
    """
2575
    Return list of all sources
2576
    """
2577
    self.send_getAllSources()
2578
    return self.recv_getAllSources()
2579
 
2580
  def send_getAllSources(self, ):
2581
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2582
    args = getAllSources_args()
2583
    args.write(self._oprot)
2584
    self._oprot.writeMessageEnd()
2585
    self._oprot.trans.flush()
2586
 
2587
  def recv_getAllSources(self, ):
2588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2589
    if mtype == TMessageType.EXCEPTION:
2590
      x = TApplicationException()
2591
      x.read(self._iprot)
2592
      self._iprot.readMessageEnd()
2593
      raise x
2594
    result = getAllSources_result()
2595
    result.read(self._iprot)
2596
    self._iprot.readMessageEnd()
2597
    if result.success is not None:
2598
      return result.success
2599
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2600
 
2601
  def getItemPricingBySource(self, itemId, sourceId):
2602
    """
2603
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2604
 
2605
    Parameters:
2606
     - itemId
2607
     - sourceId
2608
    """
2609
    self.send_getItemPricingBySource(itemId, sourceId)
2610
    return self.recv_getItemPricingBySource()
2611
 
2612
  def send_getItemPricingBySource(self, itemId, sourceId):
2613
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2614
    args = getItemPricingBySource_args()
2615
    args.itemId = itemId
2616
    args.sourceId = sourceId
2617
    args.write(self._oprot)
2618
    self._oprot.writeMessageEnd()
2619
    self._oprot.trans.flush()
2620
 
2621
  def recv_getItemPricingBySource(self, ):
2622
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2623
    if mtype == TMessageType.EXCEPTION:
2624
      x = TApplicationException()
2625
      x.read(self._iprot)
2626
      self._iprot.readMessageEnd()
2627
      raise x
2628
    result = getItemPricingBySource_result()
2629
    result.read(self._iprot)
2630
    self._iprot.readMessageEnd()
2631
    if result.success is not None:
2632
      return result.success
2633
    if result.cex is not None:
2634
      raise result.cex
2635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2636
 
2637
  def addSourceItemPricing(self, sourceItemPricing):
2638
    """
2639
    Adds prices to be displayed corresponding to the item if user comes from a source.
2640
    If item is not found or source is not found, it will throw exception.
2641
 
2642
    Parameters:
2643
     - sourceItemPricing
2644
    """
2645
    self.send_addSourceItemPricing(sourceItemPricing)
2646
    self.recv_addSourceItemPricing()
2647
 
2648
  def send_addSourceItemPricing(self, sourceItemPricing):
2649
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2650
    args = addSourceItemPricing_args()
2651
    args.sourceItemPricing = sourceItemPricing
2652
    args.write(self._oprot)
2653
    self._oprot.writeMessageEnd()
2654
    self._oprot.trans.flush()
2655
 
2656
  def recv_addSourceItemPricing(self, ):
2657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2658
    if mtype == TMessageType.EXCEPTION:
2659
      x = TApplicationException()
2660
      x.read(self._iprot)
2661
      self._iprot.readMessageEnd()
2662
      raise x
2663
    result = addSourceItemPricing_result()
2664
    result.read(self._iprot)
2665
    self._iprot.readMessageEnd()
2666
    if result.cex is not None:
2667
      raise result.cex
2668
    return
2669
 
2670
  def getAllSourcePricing(self, itemId):
2671
    """
2672
    Returns the list of source pricing information of an item.
2673
    Raises an exception if item not found corresponding to itemId
2674
 
2675
    Parameters:
2676
     - itemId
2677
    """
2678
    self.send_getAllSourcePricing(itemId)
2679
    return self.recv_getAllSourcePricing()
2680
 
2681
  def send_getAllSourcePricing(self, itemId):
2682
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2683
    args = getAllSourcePricing_args()
2684
    args.itemId = itemId
2685
    args.write(self._oprot)
2686
    self._oprot.writeMessageEnd()
2687
    self._oprot.trans.flush()
2688
 
2689
  def recv_getAllSourcePricing(self, ):
2690
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2691
    if mtype == TMessageType.EXCEPTION:
2692
      x = TApplicationException()
2693
      x.read(self._iprot)
2694
      self._iprot.readMessageEnd()
2695
      raise x
2696
    result = getAllSourcePricing_result()
2697
    result.read(self._iprot)
2698
    self._iprot.readMessageEnd()
2699
    if result.success is not None:
2700
      return result.success
2701
    if result.cex is not None:
2702
      raise result.cex
2703
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2704
 
2705
  def getItemForSource(self, item_id, sourceId):
2706
    """
2707
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2708
 
2709
    Parameters:
2710
     - item_id
2711
     - sourceId
2712
    """
2713
    self.send_getItemForSource(item_id, sourceId)
2714
    return self.recv_getItemForSource()
2715
 
2716
  def send_getItemForSource(self, item_id, sourceId):
2717
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2718
    args = getItemForSource_args()
2719
    args.item_id = item_id
2720
    args.sourceId = sourceId
2721
    args.write(self._oprot)
2722
    self._oprot.writeMessageEnd()
2723
    self._oprot.trans.flush()
2724
 
2725
  def recv_getItemForSource(self, ):
2726
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2727
    if mtype == TMessageType.EXCEPTION:
2728
      x = TApplicationException()
2729
      x.read(self._iprot)
2730
      self._iprot.readMessageEnd()
2731
      raise x
2732
    result = getItemForSource_result()
2733
    result.read(self._iprot)
2734
    self._iprot.readMessageEnd()
2735
    if result.success is not None:
2736
      return result.success
2737
    if result.cex is not None:
2738
      raise result.cex
2739
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2740
 
2741
  def searchItemsInRange(self, searchTerms, offset, limit):
2742
    """
2743
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2744
 
2745
    Parameters:
2746
     - searchTerms
2747
     - offset
2748
     - limit
2749
    """
2750
    self.send_searchItemsInRange(searchTerms, offset, limit)
2751
    return self.recv_searchItemsInRange()
2752
 
2753
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2754
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2755
    args = searchItemsInRange_args()
2756
    args.searchTerms = searchTerms
2757
    args.offset = offset
2758
    args.limit = limit
2759
    args.write(self._oprot)
2760
    self._oprot.writeMessageEnd()
2761
    self._oprot.trans.flush()
2762
 
2763
  def recv_searchItemsInRange(self, ):
2764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2765
    if mtype == TMessageType.EXCEPTION:
2766
      x = TApplicationException()
2767
      x.read(self._iprot)
2768
      self._iprot.readMessageEnd()
2769
      raise x
2770
    result = searchItemsInRange_result()
2771
    result.read(self._iprot)
2772
    self._iprot.readMessageEnd()
2773
    if result.success is not None:
2774
      return result.success
2775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2776
 
2777
  def getSearchResultCount(self, searchTerms):
2778
    """
2779
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2780
 
2781
    Parameters:
2782
     - searchTerms
2783
    """
2784
    self.send_getSearchResultCount(searchTerms)
2785
    return self.recv_getSearchResultCount()
2786
 
2787
  def send_getSearchResultCount(self, searchTerms):
2788
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2789
    args = getSearchResultCount_args()
2790
    args.searchTerms = searchTerms
2791
    args.write(self._oprot)
2792
    self._oprot.writeMessageEnd()
2793
    self._oprot.trans.flush()
2794
 
2795
  def recv_getSearchResultCount(self, ):
2796
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2797
    if mtype == TMessageType.EXCEPTION:
2798
      x = TApplicationException()
2799
      x.read(self._iprot)
2800
      self._iprot.readMessageEnd()
2801
      raise x
2802
    result = getSearchResultCount_result()
2803
    result.read(self._iprot)
2804
    self._iprot.readMessageEnd()
2805
    if result.success is not None:
2806
      return result.success
2807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2808
 
2809
  def getProductNotifications(self, startDateTime):
2810
    """
2811
    Returns a list of product notifications added after a supplied datetime
2812
 
2813
    Parameters:
2814
     - startDateTime
2815
    """
2816
    self.send_getProductNotifications(startDateTime)
2817
    return self.recv_getProductNotifications()
2818
 
2819
  def send_getProductNotifications(self, startDateTime):
2820
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2821
    args = getProductNotifications_args()
2822
    args.startDateTime = startDateTime
2823
    args.write(self._oprot)
2824
    self._oprot.writeMessageEnd()
2825
    self._oprot.trans.flush()
2826
 
2827
  def recv_getProductNotifications(self, ):
2828
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2829
    if mtype == TMessageType.EXCEPTION:
2830
      x = TApplicationException()
2831
      x.read(self._iprot)
2832
      self._iprot.readMessageEnd()
2833
      raise x
2834
    result = getProductNotifications_result()
2835
    result.read(self._iprot)
2836
    self._iprot.readMessageEnd()
2837
    if result.success is not None:
2838
      return result.success
2839
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2840
 
2841
  def getProductNotificationRequestCount(self, startDateTime):
2842
    """
2843
    Returns a list of count of requests for product notification against each item
2844
 
2845
    Parameters:
2846
     - startDateTime
2847
    """
2848
    self.send_getProductNotificationRequestCount(startDateTime)
2849
    return self.recv_getProductNotificationRequestCount()
2850
 
2851
  def send_getProductNotificationRequestCount(self, startDateTime):
2852
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2853
    args = getProductNotificationRequestCount_args()
2854
    args.startDateTime = startDateTime
2855
    args.write(self._oprot)
2856
    self._oprot.writeMessageEnd()
2857
    self._oprot.trans.flush()
2858
 
2859
  def recv_getProductNotificationRequestCount(self, ):
2860
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2861
    if mtype == TMessageType.EXCEPTION:
2862
      x = TApplicationException()
2863
      x.read(self._iprot)
2864
      self._iprot.readMessageEnd()
2865
      raise x
2866
    result = getProductNotificationRequestCount_result()
2867
    result.read(self._iprot)
2868
    self._iprot.readMessageEnd()
2869
    if result.success is not None:
2870
      return result.success
2871
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2872
 
2873
  def addAuthorizationLog(self, itemId, username, reason):
2874
    """
2875
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2876
 
2877
    Parameters:
2878
     - itemId
2879
     - username
2880
     - reason
2881
    """
2882
    self.send_addAuthorizationLog(itemId, username, reason)
2883
    return self.recv_addAuthorizationLog()
2884
 
2885
  def send_addAuthorizationLog(self, itemId, username, reason):
2886
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2887
    args = addAuthorizationLog_args()
2888
    args.itemId = itemId
2889
    args.username = username
2890
    args.reason = reason
2891
    args.write(self._oprot)
2892
    self._oprot.writeMessageEnd()
2893
    self._oprot.trans.flush()
2894
 
2895
  def recv_addAuthorizationLog(self, ):
2896
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2897
    if mtype == TMessageType.EXCEPTION:
2898
      x = TApplicationException()
2899
      x.read(self._iprot)
2900
      self._iprot.readMessageEnd()
2901
      raise x
2902
    result = addAuthorizationLog_result()
2903
    result.read(self._iprot)
2904
    self._iprot.readMessageEnd()
2905
    if result.success is not None:
2906
      return result.success
2907
    if result.cex is not None:
2908
      raise result.cex
2909
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2910
 
2911
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2912
    """
2913
    Parameters:
2914
     - catalog_item_id
2915
     - voucherType
2916
     - voucherAmount
2917
    """
2918
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2919
    return self.recv_addupdateVoucherForItem()
2920
 
2921
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2922
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2923
    args = addupdateVoucherForItem_args()
2924
    args.catalog_item_id = catalog_item_id
2925
    args.voucherType = voucherType
2926
    args.voucherAmount = voucherAmount
2927
    args.write(self._oprot)
2928
    self._oprot.writeMessageEnd()
2929
    self._oprot.trans.flush()
2930
 
2931
  def recv_addupdateVoucherForItem(self, ):
2932
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2933
    if mtype == TMessageType.EXCEPTION:
2934
      x = TApplicationException()
2935
      x.read(self._iprot)
2936
      self._iprot.readMessageEnd()
2937
      raise x
2938
    result = addupdateVoucherForItem_result()
2939
    result.read(self._iprot)
2940
    self._iprot.readMessageEnd()
2941
    if result.success is not None:
2942
      return result.success
2943
    if result.cex is not None:
2944
      raise result.cex
2945
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2946
 
2947
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2948
    """
2949
    Parameters:
2950
     - catalog_item_id
2951
     - voucherType
2952
    """
2953
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2954
    return self.recv_deleteVoucherForItem()
2955
 
2956
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2957
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2958
    args = deleteVoucherForItem_args()
2959
    args.catalog_item_id = catalog_item_id
2960
    args.voucherType = voucherType
2961
    args.write(self._oprot)
2962
    self._oprot.writeMessageEnd()
2963
    self._oprot.trans.flush()
2964
 
2965
  def recv_deleteVoucherForItem(self, ):
2966
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2967
    if mtype == TMessageType.EXCEPTION:
2968
      x = TApplicationException()
2969
      x.read(self._iprot)
2970
      self._iprot.readMessageEnd()
2971
      raise x
2972
    result = deleteVoucherForItem_result()
2973
    result.read(self._iprot)
2974
    self._iprot.readMessageEnd()
2975
    if result.success is not None:
2976
      return result.success
2977
    if result.cex is not None:
2978
      raise result.cex
2979
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2980
 
2981
  def getVoucherAmount(self, itemId, voucherType):
2982
    """
2983
    Parameters:
2984
     - itemId
2985
     - voucherType
2986
    """
2987
    self.send_getVoucherAmount(itemId, voucherType)
2988
    return self.recv_getVoucherAmount()
2989
 
2990
  def send_getVoucherAmount(self, itemId, voucherType):
2991
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2992
    args = getVoucherAmount_args()
2993
    args.itemId = itemId
2994
    args.voucherType = voucherType
2995
    args.write(self._oprot)
2996
    self._oprot.writeMessageEnd()
2997
    self._oprot.trans.flush()
2998
 
2999
  def recv_getVoucherAmount(self, ):
3000
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3001
    if mtype == TMessageType.EXCEPTION:
3002
      x = TApplicationException()
3003
      x.read(self._iprot)
3004
      self._iprot.readMessageEnd()
3005
      raise x
3006
    result = getVoucherAmount_result()
3007
    result.read(self._iprot)
3008
    self._iprot.readMessageEnd()
3009
    if result.success is not None:
3010
      return result.success
3011
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3012
 
3013
  def getAllItemVouchers(self, itemId):
3014
    """
3015
    Parameters:
3016
     - itemId
3017
    """
3018
    self.send_getAllItemVouchers(itemId)
3019
    return self.recv_getAllItemVouchers()
3020
 
3021
  def send_getAllItemVouchers(self, itemId):
3022
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3023
    args = getAllItemVouchers_args()
3024
    args.itemId = itemId
3025
    args.write(self._oprot)
3026
    self._oprot.writeMessageEnd()
3027
    self._oprot.trans.flush()
3028
 
3029
  def recv_getAllItemVouchers(self, ):
3030
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3031
    if mtype == TMessageType.EXCEPTION:
3032
      x = TApplicationException()
3033
      x.read(self._iprot)
3034
      self._iprot.readMessageEnd()
3035
      raise x
3036
    result = getAllItemVouchers_result()
3037
    result.read(self._iprot)
3038
    self._iprot.readMessageEnd()
3039
    if result.success is not None:
3040
      return result.success
3041
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3042
 
3043
  def isValidCatalogItemId(self, catalog_item_id):
3044
    """
3045
    Parameters:
3046
     - catalog_item_id
3047
    """
3048
    self.send_isValidCatalogItemId(catalog_item_id)
3049
    return self.recv_isValidCatalogItemId()
3050
 
3051
  def send_isValidCatalogItemId(self, catalog_item_id):
3052
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3053
    args = isValidCatalogItemId_args()
3054
    args.catalog_item_id = catalog_item_id
3055
    args.write(self._oprot)
3056
    self._oprot.writeMessageEnd()
3057
    self._oprot.trans.flush()
3058
 
3059
  def recv_isValidCatalogItemId(self, ):
3060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3061
    if mtype == TMessageType.EXCEPTION:
3062
      x = TApplicationException()
3063
      x.read(self._iprot)
3064
      self._iprot.readMessageEnd()
3065
      raise x
3066
    result = isValidCatalogItemId_result()
3067
    result.read(self._iprot)
3068
    self._iprot.readMessageEnd()
3069
    if result.success is not None:
3070
      return result.success
3071
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3072
 
6039 amit.gupta 3073
  def getVatPercentageForItem(self, itemId, price):
3074
    """
3075
    Parameters:
3076
     - itemId
3077
     - price
3078
    """
3079
    self.send_getVatPercentageForItem(itemId, price)
3080
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3081
 
6039 amit.gupta 3082
  def send_getVatPercentageForItem(self, itemId, price):
3083
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3084
    args = getVatPercentageForItem_args()
3085
    args.itemId = itemId
3086
    args.price = price
3087
    args.write(self._oprot)
3088
    self._oprot.writeMessageEnd()
3089
    self._oprot.trans.flush()
3090
 
3091
  def recv_getVatPercentageForItem(self, ):
3092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3093
    if mtype == TMessageType.EXCEPTION:
3094
      x = TApplicationException()
3095
      x.read(self._iprot)
3096
      self._iprot.readMessageEnd()
3097
      raise x
3098
    result = getVatPercentageForItem_result()
3099
    result.read(self._iprot)
3100
    self._iprot.readMessageEnd()
3101
    if result.success is not None:
3102
      return result.success
3103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3104
 
3105
  def getVatAmountForItem(self, itemId, price):
3106
    """
3107
    Parameters:
3108
     - itemId
3109
     - price
3110
    """
3111
    self.send_getVatAmountForItem(itemId, price)
3112
    return self.recv_getVatAmountForItem()
3113
 
3114
  def send_getVatAmountForItem(self, itemId, price):
3115
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3116
    args = getVatAmountForItem_args()
3117
    args.itemId = itemId
3118
    args.price = price
3119
    args.write(self._oprot)
3120
    self._oprot.writeMessageEnd()
3121
    self._oprot.trans.flush()
3122
 
3123
  def recv_getVatAmountForItem(self, ):
3124
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3125
    if mtype == TMessageType.EXCEPTION:
3126
      x = TApplicationException()
3127
      x.read(self._iprot)
3128
      self._iprot.readMessageEnd()
3129
      raise x
3130
    result = getVatAmountForItem_result()
3131
    result.read(self._iprot)
3132
    self._iprot.readMessageEnd()
3133
    if result.success is not None:
3134
      return result.success
3135
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3136
 
6531 vikram.rag 3137
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3138
    """
3139
    Parameters:
3140
     - offset
3141
     - limit
3142
    """
3143
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3144
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3145
 
6531 vikram.rag 3146
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3147
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3148
    args = getAllIgnoredInventoryUpdateItemsList_args()
3149
    args.offset = offset
3150
    args.limit = limit
3151
    args.write(self._oprot)
3152
    self._oprot.writeMessageEnd()
3153
    self._oprot.trans.flush()
3154
 
3155
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3156
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3157
    if mtype == TMessageType.EXCEPTION:
3158
      x = TApplicationException()
3159
      x.read(self._iprot)
3160
      self._iprot.readMessageEnd()
3161
      raise x
3162
    result = getAllIgnoredInventoryUpdateItemsList_result()
3163
    result.read(self._iprot)
3164
    self._iprot.readMessageEnd()
3165
    if result.success is not None:
3166
      return result.success
3167
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3168
 
6821 amar.kumar 3169
  def getAllAliveItems(self, ):
3170
    self.send_getAllAliveItems()
3171
    return self.recv_getAllAliveItems()
3172
 
3173
  def send_getAllAliveItems(self, ):
3174
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3175
    args = getAllAliveItems_args()
3176
    args.write(self._oprot)
3177
    self._oprot.writeMessageEnd()
3178
    self._oprot.trans.flush()
3179
 
3180
  def recv_getAllAliveItems(self, ):
3181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3182
    if mtype == TMessageType.EXCEPTION:
3183
      x = TApplicationException()
3184
      x.read(self._iprot)
3185
      self._iprot.readMessageEnd()
3186
      raise x
3187
    result = getAllAliveItems_result()
3188
    result.read(self._iprot)
3189
    self._iprot.readMessageEnd()
3190
    if result.success is not None:
3191
      return result.success
3192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3193
 
6921 anupam.sin 3194
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3195
    """
3196
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3197
 
6805 anupam.sin 3198
    Parameters:
3199
     - itemId
6921 anupam.sin 3200
     - price
6805 anupam.sin 3201
     - insurerId
3202
     - quantity
3203
    """
6921 anupam.sin 3204
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3205
    return self.recv_getInsuranceAmount()
3206
 
6921 anupam.sin 3207
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3208
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3209
    args = getInsuranceAmount_args()
3210
    args.itemId = itemId
6921 anupam.sin 3211
    args.price = price
6805 anupam.sin 3212
    args.insurerId = insurerId
3213
    args.quantity = quantity
3214
    args.write(self._oprot)
3215
    self._oprot.writeMessageEnd()
3216
    self._oprot.trans.flush()
3217
 
3218
  def recv_getInsuranceAmount(self, ):
3219
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3220
    if mtype == TMessageType.EXCEPTION:
3221
      x = TApplicationException()
3222
      x.read(self._iprot)
3223
      self._iprot.readMessageEnd()
3224
      raise x
3225
    result = getInsuranceAmount_result()
3226
    result.read(self._iprot)
3227
    self._iprot.readMessageEnd()
3228
    if result.success is not None:
3229
      return result.success
3230
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3231
 
3232
  def getInsurer(self, insurerId):
3233
    """
3234
    Parameters:
3235
     - insurerId
3236
    """
3237
    self.send_getInsurer(insurerId)
3238
    return self.recv_getInsurer()
3239
 
3240
  def send_getInsurer(self, insurerId):
3241
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3242
    args = getInsurer_args()
3243
    args.insurerId = insurerId
3244
    args.write(self._oprot)
3245
    self._oprot.writeMessageEnd()
3246
    self._oprot.trans.flush()
3247
 
3248
  def recv_getInsurer(self, ):
3249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3250
    if mtype == TMessageType.EXCEPTION:
3251
      x = TApplicationException()
3252
      x.read(self._iprot)
3253
      self._iprot.readMessageEnd()
3254
      raise x
3255
    result = getInsurer_result()
3256
    result.read(self._iprot)
3257
    self._iprot.readMessageEnd()
3258
    if result.success is not None:
3259
      return result.success
3260
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3261
 
6838 vikram.rag 3262
  def getAllInsurers(self, ):
3263
    self.send_getAllInsurers()
3264
    return self.recv_getAllInsurers()
6805 anupam.sin 3265
 
6838 vikram.rag 3266
  def send_getAllInsurers(self, ):
3267
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3268
    args = getAllInsurers_args()
3269
    args.write(self._oprot)
3270
    self._oprot.writeMessageEnd()
3271
    self._oprot.trans.flush()
3272
 
3273
  def recv_getAllInsurers(self, ):
3274
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3275
    if mtype == TMessageType.EXCEPTION:
3276
      x = TApplicationException()
3277
      x.read(self._iprot)
3278
      self._iprot.readMessageEnd()
3279
      raise x
3280
    result = getAllInsurers_result()
3281
    result.read(self._iprot)
3282
    self._iprot.readMessageEnd()
3283
    if result.success is not None:
3284
      return result.success
3285
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3286
 
6962 rajveer 3287
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
3288
    """
3289
    Parameters:
3290
     - insurerId
3291
     - amount
3292
    """
3293
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
3294
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 3295
 
6962 rajveer 3296
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
3297
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
3298
    args = updateInsuranceDeclaredAmount_args()
3299
    args.insurerId = insurerId
3300
    args.amount = amount
3301
    args.write(self._oprot)
3302
    self._oprot.writeMessageEnd()
3303
    self._oprot.trans.flush()
3304
 
3305
  def recv_updateInsuranceDeclaredAmount(self, ):
3306
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3307
    if mtype == TMessageType.EXCEPTION:
3308
      x = TApplicationException()
3309
      x.read(self._iprot)
3310
      self._iprot.readMessageEnd()
3311
      raise x
3312
    result = updateInsuranceDeclaredAmount_result()
3313
    result.read(self._iprot)
3314
    self._iprot.readMessageEnd()
3315
    return
3316
 
7190 amar.kumar 3317
  def getFreebieForItem(self, itemId):
3318
    """
3319
    Parameters:
3320
     - itemId
3321
    """
3322
    self.send_getFreebieForItem(itemId)
3323
    return self.recv_getFreebieForItem()
6962 rajveer 3324
 
7190 amar.kumar 3325
  def send_getFreebieForItem(self, itemId):
3326
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
3327
    args = getFreebieForItem_args()
3328
    args.itemId = itemId
3329
    args.write(self._oprot)
3330
    self._oprot.writeMessageEnd()
3331
    self._oprot.trans.flush()
3332
 
3333
  def recv_getFreebieForItem(self, ):
3334
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3335
    if mtype == TMessageType.EXCEPTION:
3336
      x = TApplicationException()
3337
      x.read(self._iprot)
3338
      self._iprot.readMessageEnd()
3339
      raise x
3340
    result = getFreebieForItem_result()
3341
    result.read(self._iprot)
3342
    self._iprot.readMessageEnd()
3343
    if result.success is not None:
3344
      return result.success
3345
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
3346
 
3347
  def addOrUpdateFreebieForItem(self, freebieItem):
3348
    """
3349
    Parameters:
3350
     - freebieItem
3351
    """
3352
    self.send_addOrUpdateFreebieForItem(freebieItem)
3353
    self.recv_addOrUpdateFreebieForItem()
3354
 
3355
  def send_addOrUpdateFreebieForItem(self, freebieItem):
3356
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
3357
    args = addOrUpdateFreebieForItem_args()
3358
    args.freebieItem = freebieItem
3359
    args.write(self._oprot)
3360
    self._oprot.writeMessageEnd()
3361
    self._oprot.trans.flush()
3362
 
3363
  def recv_addOrUpdateFreebieForItem(self, ):
3364
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3365
    if mtype == TMessageType.EXCEPTION:
3366
      x = TApplicationException()
3367
      x.read(self._iprot)
3368
      self._iprot.readMessageEnd()
3369
      raise x
3370
    result = addOrUpdateFreebieForItem_result()
3371
    result.read(self._iprot)
3372
    self._iprot.readMessageEnd()
3373
    return
3374
 
7272 amit.gupta 3375
  def addOrUpdateBrandInfo(self, brandInfo):
3376
    """
3377
    Parameters:
3378
     - brandInfo
3379
    """
3380
    self.send_addOrUpdateBrandInfo(brandInfo)
3381
    self.recv_addOrUpdateBrandInfo()
3382
 
3383
  def send_addOrUpdateBrandInfo(self, brandInfo):
3384
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
3385
    args = addOrUpdateBrandInfo_args()
3386
    args.brandInfo = brandInfo
3387
    args.write(self._oprot)
3388
    self._oprot.writeMessageEnd()
3389
    self._oprot.trans.flush()
3390
 
3391
  def recv_addOrUpdateBrandInfo(self, ):
3392
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3393
    if mtype == TMessageType.EXCEPTION:
3394
      x = TApplicationException()
3395
      x.read(self._iprot)
3396
      self._iprot.readMessageEnd()
3397
      raise x
3398
    result = addOrUpdateBrandInfo_result()
3399
    result.read(self._iprot)
3400
    self._iprot.readMessageEnd()
3401
    return
3402
 
3403
  def getBrandInfo(self, ):
3404
    self.send_getBrandInfo()
3405
    return self.recv_getBrandInfo()
3406
 
3407
  def send_getBrandInfo(self, ):
3408
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
3409
    args = getBrandInfo_args()
3410
    args.write(self._oprot)
3411
    self._oprot.writeMessageEnd()
3412
    self._oprot.trans.flush()
3413
 
3414
  def recv_getBrandInfo(self, ):
3415
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3416
    if mtype == TMessageType.EXCEPTION:
3417
      x = TApplicationException()
3418
      x.read(self._iprot)
3419
      self._iprot.readMessageEnd()
3420
      raise x
3421
    result = getBrandInfo_result()
3422
    result.read(self._iprot)
3423
    self._iprot.readMessageEnd()
3424
    if result.success is not None:
3425
      return result.success
3426
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
3427
 
7256 rajveer 3428
  def getStorePricing(self, itemId):
3429
    """
3430
    Parameters:
3431
     - itemId
3432
    """
3433
    self.send_getStorePricing(itemId)
3434
    return self.recv_getStorePricing()
7190 amar.kumar 3435
 
7256 rajveer 3436
  def send_getStorePricing(self, itemId):
3437
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
3438
    args = getStorePricing_args()
3439
    args.itemId = itemId
3440
    args.write(self._oprot)
3441
    self._oprot.writeMessageEnd()
3442
    self._oprot.trans.flush()
3443
 
3444
  def recv_getStorePricing(self, ):
3445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3446
    if mtype == TMessageType.EXCEPTION:
3447
      x = TApplicationException()
3448
      x.read(self._iprot)
3449
      self._iprot.readMessageEnd()
3450
      raise x
3451
    result = getStorePricing_result()
3452
    result.read(self._iprot)
3453
    self._iprot.readMessageEnd()
3454
    if result.success is not None:
3455
      return result.success
3456
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
3457
 
7265 rajveer 3458
  def updateStorePricing(self, sp):
3459
    """
3460
    Parameters:
3461
     - sp
3462
    """
3463
    self.send_updateStorePricing(sp)
3464
    self.recv_updateStorePricing()
7256 rajveer 3465
 
7265 rajveer 3466
  def send_updateStorePricing(self, sp):
3467
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
3468
    args = updateStorePricing_args()
3469
    args.sp = sp
3470
    args.write(self._oprot)
3471
    self._oprot.writeMessageEnd()
3472
    self._oprot.trans.flush()
3473
 
3474
  def recv_updateStorePricing(self, ):
3475
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3476
    if mtype == TMessageType.EXCEPTION:
3477
      x = TApplicationException()
3478
      x.read(self._iprot)
3479
      self._iprot.readMessageEnd()
3480
      raise x
3481
    result = updateStorePricing_result()
3482
    result.read(self._iprot)
3483
    self._iprot.readMessageEnd()
3484
    return
3485
 
3486
 
5944 mandeep.dh 3487
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3488
  def __init__(self, handler):
3489
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3490
    self._processMap["addItem"] = Processor.process_addItem
3491
    self._processMap["updateItem"] = Processor.process_updateItem
3492
    self._processMap["isActive"] = Processor.process_isActive
3493
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
3494
    self._processMap["startItemOn"] = Processor.process_startItemOn
3495
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
3496
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3497
    self._processMap["getItem"] = Processor.process_getItem
3498
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
3499
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
3500
    self._processMap["getAllItems"] = Processor.process_getAllItems
3501
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
3502
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
3503
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
3504
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
3505
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
3506
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
3507
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
3508
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
3509
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
3510
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
3511
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
3512
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
3513
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
3514
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
3515
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
3516
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
3517
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
3518
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
3519
    self._processMap["addCategory"] = Processor.process_addCategory
3520
    self._processMap["getCategory"] = Processor.process_getCategory
3521
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
3522
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
3523
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 3524
    self._processMap["addTag"] = Processor.process_addTag
3525
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
3526
    self._processMap["deleteTag"] = Processor.process_deleteTag
3527
    self._processMap["getAllTags"] = Processor.process_getAllTags
3528
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 3529
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 3530
    self._processMap["addBanner"] = Processor.process_addBanner
3531
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
3532
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
3533
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
3534
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 3535
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
3536
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
3537
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
5944 mandeep.dh 3538
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
3539
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
3540
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
3541
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
3542
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
3543
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
3544
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
3545
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
3546
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
3547
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
3548
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
3549
    self._processMap["getAllSources"] = Processor.process_getAllSources
3550
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
3551
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
3552
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
3553
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3554
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3555
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3556
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3557
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3558
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3559
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3560
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3561
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3562
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3563
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3564
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3565
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3566
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3567
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3568
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3569
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3570
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 3571
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 3572
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
3573
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 3574
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
3575
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 3576
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7265 rajveer 3577
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
5944 mandeep.dh 3578
 
3579
  def process(self, iprot, oprot):
3580
    (name, type, seqid) = iprot.readMessageBegin()
3581
    if name not in self._processMap:
3582
      iprot.skip(TType.STRUCT)
3583
      iprot.readMessageEnd()
3584
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3585
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3586
      x.write(oprot)
3587
      oprot.writeMessageEnd()
3588
      oprot.trans.flush()
3589
      return
3590
    else:
3591
      self._processMap[name](self, seqid, iprot, oprot)
3592
    return True
3593
 
3594
  def process_addItem(self, seqid, iprot, oprot):
3595
    args = addItem_args()
3596
    args.read(iprot)
3597
    iprot.readMessageEnd()
3598
    result = addItem_result()
3599
    try:
3600
      result.success = self._handler.addItem(args.item)
3601
    except CatalogServiceException, cex:
3602
      result.cex = cex
3603
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3604
    result.write(oprot)
3605
    oprot.writeMessageEnd()
3606
    oprot.trans.flush()
3607
 
3608
  def process_updateItem(self, seqid, iprot, oprot):
3609
    args = updateItem_args()
3610
    args.read(iprot)
3611
    iprot.readMessageEnd()
3612
    result = updateItem_result()
3613
    try:
3614
      result.success = self._handler.updateItem(args.item)
3615
    except CatalogServiceException, cex:
3616
      result.cex = cex
3617
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3618
    result.write(oprot)
3619
    oprot.writeMessageEnd()
3620
    oprot.trans.flush()
3621
 
3622
  def process_isActive(self, seqid, iprot, oprot):
3623
    args = isActive_args()
3624
    args.read(iprot)
3625
    iprot.readMessageEnd()
3626
    result = isActive_result()
3627
    try:
3628
      result.success = self._handler.isActive(args.itemId)
3629
    except CatalogServiceException, isex:
3630
      result.isex = isex
3631
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3632
    result.write(oprot)
3633
    oprot.writeMessageEnd()
3634
    oprot.trans.flush()
3635
 
3636
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3637
    args = getItemStatusDescription_args()
3638
    args.read(iprot)
3639
    iprot.readMessageEnd()
3640
    result = getItemStatusDescription_result()
3641
    try:
3642
      result.success = self._handler.getItemStatusDescription(args.itemId)
3643
    except CatalogServiceException, isex:
3644
      result.isex = isex
3645
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3646
    result.write(oprot)
3647
    oprot.writeMessageEnd()
3648
    oprot.trans.flush()
3649
 
3650
  def process_startItemOn(self, seqid, iprot, oprot):
3651
    args = startItemOn_args()
3652
    args.read(iprot)
3653
    iprot.readMessageEnd()
3654
    result = startItemOn_result()
3655
    try:
3656
      self._handler.startItemOn(args.item_id, args.timestamp)
3657
    except CatalogServiceException, cex:
3658
      result.cex = cex
3659
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3660
    result.write(oprot)
3661
    oprot.writeMessageEnd()
3662
    oprot.trans.flush()
3663
 
3664
  def process_retireItemOn(self, seqid, iprot, oprot):
3665
    args = retireItemOn_args()
3666
    args.read(iprot)
3667
    iprot.readMessageEnd()
3668
    result = retireItemOn_result()
3669
    try:
3670
      self._handler.retireItemOn(args.item_id, args.timestamp)
3671
    except CatalogServiceException, cex:
3672
      result.cex = cex
3673
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3674
    result.write(oprot)
3675
    oprot.writeMessageEnd()
3676
    oprot.trans.flush()
3677
 
3678
  def process_changeItemStatus(self, seqid, iprot, oprot):
3679
    args = changeItemStatus_args()
3680
    args.read(iprot)
3681
    iprot.readMessageEnd()
3682
    result = changeItemStatus_result()
3683
    try:
3684
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3685
    except CatalogServiceException, cex:
3686
      result.cex = cex
3687
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3688
    result.write(oprot)
3689
    oprot.writeMessageEnd()
3690
    oprot.trans.flush()
3691
 
3692
  def process_getItem(self, seqid, iprot, oprot):
3693
    args = getItem_args()
3694
    args.read(iprot)
3695
    iprot.readMessageEnd()
3696
    result = getItem_result()
3697
    try:
3698
      result.success = self._handler.getItem(args.item_id)
3699
    except CatalogServiceException, cex:
3700
      result.cex = cex
3701
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3702
    result.write(oprot)
3703
    oprot.writeMessageEnd()
3704
    oprot.trans.flush()
3705
 
3706
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3707
    args = getItemsByCatalogId_args()
3708
    args.read(iprot)
3709
    iprot.readMessageEnd()
3710
    result = getItemsByCatalogId_result()
3711
    try:
3712
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3713
    except CatalogServiceException, cex:
3714
      result.cex = cex
3715
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3716
    result.write(oprot)
3717
    oprot.writeMessageEnd()
3718
    oprot.trans.flush()
3719
 
3720
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3721
    args = getValidItemsByCatalogId_args()
3722
    args.read(iprot)
3723
    iprot.readMessageEnd()
3724
    result = getValidItemsByCatalogId_result()
3725
    try:
3726
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3727
    except CatalogServiceException, cex:
3728
      result.cex = cex
3729
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3730
    result.write(oprot)
3731
    oprot.writeMessageEnd()
3732
    oprot.trans.flush()
3733
 
3734
  def process_getAllItems(self, seqid, iprot, oprot):
3735
    args = getAllItems_args()
3736
    args.read(iprot)
3737
    iprot.readMessageEnd()
3738
    result = getAllItems_result()
3739
    try:
3740
      result.success = self._handler.getAllItems(args.isActive)
3741
    except CatalogServiceException, cex:
3742
      result.cex = cex
3743
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3744
    result.write(oprot)
3745
    oprot.writeMessageEnd()
3746
    oprot.trans.flush()
3747
 
3748
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3749
    args = getAllItemsByStatus_args()
3750
    args.read(iprot)
3751
    iprot.readMessageEnd()
3752
    result = getAllItemsByStatus_result()
3753
    try:
3754
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3755
    except CatalogServiceException, cex:
3756
      result.cex = cex
3757
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3758
    result.write(oprot)
3759
    oprot.writeMessageEnd()
3760
    oprot.trans.flush()
3761
 
3762
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3763
    args = markItemAsContentComplete_args()
3764
    args.read(iprot)
3765
    iprot.readMessageEnd()
3766
    result = markItemAsContentComplete_result()
3767
    try:
3768
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3769
    except CatalogServiceException, cex:
3770
      result.cex = cex
3771
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3772
    result.write(oprot)
3773
    oprot.writeMessageEnd()
3774
    oprot.trans.flush()
3775
 
3776
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3777
    args = getAllItemsInRange_args()
3778
    args.read(iprot)
3779
    iprot.readMessageEnd()
3780
    result = getAllItemsInRange_result()
3781
    try:
3782
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3783
    except CatalogServiceException, cex:
3784
      result.cex = cex
3785
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3786
    result.write(oprot)
3787
    oprot.writeMessageEnd()
3788
    oprot.trans.flush()
3789
 
3790
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3791
    args = getAllItemsByStatusInRange_args()
3792
    args.read(iprot)
3793
    iprot.readMessageEnd()
3794
    result = getAllItemsByStatusInRange_result()
3795
    try:
3796
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3797
    except CatalogServiceException, cex:
3798
      result.cex = cex
3799
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3800
    result.write(oprot)
3801
    oprot.writeMessageEnd()
3802
    oprot.trans.flush()
3803
 
3804
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3805
    args = getItemCountByStatus_args()
3806
    args.read(iprot)
3807
    iprot.readMessageEnd()
3808
    result = getItemCountByStatus_result()
3809
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3810
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3811
    result.write(oprot)
3812
    oprot.writeMessageEnd()
3813
    oprot.trans.flush()
3814
 
3815
  def process_getBestSellers(self, seqid, iprot, oprot):
3816
    args = getBestSellers_args()
3817
    args.read(iprot)
3818
    iprot.readMessageEnd()
3819
    result = getBestSellers_result()
3820
    try:
3821
      result.success = self._handler.getBestSellers()
3822
    except CatalogServiceException, isex:
3823
      result.isex = isex
3824
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3825
    result.write(oprot)
3826
    oprot.writeMessageEnd()
3827
    oprot.trans.flush()
3828
 
3829
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3830
    args = getBestSellersCatalogIds_args()
3831
    args.read(iprot)
3832
    iprot.readMessageEnd()
3833
    result = getBestSellersCatalogIds_result()
3834
    try:
3835
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3836
    except CatalogServiceException, cex:
3837
      result.cex = cex
3838
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3839
    result.write(oprot)
3840
    oprot.writeMessageEnd()
3841
    oprot.trans.flush()
3842
 
3843
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3844
    args = getBestSellersCount_args()
3845
    args.read(iprot)
3846
    iprot.readMessageEnd()
3847
    result = getBestSellersCount_result()
3848
    try:
3849
      result.success = self._handler.getBestSellersCount()
3850
    except CatalogServiceException, cex:
3851
      result.cex = cex
3852
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3853
    result.write(oprot)
3854
    oprot.writeMessageEnd()
3855
    oprot.trans.flush()
3856
 
3857
  def process_getBestDeals(self, seqid, iprot, oprot):
3858
    args = getBestDeals_args()
3859
    args.read(iprot)
3860
    iprot.readMessageEnd()
3861
    result = getBestDeals_result()
3862
    try:
3863
      result.success = self._handler.getBestDeals()
3864
    except CatalogServiceException, isex:
3865
      result.isex = isex
3866
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3867
    result.write(oprot)
3868
    oprot.writeMessageEnd()
3869
    oprot.trans.flush()
3870
 
3871
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3872
    args = getBestDealsCatalogIds_args()
3873
    args.read(iprot)
3874
    iprot.readMessageEnd()
3875
    result = getBestDealsCatalogIds_result()
3876
    try:
3877
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3878
    except CatalogServiceException, cex:
3879
      result.cex = cex
3880
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3881
    result.write(oprot)
3882
    oprot.writeMessageEnd()
3883
    oprot.trans.flush()
3884
 
3885
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3886
    args = getBestDealsCount_args()
3887
    args.read(iprot)
3888
    iprot.readMessageEnd()
3889
    result = getBestDealsCount_result()
3890
    try:
3891
      result.success = self._handler.getBestDealsCount()
3892
    except CatalogServiceException, cex:
3893
      result.cex = cex
3894
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3895
    result.write(oprot)
3896
    oprot.writeMessageEnd()
3897
    oprot.trans.flush()
3898
 
3899
  def process_getComingSoon(self, seqid, iprot, oprot):
3900
    args = getComingSoon_args()
3901
    args.read(iprot)
3902
    iprot.readMessageEnd()
3903
    result = getComingSoon_result()
3904
    try:
3905
      result.success = self._handler.getComingSoon()
3906
    except CatalogServiceException, isex:
3907
      result.isex = isex
3908
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3909
    result.write(oprot)
3910
    oprot.writeMessageEnd()
3911
    oprot.trans.flush()
3912
 
3913
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3914
    args = getComingSoonCatalogIds_args()
3915
    args.read(iprot)
3916
    iprot.readMessageEnd()
3917
    result = getComingSoonCatalogIds_result()
3918
    try:
3919
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3920
    except CatalogServiceException, cex:
3921
      result.cex = cex
3922
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3923
    result.write(oprot)
3924
    oprot.writeMessageEnd()
3925
    oprot.trans.flush()
3926
 
3927
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3928
    args = getComingSoonCount_args()
3929
    args.read(iprot)
3930
    iprot.readMessageEnd()
3931
    result = getComingSoonCount_result()
3932
    try:
3933
      result.success = self._handler.getComingSoonCount()
3934
    except CatalogServiceException, cex:
3935
      result.cex = cex
3936
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3937
    result.write(oprot)
3938
    oprot.writeMessageEnd()
3939
    oprot.trans.flush()
3940
 
3941
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3942
    args = getLatestArrivals_args()
3943
    args.read(iprot)
3944
    iprot.readMessageEnd()
3945
    result = getLatestArrivals_result()
3946
    try:
3947
      result.success = self._handler.getLatestArrivals()
3948
    except CatalogServiceException, isex:
3949
      result.isex = isex
3950
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3951
    result.write(oprot)
3952
    oprot.writeMessageEnd()
3953
    oprot.trans.flush()
3954
 
3955
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3956
    args = getLatestArrivalsCatalogIds_args()
3957
    args.read(iprot)
3958
    iprot.readMessageEnd()
3959
    result = getLatestArrivalsCatalogIds_result()
3960
    try:
3961
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3962
    except CatalogServiceException, cex:
3963
      result.cex = cex
3964
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3965
    result.write(oprot)
3966
    oprot.writeMessageEnd()
3967
    oprot.trans.flush()
3968
 
3969
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3970
    args = getLatestArrivalsCount_args()
3971
    args.read(iprot)
3972
    iprot.readMessageEnd()
3973
    result = getLatestArrivalsCount_result()
3974
    try:
3975
      result.success = self._handler.getLatestArrivalsCount()
3976
    except CatalogServiceException, cex:
3977
      result.cex = cex
3978
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3979
    result.write(oprot)
3980
    oprot.writeMessageEnd()
3981
    oprot.trans.flush()
3982
 
3983
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3984
    args = generateNewEntityID_args()
3985
    args.read(iprot)
3986
    iprot.readMessageEnd()
3987
    result = generateNewEntityID_result()
3988
    result.success = self._handler.generateNewEntityID()
3989
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3990
    result.write(oprot)
3991
    oprot.writeMessageEnd()
3992
    oprot.trans.flush()
3993
 
3994
  def process_addCategory(self, seqid, iprot, oprot):
3995
    args = addCategory_args()
3996
    args.read(iprot)
3997
    iprot.readMessageEnd()
3998
    result = addCategory_result()
3999
    result.success = self._handler.addCategory(args.category)
4000
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
4001
    result.write(oprot)
4002
    oprot.writeMessageEnd()
4003
    oprot.trans.flush()
4004
 
4005
  def process_getCategory(self, seqid, iprot, oprot):
4006
    args = getCategory_args()
4007
    args.read(iprot)
4008
    iprot.readMessageEnd()
4009
    result = getCategory_result()
4010
    result.success = self._handler.getCategory(args.id)
4011
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
4012
    result.write(oprot)
4013
    oprot.writeMessageEnd()
4014
    oprot.trans.flush()
4015
 
4016
  def process_getAllCategories(self, seqid, iprot, oprot):
4017
    args = getAllCategories_args()
4018
    args.read(iprot)
4019
    iprot.readMessageEnd()
4020
    result = getAllCategories_result()
4021
    result.success = self._handler.getAllCategories()
4022
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
4023
    result.write(oprot)
4024
    oprot.writeMessageEnd()
4025
    oprot.trans.flush()
4026
 
4027
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
4028
    args = getAllSimilarItems_args()
4029
    args.read(iprot)
4030
    iprot.readMessageEnd()
4031
    result = getAllSimilarItems_result()
4032
    result.success = self._handler.getAllSimilarItems(args.itemId)
4033
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
4034
    result.write(oprot)
4035
    oprot.writeMessageEnd()
4036
    oprot.trans.flush()
4037
 
4038
  def process_addSimilarItem(self, seqid, iprot, oprot):
4039
    args = addSimilarItem_args()
4040
    args.read(iprot)
4041
    iprot.readMessageEnd()
4042
    result = addSimilarItem_result()
4043
    try:
4044
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
4045
    except CatalogServiceException, cex:
4046
      result.cex = cex
4047
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
4048
    result.write(oprot)
4049
    oprot.writeMessageEnd()
4050
    oprot.trans.flush()
4051
 
6512 kshitij.so 4052
  def process_addTag(self, seqid, iprot, oprot):
4053
    args = addTag_args()
4054
    args.read(iprot)
4055
    iprot.readMessageEnd()
4056
    result = addTag_result()
4057
    result.success = self._handler.addTag(args.displayName, args.itemId)
4058
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
4059
    result.write(oprot)
4060
    oprot.writeMessageEnd()
4061
    oprot.trans.flush()
4062
 
4063
  def process_deleteEntityTag(self, seqid, iprot, oprot):
4064
    args = deleteEntityTag_args()
4065
    args.read(iprot)
4066
    iprot.readMessageEnd()
4067
    result = deleteEntityTag_result()
4068
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
4069
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
4070
    result.write(oprot)
4071
    oprot.writeMessageEnd()
4072
    oprot.trans.flush()
4073
 
4074
  def process_deleteTag(self, seqid, iprot, oprot):
4075
    args = deleteTag_args()
4076
    args.read(iprot)
4077
    iprot.readMessageEnd()
4078
    result = deleteTag_result()
4079
    result.success = self._handler.deleteTag(args.displayName)
4080
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
4081
    result.write(oprot)
4082
    oprot.writeMessageEnd()
4083
    oprot.trans.flush()
4084
 
4085
  def process_getAllTags(self, seqid, iprot, oprot):
4086
    args = getAllTags_args()
4087
    args.read(iprot)
4088
    iprot.readMessageEnd()
4089
    result = getAllTags_result()
4090
    result.success = self._handler.getAllTags()
4091
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
4092
    result.write(oprot)
4093
    oprot.writeMessageEnd()
4094
    oprot.trans.flush()
4095
 
4096
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
4097
    args = getAllEntitiesByTagName_args()
4098
    args.read(iprot)
4099
    iprot.readMessageEnd()
4100
    result = getAllEntitiesByTagName_result()
4101
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
4102
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
4103
    result.write(oprot)
4104
    oprot.writeMessageEnd()
4105
    oprot.trans.flush()
4106
 
6845 amit.gupta 4107
  def process_getAllEntityTags(self, seqid, iprot, oprot):
4108
    args = getAllEntityTags_args()
4109
    args.read(iprot)
4110
    iprot.readMessageEnd()
4111
    result = getAllEntityTags_result()
4112
    result.success = self._handler.getAllEntityTags()
4113
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
4114
    result.write(oprot)
4115
    oprot.writeMessageEnd()
4116
    oprot.trans.flush()
4117
 
6850 kshitij.so 4118
  def process_addBanner(self, seqid, iprot, oprot):
4119
    args = addBanner_args()
4120
    args.read(iprot)
4121
    iprot.readMessageEnd()
4122
    result = addBanner_result()
4123
    result.success = self._handler.addBanner(args.bannerName, args.imageName, args.link, args.priority, args.isActive, args.hasMap)
4124
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
4125
    result.write(oprot)
4126
    oprot.writeMessageEnd()
4127
    oprot.trans.flush()
4128
 
4129
  def process_getAllBanners(self, seqid, iprot, oprot):
4130
    args = getAllBanners_args()
4131
    args.read(iprot)
4132
    iprot.readMessageEnd()
4133
    result = getAllBanners_result()
4134
    result.success = self._handler.getAllBanners()
4135
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
4136
    result.write(oprot)
4137
    oprot.writeMessageEnd()
4138
    oprot.trans.flush()
4139
 
4140
  def process_deleteBanner(self, seqid, iprot, oprot):
4141
    args = deleteBanner_args()
4142
    args.read(iprot)
4143
    iprot.readMessageEnd()
4144
    result = deleteBanner_result()
4145
    result.success = self._handler.deleteBanner(args.bannerName)
4146
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
4147
    result.write(oprot)
4148
    oprot.writeMessageEnd()
4149
    oprot.trans.flush()
4150
 
4151
  def process_getBannerDetails(self, seqid, iprot, oprot):
4152
    args = getBannerDetails_args()
4153
    args.read(iprot)
4154
    iprot.readMessageEnd()
4155
    result = getBannerDetails_result()
4156
    result.success = self._handler.getBannerDetails(args.bannerName)
4157
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
4158
    result.write(oprot)
4159
    oprot.writeMessageEnd()
4160
    oprot.trans.flush()
4161
 
4162
  def process_getActiveBanners(self, seqid, iprot, oprot):
4163
    args = getActiveBanners_args()
4164
    args.read(iprot)
4165
    iprot.readMessageEnd()
4166
    result = getActiveBanners_result()
4167
    result.success = self._handler.getActiveBanners()
4168
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
4169
    result.write(oprot)
4170
    oprot.writeMessageEnd()
4171
    oprot.trans.flush()
4172
 
6849 kshitij.so 4173
  def process_addBannerMap(self, seqid, iprot, oprot):
4174
    args = addBannerMap_args()
4175
    args.read(iprot)
4176
    iprot.readMessageEnd()
4177
    result = addBannerMap_result()
4178
    result.success = self._handler.addBannerMap(args.bannerName, args.mapLink, args.coordinates)
4179
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
4180
    result.write(oprot)
4181
    oprot.writeMessageEnd()
4182
    oprot.trans.flush()
4183
 
4184
  def process_deleteBannerMap(self, seqid, iprot, oprot):
4185
    args = deleteBannerMap_args()
4186
    args.read(iprot)
4187
    iprot.readMessageEnd()
4188
    result = deleteBannerMap_result()
4189
    result.success = self._handler.deleteBannerMap(args.bannerName)
4190
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
4191
    result.write(oprot)
4192
    oprot.writeMessageEnd()
4193
    oprot.trans.flush()
4194
 
4195
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
4196
    args = getBannerMapDetails_args()
4197
    args.read(iprot)
4198
    iprot.readMessageEnd()
4199
    result = getBannerMapDetails_result()
4200
    result.success = self._handler.getBannerMapDetails(args.bannerName)
4201
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
4202
    result.write(oprot)
4203
    oprot.writeMessageEnd()
4204
    oprot.trans.flush()
4205
 
5944 mandeep.dh 4206
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
4207
    args = deleteSimilarItem_args()
4208
    args.read(iprot)
4209
    iprot.readMessageEnd()
4210
    result = deleteSimilarItem_result()
4211
    try:
4212
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
4213
    except CatalogServiceException, cex:
4214
      result.cex = cex
4215
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
4216
    result.write(oprot)
4217
    oprot.writeMessageEnd()
4218
    oprot.trans.flush()
4219
 
4220
  def process_checkSimilarItem(self, seqid, iprot, oprot):
4221
    args = checkSimilarItem_args()
4222
    args.read(iprot)
4223
    iprot.readMessageEnd()
4224
    result = checkSimilarItem_result()
4225
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
4226
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
4227
    result.write(oprot)
4228
    oprot.writeMessageEnd()
4229
    oprot.trans.flush()
4230
 
4231
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
4232
    args = validateRiskyStatus_args()
4233
    args.read(iprot)
4234
    iprot.readMessageEnd()
4235
    result = validateRiskyStatus_result()
4236
    self._handler.validateRiskyStatus(args.itemId)
4237
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
4238
    result.write(oprot)
4239
    oprot.writeMessageEnd()
4240
    oprot.trans.flush()
4241
 
4242
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
4243
    args = changeItemRiskyFlag_args()
4244
    args.read(iprot)
4245
    iprot.readMessageEnd()
4246
    result = changeItemRiskyFlag_result()
4247
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
4248
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
4249
    result.write(oprot)
4250
    oprot.writeMessageEnd()
4251
    oprot.trans.flush()
4252
 
4253
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
4254
    args = getItemsByRiskyFlag_args()
4255
    args.read(iprot)
4256
    iprot.readMessageEnd()
4257
    result = getItemsByRiskyFlag_result()
4258
    result.success = self._handler.getItemsByRiskyFlag()
4259
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
4260
    result.write(oprot)
4261
    oprot.writeMessageEnd()
4262
    oprot.trans.flush()
4263
 
4264
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
4265
    args = getItemsForMasterSheet_args()
4266
    args.read(iprot)
4267
    iprot.readMessageEnd()
4268
    result = getItemsForMasterSheet_result()
4269
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
4270
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
4271
    result.write(oprot)
4272
    oprot.writeMessageEnd()
4273
    oprot.trans.flush()
4274
 
4275
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
4276
    args = getSimilarItemsCatalogIds_args()
4277
    args.read(iprot)
4278
    iprot.readMessageEnd()
4279
    result = getSimilarItemsCatalogIds_result()
4280
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
4281
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
4282
    result.write(oprot)
4283
    oprot.writeMessageEnd()
4284
    oprot.trans.flush()
4285
 
4286
  def process_addProductNotification(self, seqid, iprot, oprot):
4287
    args = addProductNotification_args()
4288
    args.read(iprot)
4289
    iprot.readMessageEnd()
4290
    result = addProductNotification_result()
4291
    result.success = self._handler.addProductNotification(args.itemId, args.email)
4292
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
4293
    result.write(oprot)
4294
    oprot.writeMessageEnd()
4295
    oprot.trans.flush()
4296
 
4297
  def process_sendProductNotifications(self, seqid, iprot, oprot):
4298
    args = sendProductNotifications_args()
4299
    args.read(iprot)
4300
    iprot.readMessageEnd()
4301
    result = sendProductNotifications_result()
4302
    result.success = self._handler.sendProductNotifications()
4303
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
4304
    result.write(oprot)
4305
    oprot.writeMessageEnd()
4306
    oprot.trans.flush()
4307
 
4308
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
4309
    args = getAllBrandsByCategory_args()
4310
    args.read(iprot)
4311
    iprot.readMessageEnd()
4312
    result = getAllBrandsByCategory_result()
4313
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
4314
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
4315
    result.write(oprot)
4316
    oprot.writeMessageEnd()
4317
    oprot.trans.flush()
4318
 
4319
  def process_getAllBrands(self, seqid, iprot, oprot):
4320
    args = getAllBrands_args()
4321
    args.read(iprot)
4322
    iprot.readMessageEnd()
4323
    result = getAllBrands_result()
4324
    result.success = self._handler.getAllBrands()
4325
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
4326
    result.write(oprot)
4327
    oprot.writeMessageEnd()
4328
    oprot.trans.flush()
4329
 
4330
  def process_getAllSources(self, seqid, iprot, oprot):
4331
    args = getAllSources_args()
4332
    args.read(iprot)
4333
    iprot.readMessageEnd()
4334
    result = getAllSources_result()
4335
    result.success = self._handler.getAllSources()
4336
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
4337
    result.write(oprot)
4338
    oprot.writeMessageEnd()
4339
    oprot.trans.flush()
4340
 
4341
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
4342
    args = getItemPricingBySource_args()
4343
    args.read(iprot)
4344
    iprot.readMessageEnd()
4345
    result = getItemPricingBySource_result()
4346
    try:
4347
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
4348
    except CatalogServiceException, cex:
4349
      result.cex = cex
4350
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
4351
    result.write(oprot)
4352
    oprot.writeMessageEnd()
4353
    oprot.trans.flush()
4354
 
4355
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
4356
    args = addSourceItemPricing_args()
4357
    args.read(iprot)
4358
    iprot.readMessageEnd()
4359
    result = addSourceItemPricing_result()
4360
    try:
4361
      self._handler.addSourceItemPricing(args.sourceItemPricing)
4362
    except CatalogServiceException, cex:
4363
      result.cex = cex
4364
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
4365
    result.write(oprot)
4366
    oprot.writeMessageEnd()
4367
    oprot.trans.flush()
4368
 
4369
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
4370
    args = getAllSourcePricing_args()
4371
    args.read(iprot)
4372
    iprot.readMessageEnd()
4373
    result = getAllSourcePricing_result()
4374
    try:
4375
      result.success = self._handler.getAllSourcePricing(args.itemId)
4376
    except CatalogServiceException, cex:
4377
      result.cex = cex
4378
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
4379
    result.write(oprot)
4380
    oprot.writeMessageEnd()
4381
    oprot.trans.flush()
4382
 
4383
  def process_getItemForSource(self, seqid, iprot, oprot):
4384
    args = getItemForSource_args()
4385
    args.read(iprot)
4386
    iprot.readMessageEnd()
4387
    result = getItemForSource_result()
4388
    try:
4389
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
4390
    except CatalogServiceException, cex:
4391
      result.cex = cex
4392
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
4393
    result.write(oprot)
4394
    oprot.writeMessageEnd()
4395
    oprot.trans.flush()
4396
 
4397
  def process_searchItemsInRange(self, seqid, iprot, oprot):
4398
    args = searchItemsInRange_args()
4399
    args.read(iprot)
4400
    iprot.readMessageEnd()
4401
    result = searchItemsInRange_result()
4402
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
4403
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
4404
    result.write(oprot)
4405
    oprot.writeMessageEnd()
4406
    oprot.trans.flush()
4407
 
4408
  def process_getSearchResultCount(self, seqid, iprot, oprot):
4409
    args = getSearchResultCount_args()
4410
    args.read(iprot)
4411
    iprot.readMessageEnd()
4412
    result = getSearchResultCount_result()
4413
    result.success = self._handler.getSearchResultCount(args.searchTerms)
4414
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
4415
    result.write(oprot)
4416
    oprot.writeMessageEnd()
4417
    oprot.trans.flush()
4418
 
4419
  def process_getProductNotifications(self, seqid, iprot, oprot):
4420
    args = getProductNotifications_args()
4421
    args.read(iprot)
4422
    iprot.readMessageEnd()
4423
    result = getProductNotifications_result()
4424
    result.success = self._handler.getProductNotifications(args.startDateTime)
4425
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
4426
    result.write(oprot)
4427
    oprot.writeMessageEnd()
4428
    oprot.trans.flush()
4429
 
4430
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
4431
    args = getProductNotificationRequestCount_args()
4432
    args.read(iprot)
4433
    iprot.readMessageEnd()
4434
    result = getProductNotificationRequestCount_result()
4435
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
4436
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
4437
    result.write(oprot)
4438
    oprot.writeMessageEnd()
4439
    oprot.trans.flush()
4440
 
4441
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
4442
    args = addAuthorizationLog_args()
4443
    args.read(iprot)
4444
    iprot.readMessageEnd()
4445
    result = addAuthorizationLog_result()
4446
    try:
4447
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
4448
    except CatalogServiceException, cex:
4449
      result.cex = cex
4450
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
4451
    result.write(oprot)
4452
    oprot.writeMessageEnd()
4453
    oprot.trans.flush()
4454
 
4455
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
4456
    args = addupdateVoucherForItem_args()
4457
    args.read(iprot)
4458
    iprot.readMessageEnd()
4459
    result = addupdateVoucherForItem_result()
4460
    try:
4461
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
4462
    except CatalogServiceException, cex:
4463
      result.cex = cex
4464
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
4465
    result.write(oprot)
4466
    oprot.writeMessageEnd()
4467
    oprot.trans.flush()
4468
 
4469
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
4470
    args = deleteVoucherForItem_args()
4471
    args.read(iprot)
4472
    iprot.readMessageEnd()
4473
    result = deleteVoucherForItem_result()
4474
    try:
4475
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
4476
    except CatalogServiceException, cex:
4477
      result.cex = cex
4478
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
4479
    result.write(oprot)
4480
    oprot.writeMessageEnd()
4481
    oprot.trans.flush()
4482
 
4483
  def process_getVoucherAmount(self, seqid, iprot, oprot):
4484
    args = getVoucherAmount_args()
4485
    args.read(iprot)
4486
    iprot.readMessageEnd()
4487
    result = getVoucherAmount_result()
4488
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
4489
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
4490
    result.write(oprot)
4491
    oprot.writeMessageEnd()
4492
    oprot.trans.flush()
4493
 
4494
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
4495
    args = getAllItemVouchers_args()
4496
    args.read(iprot)
4497
    iprot.readMessageEnd()
4498
    result = getAllItemVouchers_result()
4499
    result.success = self._handler.getAllItemVouchers(args.itemId)
4500
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
4501
    result.write(oprot)
4502
    oprot.writeMessageEnd()
4503
    oprot.trans.flush()
4504
 
4505
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
4506
    args = isValidCatalogItemId_args()
4507
    args.read(iprot)
4508
    iprot.readMessageEnd()
4509
    result = isValidCatalogItemId_result()
4510
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
4511
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
4512
    result.write(oprot)
4513
    oprot.writeMessageEnd()
4514
    oprot.trans.flush()
4515
 
6039 amit.gupta 4516
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
4517
    args = getVatPercentageForItem_args()
4518
    args.read(iprot)
4519
    iprot.readMessageEnd()
4520
    result = getVatPercentageForItem_result()
4521
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
4522
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
4523
    result.write(oprot)
4524
    oprot.writeMessageEnd()
4525
    oprot.trans.flush()
5944 mandeep.dh 4526
 
6039 amit.gupta 4527
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
4528
    args = getVatAmountForItem_args()
4529
    args.read(iprot)
4530
    iprot.readMessageEnd()
4531
    result = getVatAmountForItem_result()
4532
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
4533
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
4534
    result.write(oprot)
4535
    oprot.writeMessageEnd()
4536
    oprot.trans.flush()
4537
 
6531 vikram.rag 4538
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
4539
    args = getAllIgnoredInventoryUpdateItemsList_args()
4540
    args.read(iprot)
4541
    iprot.readMessageEnd()
4542
    result = getAllIgnoredInventoryUpdateItemsList_result()
4543
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
4544
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
4545
    result.write(oprot)
4546
    oprot.writeMessageEnd()
4547
    oprot.trans.flush()
6039 amit.gupta 4548
 
6821 amar.kumar 4549
  def process_getAllAliveItems(self, seqid, iprot, oprot):
4550
    args = getAllAliveItems_args()
4551
    args.read(iprot)
4552
    iprot.readMessageEnd()
4553
    result = getAllAliveItems_result()
4554
    result.success = self._handler.getAllAliveItems()
4555
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
4556
    result.write(oprot)
4557
    oprot.writeMessageEnd()
4558
    oprot.trans.flush()
4559
 
6805 anupam.sin 4560
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
4561
    args = getInsuranceAmount_args()
4562
    args.read(iprot)
4563
    iprot.readMessageEnd()
4564
    result = getInsuranceAmount_result()
6921 anupam.sin 4565
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 4566
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
4567
    result.write(oprot)
4568
    oprot.writeMessageEnd()
4569
    oprot.trans.flush()
6531 vikram.rag 4570
 
6805 anupam.sin 4571
  def process_getInsurer(self, seqid, iprot, oprot):
4572
    args = getInsurer_args()
4573
    args.read(iprot)
4574
    iprot.readMessageEnd()
4575
    result = getInsurer_result()
4576
    result.success = self._handler.getInsurer(args.insurerId)
4577
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
4578
    result.write(oprot)
4579
    oprot.writeMessageEnd()
4580
    oprot.trans.flush()
4581
 
6838 vikram.rag 4582
  def process_getAllInsurers(self, seqid, iprot, oprot):
4583
    args = getAllInsurers_args()
4584
    args.read(iprot)
4585
    iprot.readMessageEnd()
4586
    result = getAllInsurers_result()
4587
    result.success = self._handler.getAllInsurers()
4588
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
4589
    result.write(oprot)
4590
    oprot.writeMessageEnd()
4591
    oprot.trans.flush()
6805 anupam.sin 4592
 
6962 rajveer 4593
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
4594
    args = updateInsuranceDeclaredAmount_args()
4595
    args.read(iprot)
4596
    iprot.readMessageEnd()
4597
    result = updateInsuranceDeclaredAmount_result()
4598
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
4599
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
4600
    result.write(oprot)
4601
    oprot.writeMessageEnd()
4602
    oprot.trans.flush()
6838 vikram.rag 4603
 
7190 amar.kumar 4604
  def process_getFreebieForItem(self, seqid, iprot, oprot):
4605
    args = getFreebieForItem_args()
4606
    args.read(iprot)
4607
    iprot.readMessageEnd()
4608
    result = getFreebieForItem_result()
4609
    result.success = self._handler.getFreebieForItem(args.itemId)
4610
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
4611
    result.write(oprot)
4612
    oprot.writeMessageEnd()
4613
    oprot.trans.flush()
6962 rajveer 4614
 
7190 amar.kumar 4615
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
4616
    args = addOrUpdateFreebieForItem_args()
4617
    args.read(iprot)
4618
    iprot.readMessageEnd()
4619
    result = addOrUpdateFreebieForItem_result()
4620
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
4621
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
4622
    result.write(oprot)
4623
    oprot.writeMessageEnd()
4624
    oprot.trans.flush()
4625
 
7272 amit.gupta 4626
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
4627
    args = addOrUpdateBrandInfo_args()
4628
    args.read(iprot)
4629
    iprot.readMessageEnd()
4630
    result = addOrUpdateBrandInfo_result()
4631
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
4632
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
4633
    result.write(oprot)
4634
    oprot.writeMessageEnd()
4635
    oprot.trans.flush()
4636
 
4637
  def process_getBrandInfo(self, seqid, iprot, oprot):
4638
    args = getBrandInfo_args()
4639
    args.read(iprot)
4640
    iprot.readMessageEnd()
4641
    result = getBrandInfo_result()
4642
    result.success = self._handler.getBrandInfo()
4643
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
4644
    result.write(oprot)
4645
    oprot.writeMessageEnd()
4646
    oprot.trans.flush()
4647
 
7256 rajveer 4648
  def process_getStorePricing(self, seqid, iprot, oprot):
4649
    args = getStorePricing_args()
4650
    args.read(iprot)
4651
    iprot.readMessageEnd()
4652
    result = getStorePricing_result()
4653
    result.success = self._handler.getStorePricing(args.itemId)
4654
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
4655
    result.write(oprot)
4656
    oprot.writeMessageEnd()
4657
    oprot.trans.flush()
7190 amar.kumar 4658
 
7265 rajveer 4659
  def process_updateStorePricing(self, seqid, iprot, oprot):
4660
    args = updateStorePricing_args()
4661
    args.read(iprot)
4662
    iprot.readMessageEnd()
4663
    result = updateStorePricing_result()
4664
    self._handler.updateStorePricing(args.sp)
4665
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
4666
    result.write(oprot)
4667
    oprot.writeMessageEnd()
4668
    oprot.trans.flush()
7256 rajveer 4669
 
7265 rajveer 4670
 
5944 mandeep.dh 4671
# HELPER FUNCTIONS AND STRUCTURES
4672
 
4673
class addItem_args:
4674
  """
4675
  Attributes:
4676
   - item
4677
  """
4678
 
4679
  thrift_spec = (
4680
    None, # 0
4681
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4682
  )
4683
 
4684
  def __init__(self, item=None,):
4685
    self.item = item
4686
 
4687
  def read(self, iprot):
4688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4690
      return
4691
    iprot.readStructBegin()
4692
    while True:
4693
      (fname, ftype, fid) = iprot.readFieldBegin()
4694
      if ftype == TType.STOP:
4695
        break
4696
      if fid == 1:
4697
        if ftype == TType.STRUCT:
4698
          self.item = Item()
4699
          self.item.read(iprot)
4700
        else:
4701
          iprot.skip(ftype)
4702
      else:
4703
        iprot.skip(ftype)
4704
      iprot.readFieldEnd()
4705
    iprot.readStructEnd()
4706
 
4707
  def write(self, oprot):
4708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4710
      return
4711
    oprot.writeStructBegin('addItem_args')
4712
    if self.item is not None:
4713
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4714
      self.item.write(oprot)
4715
      oprot.writeFieldEnd()
4716
    oprot.writeFieldStop()
4717
    oprot.writeStructEnd()
4718
 
4719
  def validate(self):
4720
    return
4721
 
4722
 
4723
  def __repr__(self):
4724
    L = ['%s=%r' % (key, value)
4725
      for key, value in self.__dict__.iteritems()]
4726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4727
 
4728
  def __eq__(self, other):
4729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4730
 
4731
  def __ne__(self, other):
4732
    return not (self == other)
4733
 
4734
class addItem_result:
4735
  """
4736
  Attributes:
4737
   - success
4738
   - cex
4739
  """
4740
 
4741
  thrift_spec = (
4742
    (0, TType.I64, 'success', None, None, ), # 0
4743
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4744
  )
4745
 
4746
  def __init__(self, success=None, cex=None,):
4747
    self.success = success
4748
    self.cex = cex
4749
 
4750
  def read(self, iprot):
4751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4753
      return
4754
    iprot.readStructBegin()
4755
    while True:
4756
      (fname, ftype, fid) = iprot.readFieldBegin()
4757
      if ftype == TType.STOP:
4758
        break
4759
      if fid == 0:
4760
        if ftype == TType.I64:
4761
          self.success = iprot.readI64();
4762
        else:
4763
          iprot.skip(ftype)
4764
      elif fid == 1:
4765
        if ftype == TType.STRUCT:
4766
          self.cex = CatalogServiceException()
4767
          self.cex.read(iprot)
4768
        else:
4769
          iprot.skip(ftype)
4770
      else:
4771
        iprot.skip(ftype)
4772
      iprot.readFieldEnd()
4773
    iprot.readStructEnd()
4774
 
4775
  def write(self, oprot):
4776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4778
      return
4779
    oprot.writeStructBegin('addItem_result')
4780
    if self.success is not None:
4781
      oprot.writeFieldBegin('success', TType.I64, 0)
4782
      oprot.writeI64(self.success)
4783
      oprot.writeFieldEnd()
4784
    if self.cex is not None:
4785
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4786
      self.cex.write(oprot)
4787
      oprot.writeFieldEnd()
4788
    oprot.writeFieldStop()
4789
    oprot.writeStructEnd()
4790
 
4791
  def validate(self):
4792
    return
4793
 
4794
 
4795
  def __repr__(self):
4796
    L = ['%s=%r' % (key, value)
4797
      for key, value in self.__dict__.iteritems()]
4798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4799
 
4800
  def __eq__(self, other):
4801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4802
 
4803
  def __ne__(self, other):
4804
    return not (self == other)
4805
 
4806
class updateItem_args:
4807
  """
4808
  Attributes:
4809
   - item
4810
  """
4811
 
4812
  thrift_spec = (
4813
    None, # 0
4814
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4815
  )
4816
 
4817
  def __init__(self, item=None,):
4818
    self.item = item
4819
 
4820
  def read(self, iprot):
4821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4823
      return
4824
    iprot.readStructBegin()
4825
    while True:
4826
      (fname, ftype, fid) = iprot.readFieldBegin()
4827
      if ftype == TType.STOP:
4828
        break
4829
      if fid == 1:
4830
        if ftype == TType.STRUCT:
4831
          self.item = Item()
4832
          self.item.read(iprot)
4833
        else:
4834
          iprot.skip(ftype)
4835
      else:
4836
        iprot.skip(ftype)
4837
      iprot.readFieldEnd()
4838
    iprot.readStructEnd()
4839
 
4840
  def write(self, oprot):
4841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4843
      return
4844
    oprot.writeStructBegin('updateItem_args')
4845
    if self.item is not None:
4846
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4847
      self.item.write(oprot)
4848
      oprot.writeFieldEnd()
4849
    oprot.writeFieldStop()
4850
    oprot.writeStructEnd()
4851
 
4852
  def validate(self):
4853
    return
4854
 
4855
 
4856
  def __repr__(self):
4857
    L = ['%s=%r' % (key, value)
4858
      for key, value in self.__dict__.iteritems()]
4859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4860
 
4861
  def __eq__(self, other):
4862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4863
 
4864
  def __ne__(self, other):
4865
    return not (self == other)
4866
 
4867
class updateItem_result:
4868
  """
4869
  Attributes:
4870
   - success
4871
   - cex
4872
  """
4873
 
4874
  thrift_spec = (
4875
    (0, TType.I64, 'success', None, None, ), # 0
4876
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4877
  )
4878
 
4879
  def __init__(self, success=None, cex=None,):
4880
    self.success = success
4881
    self.cex = cex
4882
 
4883
  def read(self, iprot):
4884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4886
      return
4887
    iprot.readStructBegin()
4888
    while True:
4889
      (fname, ftype, fid) = iprot.readFieldBegin()
4890
      if ftype == TType.STOP:
4891
        break
4892
      if fid == 0:
4893
        if ftype == TType.I64:
4894
          self.success = iprot.readI64();
4895
        else:
4896
          iprot.skip(ftype)
4897
      elif fid == 1:
4898
        if ftype == TType.STRUCT:
4899
          self.cex = CatalogServiceException()
4900
          self.cex.read(iprot)
4901
        else:
4902
          iprot.skip(ftype)
4903
      else:
4904
        iprot.skip(ftype)
4905
      iprot.readFieldEnd()
4906
    iprot.readStructEnd()
4907
 
4908
  def write(self, oprot):
4909
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4910
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4911
      return
4912
    oprot.writeStructBegin('updateItem_result')
4913
    if self.success is not None:
4914
      oprot.writeFieldBegin('success', TType.I64, 0)
4915
      oprot.writeI64(self.success)
4916
      oprot.writeFieldEnd()
4917
    if self.cex is not None:
4918
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4919
      self.cex.write(oprot)
4920
      oprot.writeFieldEnd()
4921
    oprot.writeFieldStop()
4922
    oprot.writeStructEnd()
4923
 
4924
  def validate(self):
4925
    return
4926
 
4927
 
4928
  def __repr__(self):
4929
    L = ['%s=%r' % (key, value)
4930
      for key, value in self.__dict__.iteritems()]
4931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4932
 
4933
  def __eq__(self, other):
4934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4935
 
4936
  def __ne__(self, other):
4937
    return not (self == other)
4938
 
4939
class isActive_args:
4940
  """
4941
  Attributes:
4942
   - itemId
4943
  """
4944
 
4945
  thrift_spec = (
4946
    None, # 0
4947
    (1, TType.I64, 'itemId', None, None, ), # 1
4948
  )
4949
 
4950
  def __init__(self, itemId=None,):
4951
    self.itemId = itemId
4952
 
4953
  def read(self, iprot):
4954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4956
      return
4957
    iprot.readStructBegin()
4958
    while True:
4959
      (fname, ftype, fid) = iprot.readFieldBegin()
4960
      if ftype == TType.STOP:
4961
        break
4962
      if fid == 1:
4963
        if ftype == TType.I64:
4964
          self.itemId = iprot.readI64();
4965
        else:
4966
          iprot.skip(ftype)
4967
      else:
4968
        iprot.skip(ftype)
4969
      iprot.readFieldEnd()
4970
    iprot.readStructEnd()
4971
 
4972
  def write(self, oprot):
4973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4975
      return
4976
    oprot.writeStructBegin('isActive_args')
4977
    if self.itemId is not None:
4978
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4979
      oprot.writeI64(self.itemId)
4980
      oprot.writeFieldEnd()
4981
    oprot.writeFieldStop()
4982
    oprot.writeStructEnd()
4983
 
4984
  def validate(self):
4985
    return
4986
 
4987
 
4988
  def __repr__(self):
4989
    L = ['%s=%r' % (key, value)
4990
      for key, value in self.__dict__.iteritems()]
4991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4992
 
4993
  def __eq__(self, other):
4994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4995
 
4996
  def __ne__(self, other):
4997
    return not (self == other)
4998
 
4999
class isActive_result:
5000
  """
5001
  Attributes:
5002
   - success
5003
   - isex
5004
  """
5005
 
5006
  thrift_spec = (
5007
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
5008
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5009
  )
5010
 
5011
  def __init__(self, success=None, isex=None,):
5012
    self.success = success
5013
    self.isex = isex
5014
 
5015
  def read(self, iprot):
5016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5018
      return
5019
    iprot.readStructBegin()
5020
    while True:
5021
      (fname, ftype, fid) = iprot.readFieldBegin()
5022
      if ftype == TType.STOP:
5023
        break
5024
      if fid == 0:
5025
        if ftype == TType.STRUCT:
5026
          self.success = ItemShippingInfo()
5027
          self.success.read(iprot)
5028
        else:
5029
          iprot.skip(ftype)
5030
      elif fid == 1:
5031
        if ftype == TType.STRUCT:
5032
          self.isex = CatalogServiceException()
5033
          self.isex.read(iprot)
5034
        else:
5035
          iprot.skip(ftype)
5036
      else:
5037
        iprot.skip(ftype)
5038
      iprot.readFieldEnd()
5039
    iprot.readStructEnd()
5040
 
5041
  def write(self, oprot):
5042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5044
      return
5045
    oprot.writeStructBegin('isActive_result')
5046
    if self.success is not None:
5047
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5048
      self.success.write(oprot)
5049
      oprot.writeFieldEnd()
5050
    if self.isex is not None:
5051
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5052
      self.isex.write(oprot)
5053
      oprot.writeFieldEnd()
5054
    oprot.writeFieldStop()
5055
    oprot.writeStructEnd()
5056
 
5057
  def validate(self):
5058
    return
5059
 
5060
 
5061
  def __repr__(self):
5062
    L = ['%s=%r' % (key, value)
5063
      for key, value in self.__dict__.iteritems()]
5064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5065
 
5066
  def __eq__(self, other):
5067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5068
 
5069
  def __ne__(self, other):
5070
    return not (self == other)
5071
 
5072
class getItemStatusDescription_args:
5073
  """
5074
  Attributes:
5075
   - itemId
5076
  """
5077
 
5078
  thrift_spec = (
5079
    None, # 0
5080
    (1, TType.I64, 'itemId', None, None, ), # 1
5081
  )
5082
 
5083
  def __init__(self, itemId=None,):
5084
    self.itemId = itemId
5085
 
5086
  def read(self, iprot):
5087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5089
      return
5090
    iprot.readStructBegin()
5091
    while True:
5092
      (fname, ftype, fid) = iprot.readFieldBegin()
5093
      if ftype == TType.STOP:
5094
        break
5095
      if fid == 1:
5096
        if ftype == TType.I64:
5097
          self.itemId = iprot.readI64();
5098
        else:
5099
          iprot.skip(ftype)
5100
      else:
5101
        iprot.skip(ftype)
5102
      iprot.readFieldEnd()
5103
    iprot.readStructEnd()
5104
 
5105
  def write(self, oprot):
5106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5108
      return
5109
    oprot.writeStructBegin('getItemStatusDescription_args')
5110
    if self.itemId is not None:
5111
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5112
      oprot.writeI64(self.itemId)
5113
      oprot.writeFieldEnd()
5114
    oprot.writeFieldStop()
5115
    oprot.writeStructEnd()
5116
 
5117
  def validate(self):
5118
    return
5119
 
5120
 
5121
  def __repr__(self):
5122
    L = ['%s=%r' % (key, value)
5123
      for key, value in self.__dict__.iteritems()]
5124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5125
 
5126
  def __eq__(self, other):
5127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5128
 
5129
  def __ne__(self, other):
5130
    return not (self == other)
5131
 
5132
class getItemStatusDescription_result:
5133
  """
5134
  Attributes:
5135
   - success
5136
   - isex
5137
  """
5138
 
5139
  thrift_spec = (
5140
    (0, TType.STRING, 'success', None, None, ), # 0
5141
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5142
  )
5143
 
5144
  def __init__(self, success=None, isex=None,):
5145
    self.success = success
5146
    self.isex = isex
5147
 
5148
  def read(self, iprot):
5149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5151
      return
5152
    iprot.readStructBegin()
5153
    while True:
5154
      (fname, ftype, fid) = iprot.readFieldBegin()
5155
      if ftype == TType.STOP:
5156
        break
5157
      if fid == 0:
5158
        if ftype == TType.STRING:
5159
          self.success = iprot.readString();
5160
        else:
5161
          iprot.skip(ftype)
5162
      elif fid == 1:
5163
        if ftype == TType.STRUCT:
5164
          self.isex = CatalogServiceException()
5165
          self.isex.read(iprot)
5166
        else:
5167
          iprot.skip(ftype)
5168
      else:
5169
        iprot.skip(ftype)
5170
      iprot.readFieldEnd()
5171
    iprot.readStructEnd()
5172
 
5173
  def write(self, oprot):
5174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5176
      return
5177
    oprot.writeStructBegin('getItemStatusDescription_result')
5178
    if self.success is not None:
5179
      oprot.writeFieldBegin('success', TType.STRING, 0)
5180
      oprot.writeString(self.success)
5181
      oprot.writeFieldEnd()
5182
    if self.isex is not None:
5183
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5184
      self.isex.write(oprot)
5185
      oprot.writeFieldEnd()
5186
    oprot.writeFieldStop()
5187
    oprot.writeStructEnd()
5188
 
5189
  def validate(self):
5190
    return
5191
 
5192
 
5193
  def __repr__(self):
5194
    L = ['%s=%r' % (key, value)
5195
      for key, value in self.__dict__.iteritems()]
5196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5197
 
5198
  def __eq__(self, other):
5199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5200
 
5201
  def __ne__(self, other):
5202
    return not (self == other)
5203
 
5204
class startItemOn_args:
5205
  """
5206
  Attributes:
5207
   - item_id
5208
   - timestamp
5209
  """
5210
 
5211
  thrift_spec = (
5212
    None, # 0
5213
    (1, TType.I64, 'item_id', None, None, ), # 1
5214
    (2, TType.I64, 'timestamp', None, None, ), # 2
5215
  )
5216
 
5217
  def __init__(self, item_id=None, timestamp=None,):
5218
    self.item_id = item_id
5219
    self.timestamp = timestamp
5220
 
5221
  def read(self, iprot):
5222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5224
      return
5225
    iprot.readStructBegin()
5226
    while True:
5227
      (fname, ftype, fid) = iprot.readFieldBegin()
5228
      if ftype == TType.STOP:
5229
        break
5230
      if fid == 1:
5231
        if ftype == TType.I64:
5232
          self.item_id = iprot.readI64();
5233
        else:
5234
          iprot.skip(ftype)
5235
      elif fid == 2:
5236
        if ftype == TType.I64:
5237
          self.timestamp = iprot.readI64();
5238
        else:
5239
          iprot.skip(ftype)
5240
      else:
5241
        iprot.skip(ftype)
5242
      iprot.readFieldEnd()
5243
    iprot.readStructEnd()
5244
 
5245
  def write(self, oprot):
5246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5248
      return
5249
    oprot.writeStructBegin('startItemOn_args')
5250
    if self.item_id is not None:
5251
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5252
      oprot.writeI64(self.item_id)
5253
      oprot.writeFieldEnd()
5254
    if self.timestamp is not None:
5255
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5256
      oprot.writeI64(self.timestamp)
5257
      oprot.writeFieldEnd()
5258
    oprot.writeFieldStop()
5259
    oprot.writeStructEnd()
5260
 
5261
  def validate(self):
5262
    return
5263
 
5264
 
5265
  def __repr__(self):
5266
    L = ['%s=%r' % (key, value)
5267
      for key, value in self.__dict__.iteritems()]
5268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5269
 
5270
  def __eq__(self, other):
5271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5272
 
5273
  def __ne__(self, other):
5274
    return not (self == other)
5275
 
5276
class startItemOn_result:
5277
  """
5278
  Attributes:
5279
   - cex
5280
  """
5281
 
5282
  thrift_spec = (
5283
    None, # 0
5284
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5285
  )
5286
 
5287
  def __init__(self, cex=None,):
5288
    self.cex = cex
5289
 
5290
  def read(self, iprot):
5291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5293
      return
5294
    iprot.readStructBegin()
5295
    while True:
5296
      (fname, ftype, fid) = iprot.readFieldBegin()
5297
      if ftype == TType.STOP:
5298
        break
5299
      if fid == 1:
5300
        if ftype == TType.STRUCT:
5301
          self.cex = CatalogServiceException()
5302
          self.cex.read(iprot)
5303
        else:
5304
          iprot.skip(ftype)
5305
      else:
5306
        iprot.skip(ftype)
5307
      iprot.readFieldEnd()
5308
    iprot.readStructEnd()
5309
 
5310
  def write(self, oprot):
5311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5313
      return
5314
    oprot.writeStructBegin('startItemOn_result')
5315
    if self.cex is not None:
5316
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5317
      self.cex.write(oprot)
5318
      oprot.writeFieldEnd()
5319
    oprot.writeFieldStop()
5320
    oprot.writeStructEnd()
5321
 
5322
  def validate(self):
5323
    return
5324
 
5325
 
5326
  def __repr__(self):
5327
    L = ['%s=%r' % (key, value)
5328
      for key, value in self.__dict__.iteritems()]
5329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5330
 
5331
  def __eq__(self, other):
5332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5333
 
5334
  def __ne__(self, other):
5335
    return not (self == other)
5336
 
5337
class retireItemOn_args:
5338
  """
5339
  Attributes:
5340
   - item_id
5341
   - timestamp
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
  )
5349
 
5350
  def __init__(self, item_id=None, timestamp=None,):
5351
    self.item_id = item_id
5352
    self.timestamp = timestamp
5353
 
5354
  def read(self, iprot):
5355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5357
      return
5358
    iprot.readStructBegin()
5359
    while True:
5360
      (fname, ftype, fid) = iprot.readFieldBegin()
5361
      if ftype == TType.STOP:
5362
        break
5363
      if fid == 1:
5364
        if ftype == TType.I64:
5365
          self.item_id = iprot.readI64();
5366
        else:
5367
          iprot.skip(ftype)
5368
      elif fid == 2:
5369
        if ftype == TType.I64:
5370
          self.timestamp = iprot.readI64();
5371
        else:
5372
          iprot.skip(ftype)
5373
      else:
5374
        iprot.skip(ftype)
5375
      iprot.readFieldEnd()
5376
    iprot.readStructEnd()
5377
 
5378
  def write(self, oprot):
5379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5381
      return
5382
    oprot.writeStructBegin('retireItemOn_args')
5383
    if self.item_id is not None:
5384
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5385
      oprot.writeI64(self.item_id)
5386
      oprot.writeFieldEnd()
5387
    if self.timestamp is not None:
5388
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5389
      oprot.writeI64(self.timestamp)
5390
      oprot.writeFieldEnd()
5391
    oprot.writeFieldStop()
5392
    oprot.writeStructEnd()
5393
 
5394
  def validate(self):
5395
    return
5396
 
5397
 
5398
  def __repr__(self):
5399
    L = ['%s=%r' % (key, value)
5400
      for key, value in self.__dict__.iteritems()]
5401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5402
 
5403
  def __eq__(self, other):
5404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5405
 
5406
  def __ne__(self, other):
5407
    return not (self == other)
5408
 
5409
class retireItemOn_result:
5410
  """
5411
  Attributes:
5412
   - cex
5413
  """
5414
 
5415
  thrift_spec = (
5416
    None, # 0
5417
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5418
  )
5419
 
5420
  def __init__(self, cex=None,):
5421
    self.cex = cex
5422
 
5423
  def read(self, iprot):
5424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5426
      return
5427
    iprot.readStructBegin()
5428
    while True:
5429
      (fname, ftype, fid) = iprot.readFieldBegin()
5430
      if ftype == TType.STOP:
5431
        break
5432
      if fid == 1:
5433
        if ftype == TType.STRUCT:
5434
          self.cex = CatalogServiceException()
5435
          self.cex.read(iprot)
5436
        else:
5437
          iprot.skip(ftype)
5438
      else:
5439
        iprot.skip(ftype)
5440
      iprot.readFieldEnd()
5441
    iprot.readStructEnd()
5442
 
5443
  def write(self, oprot):
5444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5446
      return
5447
    oprot.writeStructBegin('retireItemOn_result')
5448
    if self.cex is not None:
5449
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5450
      self.cex.write(oprot)
5451
      oprot.writeFieldEnd()
5452
    oprot.writeFieldStop()
5453
    oprot.writeStructEnd()
5454
 
5455
  def validate(self):
5456
    return
5457
 
5458
 
5459
  def __repr__(self):
5460
    L = ['%s=%r' % (key, value)
5461
      for key, value in self.__dict__.iteritems()]
5462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5463
 
5464
  def __eq__(self, other):
5465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5466
 
5467
  def __ne__(self, other):
5468
    return not (self == other)
5469
 
5470
class changeItemStatus_args:
5471
  """
5472
  Attributes:
5473
   - item_id
5474
   - timestamp
5475
   - newstatus
5476
  """
5477
 
5478
  thrift_spec = (
5479
    None, # 0
5480
    (1, TType.I64, 'item_id', None, None, ), # 1
5481
    (2, TType.I64, 'timestamp', None, None, ), # 2
5482
    (3, TType.I32, 'newstatus', None, None, ), # 3
5483
  )
5484
 
5485
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
5486
    self.item_id = item_id
5487
    self.timestamp = timestamp
5488
    self.newstatus = newstatus
5489
 
5490
  def read(self, iprot):
5491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5493
      return
5494
    iprot.readStructBegin()
5495
    while True:
5496
      (fname, ftype, fid) = iprot.readFieldBegin()
5497
      if ftype == TType.STOP:
5498
        break
5499
      if fid == 1:
5500
        if ftype == TType.I64:
5501
          self.item_id = iprot.readI64();
5502
        else:
5503
          iprot.skip(ftype)
5504
      elif fid == 2:
5505
        if ftype == TType.I64:
5506
          self.timestamp = iprot.readI64();
5507
        else:
5508
          iprot.skip(ftype)
5509
      elif fid == 3:
5510
        if ftype == TType.I32:
5511
          self.newstatus = iprot.readI32();
5512
        else:
5513
          iprot.skip(ftype)
5514
      else:
5515
        iprot.skip(ftype)
5516
      iprot.readFieldEnd()
5517
    iprot.readStructEnd()
5518
 
5519
  def write(self, oprot):
5520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5522
      return
5523
    oprot.writeStructBegin('changeItemStatus_args')
5524
    if self.item_id is not None:
5525
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5526
      oprot.writeI64(self.item_id)
5527
      oprot.writeFieldEnd()
5528
    if self.timestamp is not None:
5529
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5530
      oprot.writeI64(self.timestamp)
5531
      oprot.writeFieldEnd()
5532
    if self.newstatus is not None:
5533
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
5534
      oprot.writeI32(self.newstatus)
5535
      oprot.writeFieldEnd()
5536
    oprot.writeFieldStop()
5537
    oprot.writeStructEnd()
5538
 
5539
  def validate(self):
5540
    return
5541
 
5542
 
5543
  def __repr__(self):
5544
    L = ['%s=%r' % (key, value)
5545
      for key, value in self.__dict__.iteritems()]
5546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5547
 
5548
  def __eq__(self, other):
5549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5550
 
5551
  def __ne__(self, other):
5552
    return not (self == other)
5553
 
5554
class changeItemStatus_result:
5555
  """
5556
  Attributes:
5557
   - cex
5558
  """
5559
 
5560
  thrift_spec = (
5561
    None, # 0
5562
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5563
  )
5564
 
5565
  def __init__(self, cex=None,):
5566
    self.cex = cex
5567
 
5568
  def read(self, iprot):
5569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5571
      return
5572
    iprot.readStructBegin()
5573
    while True:
5574
      (fname, ftype, fid) = iprot.readFieldBegin()
5575
      if ftype == TType.STOP:
5576
        break
5577
      if fid == 1:
5578
        if ftype == TType.STRUCT:
5579
          self.cex = CatalogServiceException()
5580
          self.cex.read(iprot)
5581
        else:
5582
          iprot.skip(ftype)
5583
      else:
5584
        iprot.skip(ftype)
5585
      iprot.readFieldEnd()
5586
    iprot.readStructEnd()
5587
 
5588
  def write(self, oprot):
5589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5591
      return
5592
    oprot.writeStructBegin('changeItemStatus_result')
5593
    if self.cex is not None:
5594
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5595
      self.cex.write(oprot)
5596
      oprot.writeFieldEnd()
5597
    oprot.writeFieldStop()
5598
    oprot.writeStructEnd()
5599
 
5600
  def validate(self):
5601
    return
5602
 
5603
 
5604
  def __repr__(self):
5605
    L = ['%s=%r' % (key, value)
5606
      for key, value in self.__dict__.iteritems()]
5607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5608
 
5609
  def __eq__(self, other):
5610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5611
 
5612
  def __ne__(self, other):
5613
    return not (self == other)
5614
 
5615
class getItem_args:
5616
  """
5617
  Attributes:
5618
   - item_id
5619
  """
5620
 
5621
  thrift_spec = (
5622
    None, # 0
5623
    (1, TType.I64, 'item_id', None, None, ), # 1
5624
  )
5625
 
5626
  def __init__(self, item_id=None,):
5627
    self.item_id = item_id
5628
 
5629
  def read(self, iprot):
5630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5632
      return
5633
    iprot.readStructBegin()
5634
    while True:
5635
      (fname, ftype, fid) = iprot.readFieldBegin()
5636
      if ftype == TType.STOP:
5637
        break
5638
      if fid == 1:
5639
        if ftype == TType.I64:
5640
          self.item_id = iprot.readI64();
5641
        else:
5642
          iprot.skip(ftype)
5643
      else:
5644
        iprot.skip(ftype)
5645
      iprot.readFieldEnd()
5646
    iprot.readStructEnd()
5647
 
5648
  def write(self, oprot):
5649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5651
      return
5652
    oprot.writeStructBegin('getItem_args')
5653
    if self.item_id is not None:
5654
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5655
      oprot.writeI64(self.item_id)
5656
      oprot.writeFieldEnd()
5657
    oprot.writeFieldStop()
5658
    oprot.writeStructEnd()
5659
 
5660
  def validate(self):
5661
    return
5662
 
5663
 
5664
  def __repr__(self):
5665
    L = ['%s=%r' % (key, value)
5666
      for key, value in self.__dict__.iteritems()]
5667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5668
 
5669
  def __eq__(self, other):
5670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5671
 
5672
  def __ne__(self, other):
5673
    return not (self == other)
5674
 
5675
class getItem_result:
5676
  """
5677
  Attributes:
5678
   - success
5679
   - cex
5680
  """
5681
 
5682
  thrift_spec = (
5683
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
5684
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5685
  )
5686
 
5687
  def __init__(self, success=None, cex=None,):
5688
    self.success = success
5689
    self.cex = cex
5690
 
5691
  def read(self, iprot):
5692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5694
      return
5695
    iprot.readStructBegin()
5696
    while True:
5697
      (fname, ftype, fid) = iprot.readFieldBegin()
5698
      if ftype == TType.STOP:
5699
        break
5700
      if fid == 0:
5701
        if ftype == TType.STRUCT:
5702
          self.success = Item()
5703
          self.success.read(iprot)
5704
        else:
5705
          iprot.skip(ftype)
5706
      elif fid == 1:
5707
        if ftype == TType.STRUCT:
5708
          self.cex = CatalogServiceException()
5709
          self.cex.read(iprot)
5710
        else:
5711
          iprot.skip(ftype)
5712
      else:
5713
        iprot.skip(ftype)
5714
      iprot.readFieldEnd()
5715
    iprot.readStructEnd()
5716
 
5717
  def write(self, oprot):
5718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5720
      return
5721
    oprot.writeStructBegin('getItem_result')
5722
    if self.success is not None:
5723
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5724
      self.success.write(oprot)
5725
      oprot.writeFieldEnd()
5726
    if self.cex is not None:
5727
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5728
      self.cex.write(oprot)
5729
      oprot.writeFieldEnd()
5730
    oprot.writeFieldStop()
5731
    oprot.writeStructEnd()
5732
 
5733
  def validate(self):
5734
    return
5735
 
5736
 
5737
  def __repr__(self):
5738
    L = ['%s=%r' % (key, value)
5739
      for key, value in self.__dict__.iteritems()]
5740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5741
 
5742
  def __eq__(self, other):
5743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5744
 
5745
  def __ne__(self, other):
5746
    return not (self == other)
5747
 
5748
class getItemsByCatalogId_args:
5749
  """
5750
  Attributes:
5751
   - catalog_item_id
5752
  """
5753
 
5754
  thrift_spec = (
5755
    None, # 0
5756
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5757
  )
5758
 
5759
  def __init__(self, catalog_item_id=None,):
5760
    self.catalog_item_id = catalog_item_id
5761
 
5762
  def read(self, iprot):
5763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5765
      return
5766
    iprot.readStructBegin()
5767
    while True:
5768
      (fname, ftype, fid) = iprot.readFieldBegin()
5769
      if ftype == TType.STOP:
5770
        break
5771
      if fid == 1:
5772
        if ftype == TType.I64:
5773
          self.catalog_item_id = iprot.readI64();
5774
        else:
5775
          iprot.skip(ftype)
5776
      else:
5777
        iprot.skip(ftype)
5778
      iprot.readFieldEnd()
5779
    iprot.readStructEnd()
5780
 
5781
  def write(self, oprot):
5782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5784
      return
5785
    oprot.writeStructBegin('getItemsByCatalogId_args')
5786
    if self.catalog_item_id is not None:
5787
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5788
      oprot.writeI64(self.catalog_item_id)
5789
      oprot.writeFieldEnd()
5790
    oprot.writeFieldStop()
5791
    oprot.writeStructEnd()
5792
 
5793
  def validate(self):
5794
    return
5795
 
5796
 
5797
  def __repr__(self):
5798
    L = ['%s=%r' % (key, value)
5799
      for key, value in self.__dict__.iteritems()]
5800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5801
 
5802
  def __eq__(self, other):
5803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5804
 
5805
  def __ne__(self, other):
5806
    return not (self == other)
5807
 
5808
class getItemsByCatalogId_result:
5809
  """
5810
  Attributes:
5811
   - success
5812
   - cex
5813
  """
5814
 
5815
  thrift_spec = (
5816
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5817
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5818
  )
5819
 
5820
  def __init__(self, success=None, cex=None,):
5821
    self.success = success
5822
    self.cex = cex
5823
 
5824
  def read(self, iprot):
5825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5827
      return
5828
    iprot.readStructBegin()
5829
    while True:
5830
      (fname, ftype, fid) = iprot.readFieldBegin()
5831
      if ftype == TType.STOP:
5832
        break
5833
      if fid == 0:
5834
        if ftype == TType.LIST:
5835
          self.success = []
5836
          (_etype19, _size16) = iprot.readListBegin()
5837
          for _i20 in xrange(_size16):
5838
            _elem21 = Item()
5839
            _elem21.read(iprot)
5840
            self.success.append(_elem21)
5841
          iprot.readListEnd()
5842
        else:
5843
          iprot.skip(ftype)
5844
      elif fid == 1:
5845
        if ftype == TType.STRUCT:
5846
          self.cex = CatalogServiceException()
5847
          self.cex.read(iprot)
5848
        else:
5849
          iprot.skip(ftype)
5850
      else:
5851
        iprot.skip(ftype)
5852
      iprot.readFieldEnd()
5853
    iprot.readStructEnd()
5854
 
5855
  def write(self, oprot):
5856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5858
      return
5859
    oprot.writeStructBegin('getItemsByCatalogId_result')
5860
    if self.success is not None:
5861
      oprot.writeFieldBegin('success', TType.LIST, 0)
5862
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5863
      for iter22 in self.success:
5864
        iter22.write(oprot)
5865
      oprot.writeListEnd()
5866
      oprot.writeFieldEnd()
5867
    if self.cex is not None:
5868
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5869
      self.cex.write(oprot)
5870
      oprot.writeFieldEnd()
5871
    oprot.writeFieldStop()
5872
    oprot.writeStructEnd()
5873
 
5874
  def validate(self):
5875
    return
5876
 
5877
 
5878
  def __repr__(self):
5879
    L = ['%s=%r' % (key, value)
5880
      for key, value in self.__dict__.iteritems()]
5881
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5882
 
5883
  def __eq__(self, other):
5884
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5885
 
5886
  def __ne__(self, other):
5887
    return not (self == other)
5888
 
5889
class getValidItemsByCatalogId_args:
5890
  """
5891
  Attributes:
5892
   - catalog_item_id
5893
  """
5894
 
5895
  thrift_spec = (
5896
    None, # 0
5897
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5898
  )
5899
 
5900
  def __init__(self, catalog_item_id=None,):
5901
    self.catalog_item_id = catalog_item_id
5902
 
5903
  def read(self, iprot):
5904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5906
      return
5907
    iprot.readStructBegin()
5908
    while True:
5909
      (fname, ftype, fid) = iprot.readFieldBegin()
5910
      if ftype == TType.STOP:
5911
        break
5912
      if fid == 1:
5913
        if ftype == TType.I64:
5914
          self.catalog_item_id = iprot.readI64();
5915
        else:
5916
          iprot.skip(ftype)
5917
      else:
5918
        iprot.skip(ftype)
5919
      iprot.readFieldEnd()
5920
    iprot.readStructEnd()
5921
 
5922
  def write(self, oprot):
5923
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5924
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5925
      return
5926
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5927
    if self.catalog_item_id is not None:
5928
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5929
      oprot.writeI64(self.catalog_item_id)
5930
      oprot.writeFieldEnd()
5931
    oprot.writeFieldStop()
5932
    oprot.writeStructEnd()
5933
 
5934
  def validate(self):
5935
    return
5936
 
5937
 
5938
  def __repr__(self):
5939
    L = ['%s=%r' % (key, value)
5940
      for key, value in self.__dict__.iteritems()]
5941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5942
 
5943
  def __eq__(self, other):
5944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5945
 
5946
  def __ne__(self, other):
5947
    return not (self == other)
5948
 
5949
class getValidItemsByCatalogId_result:
5950
  """
5951
  Attributes:
5952
   - success
5953
   - cex
5954
  """
5955
 
5956
  thrift_spec = (
5957
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5958
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5959
  )
5960
 
5961
  def __init__(self, success=None, cex=None,):
5962
    self.success = success
5963
    self.cex = cex
5964
 
5965
  def read(self, iprot):
5966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5968
      return
5969
    iprot.readStructBegin()
5970
    while True:
5971
      (fname, ftype, fid) = iprot.readFieldBegin()
5972
      if ftype == TType.STOP:
5973
        break
5974
      if fid == 0:
5975
        if ftype == TType.LIST:
5976
          self.success = []
5977
          (_etype26, _size23) = iprot.readListBegin()
5978
          for _i27 in xrange(_size23):
5979
            _elem28 = Item()
5980
            _elem28.read(iprot)
5981
            self.success.append(_elem28)
5982
          iprot.readListEnd()
5983
        else:
5984
          iprot.skip(ftype)
5985
      elif fid == 1:
5986
        if ftype == TType.STRUCT:
5987
          self.cex = CatalogServiceException()
5988
          self.cex.read(iprot)
5989
        else:
5990
          iprot.skip(ftype)
5991
      else:
5992
        iprot.skip(ftype)
5993
      iprot.readFieldEnd()
5994
    iprot.readStructEnd()
5995
 
5996
  def write(self, oprot):
5997
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5998
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5999
      return
6000
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
6001
    if self.success is not None:
6002
      oprot.writeFieldBegin('success', TType.LIST, 0)
6003
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6004
      for iter29 in self.success:
6005
        iter29.write(oprot)
6006
      oprot.writeListEnd()
6007
      oprot.writeFieldEnd()
6008
    if self.cex is not None:
6009
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6010
      self.cex.write(oprot)
6011
      oprot.writeFieldEnd()
6012
    oprot.writeFieldStop()
6013
    oprot.writeStructEnd()
6014
 
6015
  def validate(self):
6016
    return
6017
 
6018
 
6019
  def __repr__(self):
6020
    L = ['%s=%r' % (key, value)
6021
      for key, value in self.__dict__.iteritems()]
6022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6023
 
6024
  def __eq__(self, other):
6025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6026
 
6027
  def __ne__(self, other):
6028
    return not (self == other)
6029
 
6030
class getAllItems_args:
6031
  """
6032
  Attributes:
6033
   - isActive
6034
  """
6035
 
6036
  thrift_spec = (
6037
    None, # 0
6038
    (1, TType.BOOL, 'isActive', None, None, ), # 1
6039
  )
6040
 
6041
  def __init__(self, isActive=None,):
6042
    self.isActive = isActive
6043
 
6044
  def read(self, iprot):
6045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6047
      return
6048
    iprot.readStructBegin()
6049
    while True:
6050
      (fname, ftype, fid) = iprot.readFieldBegin()
6051
      if ftype == TType.STOP:
6052
        break
6053
      if fid == 1:
6054
        if ftype == TType.BOOL:
6055
          self.isActive = iprot.readBool();
6056
        else:
6057
          iprot.skip(ftype)
6058
      else:
6059
        iprot.skip(ftype)
6060
      iprot.readFieldEnd()
6061
    iprot.readStructEnd()
6062
 
6063
  def write(self, oprot):
6064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6066
      return
6067
    oprot.writeStructBegin('getAllItems_args')
6068
    if self.isActive is not None:
6069
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
6070
      oprot.writeBool(self.isActive)
6071
      oprot.writeFieldEnd()
6072
    oprot.writeFieldStop()
6073
    oprot.writeStructEnd()
6074
 
6075
  def validate(self):
6076
    return
6077
 
6078
 
6079
  def __repr__(self):
6080
    L = ['%s=%r' % (key, value)
6081
      for key, value in self.__dict__.iteritems()]
6082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6083
 
6084
  def __eq__(self, other):
6085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6086
 
6087
  def __ne__(self, other):
6088
    return not (self == other)
6089
 
6090
class getAllItems_result:
6091
  """
6092
  Attributes:
6093
   - success
6094
   - cex
6095
  """
6096
 
6097
  thrift_spec = (
6098
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6099
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6100
  )
6101
 
6102
  def __init__(self, success=None, cex=None,):
6103
    self.success = success
6104
    self.cex = cex
6105
 
6106
  def read(self, iprot):
6107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6109
      return
6110
    iprot.readStructBegin()
6111
    while True:
6112
      (fname, ftype, fid) = iprot.readFieldBegin()
6113
      if ftype == TType.STOP:
6114
        break
6115
      if fid == 0:
6116
        if ftype == TType.LIST:
6117
          self.success = []
6118
          (_etype33, _size30) = iprot.readListBegin()
6119
          for _i34 in xrange(_size30):
6120
            _elem35 = Item()
6121
            _elem35.read(iprot)
6122
            self.success.append(_elem35)
6123
          iprot.readListEnd()
6124
        else:
6125
          iprot.skip(ftype)
6126
      elif fid == 1:
6127
        if ftype == TType.STRUCT:
6128
          self.cex = CatalogServiceException()
6129
          self.cex.read(iprot)
6130
        else:
6131
          iprot.skip(ftype)
6132
      else:
6133
        iprot.skip(ftype)
6134
      iprot.readFieldEnd()
6135
    iprot.readStructEnd()
6136
 
6137
  def write(self, oprot):
6138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6140
      return
6141
    oprot.writeStructBegin('getAllItems_result')
6142
    if self.success is not None:
6143
      oprot.writeFieldBegin('success', TType.LIST, 0)
6144
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6145
      for iter36 in self.success:
6146
        iter36.write(oprot)
6147
      oprot.writeListEnd()
6148
      oprot.writeFieldEnd()
6149
    if self.cex is not None:
6150
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6151
      self.cex.write(oprot)
6152
      oprot.writeFieldEnd()
6153
    oprot.writeFieldStop()
6154
    oprot.writeStructEnd()
6155
 
6156
  def validate(self):
6157
    return
6158
 
6159
 
6160
  def __repr__(self):
6161
    L = ['%s=%r' % (key, value)
6162
      for key, value in self.__dict__.iteritems()]
6163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6164
 
6165
  def __eq__(self, other):
6166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6167
 
6168
  def __ne__(self, other):
6169
    return not (self == other)
6170
 
6171
class getAllItemsByStatus_args:
6172
  """
6173
  Attributes:
6174
   - itemStatus
6175
  """
6176
 
6177
  thrift_spec = (
6178
    None, # 0
6179
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6180
  )
6181
 
6182
  def __init__(self, itemStatus=None,):
6183
    self.itemStatus = itemStatus
6184
 
6185
  def read(self, iprot):
6186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6188
      return
6189
    iprot.readStructBegin()
6190
    while True:
6191
      (fname, ftype, fid) = iprot.readFieldBegin()
6192
      if ftype == TType.STOP:
6193
        break
6194
      if fid == 1:
6195
        if ftype == TType.I32:
6196
          self.itemStatus = iprot.readI32();
6197
        else:
6198
          iprot.skip(ftype)
6199
      else:
6200
        iprot.skip(ftype)
6201
      iprot.readFieldEnd()
6202
    iprot.readStructEnd()
6203
 
6204
  def write(self, oprot):
6205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6207
      return
6208
    oprot.writeStructBegin('getAllItemsByStatus_args')
6209
    if self.itemStatus is not None:
6210
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6211
      oprot.writeI32(self.itemStatus)
6212
      oprot.writeFieldEnd()
6213
    oprot.writeFieldStop()
6214
    oprot.writeStructEnd()
6215
 
6216
  def validate(self):
6217
    return
6218
 
6219
 
6220
  def __repr__(self):
6221
    L = ['%s=%r' % (key, value)
6222
      for key, value in self.__dict__.iteritems()]
6223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6224
 
6225
  def __eq__(self, other):
6226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6227
 
6228
  def __ne__(self, other):
6229
    return not (self == other)
6230
 
6231
class getAllItemsByStatus_result:
6232
  """
6233
  Attributes:
6234
   - success
6235
   - cex
6236
  """
6237
 
6238
  thrift_spec = (
6239
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6240
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6241
  )
6242
 
6243
  def __init__(self, success=None, cex=None,):
6244
    self.success = success
6245
    self.cex = cex
6246
 
6247
  def read(self, iprot):
6248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6250
      return
6251
    iprot.readStructBegin()
6252
    while True:
6253
      (fname, ftype, fid) = iprot.readFieldBegin()
6254
      if ftype == TType.STOP:
6255
        break
6256
      if fid == 0:
6257
        if ftype == TType.LIST:
6258
          self.success = []
6259
          (_etype40, _size37) = iprot.readListBegin()
6260
          for _i41 in xrange(_size37):
6261
            _elem42 = Item()
6262
            _elem42.read(iprot)
6263
            self.success.append(_elem42)
6264
          iprot.readListEnd()
6265
        else:
6266
          iprot.skip(ftype)
6267
      elif fid == 1:
6268
        if ftype == TType.STRUCT:
6269
          self.cex = CatalogServiceException()
6270
          self.cex.read(iprot)
6271
        else:
6272
          iprot.skip(ftype)
6273
      else:
6274
        iprot.skip(ftype)
6275
      iprot.readFieldEnd()
6276
    iprot.readStructEnd()
6277
 
6278
  def write(self, oprot):
6279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6281
      return
6282
    oprot.writeStructBegin('getAllItemsByStatus_result')
6283
    if self.success is not None:
6284
      oprot.writeFieldBegin('success', TType.LIST, 0)
6285
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6286
      for iter43 in self.success:
6287
        iter43.write(oprot)
6288
      oprot.writeListEnd()
6289
      oprot.writeFieldEnd()
6290
    if self.cex is not None:
6291
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6292
      self.cex.write(oprot)
6293
      oprot.writeFieldEnd()
6294
    oprot.writeFieldStop()
6295
    oprot.writeStructEnd()
6296
 
6297
  def validate(self):
6298
    return
6299
 
6300
 
6301
  def __repr__(self):
6302
    L = ['%s=%r' % (key, value)
6303
      for key, value in self.__dict__.iteritems()]
6304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6305
 
6306
  def __eq__(self, other):
6307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6308
 
6309
  def __ne__(self, other):
6310
    return not (self == other)
6311
 
6312
class markItemAsContentComplete_args:
6313
  """
6314
  Attributes:
6315
   - entityId
6316
   - category
6317
   - brand
6318
   - modelName
6319
   - modelNumber
6320
  """
6321
 
6322
  thrift_spec = (
6323
    None, # 0
6324
    (1, TType.I64, 'entityId', None, None, ), # 1
6325
    (2, TType.I64, 'category', None, None, ), # 2
6326
    (3, TType.STRING, 'brand', None, None, ), # 3
6327
    (4, TType.STRING, 'modelName', None, None, ), # 4
6328
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
6329
  )
6330
 
6331
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
6332
    self.entityId = entityId
6333
    self.category = category
6334
    self.brand = brand
6335
    self.modelName = modelName
6336
    self.modelNumber = modelNumber
6337
 
6338
  def read(self, iprot):
6339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6341
      return
6342
    iprot.readStructBegin()
6343
    while True:
6344
      (fname, ftype, fid) = iprot.readFieldBegin()
6345
      if ftype == TType.STOP:
6346
        break
6347
      if fid == 1:
6348
        if ftype == TType.I64:
6349
          self.entityId = iprot.readI64();
6350
        else:
6351
          iprot.skip(ftype)
6352
      elif fid == 2:
6353
        if ftype == TType.I64:
6354
          self.category = iprot.readI64();
6355
        else:
6356
          iprot.skip(ftype)
6357
      elif fid == 3:
6358
        if ftype == TType.STRING:
6359
          self.brand = iprot.readString();
6360
        else:
6361
          iprot.skip(ftype)
6362
      elif fid == 4:
6363
        if ftype == TType.STRING:
6364
          self.modelName = iprot.readString();
6365
        else:
6366
          iprot.skip(ftype)
6367
      elif fid == 5:
6368
        if ftype == TType.STRING:
6369
          self.modelNumber = iprot.readString();
6370
        else:
6371
          iprot.skip(ftype)
6372
      else:
6373
        iprot.skip(ftype)
6374
      iprot.readFieldEnd()
6375
    iprot.readStructEnd()
6376
 
6377
  def write(self, oprot):
6378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6380
      return
6381
    oprot.writeStructBegin('markItemAsContentComplete_args')
6382
    if self.entityId is not None:
6383
      oprot.writeFieldBegin('entityId', TType.I64, 1)
6384
      oprot.writeI64(self.entityId)
6385
      oprot.writeFieldEnd()
6386
    if self.category is not None:
6387
      oprot.writeFieldBegin('category', TType.I64, 2)
6388
      oprot.writeI64(self.category)
6389
      oprot.writeFieldEnd()
6390
    if self.brand is not None:
6391
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6392
      oprot.writeString(self.brand)
6393
      oprot.writeFieldEnd()
6394
    if self.modelName is not None:
6395
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
6396
      oprot.writeString(self.modelName)
6397
      oprot.writeFieldEnd()
6398
    if self.modelNumber is not None:
6399
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
6400
      oprot.writeString(self.modelNumber)
6401
      oprot.writeFieldEnd()
6402
    oprot.writeFieldStop()
6403
    oprot.writeStructEnd()
6404
 
6405
  def validate(self):
6406
    return
6407
 
6408
 
6409
  def __repr__(self):
6410
    L = ['%s=%r' % (key, value)
6411
      for key, value in self.__dict__.iteritems()]
6412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6413
 
6414
  def __eq__(self, other):
6415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6416
 
6417
  def __ne__(self, other):
6418
    return not (self == other)
6419
 
6420
class markItemAsContentComplete_result:
6421
  """
6422
  Attributes:
6423
   - success
6424
   - cex
6425
  """
6426
 
6427
  thrift_spec = (
6428
    (0, TType.BOOL, 'success', None, None, ), # 0
6429
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6430
  )
6431
 
6432
  def __init__(self, success=None, cex=None,):
6433
    self.success = success
6434
    self.cex = cex
6435
 
6436
  def read(self, iprot):
6437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6439
      return
6440
    iprot.readStructBegin()
6441
    while True:
6442
      (fname, ftype, fid) = iprot.readFieldBegin()
6443
      if ftype == TType.STOP:
6444
        break
6445
      if fid == 0:
6446
        if ftype == TType.BOOL:
6447
          self.success = iprot.readBool();
6448
        else:
6449
          iprot.skip(ftype)
6450
      elif fid == 1:
6451
        if ftype == TType.STRUCT:
6452
          self.cex = CatalogServiceException()
6453
          self.cex.read(iprot)
6454
        else:
6455
          iprot.skip(ftype)
6456
      else:
6457
        iprot.skip(ftype)
6458
      iprot.readFieldEnd()
6459
    iprot.readStructEnd()
6460
 
6461
  def write(self, oprot):
6462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6464
      return
6465
    oprot.writeStructBegin('markItemAsContentComplete_result')
6466
    if self.success is not None:
6467
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6468
      oprot.writeBool(self.success)
6469
      oprot.writeFieldEnd()
6470
    if self.cex is not None:
6471
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6472
      self.cex.write(oprot)
6473
      oprot.writeFieldEnd()
6474
    oprot.writeFieldStop()
6475
    oprot.writeStructEnd()
6476
 
6477
  def validate(self):
6478
    return
6479
 
6480
 
6481
  def __repr__(self):
6482
    L = ['%s=%r' % (key, value)
6483
      for key, value in self.__dict__.iteritems()]
6484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6485
 
6486
  def __eq__(self, other):
6487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6488
 
6489
  def __ne__(self, other):
6490
    return not (self == other)
6491
 
6492
class getAllItemsInRange_args:
6493
  """
6494
  Attributes:
6495
   - offset
6496
   - limit
6497
  """
6498
 
6499
  thrift_spec = (
6500
    None, # 0
6501
    (1, TType.I64, 'offset', None, None, ), # 1
6502
    (2, TType.I64, 'limit', None, None, ), # 2
6503
  )
6504
 
6505
  def __init__(self, offset=None, limit=None,):
6506
    self.offset = offset
6507
    self.limit = limit
6508
 
6509
  def read(self, iprot):
6510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6512
      return
6513
    iprot.readStructBegin()
6514
    while True:
6515
      (fname, ftype, fid) = iprot.readFieldBegin()
6516
      if ftype == TType.STOP:
6517
        break
6518
      if fid == 1:
6519
        if ftype == TType.I64:
6520
          self.offset = iprot.readI64();
6521
        else:
6522
          iprot.skip(ftype)
6523
      elif fid == 2:
6524
        if ftype == TType.I64:
6525
          self.limit = iprot.readI64();
6526
        else:
6527
          iprot.skip(ftype)
6528
      else:
6529
        iprot.skip(ftype)
6530
      iprot.readFieldEnd()
6531
    iprot.readStructEnd()
6532
 
6533
  def write(self, oprot):
6534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6536
      return
6537
    oprot.writeStructBegin('getAllItemsInRange_args')
6538
    if self.offset is not None:
6539
      oprot.writeFieldBegin('offset', TType.I64, 1)
6540
      oprot.writeI64(self.offset)
6541
      oprot.writeFieldEnd()
6542
    if self.limit is not None:
6543
      oprot.writeFieldBegin('limit', TType.I64, 2)
6544
      oprot.writeI64(self.limit)
6545
      oprot.writeFieldEnd()
6546
    oprot.writeFieldStop()
6547
    oprot.writeStructEnd()
6548
 
6549
  def validate(self):
6550
    return
6551
 
6552
 
6553
  def __repr__(self):
6554
    L = ['%s=%r' % (key, value)
6555
      for key, value in self.__dict__.iteritems()]
6556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6557
 
6558
  def __eq__(self, other):
6559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6560
 
6561
  def __ne__(self, other):
6562
    return not (self == other)
6563
 
6564
class getAllItemsInRange_result:
6565
  """
6566
  Attributes:
6567
   - success
6568
   - cex
6569
  """
6570
 
6571
  thrift_spec = (
6572
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6573
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6574
  )
6575
 
6576
  def __init__(self, success=None, cex=None,):
6577
    self.success = success
6578
    self.cex = cex
6579
 
6580
  def read(self, iprot):
6581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6583
      return
6584
    iprot.readStructBegin()
6585
    while True:
6586
      (fname, ftype, fid) = iprot.readFieldBegin()
6587
      if ftype == TType.STOP:
6588
        break
6589
      if fid == 0:
6590
        if ftype == TType.LIST:
6591
          self.success = []
6592
          (_etype47, _size44) = iprot.readListBegin()
6593
          for _i48 in xrange(_size44):
6594
            _elem49 = Item()
6595
            _elem49.read(iprot)
6596
            self.success.append(_elem49)
6597
          iprot.readListEnd()
6598
        else:
6599
          iprot.skip(ftype)
6600
      elif fid == 1:
6601
        if ftype == TType.STRUCT:
6602
          self.cex = CatalogServiceException()
6603
          self.cex.read(iprot)
6604
        else:
6605
          iprot.skip(ftype)
6606
      else:
6607
        iprot.skip(ftype)
6608
      iprot.readFieldEnd()
6609
    iprot.readStructEnd()
6610
 
6611
  def write(self, oprot):
6612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6614
      return
6615
    oprot.writeStructBegin('getAllItemsInRange_result')
6616
    if self.success is not None:
6617
      oprot.writeFieldBegin('success', TType.LIST, 0)
6618
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6619
      for iter50 in self.success:
6620
        iter50.write(oprot)
6621
      oprot.writeListEnd()
6622
      oprot.writeFieldEnd()
6623
    if self.cex is not None:
6624
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6625
      self.cex.write(oprot)
6626
      oprot.writeFieldEnd()
6627
    oprot.writeFieldStop()
6628
    oprot.writeStructEnd()
6629
 
6630
  def validate(self):
6631
    return
6632
 
6633
 
6634
  def __repr__(self):
6635
    L = ['%s=%r' % (key, value)
6636
      for key, value in self.__dict__.iteritems()]
6637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6638
 
6639
  def __eq__(self, other):
6640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6641
 
6642
  def __ne__(self, other):
6643
    return not (self == other)
6644
 
6645
class getAllItemsByStatusInRange_args:
6646
  """
6647
  Attributes:
6648
   - itemStatus
6649
   - offset
6650
   - limit
6651
  """
6652
 
6653
  thrift_spec = (
6654
    None, # 0
6655
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6656
    (2, TType.I64, 'offset', None, None, ), # 2
6657
    (3, TType.I64, 'limit', None, None, ), # 3
6658
  )
6659
 
6660
  def __init__(self, itemStatus=None, offset=None, limit=None,):
6661
    self.itemStatus = itemStatus
6662
    self.offset = offset
6663
    self.limit = limit
6664
 
6665
  def read(self, iprot):
6666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6668
      return
6669
    iprot.readStructBegin()
6670
    while True:
6671
      (fname, ftype, fid) = iprot.readFieldBegin()
6672
      if ftype == TType.STOP:
6673
        break
6674
      if fid == 1:
6675
        if ftype == TType.I32:
6676
          self.itemStatus = iprot.readI32();
6677
        else:
6678
          iprot.skip(ftype)
6679
      elif fid == 2:
6680
        if ftype == TType.I64:
6681
          self.offset = iprot.readI64();
6682
        else:
6683
          iprot.skip(ftype)
6684
      elif fid == 3:
6685
        if ftype == TType.I64:
6686
          self.limit = iprot.readI64();
6687
        else:
6688
          iprot.skip(ftype)
6689
      else:
6690
        iprot.skip(ftype)
6691
      iprot.readFieldEnd()
6692
    iprot.readStructEnd()
6693
 
6694
  def write(self, oprot):
6695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6697
      return
6698
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
6699
    if self.itemStatus is not None:
6700
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6701
      oprot.writeI32(self.itemStatus)
6702
      oprot.writeFieldEnd()
6703
    if self.offset is not None:
6704
      oprot.writeFieldBegin('offset', TType.I64, 2)
6705
      oprot.writeI64(self.offset)
6706
      oprot.writeFieldEnd()
6707
    if self.limit is not None:
6708
      oprot.writeFieldBegin('limit', TType.I64, 3)
6709
      oprot.writeI64(self.limit)
6710
      oprot.writeFieldEnd()
6711
    oprot.writeFieldStop()
6712
    oprot.writeStructEnd()
6713
 
6714
  def validate(self):
6715
    return
6716
 
6717
 
6718
  def __repr__(self):
6719
    L = ['%s=%r' % (key, value)
6720
      for key, value in self.__dict__.iteritems()]
6721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6722
 
6723
  def __eq__(self, other):
6724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6725
 
6726
  def __ne__(self, other):
6727
    return not (self == other)
6728
 
6729
class getAllItemsByStatusInRange_result:
6730
  """
6731
  Attributes:
6732
   - success
6733
   - cex
6734
  """
6735
 
6736
  thrift_spec = (
6737
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6738
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6739
  )
6740
 
6741
  def __init__(self, success=None, cex=None,):
6742
    self.success = success
6743
    self.cex = cex
6744
 
6745
  def read(self, iprot):
6746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6748
      return
6749
    iprot.readStructBegin()
6750
    while True:
6751
      (fname, ftype, fid) = iprot.readFieldBegin()
6752
      if ftype == TType.STOP:
6753
        break
6754
      if fid == 0:
6755
        if ftype == TType.LIST:
6756
          self.success = []
6757
          (_etype54, _size51) = iprot.readListBegin()
6758
          for _i55 in xrange(_size51):
6759
            _elem56 = Item()
6760
            _elem56.read(iprot)
6761
            self.success.append(_elem56)
6762
          iprot.readListEnd()
6763
        else:
6764
          iprot.skip(ftype)
6765
      elif fid == 1:
6766
        if ftype == TType.STRUCT:
6767
          self.cex = CatalogServiceException()
6768
          self.cex.read(iprot)
6769
        else:
6770
          iprot.skip(ftype)
6771
      else:
6772
        iprot.skip(ftype)
6773
      iprot.readFieldEnd()
6774
    iprot.readStructEnd()
6775
 
6776
  def write(self, oprot):
6777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6779
      return
6780
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6781
    if self.success is not None:
6782
      oprot.writeFieldBegin('success', TType.LIST, 0)
6783
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6784
      for iter57 in self.success:
6785
        iter57.write(oprot)
6786
      oprot.writeListEnd()
6787
      oprot.writeFieldEnd()
6788
    if self.cex is not None:
6789
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6790
      self.cex.write(oprot)
6791
      oprot.writeFieldEnd()
6792
    oprot.writeFieldStop()
6793
    oprot.writeStructEnd()
6794
 
6795
  def validate(self):
6796
    return
6797
 
6798
 
6799
  def __repr__(self):
6800
    L = ['%s=%r' % (key, value)
6801
      for key, value in self.__dict__.iteritems()]
6802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6803
 
6804
  def __eq__(self, other):
6805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6806
 
6807
  def __ne__(self, other):
6808
    return not (self == other)
6809
 
6810
class getItemCountByStatus_args:
6811
  """
6812
  Attributes:
6813
   - useStatus
6814
   - itemStatus
6815
  """
6816
 
6817
  thrift_spec = (
6818
    None, # 0
6819
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6820
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6821
  )
6822
 
6823
  def __init__(self, useStatus=None, itemStatus=None,):
6824
    self.useStatus = useStatus
6825
    self.itemStatus = itemStatus
6826
 
6827
  def read(self, iprot):
6828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6830
      return
6831
    iprot.readStructBegin()
6832
    while True:
6833
      (fname, ftype, fid) = iprot.readFieldBegin()
6834
      if ftype == TType.STOP:
6835
        break
6836
      if fid == 1:
6837
        if ftype == TType.BOOL:
6838
          self.useStatus = iprot.readBool();
6839
        else:
6840
          iprot.skip(ftype)
6841
      elif fid == 2:
6842
        if ftype == TType.I32:
6843
          self.itemStatus = iprot.readI32();
6844
        else:
6845
          iprot.skip(ftype)
6846
      else:
6847
        iprot.skip(ftype)
6848
      iprot.readFieldEnd()
6849
    iprot.readStructEnd()
6850
 
6851
  def write(self, oprot):
6852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6854
      return
6855
    oprot.writeStructBegin('getItemCountByStatus_args')
6856
    if self.useStatus is not None:
6857
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6858
      oprot.writeBool(self.useStatus)
6859
      oprot.writeFieldEnd()
6860
    if self.itemStatus is not None:
6861
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6862
      oprot.writeI32(self.itemStatus)
6863
      oprot.writeFieldEnd()
6864
    oprot.writeFieldStop()
6865
    oprot.writeStructEnd()
6866
 
6867
  def validate(self):
6868
    return
6869
 
6870
 
6871
  def __repr__(self):
6872
    L = ['%s=%r' % (key, value)
6873
      for key, value in self.__dict__.iteritems()]
6874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6875
 
6876
  def __eq__(self, other):
6877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6878
 
6879
  def __ne__(self, other):
6880
    return not (self == other)
6881
 
6882
class getItemCountByStatus_result:
6883
  """
6884
  Attributes:
6885
   - success
6886
  """
6887
 
6888
  thrift_spec = (
6889
    (0, TType.I32, 'success', None, None, ), # 0
6890
  )
6891
 
6892
  def __init__(self, success=None,):
6893
    self.success = success
6894
 
6895
  def read(self, iprot):
6896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6898
      return
6899
    iprot.readStructBegin()
6900
    while True:
6901
      (fname, ftype, fid) = iprot.readFieldBegin()
6902
      if ftype == TType.STOP:
6903
        break
6904
      if fid == 0:
6905
        if ftype == TType.I32:
6906
          self.success = iprot.readI32();
6907
        else:
6908
          iprot.skip(ftype)
6909
      else:
6910
        iprot.skip(ftype)
6911
      iprot.readFieldEnd()
6912
    iprot.readStructEnd()
6913
 
6914
  def write(self, oprot):
6915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6917
      return
6918
    oprot.writeStructBegin('getItemCountByStatus_result')
6919
    if self.success is not None:
6920
      oprot.writeFieldBegin('success', TType.I32, 0)
6921
      oprot.writeI32(self.success)
6922
      oprot.writeFieldEnd()
6923
    oprot.writeFieldStop()
6924
    oprot.writeStructEnd()
6925
 
6926
  def validate(self):
6927
    return
6928
 
6929
 
6930
  def __repr__(self):
6931
    L = ['%s=%r' % (key, value)
6932
      for key, value in self.__dict__.iteritems()]
6933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6934
 
6935
  def __eq__(self, other):
6936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6937
 
6938
  def __ne__(self, other):
6939
    return not (self == other)
6940
 
6941
class getBestSellers_args:
6942
 
6943
  thrift_spec = (
6944
  )
6945
 
6946
  def read(self, iprot):
6947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6949
      return
6950
    iprot.readStructBegin()
6951
    while True:
6952
      (fname, ftype, fid) = iprot.readFieldBegin()
6953
      if ftype == TType.STOP:
6954
        break
6955
      else:
6956
        iprot.skip(ftype)
6957
      iprot.readFieldEnd()
6958
    iprot.readStructEnd()
6959
 
6960
  def write(self, oprot):
6961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6963
      return
6964
    oprot.writeStructBegin('getBestSellers_args')
6965
    oprot.writeFieldStop()
6966
    oprot.writeStructEnd()
6967
 
6968
  def validate(self):
6969
    return
6970
 
6971
 
6972
  def __repr__(self):
6973
    L = ['%s=%r' % (key, value)
6974
      for key, value in self.__dict__.iteritems()]
6975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6976
 
6977
  def __eq__(self, other):
6978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6979
 
6980
  def __ne__(self, other):
6981
    return not (self == other)
6982
 
6983
class getBestSellers_result:
6984
  """
6985
  Attributes:
6986
   - success
6987
   - isex
6988
  """
6989
 
6990
  thrift_spec = (
6991
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6992
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6993
  )
6994
 
6995
  def __init__(self, success=None, isex=None,):
6996
    self.success = success
6997
    self.isex = isex
6998
 
6999
  def read(self, iprot):
7000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7002
      return
7003
    iprot.readStructBegin()
7004
    while True:
7005
      (fname, ftype, fid) = iprot.readFieldBegin()
7006
      if ftype == TType.STOP:
7007
        break
7008
      if fid == 0:
7009
        if ftype == TType.LIST:
7010
          self.success = []
7011
          (_etype61, _size58) = iprot.readListBegin()
7012
          for _i62 in xrange(_size58):
7013
            _elem63 = Item()
7014
            _elem63.read(iprot)
7015
            self.success.append(_elem63)
7016
          iprot.readListEnd()
7017
        else:
7018
          iprot.skip(ftype)
7019
      elif fid == 1:
7020
        if ftype == TType.STRUCT:
7021
          self.isex = CatalogServiceException()
7022
          self.isex.read(iprot)
7023
        else:
7024
          iprot.skip(ftype)
7025
      else:
7026
        iprot.skip(ftype)
7027
      iprot.readFieldEnd()
7028
    iprot.readStructEnd()
7029
 
7030
  def write(self, oprot):
7031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7033
      return
7034
    oprot.writeStructBegin('getBestSellers_result')
7035
    if self.success is not None:
7036
      oprot.writeFieldBegin('success', TType.LIST, 0)
7037
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7038
      for iter64 in self.success:
7039
        iter64.write(oprot)
7040
      oprot.writeListEnd()
7041
      oprot.writeFieldEnd()
7042
    if self.isex is not None:
7043
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7044
      self.isex.write(oprot)
7045
      oprot.writeFieldEnd()
7046
    oprot.writeFieldStop()
7047
    oprot.writeStructEnd()
7048
 
7049
  def validate(self):
7050
    return
7051
 
7052
 
7053
  def __repr__(self):
7054
    L = ['%s=%r' % (key, value)
7055
      for key, value in self.__dict__.iteritems()]
7056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7057
 
7058
  def __eq__(self, other):
7059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7060
 
7061
  def __ne__(self, other):
7062
    return not (self == other)
7063
 
7064
class getBestSellersCatalogIds_args:
7065
  """
7066
  Attributes:
7067
   - beginIndex
7068
   - totalItems
7069
   - brand
7070
   - category
7071
  """
7072
 
7073
  thrift_spec = (
7074
    None, # 0
7075
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7076
    (2, TType.I64, 'totalItems', None, None, ), # 2
7077
    (3, TType.STRING, 'brand', None, None, ), # 3
7078
    (4, TType.I64, 'category', None, None, ), # 4
7079
  )
7080
 
7081
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7082
    self.beginIndex = beginIndex
7083
    self.totalItems = totalItems
7084
    self.brand = brand
7085
    self.category = category
7086
 
7087
  def read(self, iprot):
7088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7090
      return
7091
    iprot.readStructBegin()
7092
    while True:
7093
      (fname, ftype, fid) = iprot.readFieldBegin()
7094
      if ftype == TType.STOP:
7095
        break
7096
      if fid == 1:
7097
        if ftype == TType.I64:
7098
          self.beginIndex = iprot.readI64();
7099
        else:
7100
          iprot.skip(ftype)
7101
      elif fid == 2:
7102
        if ftype == TType.I64:
7103
          self.totalItems = iprot.readI64();
7104
        else:
7105
          iprot.skip(ftype)
7106
      elif fid == 3:
7107
        if ftype == TType.STRING:
7108
          self.brand = iprot.readString();
7109
        else:
7110
          iprot.skip(ftype)
7111
      elif fid == 4:
7112
        if ftype == TType.I64:
7113
          self.category = iprot.readI64();
7114
        else:
7115
          iprot.skip(ftype)
7116
      else:
7117
        iprot.skip(ftype)
7118
      iprot.readFieldEnd()
7119
    iprot.readStructEnd()
7120
 
7121
  def write(self, oprot):
7122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7124
      return
7125
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
7126
    if self.beginIndex is not None:
7127
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7128
      oprot.writeI64(self.beginIndex)
7129
      oprot.writeFieldEnd()
7130
    if self.totalItems is not None:
7131
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7132
      oprot.writeI64(self.totalItems)
7133
      oprot.writeFieldEnd()
7134
    if self.brand is not None:
7135
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7136
      oprot.writeString(self.brand)
7137
      oprot.writeFieldEnd()
7138
    if self.category is not None:
7139
      oprot.writeFieldBegin('category', TType.I64, 4)
7140
      oprot.writeI64(self.category)
7141
      oprot.writeFieldEnd()
7142
    oprot.writeFieldStop()
7143
    oprot.writeStructEnd()
7144
 
7145
  def validate(self):
7146
    return
7147
 
7148
 
7149
  def __repr__(self):
7150
    L = ['%s=%r' % (key, value)
7151
      for key, value in self.__dict__.iteritems()]
7152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7153
 
7154
  def __eq__(self, other):
7155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7156
 
7157
  def __ne__(self, other):
7158
    return not (self == other)
7159
 
7160
class getBestSellersCatalogIds_result:
7161
  """
7162
  Attributes:
7163
   - success
7164
   - cex
7165
  """
7166
 
7167
  thrift_spec = (
7168
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7169
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7170
  )
7171
 
7172
  def __init__(self, success=None, cex=None,):
7173
    self.success = success
7174
    self.cex = cex
7175
 
7176
  def read(self, iprot):
7177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7179
      return
7180
    iprot.readStructBegin()
7181
    while True:
7182
      (fname, ftype, fid) = iprot.readFieldBegin()
7183
      if ftype == TType.STOP:
7184
        break
7185
      if fid == 0:
7186
        if ftype == TType.LIST:
7187
          self.success = []
7188
          (_etype68, _size65) = iprot.readListBegin()
7189
          for _i69 in xrange(_size65):
7190
            _elem70 = iprot.readI64();
7191
            self.success.append(_elem70)
7192
          iprot.readListEnd()
7193
        else:
7194
          iprot.skip(ftype)
7195
      elif fid == 1:
7196
        if ftype == TType.STRUCT:
7197
          self.cex = CatalogServiceException()
7198
          self.cex.read(iprot)
7199
        else:
7200
          iprot.skip(ftype)
7201
      else:
7202
        iprot.skip(ftype)
7203
      iprot.readFieldEnd()
7204
    iprot.readStructEnd()
7205
 
7206
  def write(self, oprot):
7207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7209
      return
7210
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
7211
    if self.success is not None:
7212
      oprot.writeFieldBegin('success', TType.LIST, 0)
7213
      oprot.writeListBegin(TType.I64, len(self.success))
7214
      for iter71 in self.success:
7215
        oprot.writeI64(iter71)
7216
      oprot.writeListEnd()
7217
      oprot.writeFieldEnd()
7218
    if self.cex is not None:
7219
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7220
      self.cex.write(oprot)
7221
      oprot.writeFieldEnd()
7222
    oprot.writeFieldStop()
7223
    oprot.writeStructEnd()
7224
 
7225
  def validate(self):
7226
    return
7227
 
7228
 
7229
  def __repr__(self):
7230
    L = ['%s=%r' % (key, value)
7231
      for key, value in self.__dict__.iteritems()]
7232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7233
 
7234
  def __eq__(self, other):
7235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7236
 
7237
  def __ne__(self, other):
7238
    return not (self == other)
7239
 
7240
class getBestSellersCount_args:
7241
 
7242
  thrift_spec = (
7243
  )
7244
 
7245
  def read(self, iprot):
7246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7248
      return
7249
    iprot.readStructBegin()
7250
    while True:
7251
      (fname, ftype, fid) = iprot.readFieldBegin()
7252
      if ftype == TType.STOP:
7253
        break
7254
      else:
7255
        iprot.skip(ftype)
7256
      iprot.readFieldEnd()
7257
    iprot.readStructEnd()
7258
 
7259
  def write(self, oprot):
7260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7262
      return
7263
    oprot.writeStructBegin('getBestSellersCount_args')
7264
    oprot.writeFieldStop()
7265
    oprot.writeStructEnd()
7266
 
7267
  def validate(self):
7268
    return
7269
 
7270
 
7271
  def __repr__(self):
7272
    L = ['%s=%r' % (key, value)
7273
      for key, value in self.__dict__.iteritems()]
7274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7275
 
7276
  def __eq__(self, other):
7277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7278
 
7279
  def __ne__(self, other):
7280
    return not (self == other)
7281
 
7282
class getBestSellersCount_result:
7283
  """
7284
  Attributes:
7285
   - success
7286
   - cex
7287
  """
7288
 
7289
  thrift_spec = (
7290
    (0, TType.I64, 'success', None, None, ), # 0
7291
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7292
  )
7293
 
7294
  def __init__(self, success=None, cex=None,):
7295
    self.success = success
7296
    self.cex = cex
7297
 
7298
  def read(self, iprot):
7299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7301
      return
7302
    iprot.readStructBegin()
7303
    while True:
7304
      (fname, ftype, fid) = iprot.readFieldBegin()
7305
      if ftype == TType.STOP:
7306
        break
7307
      if fid == 0:
7308
        if ftype == TType.I64:
7309
          self.success = iprot.readI64();
7310
        else:
7311
          iprot.skip(ftype)
7312
      elif fid == 1:
7313
        if ftype == TType.STRUCT:
7314
          self.cex = CatalogServiceException()
7315
          self.cex.read(iprot)
7316
        else:
7317
          iprot.skip(ftype)
7318
      else:
7319
        iprot.skip(ftype)
7320
      iprot.readFieldEnd()
7321
    iprot.readStructEnd()
7322
 
7323
  def write(self, oprot):
7324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7326
      return
7327
    oprot.writeStructBegin('getBestSellersCount_result')
7328
    if self.success is not None:
7329
      oprot.writeFieldBegin('success', TType.I64, 0)
7330
      oprot.writeI64(self.success)
7331
      oprot.writeFieldEnd()
7332
    if self.cex is not None:
7333
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7334
      self.cex.write(oprot)
7335
      oprot.writeFieldEnd()
7336
    oprot.writeFieldStop()
7337
    oprot.writeStructEnd()
7338
 
7339
  def validate(self):
7340
    return
7341
 
7342
 
7343
  def __repr__(self):
7344
    L = ['%s=%r' % (key, value)
7345
      for key, value in self.__dict__.iteritems()]
7346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7347
 
7348
  def __eq__(self, other):
7349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7350
 
7351
  def __ne__(self, other):
7352
    return not (self == other)
7353
 
7354
class getBestDeals_args:
7355
 
7356
  thrift_spec = (
7357
  )
7358
 
7359
  def read(self, iprot):
7360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7362
      return
7363
    iprot.readStructBegin()
7364
    while True:
7365
      (fname, ftype, fid) = iprot.readFieldBegin()
7366
      if ftype == TType.STOP:
7367
        break
7368
      else:
7369
        iprot.skip(ftype)
7370
      iprot.readFieldEnd()
7371
    iprot.readStructEnd()
7372
 
7373
  def write(self, oprot):
7374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7376
      return
7377
    oprot.writeStructBegin('getBestDeals_args')
7378
    oprot.writeFieldStop()
7379
    oprot.writeStructEnd()
7380
 
7381
  def validate(self):
7382
    return
7383
 
7384
 
7385
  def __repr__(self):
7386
    L = ['%s=%r' % (key, value)
7387
      for key, value in self.__dict__.iteritems()]
7388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7389
 
7390
  def __eq__(self, other):
7391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7392
 
7393
  def __ne__(self, other):
7394
    return not (self == other)
7395
 
7396
class getBestDeals_result:
7397
  """
7398
  Attributes:
7399
   - success
7400
   - isex
7401
  """
7402
 
7403
  thrift_spec = (
7404
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7405
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7406
  )
7407
 
7408
  def __init__(self, success=None, isex=None,):
7409
    self.success = success
7410
    self.isex = isex
7411
 
7412
  def read(self, iprot):
7413
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7414
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7415
      return
7416
    iprot.readStructBegin()
7417
    while True:
7418
      (fname, ftype, fid) = iprot.readFieldBegin()
7419
      if ftype == TType.STOP:
7420
        break
7421
      if fid == 0:
7422
        if ftype == TType.LIST:
7423
          self.success = []
7424
          (_etype75, _size72) = iprot.readListBegin()
7425
          for _i76 in xrange(_size72):
7426
            _elem77 = Item()
7427
            _elem77.read(iprot)
7428
            self.success.append(_elem77)
7429
          iprot.readListEnd()
7430
        else:
7431
          iprot.skip(ftype)
7432
      elif fid == 1:
7433
        if ftype == TType.STRUCT:
7434
          self.isex = CatalogServiceException()
7435
          self.isex.read(iprot)
7436
        else:
7437
          iprot.skip(ftype)
7438
      else:
7439
        iprot.skip(ftype)
7440
      iprot.readFieldEnd()
7441
    iprot.readStructEnd()
7442
 
7443
  def write(self, oprot):
7444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7446
      return
7447
    oprot.writeStructBegin('getBestDeals_result')
7448
    if self.success is not None:
7449
      oprot.writeFieldBegin('success', TType.LIST, 0)
7450
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7451
      for iter78 in self.success:
7452
        iter78.write(oprot)
7453
      oprot.writeListEnd()
7454
      oprot.writeFieldEnd()
7455
    if self.isex is not None:
7456
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7457
      self.isex.write(oprot)
7458
      oprot.writeFieldEnd()
7459
    oprot.writeFieldStop()
7460
    oprot.writeStructEnd()
7461
 
7462
  def validate(self):
7463
    return
7464
 
7465
 
7466
  def __repr__(self):
7467
    L = ['%s=%r' % (key, value)
7468
      for key, value in self.__dict__.iteritems()]
7469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7470
 
7471
  def __eq__(self, other):
7472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7473
 
7474
  def __ne__(self, other):
7475
    return not (self == other)
7476
 
7477
class getBestDealsCatalogIds_args:
7478
  """
7479
  Attributes:
7480
   - beginIndex
7481
   - totalItems
7482
   - brand
7483
   - category
7484
  """
7485
 
7486
  thrift_spec = (
7487
    None, # 0
7488
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7489
    (2, TType.I64, 'totalItems', None, None, ), # 2
7490
    (3, TType.STRING, 'brand', None, None, ), # 3
7491
    (4, TType.I64, 'category', None, None, ), # 4
7492
  )
7493
 
7494
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7495
    self.beginIndex = beginIndex
7496
    self.totalItems = totalItems
7497
    self.brand = brand
7498
    self.category = category
7499
 
7500
  def read(self, iprot):
7501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7503
      return
7504
    iprot.readStructBegin()
7505
    while True:
7506
      (fname, ftype, fid) = iprot.readFieldBegin()
7507
      if ftype == TType.STOP:
7508
        break
7509
      if fid == 1:
7510
        if ftype == TType.I64:
7511
          self.beginIndex = iprot.readI64();
7512
        else:
7513
          iprot.skip(ftype)
7514
      elif fid == 2:
7515
        if ftype == TType.I64:
7516
          self.totalItems = iprot.readI64();
7517
        else:
7518
          iprot.skip(ftype)
7519
      elif fid == 3:
7520
        if ftype == TType.STRING:
7521
          self.brand = iprot.readString();
7522
        else:
7523
          iprot.skip(ftype)
7524
      elif fid == 4:
7525
        if ftype == TType.I64:
7526
          self.category = iprot.readI64();
7527
        else:
7528
          iprot.skip(ftype)
7529
      else:
7530
        iprot.skip(ftype)
7531
      iprot.readFieldEnd()
7532
    iprot.readStructEnd()
7533
 
7534
  def write(self, oprot):
7535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7537
      return
7538
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
7539
    if self.beginIndex is not None:
7540
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7541
      oprot.writeI64(self.beginIndex)
7542
      oprot.writeFieldEnd()
7543
    if self.totalItems is not None:
7544
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7545
      oprot.writeI64(self.totalItems)
7546
      oprot.writeFieldEnd()
7547
    if self.brand is not None:
7548
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7549
      oprot.writeString(self.brand)
7550
      oprot.writeFieldEnd()
7551
    if self.category is not None:
7552
      oprot.writeFieldBegin('category', TType.I64, 4)
7553
      oprot.writeI64(self.category)
7554
      oprot.writeFieldEnd()
7555
    oprot.writeFieldStop()
7556
    oprot.writeStructEnd()
7557
 
7558
  def validate(self):
7559
    return
7560
 
7561
 
7562
  def __repr__(self):
7563
    L = ['%s=%r' % (key, value)
7564
      for key, value in self.__dict__.iteritems()]
7565
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7566
 
7567
  def __eq__(self, other):
7568
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7569
 
7570
  def __ne__(self, other):
7571
    return not (self == other)
7572
 
7573
class getBestDealsCatalogIds_result:
7574
  """
7575
  Attributes:
7576
   - success
7577
   - cex
7578
  """
7579
 
7580
  thrift_spec = (
7581
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7582
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7583
  )
7584
 
7585
  def __init__(self, success=None, cex=None,):
7586
    self.success = success
7587
    self.cex = cex
7588
 
7589
  def read(self, iprot):
7590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7592
      return
7593
    iprot.readStructBegin()
7594
    while True:
7595
      (fname, ftype, fid) = iprot.readFieldBegin()
7596
      if ftype == TType.STOP:
7597
        break
7598
      if fid == 0:
7599
        if ftype == TType.LIST:
7600
          self.success = []
7601
          (_etype82, _size79) = iprot.readListBegin()
7602
          for _i83 in xrange(_size79):
7603
            _elem84 = iprot.readI64();
7604
            self.success.append(_elem84)
7605
          iprot.readListEnd()
7606
        else:
7607
          iprot.skip(ftype)
7608
      elif fid == 1:
7609
        if ftype == TType.STRUCT:
7610
          self.cex = CatalogServiceException()
7611
          self.cex.read(iprot)
7612
        else:
7613
          iprot.skip(ftype)
7614
      else:
7615
        iprot.skip(ftype)
7616
      iprot.readFieldEnd()
7617
    iprot.readStructEnd()
7618
 
7619
  def write(self, oprot):
7620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7622
      return
7623
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
7624
    if self.success is not None:
7625
      oprot.writeFieldBegin('success', TType.LIST, 0)
7626
      oprot.writeListBegin(TType.I64, len(self.success))
7627
      for iter85 in self.success:
7628
        oprot.writeI64(iter85)
7629
      oprot.writeListEnd()
7630
      oprot.writeFieldEnd()
7631
    if self.cex is not None:
7632
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7633
      self.cex.write(oprot)
7634
      oprot.writeFieldEnd()
7635
    oprot.writeFieldStop()
7636
    oprot.writeStructEnd()
7637
 
7638
  def validate(self):
7639
    return
7640
 
7641
 
7642
  def __repr__(self):
7643
    L = ['%s=%r' % (key, value)
7644
      for key, value in self.__dict__.iteritems()]
7645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7646
 
7647
  def __eq__(self, other):
7648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7649
 
7650
  def __ne__(self, other):
7651
    return not (self == other)
7652
 
7653
class getBestDealsCount_args:
7654
 
7655
  thrift_spec = (
7656
  )
7657
 
7658
  def read(self, iprot):
7659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7661
      return
7662
    iprot.readStructBegin()
7663
    while True:
7664
      (fname, ftype, fid) = iprot.readFieldBegin()
7665
      if ftype == TType.STOP:
7666
        break
7667
      else:
7668
        iprot.skip(ftype)
7669
      iprot.readFieldEnd()
7670
    iprot.readStructEnd()
7671
 
7672
  def write(self, oprot):
7673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7675
      return
7676
    oprot.writeStructBegin('getBestDealsCount_args')
7677
    oprot.writeFieldStop()
7678
    oprot.writeStructEnd()
7679
 
7680
  def validate(self):
7681
    return
7682
 
7683
 
7684
  def __repr__(self):
7685
    L = ['%s=%r' % (key, value)
7686
      for key, value in self.__dict__.iteritems()]
7687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7688
 
7689
  def __eq__(self, other):
7690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7691
 
7692
  def __ne__(self, other):
7693
    return not (self == other)
7694
 
7695
class getBestDealsCount_result:
7696
  """
7697
  Attributes:
7698
   - success
7699
   - cex
7700
  """
7701
 
7702
  thrift_spec = (
7703
    (0, TType.I64, 'success', None, None, ), # 0
7704
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7705
  )
7706
 
7707
  def __init__(self, success=None, cex=None,):
7708
    self.success = success
7709
    self.cex = cex
7710
 
7711
  def read(self, iprot):
7712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7714
      return
7715
    iprot.readStructBegin()
7716
    while True:
7717
      (fname, ftype, fid) = iprot.readFieldBegin()
7718
      if ftype == TType.STOP:
7719
        break
7720
      if fid == 0:
7721
        if ftype == TType.I64:
7722
          self.success = iprot.readI64();
7723
        else:
7724
          iprot.skip(ftype)
7725
      elif fid == 1:
7726
        if ftype == TType.STRUCT:
7727
          self.cex = CatalogServiceException()
7728
          self.cex.read(iprot)
7729
        else:
7730
          iprot.skip(ftype)
7731
      else:
7732
        iprot.skip(ftype)
7733
      iprot.readFieldEnd()
7734
    iprot.readStructEnd()
7735
 
7736
  def write(self, oprot):
7737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7739
      return
7740
    oprot.writeStructBegin('getBestDealsCount_result')
7741
    if self.success is not None:
7742
      oprot.writeFieldBegin('success', TType.I64, 0)
7743
      oprot.writeI64(self.success)
7744
      oprot.writeFieldEnd()
7745
    if self.cex is not None:
7746
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7747
      self.cex.write(oprot)
7748
      oprot.writeFieldEnd()
7749
    oprot.writeFieldStop()
7750
    oprot.writeStructEnd()
7751
 
7752
  def validate(self):
7753
    return
7754
 
7755
 
7756
  def __repr__(self):
7757
    L = ['%s=%r' % (key, value)
7758
      for key, value in self.__dict__.iteritems()]
7759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7760
 
7761
  def __eq__(self, other):
7762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7763
 
7764
  def __ne__(self, other):
7765
    return not (self == other)
7766
 
7767
class getComingSoon_args:
7768
 
7769
  thrift_spec = (
7770
  )
7771
 
7772
  def read(self, iprot):
7773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7775
      return
7776
    iprot.readStructBegin()
7777
    while True:
7778
      (fname, ftype, fid) = iprot.readFieldBegin()
7779
      if ftype == TType.STOP:
7780
        break
7781
      else:
7782
        iprot.skip(ftype)
7783
      iprot.readFieldEnd()
7784
    iprot.readStructEnd()
7785
 
7786
  def write(self, oprot):
7787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7789
      return
7790
    oprot.writeStructBegin('getComingSoon_args')
7791
    oprot.writeFieldStop()
7792
    oprot.writeStructEnd()
7793
 
7794
  def validate(self):
7795
    return
7796
 
7797
 
7798
  def __repr__(self):
7799
    L = ['%s=%r' % (key, value)
7800
      for key, value in self.__dict__.iteritems()]
7801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7802
 
7803
  def __eq__(self, other):
7804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7805
 
7806
  def __ne__(self, other):
7807
    return not (self == other)
7808
 
7809
class getComingSoon_result:
7810
  """
7811
  Attributes:
7812
   - success
7813
   - isex
7814
  """
7815
 
7816
  thrift_spec = (
7817
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7818
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7819
  )
7820
 
7821
  def __init__(self, success=None, isex=None,):
7822
    self.success = success
7823
    self.isex = isex
7824
 
7825
  def read(self, iprot):
7826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7828
      return
7829
    iprot.readStructBegin()
7830
    while True:
7831
      (fname, ftype, fid) = iprot.readFieldBegin()
7832
      if ftype == TType.STOP:
7833
        break
7834
      if fid == 0:
7835
        if ftype == TType.LIST:
7836
          self.success = []
7837
          (_etype89, _size86) = iprot.readListBegin()
7838
          for _i90 in xrange(_size86):
7839
            _elem91 = Item()
7840
            _elem91.read(iprot)
7841
            self.success.append(_elem91)
7842
          iprot.readListEnd()
7843
        else:
7844
          iprot.skip(ftype)
7845
      elif fid == 1:
7846
        if ftype == TType.STRUCT:
7847
          self.isex = CatalogServiceException()
7848
          self.isex.read(iprot)
7849
        else:
7850
          iprot.skip(ftype)
7851
      else:
7852
        iprot.skip(ftype)
7853
      iprot.readFieldEnd()
7854
    iprot.readStructEnd()
7855
 
7856
  def write(self, oprot):
7857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7859
      return
7860
    oprot.writeStructBegin('getComingSoon_result')
7861
    if self.success is not None:
7862
      oprot.writeFieldBegin('success', TType.LIST, 0)
7863
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7864
      for iter92 in self.success:
7865
        iter92.write(oprot)
7866
      oprot.writeListEnd()
7867
      oprot.writeFieldEnd()
7868
    if self.isex is not None:
7869
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7870
      self.isex.write(oprot)
7871
      oprot.writeFieldEnd()
7872
    oprot.writeFieldStop()
7873
    oprot.writeStructEnd()
7874
 
7875
  def validate(self):
7876
    return
7877
 
7878
 
7879
  def __repr__(self):
7880
    L = ['%s=%r' % (key, value)
7881
      for key, value in self.__dict__.iteritems()]
7882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7883
 
7884
  def __eq__(self, other):
7885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7886
 
7887
  def __ne__(self, other):
7888
    return not (self == other)
7889
 
7890
class getComingSoonCatalogIds_args:
7891
  """
7892
  Attributes:
7893
   - beginIndex
7894
   - totalItems
7895
   - brand
7896
   - category
7897
  """
7898
 
7899
  thrift_spec = (
7900
    None, # 0
7901
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7902
    (2, TType.I64, 'totalItems', None, None, ), # 2
7903
    (3, TType.STRING, 'brand', None, None, ), # 3
7904
    (4, TType.I64, 'category', None, None, ), # 4
7905
  )
7906
 
7907
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7908
    self.beginIndex = beginIndex
7909
    self.totalItems = totalItems
7910
    self.brand = brand
7911
    self.category = category
7912
 
7913
  def read(self, iprot):
7914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7916
      return
7917
    iprot.readStructBegin()
7918
    while True:
7919
      (fname, ftype, fid) = iprot.readFieldBegin()
7920
      if ftype == TType.STOP:
7921
        break
7922
      if fid == 1:
7923
        if ftype == TType.I64:
7924
          self.beginIndex = iprot.readI64();
7925
        else:
7926
          iprot.skip(ftype)
7927
      elif fid == 2:
7928
        if ftype == TType.I64:
7929
          self.totalItems = iprot.readI64();
7930
        else:
7931
          iprot.skip(ftype)
7932
      elif fid == 3:
7933
        if ftype == TType.STRING:
7934
          self.brand = iprot.readString();
7935
        else:
7936
          iprot.skip(ftype)
7937
      elif fid == 4:
7938
        if ftype == TType.I64:
7939
          self.category = iprot.readI64();
7940
        else:
7941
          iprot.skip(ftype)
7942
      else:
7943
        iprot.skip(ftype)
7944
      iprot.readFieldEnd()
7945
    iprot.readStructEnd()
7946
 
7947
  def write(self, oprot):
7948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7950
      return
7951
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7952
    if self.beginIndex is not None:
7953
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7954
      oprot.writeI64(self.beginIndex)
7955
      oprot.writeFieldEnd()
7956
    if self.totalItems is not None:
7957
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7958
      oprot.writeI64(self.totalItems)
7959
      oprot.writeFieldEnd()
7960
    if self.brand is not None:
7961
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7962
      oprot.writeString(self.brand)
7963
      oprot.writeFieldEnd()
7964
    if self.category is not None:
7965
      oprot.writeFieldBegin('category', TType.I64, 4)
7966
      oprot.writeI64(self.category)
7967
      oprot.writeFieldEnd()
7968
    oprot.writeFieldStop()
7969
    oprot.writeStructEnd()
7970
 
7971
  def validate(self):
7972
    return
7973
 
7974
 
7975
  def __repr__(self):
7976
    L = ['%s=%r' % (key, value)
7977
      for key, value in self.__dict__.iteritems()]
7978
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7979
 
7980
  def __eq__(self, other):
7981
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7982
 
7983
  def __ne__(self, other):
7984
    return not (self == other)
7985
 
7986
class getComingSoonCatalogIds_result:
7987
  """
7988
  Attributes:
7989
   - success
7990
   - cex
7991
  """
7992
 
7993
  thrift_spec = (
7994
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7995
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7996
  )
7997
 
7998
  def __init__(self, success=None, cex=None,):
7999
    self.success = success
8000
    self.cex = cex
8001
 
8002
  def read(self, iprot):
8003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8005
      return
8006
    iprot.readStructBegin()
8007
    while True:
8008
      (fname, ftype, fid) = iprot.readFieldBegin()
8009
      if ftype == TType.STOP:
8010
        break
8011
      if fid == 0:
8012
        if ftype == TType.LIST:
8013
          self.success = []
8014
          (_etype96, _size93) = iprot.readListBegin()
8015
          for _i97 in xrange(_size93):
8016
            _elem98 = iprot.readI64();
8017
            self.success.append(_elem98)
8018
          iprot.readListEnd()
8019
        else:
8020
          iprot.skip(ftype)
8021
      elif fid == 1:
8022
        if ftype == TType.STRUCT:
8023
          self.cex = CatalogServiceException()
8024
          self.cex.read(iprot)
8025
        else:
8026
          iprot.skip(ftype)
8027
      else:
8028
        iprot.skip(ftype)
8029
      iprot.readFieldEnd()
8030
    iprot.readStructEnd()
8031
 
8032
  def write(self, oprot):
8033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8035
      return
8036
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
8037
    if self.success is not None:
8038
      oprot.writeFieldBegin('success', TType.LIST, 0)
8039
      oprot.writeListBegin(TType.I64, len(self.success))
8040
      for iter99 in self.success:
8041
        oprot.writeI64(iter99)
8042
      oprot.writeListEnd()
8043
      oprot.writeFieldEnd()
8044
    if self.cex is not None:
8045
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8046
      self.cex.write(oprot)
8047
      oprot.writeFieldEnd()
8048
    oprot.writeFieldStop()
8049
    oprot.writeStructEnd()
8050
 
8051
  def validate(self):
8052
    return
8053
 
8054
 
8055
  def __repr__(self):
8056
    L = ['%s=%r' % (key, value)
8057
      for key, value in self.__dict__.iteritems()]
8058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8059
 
8060
  def __eq__(self, other):
8061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8062
 
8063
  def __ne__(self, other):
8064
    return not (self == other)
8065
 
8066
class getComingSoonCount_args:
8067
 
8068
  thrift_spec = (
8069
  )
8070
 
8071
  def read(self, iprot):
8072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8074
      return
8075
    iprot.readStructBegin()
8076
    while True:
8077
      (fname, ftype, fid) = iprot.readFieldBegin()
8078
      if ftype == TType.STOP:
8079
        break
8080
      else:
8081
        iprot.skip(ftype)
8082
      iprot.readFieldEnd()
8083
    iprot.readStructEnd()
8084
 
8085
  def write(self, oprot):
8086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8088
      return
8089
    oprot.writeStructBegin('getComingSoonCount_args')
8090
    oprot.writeFieldStop()
8091
    oprot.writeStructEnd()
8092
 
8093
  def validate(self):
8094
    return
8095
 
8096
 
8097
  def __repr__(self):
8098
    L = ['%s=%r' % (key, value)
8099
      for key, value in self.__dict__.iteritems()]
8100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8101
 
8102
  def __eq__(self, other):
8103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8104
 
8105
  def __ne__(self, other):
8106
    return not (self == other)
8107
 
8108
class getComingSoonCount_result:
8109
  """
8110
  Attributes:
8111
   - success
8112
   - cex
8113
  """
8114
 
8115
  thrift_spec = (
8116
    (0, TType.I64, 'success', None, None, ), # 0
8117
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8118
  )
8119
 
8120
  def __init__(self, success=None, cex=None,):
8121
    self.success = success
8122
    self.cex = cex
8123
 
8124
  def read(self, iprot):
8125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8127
      return
8128
    iprot.readStructBegin()
8129
    while True:
8130
      (fname, ftype, fid) = iprot.readFieldBegin()
8131
      if ftype == TType.STOP:
8132
        break
8133
      if fid == 0:
8134
        if ftype == TType.I64:
8135
          self.success = iprot.readI64();
8136
        else:
8137
          iprot.skip(ftype)
8138
      elif fid == 1:
8139
        if ftype == TType.STRUCT:
8140
          self.cex = CatalogServiceException()
8141
          self.cex.read(iprot)
8142
        else:
8143
          iprot.skip(ftype)
8144
      else:
8145
        iprot.skip(ftype)
8146
      iprot.readFieldEnd()
8147
    iprot.readStructEnd()
8148
 
8149
  def write(self, oprot):
8150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8152
      return
8153
    oprot.writeStructBegin('getComingSoonCount_result')
8154
    if self.success is not None:
8155
      oprot.writeFieldBegin('success', TType.I64, 0)
8156
      oprot.writeI64(self.success)
8157
      oprot.writeFieldEnd()
8158
    if self.cex is not None:
8159
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8160
      self.cex.write(oprot)
8161
      oprot.writeFieldEnd()
8162
    oprot.writeFieldStop()
8163
    oprot.writeStructEnd()
8164
 
8165
  def validate(self):
8166
    return
8167
 
8168
 
8169
  def __repr__(self):
8170
    L = ['%s=%r' % (key, value)
8171
      for key, value in self.__dict__.iteritems()]
8172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8173
 
8174
  def __eq__(self, other):
8175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8176
 
8177
  def __ne__(self, other):
8178
    return not (self == other)
8179
 
8180
class getLatestArrivals_args:
8181
 
8182
  thrift_spec = (
8183
  )
8184
 
8185
  def read(self, iprot):
8186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8188
      return
8189
    iprot.readStructBegin()
8190
    while True:
8191
      (fname, ftype, fid) = iprot.readFieldBegin()
8192
      if ftype == TType.STOP:
8193
        break
8194
      else:
8195
        iprot.skip(ftype)
8196
      iprot.readFieldEnd()
8197
    iprot.readStructEnd()
8198
 
8199
  def write(self, oprot):
8200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8202
      return
8203
    oprot.writeStructBegin('getLatestArrivals_args')
8204
    oprot.writeFieldStop()
8205
    oprot.writeStructEnd()
8206
 
8207
  def validate(self):
8208
    return
8209
 
8210
 
8211
  def __repr__(self):
8212
    L = ['%s=%r' % (key, value)
8213
      for key, value in self.__dict__.iteritems()]
8214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8215
 
8216
  def __eq__(self, other):
8217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8218
 
8219
  def __ne__(self, other):
8220
    return not (self == other)
8221
 
8222
class getLatestArrivals_result:
8223
  """
8224
  Attributes:
8225
   - success
8226
   - isex
8227
  """
8228
 
8229
  thrift_spec = (
8230
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8231
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8232
  )
8233
 
8234
  def __init__(self, success=None, isex=None,):
8235
    self.success = success
8236
    self.isex = isex
8237
 
8238
  def read(self, iprot):
8239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8241
      return
8242
    iprot.readStructBegin()
8243
    while True:
8244
      (fname, ftype, fid) = iprot.readFieldBegin()
8245
      if ftype == TType.STOP:
8246
        break
8247
      if fid == 0:
8248
        if ftype == TType.LIST:
8249
          self.success = []
8250
          (_etype103, _size100) = iprot.readListBegin()
8251
          for _i104 in xrange(_size100):
8252
            _elem105 = Item()
8253
            _elem105.read(iprot)
8254
            self.success.append(_elem105)
8255
          iprot.readListEnd()
8256
        else:
8257
          iprot.skip(ftype)
8258
      elif fid == 1:
8259
        if ftype == TType.STRUCT:
8260
          self.isex = CatalogServiceException()
8261
          self.isex.read(iprot)
8262
        else:
8263
          iprot.skip(ftype)
8264
      else:
8265
        iprot.skip(ftype)
8266
      iprot.readFieldEnd()
8267
    iprot.readStructEnd()
8268
 
8269
  def write(self, oprot):
8270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8272
      return
8273
    oprot.writeStructBegin('getLatestArrivals_result')
8274
    if self.success is not None:
8275
      oprot.writeFieldBegin('success', TType.LIST, 0)
8276
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8277
      for iter106 in self.success:
8278
        iter106.write(oprot)
8279
      oprot.writeListEnd()
8280
      oprot.writeFieldEnd()
8281
    if self.isex is not None:
8282
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8283
      self.isex.write(oprot)
8284
      oprot.writeFieldEnd()
8285
    oprot.writeFieldStop()
8286
    oprot.writeStructEnd()
8287
 
8288
  def validate(self):
8289
    return
8290
 
8291
 
8292
  def __repr__(self):
8293
    L = ['%s=%r' % (key, value)
8294
      for key, value in self.__dict__.iteritems()]
8295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8296
 
8297
  def __eq__(self, other):
8298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8299
 
8300
  def __ne__(self, other):
8301
    return not (self == other)
8302
 
8303
class getLatestArrivalsCatalogIds_args:
8304
  """
8305
  Attributes:
8306
   - beginIndex
8307
   - totalItems
8308
   - brand
8309
   - categories
8310
  """
8311
 
8312
  thrift_spec = (
8313
    None, # 0
8314
    (1, TType.I64, 'beginIndex', None, None, ), # 1
8315
    (2, TType.I64, 'totalItems', None, None, ), # 2
8316
    (3, TType.STRING, 'brand', None, None, ), # 3
8317
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
8318
  )
8319
 
8320
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
8321
    self.beginIndex = beginIndex
8322
    self.totalItems = totalItems
8323
    self.brand = brand
8324
    self.categories = categories
8325
 
8326
  def read(self, iprot):
8327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8329
      return
8330
    iprot.readStructBegin()
8331
    while True:
8332
      (fname, ftype, fid) = iprot.readFieldBegin()
8333
      if ftype == TType.STOP:
8334
        break
8335
      if fid == 1:
8336
        if ftype == TType.I64:
8337
          self.beginIndex = iprot.readI64();
8338
        else:
8339
          iprot.skip(ftype)
8340
      elif fid == 2:
8341
        if ftype == TType.I64:
8342
          self.totalItems = iprot.readI64();
8343
        else:
8344
          iprot.skip(ftype)
8345
      elif fid == 3:
8346
        if ftype == TType.STRING:
8347
          self.brand = iprot.readString();
8348
        else:
8349
          iprot.skip(ftype)
8350
      elif fid == 4:
8351
        if ftype == TType.LIST:
8352
          self.categories = []
8353
          (_etype110, _size107) = iprot.readListBegin()
8354
          for _i111 in xrange(_size107):
8355
            _elem112 = iprot.readI64();
8356
            self.categories.append(_elem112)
8357
          iprot.readListEnd()
8358
        else:
8359
          iprot.skip(ftype)
8360
      else:
8361
        iprot.skip(ftype)
8362
      iprot.readFieldEnd()
8363
    iprot.readStructEnd()
8364
 
8365
  def write(self, oprot):
8366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8368
      return
8369
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
8370
    if self.beginIndex is not None:
8371
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
8372
      oprot.writeI64(self.beginIndex)
8373
      oprot.writeFieldEnd()
8374
    if self.totalItems is not None:
8375
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
8376
      oprot.writeI64(self.totalItems)
8377
      oprot.writeFieldEnd()
8378
    if self.brand is not None:
8379
      oprot.writeFieldBegin('brand', TType.STRING, 3)
8380
      oprot.writeString(self.brand)
8381
      oprot.writeFieldEnd()
8382
    if self.categories is not None:
8383
      oprot.writeFieldBegin('categories', TType.LIST, 4)
8384
      oprot.writeListBegin(TType.I64, len(self.categories))
8385
      for iter113 in self.categories:
8386
        oprot.writeI64(iter113)
8387
      oprot.writeListEnd()
8388
      oprot.writeFieldEnd()
8389
    oprot.writeFieldStop()
8390
    oprot.writeStructEnd()
8391
 
8392
  def validate(self):
8393
    return
8394
 
8395
 
8396
  def __repr__(self):
8397
    L = ['%s=%r' % (key, value)
8398
      for key, value in self.__dict__.iteritems()]
8399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8400
 
8401
  def __eq__(self, other):
8402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8403
 
8404
  def __ne__(self, other):
8405
    return not (self == other)
8406
 
8407
class getLatestArrivalsCatalogIds_result:
8408
  """
8409
  Attributes:
8410
   - success
8411
   - cex
8412
  """
8413
 
8414
  thrift_spec = (
8415
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8416
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8417
  )
8418
 
8419
  def __init__(self, success=None, cex=None,):
8420
    self.success = success
8421
    self.cex = cex
8422
 
8423
  def read(self, iprot):
8424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8426
      return
8427
    iprot.readStructBegin()
8428
    while True:
8429
      (fname, ftype, fid) = iprot.readFieldBegin()
8430
      if ftype == TType.STOP:
8431
        break
8432
      if fid == 0:
8433
        if ftype == TType.LIST:
8434
          self.success = []
8435
          (_etype117, _size114) = iprot.readListBegin()
8436
          for _i118 in xrange(_size114):
8437
            _elem119 = iprot.readI64();
8438
            self.success.append(_elem119)
8439
          iprot.readListEnd()
8440
        else:
8441
          iprot.skip(ftype)
8442
      elif fid == 1:
8443
        if ftype == TType.STRUCT:
8444
          self.cex = CatalogServiceException()
8445
          self.cex.read(iprot)
8446
        else:
8447
          iprot.skip(ftype)
8448
      else:
8449
        iprot.skip(ftype)
8450
      iprot.readFieldEnd()
8451
    iprot.readStructEnd()
8452
 
8453
  def write(self, oprot):
8454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8456
      return
8457
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
8458
    if self.success is not None:
8459
      oprot.writeFieldBegin('success', TType.LIST, 0)
8460
      oprot.writeListBegin(TType.I64, len(self.success))
8461
      for iter120 in self.success:
8462
        oprot.writeI64(iter120)
8463
      oprot.writeListEnd()
8464
      oprot.writeFieldEnd()
8465
    if self.cex is not None:
8466
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8467
      self.cex.write(oprot)
8468
      oprot.writeFieldEnd()
8469
    oprot.writeFieldStop()
8470
    oprot.writeStructEnd()
8471
 
8472
  def validate(self):
8473
    return
8474
 
8475
 
8476
  def __repr__(self):
8477
    L = ['%s=%r' % (key, value)
8478
      for key, value in self.__dict__.iteritems()]
8479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8480
 
8481
  def __eq__(self, other):
8482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8483
 
8484
  def __ne__(self, other):
8485
    return not (self == other)
8486
 
8487
class getLatestArrivalsCount_args:
8488
 
8489
  thrift_spec = (
8490
  )
8491
 
8492
  def read(self, iprot):
8493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8495
      return
8496
    iprot.readStructBegin()
8497
    while True:
8498
      (fname, ftype, fid) = iprot.readFieldBegin()
8499
      if ftype == TType.STOP:
8500
        break
8501
      else:
8502
        iprot.skip(ftype)
8503
      iprot.readFieldEnd()
8504
    iprot.readStructEnd()
8505
 
8506
  def write(self, oprot):
8507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8509
      return
8510
    oprot.writeStructBegin('getLatestArrivalsCount_args')
8511
    oprot.writeFieldStop()
8512
    oprot.writeStructEnd()
8513
 
8514
  def validate(self):
8515
    return
8516
 
8517
 
8518
  def __repr__(self):
8519
    L = ['%s=%r' % (key, value)
8520
      for key, value in self.__dict__.iteritems()]
8521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8522
 
8523
  def __eq__(self, other):
8524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8525
 
8526
  def __ne__(self, other):
8527
    return not (self == other)
8528
 
8529
class getLatestArrivalsCount_result:
8530
  """
8531
  Attributes:
8532
   - success
8533
   - cex
8534
  """
8535
 
8536
  thrift_spec = (
8537
    (0, TType.I64, 'success', None, None, ), # 0
8538
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8539
  )
8540
 
8541
  def __init__(self, success=None, cex=None,):
8542
    self.success = success
8543
    self.cex = cex
8544
 
8545
  def read(self, iprot):
8546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8548
      return
8549
    iprot.readStructBegin()
8550
    while True:
8551
      (fname, ftype, fid) = iprot.readFieldBegin()
8552
      if ftype == TType.STOP:
8553
        break
8554
      if fid == 0:
8555
        if ftype == TType.I64:
8556
          self.success = iprot.readI64();
8557
        else:
8558
          iprot.skip(ftype)
8559
      elif fid == 1:
8560
        if ftype == TType.STRUCT:
8561
          self.cex = CatalogServiceException()
8562
          self.cex.read(iprot)
8563
        else:
8564
          iprot.skip(ftype)
8565
      else:
8566
        iprot.skip(ftype)
8567
      iprot.readFieldEnd()
8568
    iprot.readStructEnd()
8569
 
8570
  def write(self, oprot):
8571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8573
      return
8574
    oprot.writeStructBegin('getLatestArrivalsCount_result')
8575
    if self.success is not None:
8576
      oprot.writeFieldBegin('success', TType.I64, 0)
8577
      oprot.writeI64(self.success)
8578
      oprot.writeFieldEnd()
8579
    if self.cex is not None:
8580
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8581
      self.cex.write(oprot)
8582
      oprot.writeFieldEnd()
8583
    oprot.writeFieldStop()
8584
    oprot.writeStructEnd()
8585
 
8586
  def validate(self):
8587
    return
8588
 
8589
 
8590
  def __repr__(self):
8591
    L = ['%s=%r' % (key, value)
8592
      for key, value in self.__dict__.iteritems()]
8593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8594
 
8595
  def __eq__(self, other):
8596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8597
 
8598
  def __ne__(self, other):
8599
    return not (self == other)
8600
 
8601
class generateNewEntityID_args:
8602
 
8603
  thrift_spec = (
8604
  )
8605
 
8606
  def read(self, iprot):
8607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8609
      return
8610
    iprot.readStructBegin()
8611
    while True:
8612
      (fname, ftype, fid) = iprot.readFieldBegin()
8613
      if ftype == TType.STOP:
8614
        break
8615
      else:
8616
        iprot.skip(ftype)
8617
      iprot.readFieldEnd()
8618
    iprot.readStructEnd()
8619
 
8620
  def write(self, oprot):
8621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8623
      return
8624
    oprot.writeStructBegin('generateNewEntityID_args')
8625
    oprot.writeFieldStop()
8626
    oprot.writeStructEnd()
8627
 
8628
  def validate(self):
8629
    return
8630
 
8631
 
8632
  def __repr__(self):
8633
    L = ['%s=%r' % (key, value)
8634
      for key, value in self.__dict__.iteritems()]
8635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8636
 
8637
  def __eq__(self, other):
8638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8639
 
8640
  def __ne__(self, other):
8641
    return not (self == other)
8642
 
8643
class generateNewEntityID_result:
8644
  """
8645
  Attributes:
8646
   - success
8647
  """
8648
 
8649
  thrift_spec = (
8650
    (0, TType.I64, 'success', None, None, ), # 0
8651
  )
8652
 
8653
  def __init__(self, success=None,):
8654
    self.success = success
8655
 
8656
  def read(self, iprot):
8657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8659
      return
8660
    iprot.readStructBegin()
8661
    while True:
8662
      (fname, ftype, fid) = iprot.readFieldBegin()
8663
      if ftype == TType.STOP:
8664
        break
8665
      if fid == 0:
8666
        if ftype == TType.I64:
8667
          self.success = iprot.readI64();
8668
        else:
8669
          iprot.skip(ftype)
8670
      else:
8671
        iprot.skip(ftype)
8672
      iprot.readFieldEnd()
8673
    iprot.readStructEnd()
8674
 
8675
  def write(self, oprot):
8676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8678
      return
8679
    oprot.writeStructBegin('generateNewEntityID_result')
8680
    if self.success is not None:
8681
      oprot.writeFieldBegin('success', TType.I64, 0)
8682
      oprot.writeI64(self.success)
8683
      oprot.writeFieldEnd()
8684
    oprot.writeFieldStop()
8685
    oprot.writeStructEnd()
8686
 
8687
  def validate(self):
8688
    return
8689
 
8690
 
8691
  def __repr__(self):
8692
    L = ['%s=%r' % (key, value)
8693
      for key, value in self.__dict__.iteritems()]
8694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8695
 
8696
  def __eq__(self, other):
8697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8698
 
8699
  def __ne__(self, other):
8700
    return not (self == other)
8701
 
8702
class addCategory_args:
8703
  """
8704
  Attributes:
8705
   - category
8706
  """
8707
 
8708
  thrift_spec = (
8709
    None, # 0
8710
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
8711
  )
8712
 
8713
  def __init__(self, category=None,):
8714
    self.category = category
8715
 
8716
  def read(self, iprot):
8717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8719
      return
8720
    iprot.readStructBegin()
8721
    while True:
8722
      (fname, ftype, fid) = iprot.readFieldBegin()
8723
      if ftype == TType.STOP:
8724
        break
8725
      if fid == 1:
8726
        if ftype == TType.STRUCT:
8727
          self.category = Category()
8728
          self.category.read(iprot)
8729
        else:
8730
          iprot.skip(ftype)
8731
      else:
8732
        iprot.skip(ftype)
8733
      iprot.readFieldEnd()
8734
    iprot.readStructEnd()
8735
 
8736
  def write(self, oprot):
8737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8739
      return
8740
    oprot.writeStructBegin('addCategory_args')
8741
    if self.category is not None:
8742
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8743
      self.category.write(oprot)
8744
      oprot.writeFieldEnd()
8745
    oprot.writeFieldStop()
8746
    oprot.writeStructEnd()
8747
 
8748
  def validate(self):
8749
    return
8750
 
8751
 
8752
  def __repr__(self):
8753
    L = ['%s=%r' % (key, value)
8754
      for key, value in self.__dict__.iteritems()]
8755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8756
 
8757
  def __eq__(self, other):
8758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8759
 
8760
  def __ne__(self, other):
8761
    return not (self == other)
8762
 
8763
class addCategory_result:
8764
  """
8765
  Attributes:
8766
   - success
8767
  """
8768
 
8769
  thrift_spec = (
8770
    (0, TType.BOOL, 'success', None, None, ), # 0
8771
  )
8772
 
8773
  def __init__(self, success=None,):
8774
    self.success = success
8775
 
8776
  def read(self, iprot):
8777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8779
      return
8780
    iprot.readStructBegin()
8781
    while True:
8782
      (fname, ftype, fid) = iprot.readFieldBegin()
8783
      if ftype == TType.STOP:
8784
        break
8785
      if fid == 0:
8786
        if ftype == TType.BOOL:
8787
          self.success = iprot.readBool();
8788
        else:
8789
          iprot.skip(ftype)
8790
      else:
8791
        iprot.skip(ftype)
8792
      iprot.readFieldEnd()
8793
    iprot.readStructEnd()
8794
 
8795
  def write(self, oprot):
8796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8798
      return
8799
    oprot.writeStructBegin('addCategory_result')
8800
    if self.success is not None:
8801
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8802
      oprot.writeBool(self.success)
8803
      oprot.writeFieldEnd()
8804
    oprot.writeFieldStop()
8805
    oprot.writeStructEnd()
8806
 
8807
  def validate(self):
8808
    return
8809
 
8810
 
8811
  def __repr__(self):
8812
    L = ['%s=%r' % (key, value)
8813
      for key, value in self.__dict__.iteritems()]
8814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8815
 
8816
  def __eq__(self, other):
8817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8818
 
8819
  def __ne__(self, other):
8820
    return not (self == other)
8821
 
8822
class getCategory_args:
8823
  """
8824
  Attributes:
8825
   - id
8826
  """
8827
 
8828
  thrift_spec = (
8829
    None, # 0
8830
    (1, TType.I64, 'id', None, None, ), # 1
8831
  )
8832
 
8833
  def __init__(self, id=None,):
8834
    self.id = id
8835
 
8836
  def read(self, iprot):
8837
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8838
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8839
      return
8840
    iprot.readStructBegin()
8841
    while True:
8842
      (fname, ftype, fid) = iprot.readFieldBegin()
8843
      if ftype == TType.STOP:
8844
        break
8845
      if fid == 1:
8846
        if ftype == TType.I64:
8847
          self.id = iprot.readI64();
8848
        else:
8849
          iprot.skip(ftype)
8850
      else:
8851
        iprot.skip(ftype)
8852
      iprot.readFieldEnd()
8853
    iprot.readStructEnd()
8854
 
8855
  def write(self, oprot):
8856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8858
      return
8859
    oprot.writeStructBegin('getCategory_args')
8860
    if self.id is not None:
8861
      oprot.writeFieldBegin('id', TType.I64, 1)
8862
      oprot.writeI64(self.id)
8863
      oprot.writeFieldEnd()
8864
    oprot.writeFieldStop()
8865
    oprot.writeStructEnd()
8866
 
8867
  def validate(self):
8868
    return
8869
 
8870
 
8871
  def __repr__(self):
8872
    L = ['%s=%r' % (key, value)
8873
      for key, value in self.__dict__.iteritems()]
8874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8875
 
8876
  def __eq__(self, other):
8877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8878
 
8879
  def __ne__(self, other):
8880
    return not (self == other)
8881
 
8882
class getCategory_result:
8883
  """
8884
  Attributes:
8885
   - success
8886
  """
8887
 
8888
  thrift_spec = (
8889
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8890
  )
8891
 
8892
  def __init__(self, success=None,):
8893
    self.success = success
8894
 
8895
  def read(self, iprot):
8896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8898
      return
8899
    iprot.readStructBegin()
8900
    while True:
8901
      (fname, ftype, fid) = iprot.readFieldBegin()
8902
      if ftype == TType.STOP:
8903
        break
8904
      if fid == 0:
8905
        if ftype == TType.STRUCT:
8906
          self.success = Category()
8907
          self.success.read(iprot)
8908
        else:
8909
          iprot.skip(ftype)
8910
      else:
8911
        iprot.skip(ftype)
8912
      iprot.readFieldEnd()
8913
    iprot.readStructEnd()
8914
 
8915
  def write(self, oprot):
8916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8918
      return
8919
    oprot.writeStructBegin('getCategory_result')
8920
    if self.success is not None:
8921
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8922
      self.success.write(oprot)
8923
      oprot.writeFieldEnd()
8924
    oprot.writeFieldStop()
8925
    oprot.writeStructEnd()
8926
 
8927
  def validate(self):
8928
    return
8929
 
8930
 
8931
  def __repr__(self):
8932
    L = ['%s=%r' % (key, value)
8933
      for key, value in self.__dict__.iteritems()]
8934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8935
 
8936
  def __eq__(self, other):
8937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8938
 
8939
  def __ne__(self, other):
8940
    return not (self == other)
8941
 
8942
class getAllCategories_args:
8943
 
8944
  thrift_spec = (
8945
  )
8946
 
8947
  def read(self, iprot):
8948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8950
      return
8951
    iprot.readStructBegin()
8952
    while True:
8953
      (fname, ftype, fid) = iprot.readFieldBegin()
8954
      if ftype == TType.STOP:
8955
        break
8956
      else:
8957
        iprot.skip(ftype)
8958
      iprot.readFieldEnd()
8959
    iprot.readStructEnd()
8960
 
8961
  def write(self, oprot):
8962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8964
      return
8965
    oprot.writeStructBegin('getAllCategories_args')
8966
    oprot.writeFieldStop()
8967
    oprot.writeStructEnd()
8968
 
8969
  def validate(self):
8970
    return
8971
 
8972
 
8973
  def __repr__(self):
8974
    L = ['%s=%r' % (key, value)
8975
      for key, value in self.__dict__.iteritems()]
8976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8977
 
8978
  def __eq__(self, other):
8979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8980
 
8981
  def __ne__(self, other):
8982
    return not (self == other)
8983
 
8984
class getAllCategories_result:
8985
  """
8986
  Attributes:
8987
   - success
8988
  """
8989
 
8990
  thrift_spec = (
8991
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8992
  )
8993
 
8994
  def __init__(self, success=None,):
8995
    self.success = success
8996
 
8997
  def read(self, iprot):
8998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9000
      return
9001
    iprot.readStructBegin()
9002
    while True:
9003
      (fname, ftype, fid) = iprot.readFieldBegin()
9004
      if ftype == TType.STOP:
9005
        break
9006
      if fid == 0:
9007
        if ftype == TType.LIST:
9008
          self.success = []
9009
          (_etype124, _size121) = iprot.readListBegin()
9010
          for _i125 in xrange(_size121):
9011
            _elem126 = Category()
9012
            _elem126.read(iprot)
9013
            self.success.append(_elem126)
9014
          iprot.readListEnd()
9015
        else:
9016
          iprot.skip(ftype)
9017
      else:
9018
        iprot.skip(ftype)
9019
      iprot.readFieldEnd()
9020
    iprot.readStructEnd()
9021
 
9022
  def write(self, oprot):
9023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9025
      return
9026
    oprot.writeStructBegin('getAllCategories_result')
9027
    if self.success is not None:
9028
      oprot.writeFieldBegin('success', TType.LIST, 0)
9029
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9030
      for iter127 in self.success:
9031
        iter127.write(oprot)
9032
      oprot.writeListEnd()
9033
      oprot.writeFieldEnd()
9034
    oprot.writeFieldStop()
9035
    oprot.writeStructEnd()
9036
 
9037
  def validate(self):
9038
    return
9039
 
9040
 
9041
  def __repr__(self):
9042
    L = ['%s=%r' % (key, value)
9043
      for key, value in self.__dict__.iteritems()]
9044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9045
 
9046
  def __eq__(self, other):
9047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9048
 
9049
  def __ne__(self, other):
9050
    return not (self == other)
9051
 
9052
class getAllSimilarItems_args:
9053
  """
9054
  Attributes:
9055
   - itemId
9056
  """
9057
 
9058
  thrift_spec = (
9059
    None, # 0
9060
    (1, TType.I64, 'itemId', None, None, ), # 1
9061
  )
9062
 
9063
  def __init__(self, itemId=None,):
9064
    self.itemId = itemId
9065
 
9066
  def read(self, iprot):
9067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9069
      return
9070
    iprot.readStructBegin()
9071
    while True:
9072
      (fname, ftype, fid) = iprot.readFieldBegin()
9073
      if ftype == TType.STOP:
9074
        break
9075
      if fid == 1:
9076
        if ftype == TType.I64:
9077
          self.itemId = iprot.readI64();
9078
        else:
9079
          iprot.skip(ftype)
9080
      else:
9081
        iprot.skip(ftype)
9082
      iprot.readFieldEnd()
9083
    iprot.readStructEnd()
9084
 
9085
  def write(self, oprot):
9086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9088
      return
9089
    oprot.writeStructBegin('getAllSimilarItems_args')
9090
    if self.itemId is not None:
9091
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9092
      oprot.writeI64(self.itemId)
9093
      oprot.writeFieldEnd()
9094
    oprot.writeFieldStop()
9095
    oprot.writeStructEnd()
9096
 
9097
  def validate(self):
9098
    return
9099
 
9100
 
9101
  def __repr__(self):
9102
    L = ['%s=%r' % (key, value)
9103
      for key, value in self.__dict__.iteritems()]
9104
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9105
 
9106
  def __eq__(self, other):
9107
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9108
 
9109
  def __ne__(self, other):
9110
    return not (self == other)
9111
 
9112
class getAllSimilarItems_result:
9113
  """
9114
  Attributes:
9115
   - success
9116
  """
9117
 
9118
  thrift_spec = (
9119
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9120
  )
9121
 
9122
  def __init__(self, success=None,):
9123
    self.success = success
9124
 
9125
  def read(self, iprot):
9126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9128
      return
9129
    iprot.readStructBegin()
9130
    while True:
9131
      (fname, ftype, fid) = iprot.readFieldBegin()
9132
      if ftype == TType.STOP:
9133
        break
9134
      if fid == 0:
9135
        if ftype == TType.LIST:
9136
          self.success = []
9137
          (_etype131, _size128) = iprot.readListBegin()
9138
          for _i132 in xrange(_size128):
9139
            _elem133 = Item()
9140
            _elem133.read(iprot)
9141
            self.success.append(_elem133)
9142
          iprot.readListEnd()
9143
        else:
9144
          iprot.skip(ftype)
9145
      else:
9146
        iprot.skip(ftype)
9147
      iprot.readFieldEnd()
9148
    iprot.readStructEnd()
9149
 
9150
  def write(self, oprot):
9151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9153
      return
9154
    oprot.writeStructBegin('getAllSimilarItems_result')
9155
    if self.success is not None:
9156
      oprot.writeFieldBegin('success', TType.LIST, 0)
9157
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9158
      for iter134 in self.success:
9159
        iter134.write(oprot)
9160
      oprot.writeListEnd()
9161
      oprot.writeFieldEnd()
9162
    oprot.writeFieldStop()
9163
    oprot.writeStructEnd()
9164
 
9165
  def validate(self):
9166
    return
9167
 
9168
 
9169
  def __repr__(self):
9170
    L = ['%s=%r' % (key, value)
9171
      for key, value in self.__dict__.iteritems()]
9172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9173
 
9174
  def __eq__(self, other):
9175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9176
 
9177
  def __ne__(self, other):
9178
    return not (self == other)
9179
 
9180
class addSimilarItem_args:
9181
  """
9182
  Attributes:
9183
   - itemId
9184
   - catalogItemId
9185
  """
9186
 
9187
  thrift_spec = (
9188
    None, # 0
9189
    (1, TType.I64, 'itemId', None, None, ), # 1
9190
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9191
  )
9192
 
9193
  def __init__(self, itemId=None, catalogItemId=None,):
9194
    self.itemId = itemId
9195
    self.catalogItemId = catalogItemId
9196
 
9197
  def read(self, iprot):
9198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9200
      return
9201
    iprot.readStructBegin()
9202
    while True:
9203
      (fname, ftype, fid) = iprot.readFieldBegin()
9204
      if ftype == TType.STOP:
9205
        break
9206
      if fid == 1:
9207
        if ftype == TType.I64:
9208
          self.itemId = iprot.readI64();
9209
        else:
9210
          iprot.skip(ftype)
9211
      elif fid == 2:
9212
        if ftype == TType.I64:
9213
          self.catalogItemId = iprot.readI64();
9214
        else:
9215
          iprot.skip(ftype)
9216
      else:
9217
        iprot.skip(ftype)
9218
      iprot.readFieldEnd()
9219
    iprot.readStructEnd()
9220
 
9221
  def write(self, oprot):
9222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9224
      return
9225
    oprot.writeStructBegin('addSimilarItem_args')
9226
    if self.itemId is not None:
9227
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9228
      oprot.writeI64(self.itemId)
9229
      oprot.writeFieldEnd()
9230
    if self.catalogItemId is not None:
9231
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9232
      oprot.writeI64(self.catalogItemId)
9233
      oprot.writeFieldEnd()
9234
    oprot.writeFieldStop()
9235
    oprot.writeStructEnd()
9236
 
9237
  def validate(self):
9238
    return
9239
 
9240
 
9241
  def __repr__(self):
9242
    L = ['%s=%r' % (key, value)
9243
      for key, value in self.__dict__.iteritems()]
9244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9245
 
9246
  def __eq__(self, other):
9247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9248
 
9249
  def __ne__(self, other):
9250
    return not (self == other)
9251
 
9252
class addSimilarItem_result:
9253
  """
9254
  Attributes:
9255
   - success
9256
   - cex
9257
  """
9258
 
9259
  thrift_spec = (
9260
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
9261
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9262
  )
9263
 
9264
  def __init__(self, success=None, cex=None,):
9265
    self.success = success
9266
    self.cex = cex
9267
 
9268
  def read(self, iprot):
9269
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9270
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9271
      return
9272
    iprot.readStructBegin()
9273
    while True:
9274
      (fname, ftype, fid) = iprot.readFieldBegin()
9275
      if ftype == TType.STOP:
9276
        break
9277
      if fid == 0:
9278
        if ftype == TType.STRUCT:
9279
          self.success = Item()
9280
          self.success.read(iprot)
9281
        else:
9282
          iprot.skip(ftype)
9283
      elif fid == 1:
9284
        if ftype == TType.STRUCT:
9285
          self.cex = CatalogServiceException()
9286
          self.cex.read(iprot)
9287
        else:
9288
          iprot.skip(ftype)
9289
      else:
9290
        iprot.skip(ftype)
9291
      iprot.readFieldEnd()
9292
    iprot.readStructEnd()
9293
 
9294
  def write(self, oprot):
9295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9297
      return
9298
    oprot.writeStructBegin('addSimilarItem_result')
9299
    if self.success is not None:
9300
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9301
      self.success.write(oprot)
9302
      oprot.writeFieldEnd()
9303
    if self.cex is not None:
9304
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9305
      self.cex.write(oprot)
9306
      oprot.writeFieldEnd()
9307
    oprot.writeFieldStop()
9308
    oprot.writeStructEnd()
9309
 
9310
  def validate(self):
9311
    return
9312
 
9313
 
9314
  def __repr__(self):
9315
    L = ['%s=%r' % (key, value)
9316
      for key, value in self.__dict__.iteritems()]
9317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9318
 
9319
  def __eq__(self, other):
9320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9321
 
9322
  def __ne__(self, other):
9323
    return not (self == other)
9324
 
6512 kshitij.so 9325
class addTag_args:
9326
  """
9327
  Attributes:
9328
   - displayName
9329
   - itemId
9330
  """
9331
 
9332
  thrift_spec = (
9333
    None, # 0
9334
    (1, TType.STRING, 'displayName', None, None, ), # 1
9335
    (2, TType.I64, 'itemId', None, None, ), # 2
9336
  )
9337
 
9338
  def __init__(self, displayName=None, itemId=None,):
9339
    self.displayName = displayName
9340
    self.itemId = itemId
9341
 
9342
  def read(self, iprot):
9343
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9344
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9345
      return
9346
    iprot.readStructBegin()
9347
    while True:
9348
      (fname, ftype, fid) = iprot.readFieldBegin()
9349
      if ftype == TType.STOP:
9350
        break
9351
      if fid == 1:
9352
        if ftype == TType.STRING:
9353
          self.displayName = iprot.readString();
9354
        else:
9355
          iprot.skip(ftype)
9356
      elif fid == 2:
9357
        if ftype == TType.I64:
9358
          self.itemId = iprot.readI64();
9359
        else:
9360
          iprot.skip(ftype)
9361
      else:
9362
        iprot.skip(ftype)
9363
      iprot.readFieldEnd()
9364
    iprot.readStructEnd()
9365
 
9366
  def write(self, oprot):
9367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9369
      return
9370
    oprot.writeStructBegin('addTag_args')
9371
    if self.displayName is not None:
9372
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9373
      oprot.writeString(self.displayName)
9374
      oprot.writeFieldEnd()
9375
    if self.itemId is not None:
9376
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9377
      oprot.writeI64(self.itemId)
9378
      oprot.writeFieldEnd()
9379
    oprot.writeFieldStop()
9380
    oprot.writeStructEnd()
9381
 
9382
  def validate(self):
9383
    return
9384
 
9385
 
9386
  def __repr__(self):
9387
    L = ['%s=%r' % (key, value)
9388
      for key, value in self.__dict__.iteritems()]
9389
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9390
 
9391
  def __eq__(self, other):
9392
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9393
 
9394
  def __ne__(self, other):
9395
    return not (self == other)
9396
 
9397
class addTag_result:
9398
  """
9399
  Attributes:
9400
   - success
9401
  """
9402
 
9403
  thrift_spec = (
9404
    (0, TType.BOOL, 'success', None, None, ), # 0
9405
  )
9406
 
9407
  def __init__(self, success=None,):
9408
    self.success = success
9409
 
9410
  def read(self, iprot):
9411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9413
      return
9414
    iprot.readStructBegin()
9415
    while True:
9416
      (fname, ftype, fid) = iprot.readFieldBegin()
9417
      if ftype == TType.STOP:
9418
        break
9419
      if fid == 0:
9420
        if ftype == TType.BOOL:
9421
          self.success = iprot.readBool();
9422
        else:
9423
          iprot.skip(ftype)
9424
      else:
9425
        iprot.skip(ftype)
9426
      iprot.readFieldEnd()
9427
    iprot.readStructEnd()
9428
 
9429
  def write(self, oprot):
9430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9432
      return
9433
    oprot.writeStructBegin('addTag_result')
9434
    if self.success is not None:
9435
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9436
      oprot.writeBool(self.success)
9437
      oprot.writeFieldEnd()
9438
    oprot.writeFieldStop()
9439
    oprot.writeStructEnd()
9440
 
9441
  def validate(self):
9442
    return
9443
 
9444
 
9445
  def __repr__(self):
9446
    L = ['%s=%r' % (key, value)
9447
      for key, value in self.__dict__.iteritems()]
9448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9449
 
9450
  def __eq__(self, other):
9451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9452
 
9453
  def __ne__(self, other):
9454
    return not (self == other)
9455
 
9456
class deleteEntityTag_args:
9457
  """
9458
  Attributes:
9459
   - displayName
9460
   - itemId
9461
  """
9462
 
9463
  thrift_spec = (
9464
    None, # 0
9465
    (1, TType.STRING, 'displayName', None, None, ), # 1
9466
    (2, TType.I64, 'itemId', None, None, ), # 2
9467
  )
9468
 
9469
  def __init__(self, displayName=None, itemId=None,):
9470
    self.displayName = displayName
9471
    self.itemId = itemId
9472
 
9473
  def read(self, iprot):
9474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9476
      return
9477
    iprot.readStructBegin()
9478
    while True:
9479
      (fname, ftype, fid) = iprot.readFieldBegin()
9480
      if ftype == TType.STOP:
9481
        break
9482
      if fid == 1:
9483
        if ftype == TType.STRING:
9484
          self.displayName = iprot.readString();
9485
        else:
9486
          iprot.skip(ftype)
9487
      elif fid == 2:
9488
        if ftype == TType.I64:
9489
          self.itemId = iprot.readI64();
9490
        else:
9491
          iprot.skip(ftype)
9492
      else:
9493
        iprot.skip(ftype)
9494
      iprot.readFieldEnd()
9495
    iprot.readStructEnd()
9496
 
9497
  def write(self, oprot):
9498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9500
      return
9501
    oprot.writeStructBegin('deleteEntityTag_args')
9502
    if self.displayName is not None:
9503
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9504
      oprot.writeString(self.displayName)
9505
      oprot.writeFieldEnd()
9506
    if self.itemId is not None:
9507
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9508
      oprot.writeI64(self.itemId)
9509
      oprot.writeFieldEnd()
9510
    oprot.writeFieldStop()
9511
    oprot.writeStructEnd()
9512
 
9513
  def validate(self):
9514
    return
9515
 
9516
 
9517
  def __repr__(self):
9518
    L = ['%s=%r' % (key, value)
9519
      for key, value in self.__dict__.iteritems()]
9520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9521
 
9522
  def __eq__(self, other):
9523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9524
 
9525
  def __ne__(self, other):
9526
    return not (self == other)
9527
 
9528
class deleteEntityTag_result:
9529
  """
9530
  Attributes:
9531
   - success
9532
  """
9533
 
9534
  thrift_spec = (
9535
    (0, TType.BOOL, 'success', None, None, ), # 0
9536
  )
9537
 
9538
  def __init__(self, success=None,):
9539
    self.success = success
9540
 
9541
  def read(self, iprot):
9542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9544
      return
9545
    iprot.readStructBegin()
9546
    while True:
9547
      (fname, ftype, fid) = iprot.readFieldBegin()
9548
      if ftype == TType.STOP:
9549
        break
9550
      if fid == 0:
9551
        if ftype == TType.BOOL:
9552
          self.success = iprot.readBool();
9553
        else:
9554
          iprot.skip(ftype)
9555
      else:
9556
        iprot.skip(ftype)
9557
      iprot.readFieldEnd()
9558
    iprot.readStructEnd()
9559
 
9560
  def write(self, oprot):
9561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9563
      return
9564
    oprot.writeStructBegin('deleteEntityTag_result')
9565
    if self.success is not None:
9566
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9567
      oprot.writeBool(self.success)
9568
      oprot.writeFieldEnd()
9569
    oprot.writeFieldStop()
9570
    oprot.writeStructEnd()
9571
 
9572
  def validate(self):
9573
    return
9574
 
9575
 
9576
  def __repr__(self):
9577
    L = ['%s=%r' % (key, value)
9578
      for key, value in self.__dict__.iteritems()]
9579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9580
 
9581
  def __eq__(self, other):
9582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9583
 
9584
  def __ne__(self, other):
9585
    return not (self == other)
9586
 
9587
class deleteTag_args:
9588
  """
9589
  Attributes:
9590
   - displayName
9591
  """
9592
 
9593
  thrift_spec = (
9594
    None, # 0
9595
    (1, TType.STRING, 'displayName', None, None, ), # 1
9596
  )
9597
 
9598
  def __init__(self, displayName=None,):
9599
    self.displayName = displayName
9600
 
9601
  def read(self, iprot):
9602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9604
      return
9605
    iprot.readStructBegin()
9606
    while True:
9607
      (fname, ftype, fid) = iprot.readFieldBegin()
9608
      if ftype == TType.STOP:
9609
        break
9610
      if fid == 1:
9611
        if ftype == TType.STRING:
9612
          self.displayName = iprot.readString();
9613
        else:
9614
          iprot.skip(ftype)
9615
      else:
9616
        iprot.skip(ftype)
9617
      iprot.readFieldEnd()
9618
    iprot.readStructEnd()
9619
 
9620
  def write(self, oprot):
9621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9623
      return
9624
    oprot.writeStructBegin('deleteTag_args')
9625
    if self.displayName is not None:
9626
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9627
      oprot.writeString(self.displayName)
9628
      oprot.writeFieldEnd()
9629
    oprot.writeFieldStop()
9630
    oprot.writeStructEnd()
9631
 
9632
  def validate(self):
9633
    return
9634
 
9635
 
9636
  def __repr__(self):
9637
    L = ['%s=%r' % (key, value)
9638
      for key, value in self.__dict__.iteritems()]
9639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9640
 
9641
  def __eq__(self, other):
9642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9643
 
9644
  def __ne__(self, other):
9645
    return not (self == other)
9646
 
9647
class deleteTag_result:
9648
  """
9649
  Attributes:
9650
   - success
9651
  """
9652
 
9653
  thrift_spec = (
9654
    (0, TType.BOOL, 'success', None, None, ), # 0
9655
  )
9656
 
9657
  def __init__(self, success=None,):
9658
    self.success = success
9659
 
9660
  def read(self, iprot):
9661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9663
      return
9664
    iprot.readStructBegin()
9665
    while True:
9666
      (fname, ftype, fid) = iprot.readFieldBegin()
9667
      if ftype == TType.STOP:
9668
        break
9669
      if fid == 0:
9670
        if ftype == TType.BOOL:
9671
          self.success = iprot.readBool();
9672
        else:
9673
          iprot.skip(ftype)
9674
      else:
9675
        iprot.skip(ftype)
9676
      iprot.readFieldEnd()
9677
    iprot.readStructEnd()
9678
 
9679
  def write(self, oprot):
9680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9682
      return
9683
    oprot.writeStructBegin('deleteTag_result')
9684
    if self.success is not None:
9685
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9686
      oprot.writeBool(self.success)
9687
      oprot.writeFieldEnd()
9688
    oprot.writeFieldStop()
9689
    oprot.writeStructEnd()
9690
 
9691
  def validate(self):
9692
    return
9693
 
9694
 
9695
  def __repr__(self):
9696
    L = ['%s=%r' % (key, value)
9697
      for key, value in self.__dict__.iteritems()]
9698
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9699
 
9700
  def __eq__(self, other):
9701
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9702
 
9703
  def __ne__(self, other):
9704
    return not (self == other)
9705
 
9706
class getAllTags_args:
9707
 
9708
  thrift_spec = (
9709
  )
9710
 
9711
  def read(self, iprot):
9712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9714
      return
9715
    iprot.readStructBegin()
9716
    while True:
9717
      (fname, ftype, fid) = iprot.readFieldBegin()
9718
      if ftype == TType.STOP:
9719
        break
9720
      else:
9721
        iprot.skip(ftype)
9722
      iprot.readFieldEnd()
9723
    iprot.readStructEnd()
9724
 
9725
  def write(self, oprot):
9726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9728
      return
9729
    oprot.writeStructBegin('getAllTags_args')
9730
    oprot.writeFieldStop()
9731
    oprot.writeStructEnd()
9732
 
9733
  def validate(self):
9734
    return
9735
 
9736
 
9737
  def __repr__(self):
9738
    L = ['%s=%r' % (key, value)
9739
      for key, value in self.__dict__.iteritems()]
9740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9741
 
9742
  def __eq__(self, other):
9743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9744
 
9745
  def __ne__(self, other):
9746
    return not (self == other)
9747
 
9748
class getAllTags_result:
9749
  """
9750
  Attributes:
9751
   - success
9752
  """
9753
 
9754
  thrift_spec = (
9755
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9756
  )
9757
 
9758
  def __init__(self, success=None,):
9759
    self.success = success
9760
 
9761
  def read(self, iprot):
9762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9764
      return
9765
    iprot.readStructBegin()
9766
    while True:
9767
      (fname, ftype, fid) = iprot.readFieldBegin()
9768
      if ftype == TType.STOP:
9769
        break
9770
      if fid == 0:
9771
        if ftype == TType.LIST:
9772
          self.success = []
9773
          (_etype138, _size135) = iprot.readListBegin()
9774
          for _i139 in xrange(_size135):
9775
            _elem140 = iprot.readString();
9776
            self.success.append(_elem140)
9777
          iprot.readListEnd()
9778
        else:
9779
          iprot.skip(ftype)
9780
      else:
9781
        iprot.skip(ftype)
9782
      iprot.readFieldEnd()
9783
    iprot.readStructEnd()
9784
 
9785
  def write(self, oprot):
9786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9788
      return
9789
    oprot.writeStructBegin('getAllTags_result')
9790
    if self.success is not None:
9791
      oprot.writeFieldBegin('success', TType.LIST, 0)
9792
      oprot.writeListBegin(TType.STRING, len(self.success))
9793
      for iter141 in self.success:
9794
        oprot.writeString(iter141)
9795
      oprot.writeListEnd()
9796
      oprot.writeFieldEnd()
9797
    oprot.writeFieldStop()
9798
    oprot.writeStructEnd()
9799
 
9800
  def validate(self):
9801
    return
9802
 
9803
 
9804
  def __repr__(self):
9805
    L = ['%s=%r' % (key, value)
9806
      for key, value in self.__dict__.iteritems()]
9807
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9808
 
9809
  def __eq__(self, other):
9810
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9811
 
9812
  def __ne__(self, other):
9813
    return not (self == other)
9814
 
9815
class getAllEntitiesByTagName_args:
9816
  """
9817
  Attributes:
9818
   - displayName
9819
  """
9820
 
9821
  thrift_spec = (
9822
    None, # 0
9823
    (1, TType.STRING, 'displayName', None, None, ), # 1
9824
  )
9825
 
9826
  def __init__(self, displayName=None,):
9827
    self.displayName = displayName
9828
 
9829
  def read(self, iprot):
9830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9832
      return
9833
    iprot.readStructBegin()
9834
    while True:
9835
      (fname, ftype, fid) = iprot.readFieldBegin()
9836
      if ftype == TType.STOP:
9837
        break
9838
      if fid == 1:
9839
        if ftype == TType.STRING:
9840
          self.displayName = iprot.readString();
9841
        else:
9842
          iprot.skip(ftype)
9843
      else:
9844
        iprot.skip(ftype)
9845
      iprot.readFieldEnd()
9846
    iprot.readStructEnd()
9847
 
9848
  def write(self, oprot):
9849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9851
      return
9852
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9853
    if self.displayName is not None:
9854
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9855
      oprot.writeString(self.displayName)
9856
      oprot.writeFieldEnd()
9857
    oprot.writeFieldStop()
9858
    oprot.writeStructEnd()
9859
 
9860
  def validate(self):
9861
    return
9862
 
9863
 
9864
  def __repr__(self):
9865
    L = ['%s=%r' % (key, value)
9866
      for key, value in self.__dict__.iteritems()]
9867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9868
 
9869
  def __eq__(self, other):
9870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9871
 
9872
  def __ne__(self, other):
9873
    return not (self == other)
9874
 
9875
class getAllEntitiesByTagName_result:
9876
  """
9877
  Attributes:
9878
   - success
9879
  """
9880
 
9881
  thrift_spec = (
9882
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9883
  )
9884
 
9885
  def __init__(self, success=None,):
9886
    self.success = success
9887
 
9888
  def read(self, iprot):
9889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9891
      return
9892
    iprot.readStructBegin()
9893
    while True:
9894
      (fname, ftype, fid) = iprot.readFieldBegin()
9895
      if ftype == TType.STOP:
9896
        break
9897
      if fid == 0:
9898
        if ftype == TType.LIST:
9899
          self.success = []
9900
          (_etype145, _size142) = iprot.readListBegin()
9901
          for _i146 in xrange(_size142):
9902
            _elem147 = iprot.readI64();
9903
            self.success.append(_elem147)
9904
          iprot.readListEnd()
9905
        else:
9906
          iprot.skip(ftype)
9907
      else:
9908
        iprot.skip(ftype)
9909
      iprot.readFieldEnd()
9910
    iprot.readStructEnd()
9911
 
9912
  def write(self, oprot):
9913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9915
      return
9916
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9917
    if self.success is not None:
9918
      oprot.writeFieldBegin('success', TType.LIST, 0)
9919
      oprot.writeListBegin(TType.I64, len(self.success))
9920
      for iter148 in self.success:
9921
        oprot.writeI64(iter148)
9922
      oprot.writeListEnd()
9923
      oprot.writeFieldEnd()
9924
    oprot.writeFieldStop()
9925
    oprot.writeStructEnd()
9926
 
9927
  def validate(self):
9928
    return
9929
 
9930
 
9931
  def __repr__(self):
9932
    L = ['%s=%r' % (key, value)
9933
      for key, value in self.__dict__.iteritems()]
9934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9935
 
9936
  def __eq__(self, other):
9937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9938
 
9939
  def __ne__(self, other):
9940
    return not (self == other)
9941
 
6845 amit.gupta 9942
class getAllEntityTags_args:
9943
 
9944
  thrift_spec = (
9945
  )
9946
 
9947
  def read(self, iprot):
9948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9950
      return
9951
    iprot.readStructBegin()
9952
    while True:
9953
      (fname, ftype, fid) = iprot.readFieldBegin()
9954
      if ftype == TType.STOP:
9955
        break
9956
      else:
9957
        iprot.skip(ftype)
9958
      iprot.readFieldEnd()
9959
    iprot.readStructEnd()
9960
 
9961
  def write(self, oprot):
9962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9964
      return
9965
    oprot.writeStructBegin('getAllEntityTags_args')
9966
    oprot.writeFieldStop()
9967
    oprot.writeStructEnd()
9968
 
9969
  def validate(self):
9970
    return
9971
 
9972
 
9973
  def __repr__(self):
9974
    L = ['%s=%r' % (key, value)
9975
      for key, value in self.__dict__.iteritems()]
9976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9977
 
9978
  def __eq__(self, other):
9979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9980
 
9981
  def __ne__(self, other):
9982
    return not (self == other)
9983
 
9984
class getAllEntityTags_result:
9985
  """
9986
  Attributes:
9987
   - success
9988
  """
9989
 
9990
  thrift_spec = (
9991
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
9992
  )
9993
 
9994
  def __init__(self, success=None,):
9995
    self.success = success
9996
 
9997
  def read(self, iprot):
9998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10000
      return
10001
    iprot.readStructBegin()
10002
    while True:
10003
      (fname, ftype, fid) = iprot.readFieldBegin()
10004
      if ftype == TType.STOP:
10005
        break
10006
      if fid == 0:
10007
        if ftype == TType.MAP:
10008
          self.success = {}
10009
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
10010
          for _i153 in xrange(_size149):
10011
            _key154 = iprot.readI64();
10012
            _val155 = []
10013
            (_etype159, _size156) = iprot.readListBegin()
10014
            for _i160 in xrange(_size156):
10015
              _elem161 = iprot.readString();
10016
              _val155.append(_elem161)
10017
            iprot.readListEnd()
10018
            self.success[_key154] = _val155
10019
          iprot.readMapEnd()
10020
        else:
10021
          iprot.skip(ftype)
10022
      else:
10023
        iprot.skip(ftype)
10024
      iprot.readFieldEnd()
10025
    iprot.readStructEnd()
10026
 
10027
  def write(self, oprot):
10028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10030
      return
10031
    oprot.writeStructBegin('getAllEntityTags_result')
10032
    if self.success is not None:
10033
      oprot.writeFieldBegin('success', TType.MAP, 0)
10034
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
10035
      for kiter162,viter163 in self.success.items():
10036
        oprot.writeI64(kiter162)
10037
        oprot.writeListBegin(TType.STRING, len(viter163))
10038
        for iter164 in viter163:
10039
          oprot.writeString(iter164)
10040
        oprot.writeListEnd()
10041
      oprot.writeMapEnd()
10042
      oprot.writeFieldEnd()
10043
    oprot.writeFieldStop()
10044
    oprot.writeStructEnd()
10045
 
10046
  def validate(self):
10047
    return
10048
 
10049
 
10050
  def __repr__(self):
10051
    L = ['%s=%r' % (key, value)
10052
      for key, value in self.__dict__.iteritems()]
10053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10054
 
10055
  def __eq__(self, other):
10056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10057
 
10058
  def __ne__(self, other):
10059
    return not (self == other)
10060
 
6850 kshitij.so 10061
class addBanner_args:
10062
  """
10063
  Attributes:
10064
   - bannerName
10065
   - imageName
10066
   - link
10067
   - priority
10068
   - isActive
10069
   - hasMap
10070
  """
10071
 
10072
  thrift_spec = (
10073
    None, # 0
10074
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10075
    (2, TType.STRING, 'imageName', None, None, ), # 2
10076
    (3, TType.STRING, 'link', None, None, ), # 3
10077
    (4, TType.I64, 'priority', None, None, ), # 4
10078
    (5, TType.BOOL, 'isActive', None, None, ), # 5
10079
    (6, TType.BOOL, 'hasMap', None, None, ), # 6
10080
  )
10081
 
10082
  def __init__(self, bannerName=None, imageName=None, link=None, priority=None, isActive=None, hasMap=None,):
10083
    self.bannerName = bannerName
10084
    self.imageName = imageName
10085
    self.link = link
10086
    self.priority = priority
10087
    self.isActive = isActive
10088
    self.hasMap = hasMap
10089
 
10090
  def read(self, iprot):
10091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10093
      return
10094
    iprot.readStructBegin()
10095
    while True:
10096
      (fname, ftype, fid) = iprot.readFieldBegin()
10097
      if ftype == TType.STOP:
10098
        break
10099
      if fid == 1:
10100
        if ftype == TType.STRING:
10101
          self.bannerName = iprot.readString();
10102
        else:
10103
          iprot.skip(ftype)
10104
      elif fid == 2:
10105
        if ftype == TType.STRING:
10106
          self.imageName = iprot.readString();
10107
        else:
10108
          iprot.skip(ftype)
10109
      elif fid == 3:
10110
        if ftype == TType.STRING:
10111
          self.link = iprot.readString();
10112
        else:
10113
          iprot.skip(ftype)
10114
      elif fid == 4:
10115
        if ftype == TType.I64:
10116
          self.priority = iprot.readI64();
10117
        else:
10118
          iprot.skip(ftype)
10119
      elif fid == 5:
10120
        if ftype == TType.BOOL:
10121
          self.isActive = iprot.readBool();
10122
        else:
10123
          iprot.skip(ftype)
10124
      elif fid == 6:
10125
        if ftype == TType.BOOL:
10126
          self.hasMap = iprot.readBool();
10127
        else:
10128
          iprot.skip(ftype)
10129
      else:
10130
        iprot.skip(ftype)
10131
      iprot.readFieldEnd()
10132
    iprot.readStructEnd()
10133
 
10134
  def write(self, oprot):
10135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10137
      return
10138
    oprot.writeStructBegin('addBanner_args')
10139
    if self.bannerName is not None:
10140
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10141
      oprot.writeString(self.bannerName)
10142
      oprot.writeFieldEnd()
10143
    if self.imageName is not None:
10144
      oprot.writeFieldBegin('imageName', TType.STRING, 2)
10145
      oprot.writeString(self.imageName)
10146
      oprot.writeFieldEnd()
10147
    if self.link is not None:
10148
      oprot.writeFieldBegin('link', TType.STRING, 3)
10149
      oprot.writeString(self.link)
10150
      oprot.writeFieldEnd()
10151
    if self.priority is not None:
10152
      oprot.writeFieldBegin('priority', TType.I64, 4)
10153
      oprot.writeI64(self.priority)
10154
      oprot.writeFieldEnd()
10155
    if self.isActive is not None:
10156
      oprot.writeFieldBegin('isActive', TType.BOOL, 5)
10157
      oprot.writeBool(self.isActive)
10158
      oprot.writeFieldEnd()
10159
    if self.hasMap is not None:
10160
      oprot.writeFieldBegin('hasMap', TType.BOOL, 6)
10161
      oprot.writeBool(self.hasMap)
10162
      oprot.writeFieldEnd()
10163
    oprot.writeFieldStop()
10164
    oprot.writeStructEnd()
10165
 
10166
  def validate(self):
10167
    return
10168
 
10169
 
10170
  def __repr__(self):
10171
    L = ['%s=%r' % (key, value)
10172
      for key, value in self.__dict__.iteritems()]
10173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10174
 
10175
  def __eq__(self, other):
10176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10177
 
10178
  def __ne__(self, other):
10179
    return not (self == other)
10180
 
10181
class addBanner_result:
10182
  """
10183
  Attributes:
10184
   - success
10185
  """
10186
 
10187
  thrift_spec = (
10188
    (0, TType.BOOL, 'success', None, None, ), # 0
10189
  )
10190
 
10191
  def __init__(self, success=None,):
10192
    self.success = success
10193
 
10194
  def read(self, iprot):
10195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10197
      return
10198
    iprot.readStructBegin()
10199
    while True:
10200
      (fname, ftype, fid) = iprot.readFieldBegin()
10201
      if ftype == TType.STOP:
10202
        break
10203
      if fid == 0:
10204
        if ftype == TType.BOOL:
10205
          self.success = iprot.readBool();
10206
        else:
10207
          iprot.skip(ftype)
10208
      else:
10209
        iprot.skip(ftype)
10210
      iprot.readFieldEnd()
10211
    iprot.readStructEnd()
10212
 
10213
  def write(self, oprot):
10214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10216
      return
10217
    oprot.writeStructBegin('addBanner_result')
10218
    if self.success is not None:
10219
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10220
      oprot.writeBool(self.success)
10221
      oprot.writeFieldEnd()
10222
    oprot.writeFieldStop()
10223
    oprot.writeStructEnd()
10224
 
10225
  def validate(self):
10226
    return
10227
 
10228
 
10229
  def __repr__(self):
10230
    L = ['%s=%r' % (key, value)
10231
      for key, value in self.__dict__.iteritems()]
10232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10233
 
10234
  def __eq__(self, other):
10235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10236
 
10237
  def __ne__(self, other):
10238
    return not (self == other)
10239
 
10240
class getAllBanners_args:
10241
 
10242
  thrift_spec = (
10243
  )
10244
 
10245
  def read(self, iprot):
10246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10248
      return
10249
    iprot.readStructBegin()
10250
    while True:
10251
      (fname, ftype, fid) = iprot.readFieldBegin()
10252
      if ftype == TType.STOP:
10253
        break
10254
      else:
10255
        iprot.skip(ftype)
10256
      iprot.readFieldEnd()
10257
    iprot.readStructEnd()
10258
 
10259
  def write(self, oprot):
10260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10262
      return
10263
    oprot.writeStructBegin('getAllBanners_args')
10264
    oprot.writeFieldStop()
10265
    oprot.writeStructEnd()
10266
 
10267
  def validate(self):
10268
    return
10269
 
10270
 
10271
  def __repr__(self):
10272
    L = ['%s=%r' % (key, value)
10273
      for key, value in self.__dict__.iteritems()]
10274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10275
 
10276
  def __eq__(self, other):
10277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10278
 
10279
  def __ne__(self, other):
10280
    return not (self == other)
10281
 
10282
class getAllBanners_result:
10283
  """
10284
  Attributes:
10285
   - success
10286
  """
10287
 
10288
  thrift_spec = (
10289
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10290
  )
10291
 
10292
  def __init__(self, success=None,):
10293
    self.success = success
10294
 
10295
  def read(self, iprot):
10296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10298
      return
10299
    iprot.readStructBegin()
10300
    while True:
10301
      (fname, ftype, fid) = iprot.readFieldBegin()
10302
      if ftype == TType.STOP:
10303
        break
10304
      if fid == 0:
10305
        if ftype == TType.LIST:
10306
          self.success = []
10307
          (_etype168, _size165) = iprot.readListBegin()
10308
          for _i169 in xrange(_size165):
10309
            _elem170 = iprot.readString();
10310
            self.success.append(_elem170)
10311
          iprot.readListEnd()
10312
        else:
10313
          iprot.skip(ftype)
10314
      else:
10315
        iprot.skip(ftype)
10316
      iprot.readFieldEnd()
10317
    iprot.readStructEnd()
10318
 
10319
  def write(self, oprot):
10320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10322
      return
10323
    oprot.writeStructBegin('getAllBanners_result')
10324
    if self.success is not None:
10325
      oprot.writeFieldBegin('success', TType.LIST, 0)
10326
      oprot.writeListBegin(TType.STRING, len(self.success))
10327
      for iter171 in self.success:
10328
        oprot.writeString(iter171)
10329
      oprot.writeListEnd()
10330
      oprot.writeFieldEnd()
10331
    oprot.writeFieldStop()
10332
    oprot.writeStructEnd()
10333
 
10334
  def validate(self):
10335
    return
10336
 
10337
 
10338
  def __repr__(self):
10339
    L = ['%s=%r' % (key, value)
10340
      for key, value in self.__dict__.iteritems()]
10341
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10342
 
10343
  def __eq__(self, other):
10344
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10345
 
10346
  def __ne__(self, other):
10347
    return not (self == other)
10348
 
10349
class deleteBanner_args:
10350
  """
10351
  Attributes:
10352
   - bannerName
10353
  """
10354
 
10355
  thrift_spec = (
10356
    None, # 0
10357
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10358
  )
10359
 
10360
  def __init__(self, bannerName=None,):
10361
    self.bannerName = bannerName
10362
 
10363
  def read(self, iprot):
10364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10366
      return
10367
    iprot.readStructBegin()
10368
    while True:
10369
      (fname, ftype, fid) = iprot.readFieldBegin()
10370
      if ftype == TType.STOP:
10371
        break
10372
      if fid == 1:
10373
        if ftype == TType.STRING:
10374
          self.bannerName = iprot.readString();
10375
        else:
10376
          iprot.skip(ftype)
10377
      else:
10378
        iprot.skip(ftype)
10379
      iprot.readFieldEnd()
10380
    iprot.readStructEnd()
10381
 
10382
  def write(self, oprot):
10383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10385
      return
10386
    oprot.writeStructBegin('deleteBanner_args')
10387
    if self.bannerName is not None:
10388
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10389
      oprot.writeString(self.bannerName)
10390
      oprot.writeFieldEnd()
10391
    oprot.writeFieldStop()
10392
    oprot.writeStructEnd()
10393
 
10394
  def validate(self):
10395
    return
10396
 
10397
 
10398
  def __repr__(self):
10399
    L = ['%s=%r' % (key, value)
10400
      for key, value in self.__dict__.iteritems()]
10401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10402
 
10403
  def __eq__(self, other):
10404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10405
 
10406
  def __ne__(self, other):
10407
    return not (self == other)
10408
 
10409
class deleteBanner_result:
10410
  """
10411
  Attributes:
10412
   - success
10413
  """
10414
 
10415
  thrift_spec = (
10416
    (0, TType.BOOL, 'success', None, None, ), # 0
10417
  )
10418
 
10419
  def __init__(self, success=None,):
10420
    self.success = success
10421
 
10422
  def read(self, iprot):
10423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10425
      return
10426
    iprot.readStructBegin()
10427
    while True:
10428
      (fname, ftype, fid) = iprot.readFieldBegin()
10429
      if ftype == TType.STOP:
10430
        break
10431
      if fid == 0:
10432
        if ftype == TType.BOOL:
10433
          self.success = iprot.readBool();
10434
        else:
10435
          iprot.skip(ftype)
10436
      else:
10437
        iprot.skip(ftype)
10438
      iprot.readFieldEnd()
10439
    iprot.readStructEnd()
10440
 
10441
  def write(self, oprot):
10442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10444
      return
10445
    oprot.writeStructBegin('deleteBanner_result')
10446
    if self.success is not None:
10447
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10448
      oprot.writeBool(self.success)
10449
      oprot.writeFieldEnd()
10450
    oprot.writeFieldStop()
10451
    oprot.writeStructEnd()
10452
 
10453
  def validate(self):
10454
    return
10455
 
10456
 
10457
  def __repr__(self):
10458
    L = ['%s=%r' % (key, value)
10459
      for key, value in self.__dict__.iteritems()]
10460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10461
 
10462
  def __eq__(self, other):
10463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10464
 
10465
  def __ne__(self, other):
10466
    return not (self == other)
10467
 
10468
class getBannerDetails_args:
10469
  """
10470
  Attributes:
10471
   - bannerName
10472
  """
10473
 
10474
  thrift_spec = (
10475
    None, # 0
10476
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10477
  )
10478
 
10479
  def __init__(self, bannerName=None,):
10480
    self.bannerName = bannerName
10481
 
10482
  def read(self, iprot):
10483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10485
      return
10486
    iprot.readStructBegin()
10487
    while True:
10488
      (fname, ftype, fid) = iprot.readFieldBegin()
10489
      if ftype == TType.STOP:
10490
        break
10491
      if fid == 1:
10492
        if ftype == TType.STRING:
10493
          self.bannerName = iprot.readString();
10494
        else:
10495
          iprot.skip(ftype)
10496
      else:
10497
        iprot.skip(ftype)
10498
      iprot.readFieldEnd()
10499
    iprot.readStructEnd()
10500
 
10501
  def write(self, oprot):
10502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10504
      return
10505
    oprot.writeStructBegin('getBannerDetails_args')
10506
    if self.bannerName is not None:
10507
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10508
      oprot.writeString(self.bannerName)
10509
      oprot.writeFieldEnd()
10510
    oprot.writeFieldStop()
10511
    oprot.writeStructEnd()
10512
 
10513
  def validate(self):
10514
    return
10515
 
10516
 
10517
  def __repr__(self):
10518
    L = ['%s=%r' % (key, value)
10519
      for key, value in self.__dict__.iteritems()]
10520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10521
 
10522
  def __eq__(self, other):
10523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10524
 
10525
  def __ne__(self, other):
10526
    return not (self == other)
10527
 
10528
class getBannerDetails_result:
10529
  """
10530
  Attributes:
10531
   - success
10532
  """
10533
 
10534
  thrift_spec = (
10535
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
10536
  )
10537
 
10538
  def __init__(self, success=None,):
10539
    self.success = success
10540
 
10541
  def read(self, iprot):
10542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10544
      return
10545
    iprot.readStructBegin()
10546
    while True:
10547
      (fname, ftype, fid) = iprot.readFieldBegin()
10548
      if ftype == TType.STOP:
10549
        break
10550
      if fid == 0:
10551
        if ftype == TType.STRUCT:
10552
          self.success = Banner()
10553
          self.success.read(iprot)
10554
        else:
10555
          iprot.skip(ftype)
10556
      else:
10557
        iprot.skip(ftype)
10558
      iprot.readFieldEnd()
10559
    iprot.readStructEnd()
10560
 
10561
  def write(self, oprot):
10562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10564
      return
10565
    oprot.writeStructBegin('getBannerDetails_result')
10566
    if self.success is not None:
10567
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10568
      self.success.write(oprot)
10569
      oprot.writeFieldEnd()
10570
    oprot.writeFieldStop()
10571
    oprot.writeStructEnd()
10572
 
10573
  def validate(self):
10574
    return
10575
 
10576
 
10577
  def __repr__(self):
10578
    L = ['%s=%r' % (key, value)
10579
      for key, value in self.__dict__.iteritems()]
10580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10581
 
10582
  def __eq__(self, other):
10583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10584
 
10585
  def __ne__(self, other):
10586
    return not (self == other)
10587
 
10588
class getActiveBanners_args:
10589
 
10590
  thrift_spec = (
10591
  )
10592
 
10593
  def read(self, iprot):
10594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10596
      return
10597
    iprot.readStructBegin()
10598
    while True:
10599
      (fname, ftype, fid) = iprot.readFieldBegin()
10600
      if ftype == TType.STOP:
10601
        break
10602
      else:
10603
        iprot.skip(ftype)
10604
      iprot.readFieldEnd()
10605
    iprot.readStructEnd()
10606
 
10607
  def write(self, oprot):
10608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10610
      return
10611
    oprot.writeStructBegin('getActiveBanners_args')
10612
    oprot.writeFieldStop()
10613
    oprot.writeStructEnd()
10614
 
10615
  def validate(self):
10616
    return
10617
 
10618
 
10619
  def __repr__(self):
10620
    L = ['%s=%r' % (key, value)
10621
      for key, value in self.__dict__.iteritems()]
10622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10623
 
10624
  def __eq__(self, other):
10625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10626
 
10627
  def __ne__(self, other):
10628
    return not (self == other)
10629
 
10630
class getActiveBanners_result:
10631
  """
10632
  Attributes:
10633
   - success
10634
  """
10635
 
10636
  thrift_spec = (
10637
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
10638
  )
10639
 
10640
  def __init__(self, success=None,):
10641
    self.success = success
10642
 
10643
  def read(self, iprot):
10644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10646
      return
10647
    iprot.readStructBegin()
10648
    while True:
10649
      (fname, ftype, fid) = iprot.readFieldBegin()
10650
      if ftype == TType.STOP:
10651
        break
10652
      if fid == 0:
10653
        if ftype == TType.LIST:
10654
          self.success = []
10655
          (_etype175, _size172) = iprot.readListBegin()
10656
          for _i176 in xrange(_size172):
10657
            _elem177 = Banner()
10658
            _elem177.read(iprot)
10659
            self.success.append(_elem177)
10660
          iprot.readListEnd()
10661
        else:
10662
          iprot.skip(ftype)
10663
      else:
10664
        iprot.skip(ftype)
10665
      iprot.readFieldEnd()
10666
    iprot.readStructEnd()
10667
 
10668
  def write(self, oprot):
10669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10671
      return
10672
    oprot.writeStructBegin('getActiveBanners_result')
10673
    if self.success is not None:
10674
      oprot.writeFieldBegin('success', TType.LIST, 0)
10675
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10676
      for iter178 in self.success:
10677
        iter178.write(oprot)
10678
      oprot.writeListEnd()
10679
      oprot.writeFieldEnd()
10680
    oprot.writeFieldStop()
10681
    oprot.writeStructEnd()
10682
 
10683
  def validate(self):
10684
    return
10685
 
10686
 
10687
  def __repr__(self):
10688
    L = ['%s=%r' % (key, value)
10689
      for key, value in self.__dict__.iteritems()]
10690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10691
 
10692
  def __eq__(self, other):
10693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10694
 
10695
  def __ne__(self, other):
10696
    return not (self == other)
10697
 
6849 kshitij.so 10698
class addBannerMap_args:
10699
  """
10700
  Attributes:
10701
   - bannerName
10702
   - mapLink
10703
   - coordinates
10704
  """
10705
 
10706
  thrift_spec = (
10707
    None, # 0
10708
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10709
    (2, TType.STRING, 'mapLink', None, None, ), # 2
10710
    (3, TType.STRING, 'coordinates', None, None, ), # 3
10711
  )
10712
 
10713
  def __init__(self, bannerName=None, mapLink=None, coordinates=None,):
10714
    self.bannerName = bannerName
10715
    self.mapLink = mapLink
10716
    self.coordinates = coordinates
10717
 
10718
  def read(self, iprot):
10719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10721
      return
10722
    iprot.readStructBegin()
10723
    while True:
10724
      (fname, ftype, fid) = iprot.readFieldBegin()
10725
      if ftype == TType.STOP:
10726
        break
10727
      if fid == 1:
10728
        if ftype == TType.STRING:
10729
          self.bannerName = iprot.readString();
10730
        else:
10731
          iprot.skip(ftype)
10732
      elif fid == 2:
10733
        if ftype == TType.STRING:
10734
          self.mapLink = iprot.readString();
10735
        else:
10736
          iprot.skip(ftype)
10737
      elif fid == 3:
10738
        if ftype == TType.STRING:
10739
          self.coordinates = iprot.readString();
10740
        else:
10741
          iprot.skip(ftype)
10742
      else:
10743
        iprot.skip(ftype)
10744
      iprot.readFieldEnd()
10745
    iprot.readStructEnd()
10746
 
10747
  def write(self, oprot):
10748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10750
      return
10751
    oprot.writeStructBegin('addBannerMap_args')
10752
    if self.bannerName is not None:
10753
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10754
      oprot.writeString(self.bannerName)
10755
      oprot.writeFieldEnd()
10756
    if self.mapLink is not None:
10757
      oprot.writeFieldBegin('mapLink', TType.STRING, 2)
10758
      oprot.writeString(self.mapLink)
10759
      oprot.writeFieldEnd()
10760
    if self.coordinates is not None:
10761
      oprot.writeFieldBegin('coordinates', TType.STRING, 3)
10762
      oprot.writeString(self.coordinates)
10763
      oprot.writeFieldEnd()
10764
    oprot.writeFieldStop()
10765
    oprot.writeStructEnd()
10766
 
10767
  def validate(self):
10768
    return
10769
 
10770
 
10771
  def __repr__(self):
10772
    L = ['%s=%r' % (key, value)
10773
      for key, value in self.__dict__.iteritems()]
10774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10775
 
10776
  def __eq__(self, other):
10777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10778
 
10779
  def __ne__(self, other):
10780
    return not (self == other)
10781
 
10782
class addBannerMap_result:
10783
  """
10784
  Attributes:
10785
   - success
10786
  """
10787
 
10788
  thrift_spec = (
10789
    (0, TType.BOOL, 'success', None, None, ), # 0
10790
  )
10791
 
10792
  def __init__(self, success=None,):
10793
    self.success = success
10794
 
10795
  def read(self, iprot):
10796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10798
      return
10799
    iprot.readStructBegin()
10800
    while True:
10801
      (fname, ftype, fid) = iprot.readFieldBegin()
10802
      if ftype == TType.STOP:
10803
        break
10804
      if fid == 0:
10805
        if ftype == TType.BOOL:
10806
          self.success = iprot.readBool();
10807
        else:
10808
          iprot.skip(ftype)
10809
      else:
10810
        iprot.skip(ftype)
10811
      iprot.readFieldEnd()
10812
    iprot.readStructEnd()
10813
 
10814
  def write(self, oprot):
10815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10817
      return
10818
    oprot.writeStructBegin('addBannerMap_result')
10819
    if self.success is not None:
10820
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10821
      oprot.writeBool(self.success)
10822
      oprot.writeFieldEnd()
10823
    oprot.writeFieldStop()
10824
    oprot.writeStructEnd()
10825
 
10826
  def validate(self):
10827
    return
10828
 
10829
 
10830
  def __repr__(self):
10831
    L = ['%s=%r' % (key, value)
10832
      for key, value in self.__dict__.iteritems()]
10833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10834
 
10835
  def __eq__(self, other):
10836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10837
 
10838
  def __ne__(self, other):
10839
    return not (self == other)
10840
 
10841
class deleteBannerMap_args:
10842
  """
10843
  Attributes:
10844
   - bannerName
10845
  """
10846
 
10847
  thrift_spec = (
10848
    None, # 0
10849
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10850
  )
10851
 
10852
  def __init__(self, bannerName=None,):
10853
    self.bannerName = bannerName
10854
 
10855
  def read(self, iprot):
10856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10858
      return
10859
    iprot.readStructBegin()
10860
    while True:
10861
      (fname, ftype, fid) = iprot.readFieldBegin()
10862
      if ftype == TType.STOP:
10863
        break
10864
      if fid == 1:
10865
        if ftype == TType.STRING:
10866
          self.bannerName = iprot.readString();
10867
        else:
10868
          iprot.skip(ftype)
10869
      else:
10870
        iprot.skip(ftype)
10871
      iprot.readFieldEnd()
10872
    iprot.readStructEnd()
10873
 
10874
  def write(self, oprot):
10875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10877
      return
10878
    oprot.writeStructBegin('deleteBannerMap_args')
10879
    if self.bannerName is not None:
10880
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10881
      oprot.writeString(self.bannerName)
10882
      oprot.writeFieldEnd()
10883
    oprot.writeFieldStop()
10884
    oprot.writeStructEnd()
10885
 
10886
  def validate(self):
10887
    return
10888
 
10889
 
10890
  def __repr__(self):
10891
    L = ['%s=%r' % (key, value)
10892
      for key, value in self.__dict__.iteritems()]
10893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10894
 
10895
  def __eq__(self, other):
10896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10897
 
10898
  def __ne__(self, other):
10899
    return not (self == other)
10900
 
10901
class deleteBannerMap_result:
10902
  """
10903
  Attributes:
10904
   - success
10905
  """
10906
 
10907
  thrift_spec = (
10908
    (0, TType.BOOL, 'success', None, None, ), # 0
10909
  )
10910
 
10911
  def __init__(self, success=None,):
10912
    self.success = success
10913
 
10914
  def read(self, iprot):
10915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10917
      return
10918
    iprot.readStructBegin()
10919
    while True:
10920
      (fname, ftype, fid) = iprot.readFieldBegin()
10921
      if ftype == TType.STOP:
10922
        break
10923
      if fid == 0:
10924
        if ftype == TType.BOOL:
10925
          self.success = iprot.readBool();
10926
        else:
10927
          iprot.skip(ftype)
10928
      else:
10929
        iprot.skip(ftype)
10930
      iprot.readFieldEnd()
10931
    iprot.readStructEnd()
10932
 
10933
  def write(self, oprot):
10934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10936
      return
10937
    oprot.writeStructBegin('deleteBannerMap_result')
10938
    if self.success is not None:
10939
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10940
      oprot.writeBool(self.success)
10941
      oprot.writeFieldEnd()
10942
    oprot.writeFieldStop()
10943
    oprot.writeStructEnd()
10944
 
10945
  def validate(self):
10946
    return
10947
 
10948
 
10949
  def __repr__(self):
10950
    L = ['%s=%r' % (key, value)
10951
      for key, value in self.__dict__.iteritems()]
10952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10953
 
10954
  def __eq__(self, other):
10955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10956
 
10957
  def __ne__(self, other):
10958
    return not (self == other)
10959
 
10960
class getBannerMapDetails_args:
10961
  """
10962
  Attributes:
10963
   - bannerName
10964
  """
10965
 
10966
  thrift_spec = (
10967
    None, # 0
10968
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10969
  )
10970
 
10971
  def __init__(self, bannerName=None,):
10972
    self.bannerName = bannerName
10973
 
10974
  def read(self, iprot):
10975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10977
      return
10978
    iprot.readStructBegin()
10979
    while True:
10980
      (fname, ftype, fid) = iprot.readFieldBegin()
10981
      if ftype == TType.STOP:
10982
        break
10983
      if fid == 1:
10984
        if ftype == TType.STRING:
10985
          self.bannerName = iprot.readString();
10986
        else:
10987
          iprot.skip(ftype)
10988
      else:
10989
        iprot.skip(ftype)
10990
      iprot.readFieldEnd()
10991
    iprot.readStructEnd()
10992
 
10993
  def write(self, oprot):
10994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10996
      return
10997
    oprot.writeStructBegin('getBannerMapDetails_args')
10998
    if self.bannerName is not None:
10999
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
11000
      oprot.writeString(self.bannerName)
11001
      oprot.writeFieldEnd()
11002
    oprot.writeFieldStop()
11003
    oprot.writeStructEnd()
11004
 
11005
  def validate(self):
11006
    return
11007
 
11008
 
11009
  def __repr__(self):
11010
    L = ['%s=%r' % (key, value)
11011
      for key, value in self.__dict__.iteritems()]
11012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11013
 
11014
  def __eq__(self, other):
11015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11016
 
11017
  def __ne__(self, other):
11018
    return not (self == other)
11019
 
11020
class getBannerMapDetails_result:
11021
  """
11022
  Attributes:
11023
   - success
11024
  """
11025
 
11026
  thrift_spec = (
11027
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
11028
  )
11029
 
11030
  def __init__(self, success=None,):
11031
    self.success = success
11032
 
11033
  def read(self, iprot):
11034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11036
      return
11037
    iprot.readStructBegin()
11038
    while True:
11039
      (fname, ftype, fid) = iprot.readFieldBegin()
11040
      if ftype == TType.STOP:
11041
        break
11042
      if fid == 0:
11043
        if ftype == TType.LIST:
11044
          self.success = []
6850 kshitij.so 11045
          (_etype182, _size179) = iprot.readListBegin()
11046
          for _i183 in xrange(_size179):
11047
            _elem184 = BannerMap()
11048
            _elem184.read(iprot)
11049
            self.success.append(_elem184)
6849 kshitij.so 11050
          iprot.readListEnd()
11051
        else:
11052
          iprot.skip(ftype)
11053
      else:
11054
        iprot.skip(ftype)
11055
      iprot.readFieldEnd()
11056
    iprot.readStructEnd()
11057
 
11058
  def write(self, oprot):
11059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11061
      return
11062
    oprot.writeStructBegin('getBannerMapDetails_result')
11063
    if self.success is not None:
11064
      oprot.writeFieldBegin('success', TType.LIST, 0)
11065
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11066
      for iter185 in self.success:
11067
        iter185.write(oprot)
6849 kshitij.so 11068
      oprot.writeListEnd()
11069
      oprot.writeFieldEnd()
11070
    oprot.writeFieldStop()
11071
    oprot.writeStructEnd()
11072
 
11073
  def validate(self):
11074
    return
11075
 
11076
 
11077
  def __repr__(self):
11078
    L = ['%s=%r' % (key, value)
11079
      for key, value in self.__dict__.iteritems()]
11080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11081
 
11082
  def __eq__(self, other):
11083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11084
 
11085
  def __ne__(self, other):
11086
    return not (self == other)
11087
 
5944 mandeep.dh 11088
class deleteSimilarItem_args:
11089
  """
11090
  Attributes:
11091
   - itemId
11092
   - catalogItemId
11093
  """
11094
 
11095
  thrift_spec = (
11096
    None, # 0
11097
    (1, TType.I64, 'itemId', None, None, ), # 1
11098
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
11099
  )
11100
 
11101
  def __init__(self, itemId=None, catalogItemId=None,):
11102
    self.itemId = itemId
11103
    self.catalogItemId = catalogItemId
11104
 
11105
  def read(self, iprot):
11106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11108
      return
11109
    iprot.readStructBegin()
11110
    while True:
11111
      (fname, ftype, fid) = iprot.readFieldBegin()
11112
      if ftype == TType.STOP:
11113
        break
11114
      if fid == 1:
11115
        if ftype == TType.I64:
11116
          self.itemId = iprot.readI64();
11117
        else:
11118
          iprot.skip(ftype)
11119
      elif fid == 2:
11120
        if ftype == TType.I64:
11121
          self.catalogItemId = iprot.readI64();
11122
        else:
11123
          iprot.skip(ftype)
11124
      else:
11125
        iprot.skip(ftype)
11126
      iprot.readFieldEnd()
11127
    iprot.readStructEnd()
11128
 
11129
  def write(self, oprot):
11130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11132
      return
11133
    oprot.writeStructBegin('deleteSimilarItem_args')
11134
    if self.itemId is not None:
11135
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11136
      oprot.writeI64(self.itemId)
11137
      oprot.writeFieldEnd()
11138
    if self.catalogItemId is not None:
11139
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
11140
      oprot.writeI64(self.catalogItemId)
11141
      oprot.writeFieldEnd()
11142
    oprot.writeFieldStop()
11143
    oprot.writeStructEnd()
11144
 
11145
  def validate(self):
11146
    return
11147
 
11148
 
11149
  def __repr__(self):
11150
    L = ['%s=%r' % (key, value)
11151
      for key, value in self.__dict__.iteritems()]
11152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11153
 
11154
  def __eq__(self, other):
11155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11156
 
11157
  def __ne__(self, other):
11158
    return not (self == other)
11159
 
11160
class deleteSimilarItem_result:
11161
  """
11162
  Attributes:
11163
   - success
11164
   - cex
11165
  """
11166
 
11167
  thrift_spec = (
11168
    (0, TType.BOOL, 'success', None, None, ), # 0
11169
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11170
  )
11171
 
11172
  def __init__(self, success=None, cex=None,):
11173
    self.success = success
11174
    self.cex = cex
11175
 
11176
  def read(self, iprot):
11177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11179
      return
11180
    iprot.readStructBegin()
11181
    while True:
11182
      (fname, ftype, fid) = iprot.readFieldBegin()
11183
      if ftype == TType.STOP:
11184
        break
11185
      if fid == 0:
11186
        if ftype == TType.BOOL:
11187
          self.success = iprot.readBool();
11188
        else:
11189
          iprot.skip(ftype)
11190
      elif fid == 1:
11191
        if ftype == TType.STRUCT:
11192
          self.cex = CatalogServiceException()
11193
          self.cex.read(iprot)
11194
        else:
11195
          iprot.skip(ftype)
11196
      else:
11197
        iprot.skip(ftype)
11198
      iprot.readFieldEnd()
11199
    iprot.readStructEnd()
11200
 
11201
  def write(self, oprot):
11202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11204
      return
11205
    oprot.writeStructBegin('deleteSimilarItem_result')
11206
    if self.success is not None:
11207
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11208
      oprot.writeBool(self.success)
11209
      oprot.writeFieldEnd()
11210
    if self.cex is not None:
11211
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11212
      self.cex.write(oprot)
11213
      oprot.writeFieldEnd()
11214
    oprot.writeFieldStop()
11215
    oprot.writeStructEnd()
11216
 
11217
  def validate(self):
11218
    return
11219
 
11220
 
11221
  def __repr__(self):
11222
    L = ['%s=%r' % (key, value)
11223
      for key, value in self.__dict__.iteritems()]
11224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11225
 
11226
  def __eq__(self, other):
11227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11228
 
11229
  def __ne__(self, other):
11230
    return not (self == other)
11231
 
11232
class checkSimilarItem_args:
11233
  """
11234
  Attributes:
11235
   - brand
11236
   - modelNumber
11237
   - modelName
11238
   - color
11239
  """
11240
 
11241
  thrift_spec = (
11242
    None, # 0
11243
    (1, TType.STRING, 'brand', None, None, ), # 1
11244
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
11245
    (3, TType.STRING, 'modelName', None, None, ), # 3
11246
    (4, TType.STRING, 'color', None, None, ), # 4
11247
  )
11248
 
11249
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
11250
    self.brand = brand
11251
    self.modelNumber = modelNumber
11252
    self.modelName = modelName
11253
    self.color = color
11254
 
11255
  def read(self, iprot):
11256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11258
      return
11259
    iprot.readStructBegin()
11260
    while True:
11261
      (fname, ftype, fid) = iprot.readFieldBegin()
11262
      if ftype == TType.STOP:
11263
        break
11264
      if fid == 1:
11265
        if ftype == TType.STRING:
11266
          self.brand = iprot.readString();
11267
        else:
11268
          iprot.skip(ftype)
11269
      elif fid == 2:
11270
        if ftype == TType.STRING:
11271
          self.modelNumber = iprot.readString();
11272
        else:
11273
          iprot.skip(ftype)
11274
      elif fid == 3:
11275
        if ftype == TType.STRING:
11276
          self.modelName = iprot.readString();
11277
        else:
11278
          iprot.skip(ftype)
11279
      elif fid == 4:
11280
        if ftype == TType.STRING:
11281
          self.color = iprot.readString();
11282
        else:
11283
          iprot.skip(ftype)
11284
      else:
11285
        iprot.skip(ftype)
11286
      iprot.readFieldEnd()
11287
    iprot.readStructEnd()
11288
 
11289
  def write(self, oprot):
11290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11292
      return
11293
    oprot.writeStructBegin('checkSimilarItem_args')
11294
    if self.brand is not None:
11295
      oprot.writeFieldBegin('brand', TType.STRING, 1)
11296
      oprot.writeString(self.brand)
11297
      oprot.writeFieldEnd()
11298
    if self.modelNumber is not None:
11299
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
11300
      oprot.writeString(self.modelNumber)
11301
      oprot.writeFieldEnd()
11302
    if self.modelName is not None:
11303
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
11304
      oprot.writeString(self.modelName)
11305
      oprot.writeFieldEnd()
11306
    if self.color is not None:
11307
      oprot.writeFieldBegin('color', TType.STRING, 4)
11308
      oprot.writeString(self.color)
11309
      oprot.writeFieldEnd()
11310
    oprot.writeFieldStop()
11311
    oprot.writeStructEnd()
11312
 
11313
  def validate(self):
11314
    return
11315
 
11316
 
11317
  def __repr__(self):
11318
    L = ['%s=%r' % (key, value)
11319
      for key, value in self.__dict__.iteritems()]
11320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11321
 
11322
  def __eq__(self, other):
11323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11324
 
11325
  def __ne__(self, other):
11326
    return not (self == other)
11327
 
11328
class checkSimilarItem_result:
11329
  """
11330
  Attributes:
11331
   - success
11332
  """
11333
 
11334
  thrift_spec = (
11335
    (0, TType.I64, 'success', None, None, ), # 0
11336
  )
11337
 
11338
  def __init__(self, success=None,):
11339
    self.success = success
11340
 
11341
  def read(self, iprot):
11342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11344
      return
11345
    iprot.readStructBegin()
11346
    while True:
11347
      (fname, ftype, fid) = iprot.readFieldBegin()
11348
      if ftype == TType.STOP:
11349
        break
11350
      if fid == 0:
11351
        if ftype == TType.I64:
11352
          self.success = iprot.readI64();
11353
        else:
11354
          iprot.skip(ftype)
11355
      else:
11356
        iprot.skip(ftype)
11357
      iprot.readFieldEnd()
11358
    iprot.readStructEnd()
11359
 
11360
  def write(self, oprot):
11361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11363
      return
11364
    oprot.writeStructBegin('checkSimilarItem_result')
11365
    if self.success is not None:
11366
      oprot.writeFieldBegin('success', TType.I64, 0)
11367
      oprot.writeI64(self.success)
11368
      oprot.writeFieldEnd()
11369
    oprot.writeFieldStop()
11370
    oprot.writeStructEnd()
11371
 
11372
  def validate(self):
11373
    return
11374
 
11375
 
11376
  def __repr__(self):
11377
    L = ['%s=%r' % (key, value)
11378
      for key, value in self.__dict__.iteritems()]
11379
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11380
 
11381
  def __eq__(self, other):
11382
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11383
 
11384
  def __ne__(self, other):
11385
    return not (self == other)
11386
 
11387
class validateRiskyStatus_args:
11388
  """
11389
  Attributes:
11390
   - itemId
11391
  """
11392
 
11393
  thrift_spec = (
11394
    None, # 0
11395
    (1, TType.I64, 'itemId', None, None, ), # 1
11396
  )
11397
 
11398
  def __init__(self, itemId=None,):
11399
    self.itemId = itemId
11400
 
11401
  def read(self, iprot):
11402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11404
      return
11405
    iprot.readStructBegin()
11406
    while True:
11407
      (fname, ftype, fid) = iprot.readFieldBegin()
11408
      if ftype == TType.STOP:
11409
        break
11410
      if fid == 1:
11411
        if ftype == TType.I64:
11412
          self.itemId = iprot.readI64();
11413
        else:
11414
          iprot.skip(ftype)
11415
      else:
11416
        iprot.skip(ftype)
11417
      iprot.readFieldEnd()
11418
    iprot.readStructEnd()
11419
 
11420
  def write(self, oprot):
11421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11423
      return
11424
    oprot.writeStructBegin('validateRiskyStatus_args')
11425
    if self.itemId is not None:
11426
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11427
      oprot.writeI64(self.itemId)
11428
      oprot.writeFieldEnd()
11429
    oprot.writeFieldStop()
11430
    oprot.writeStructEnd()
11431
 
11432
  def validate(self):
11433
    return
11434
 
11435
 
11436
  def __repr__(self):
11437
    L = ['%s=%r' % (key, value)
11438
      for key, value in self.__dict__.iteritems()]
11439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11440
 
11441
  def __eq__(self, other):
11442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11443
 
11444
  def __ne__(self, other):
11445
    return not (self == other)
11446
 
11447
class validateRiskyStatus_result:
11448
 
11449
  thrift_spec = (
11450
  )
11451
 
11452
  def read(self, iprot):
11453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11455
      return
11456
    iprot.readStructBegin()
11457
    while True:
11458
      (fname, ftype, fid) = iprot.readFieldBegin()
11459
      if ftype == TType.STOP:
11460
        break
11461
      else:
11462
        iprot.skip(ftype)
11463
      iprot.readFieldEnd()
11464
    iprot.readStructEnd()
11465
 
11466
  def write(self, oprot):
11467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11469
      return
11470
    oprot.writeStructBegin('validateRiskyStatus_result')
11471
    oprot.writeFieldStop()
11472
    oprot.writeStructEnd()
11473
 
11474
  def validate(self):
11475
    return
11476
 
11477
 
11478
  def __repr__(self):
11479
    L = ['%s=%r' % (key, value)
11480
      for key, value in self.__dict__.iteritems()]
11481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11482
 
11483
  def __eq__(self, other):
11484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11485
 
11486
  def __ne__(self, other):
11487
    return not (self == other)
11488
 
11489
class changeItemRiskyFlag_args:
11490
  """
11491
  Attributes:
11492
   - itemId
11493
   - risky
11494
  """
11495
 
11496
  thrift_spec = (
11497
    None, # 0
11498
    (1, TType.I64, 'itemId', None, None, ), # 1
11499
    (2, TType.BOOL, 'risky', None, None, ), # 2
11500
  )
11501
 
11502
  def __init__(self, itemId=None, risky=None,):
11503
    self.itemId = itemId
11504
    self.risky = risky
11505
 
11506
  def read(self, iprot):
11507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11509
      return
11510
    iprot.readStructBegin()
11511
    while True:
11512
      (fname, ftype, fid) = iprot.readFieldBegin()
11513
      if ftype == TType.STOP:
11514
        break
11515
      if fid == 1:
11516
        if ftype == TType.I64:
11517
          self.itemId = iprot.readI64();
11518
        else:
11519
          iprot.skip(ftype)
11520
      elif fid == 2:
11521
        if ftype == TType.BOOL:
11522
          self.risky = iprot.readBool();
11523
        else:
11524
          iprot.skip(ftype)
11525
      else:
11526
        iprot.skip(ftype)
11527
      iprot.readFieldEnd()
11528
    iprot.readStructEnd()
11529
 
11530
  def write(self, oprot):
11531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11533
      return
11534
    oprot.writeStructBegin('changeItemRiskyFlag_args')
11535
    if self.itemId is not None:
11536
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11537
      oprot.writeI64(self.itemId)
11538
      oprot.writeFieldEnd()
11539
    if self.risky is not None:
11540
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
11541
      oprot.writeBool(self.risky)
11542
      oprot.writeFieldEnd()
11543
    oprot.writeFieldStop()
11544
    oprot.writeStructEnd()
11545
 
11546
  def validate(self):
11547
    return
11548
 
11549
 
11550
  def __repr__(self):
11551
    L = ['%s=%r' % (key, value)
11552
      for key, value in self.__dict__.iteritems()]
11553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11554
 
11555
  def __eq__(self, other):
11556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11557
 
11558
  def __ne__(self, other):
11559
    return not (self == other)
11560
 
11561
class changeItemRiskyFlag_result:
11562
 
11563
  thrift_spec = (
11564
  )
11565
 
11566
  def read(self, iprot):
11567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11569
      return
11570
    iprot.readStructBegin()
11571
    while True:
11572
      (fname, ftype, fid) = iprot.readFieldBegin()
11573
      if ftype == TType.STOP:
11574
        break
11575
      else:
11576
        iprot.skip(ftype)
11577
      iprot.readFieldEnd()
11578
    iprot.readStructEnd()
11579
 
11580
  def write(self, oprot):
11581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11583
      return
11584
    oprot.writeStructBegin('changeItemRiskyFlag_result')
11585
    oprot.writeFieldStop()
11586
    oprot.writeStructEnd()
11587
 
11588
  def validate(self):
11589
    return
11590
 
11591
 
11592
  def __repr__(self):
11593
    L = ['%s=%r' % (key, value)
11594
      for key, value in self.__dict__.iteritems()]
11595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11596
 
11597
  def __eq__(self, other):
11598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11599
 
11600
  def __ne__(self, other):
11601
    return not (self == other)
11602
 
11603
class getItemsByRiskyFlag_args:
11604
 
11605
  thrift_spec = (
11606
  )
11607
 
11608
  def read(self, iprot):
11609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11611
      return
11612
    iprot.readStructBegin()
11613
    while True:
11614
      (fname, ftype, fid) = iprot.readFieldBegin()
11615
      if ftype == TType.STOP:
11616
        break
11617
      else:
11618
        iprot.skip(ftype)
11619
      iprot.readFieldEnd()
11620
    iprot.readStructEnd()
11621
 
11622
  def write(self, oprot):
11623
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11624
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11625
      return
11626
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
11627
    oprot.writeFieldStop()
11628
    oprot.writeStructEnd()
11629
 
11630
  def validate(self):
11631
    return
11632
 
11633
 
11634
  def __repr__(self):
11635
    L = ['%s=%r' % (key, value)
11636
      for key, value in self.__dict__.iteritems()]
11637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11638
 
11639
  def __eq__(self, other):
11640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11641
 
11642
  def __ne__(self, other):
11643
    return not (self == other)
11644
 
11645
class getItemsByRiskyFlag_result:
11646
  """
11647
  Attributes:
11648
   - success
11649
  """
11650
 
11651
  thrift_spec = (
11652
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11653
  )
11654
 
11655
  def __init__(self, success=None,):
11656
    self.success = success
11657
 
11658
  def read(self, iprot):
11659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11661
      return
11662
    iprot.readStructBegin()
11663
    while True:
11664
      (fname, ftype, fid) = iprot.readFieldBegin()
11665
      if ftype == TType.STOP:
11666
        break
11667
      if fid == 0:
11668
        if ftype == TType.LIST:
11669
          self.success = []
6850 kshitij.so 11670
          (_etype189, _size186) = iprot.readListBegin()
11671
          for _i190 in xrange(_size186):
11672
            _elem191 = Item()
11673
            _elem191.read(iprot)
11674
            self.success.append(_elem191)
5944 mandeep.dh 11675
          iprot.readListEnd()
11676
        else:
11677
          iprot.skip(ftype)
11678
      else:
11679
        iprot.skip(ftype)
11680
      iprot.readFieldEnd()
11681
    iprot.readStructEnd()
11682
 
11683
  def write(self, oprot):
11684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11686
      return
11687
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
11688
    if self.success is not None:
11689
      oprot.writeFieldBegin('success', TType.LIST, 0)
11690
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11691
      for iter192 in self.success:
11692
        iter192.write(oprot)
5944 mandeep.dh 11693
      oprot.writeListEnd()
11694
      oprot.writeFieldEnd()
11695
    oprot.writeFieldStop()
11696
    oprot.writeStructEnd()
11697
 
11698
  def validate(self):
11699
    return
11700
 
11701
 
11702
  def __repr__(self):
11703
    L = ['%s=%r' % (key, value)
11704
      for key, value in self.__dict__.iteritems()]
11705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11706
 
11707
  def __eq__(self, other):
11708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11709
 
11710
  def __ne__(self, other):
11711
    return not (self == other)
11712
 
11713
class getItemsForMasterSheet_args:
11714
  """
11715
  Attributes:
11716
   - category
11717
   - brand
11718
  """
11719
 
11720
  thrift_spec = (
11721
    None, # 0
11722
    (1, TType.STRING, 'category', None, None, ), # 1
11723
    (2, TType.STRING, 'brand', None, None, ), # 2
11724
  )
11725
 
11726
  def __init__(self, category=None, brand=None,):
11727
    self.category = category
11728
    self.brand = brand
11729
 
11730
  def read(self, iprot):
11731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11733
      return
11734
    iprot.readStructBegin()
11735
    while True:
11736
      (fname, ftype, fid) = iprot.readFieldBegin()
11737
      if ftype == TType.STOP:
11738
        break
11739
      if fid == 1:
11740
        if ftype == TType.STRING:
11741
          self.category = iprot.readString();
11742
        else:
11743
          iprot.skip(ftype)
11744
      elif fid == 2:
11745
        if ftype == TType.STRING:
11746
          self.brand = iprot.readString();
11747
        else:
11748
          iprot.skip(ftype)
11749
      else:
11750
        iprot.skip(ftype)
11751
      iprot.readFieldEnd()
11752
    iprot.readStructEnd()
11753
 
11754
  def write(self, oprot):
11755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11757
      return
11758
    oprot.writeStructBegin('getItemsForMasterSheet_args')
11759
    if self.category is not None:
11760
      oprot.writeFieldBegin('category', TType.STRING, 1)
11761
      oprot.writeString(self.category)
11762
      oprot.writeFieldEnd()
11763
    if self.brand is not None:
11764
      oprot.writeFieldBegin('brand', TType.STRING, 2)
11765
      oprot.writeString(self.brand)
11766
      oprot.writeFieldEnd()
11767
    oprot.writeFieldStop()
11768
    oprot.writeStructEnd()
11769
 
11770
  def validate(self):
11771
    return
11772
 
11773
 
11774
  def __repr__(self):
11775
    L = ['%s=%r' % (key, value)
11776
      for key, value in self.__dict__.iteritems()]
11777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11778
 
11779
  def __eq__(self, other):
11780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11781
 
11782
  def __ne__(self, other):
11783
    return not (self == other)
11784
 
11785
class getItemsForMasterSheet_result:
11786
  """
11787
  Attributes:
11788
   - success
11789
  """
11790
 
11791
  thrift_spec = (
11792
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11793
  )
11794
 
11795
  def __init__(self, success=None,):
11796
    self.success = success
11797
 
11798
  def read(self, iprot):
11799
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11800
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11801
      return
11802
    iprot.readStructBegin()
11803
    while True:
11804
      (fname, ftype, fid) = iprot.readFieldBegin()
11805
      if ftype == TType.STOP:
11806
        break
11807
      if fid == 0:
11808
        if ftype == TType.LIST:
11809
          self.success = []
6850 kshitij.so 11810
          (_etype196, _size193) = iprot.readListBegin()
11811
          for _i197 in xrange(_size193):
11812
            _elem198 = Item()
11813
            _elem198.read(iprot)
11814
            self.success.append(_elem198)
5944 mandeep.dh 11815
          iprot.readListEnd()
11816
        else:
11817
          iprot.skip(ftype)
11818
      else:
11819
        iprot.skip(ftype)
11820
      iprot.readFieldEnd()
11821
    iprot.readStructEnd()
11822
 
11823
  def write(self, oprot):
11824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11826
      return
11827
    oprot.writeStructBegin('getItemsForMasterSheet_result')
11828
    if self.success is not None:
11829
      oprot.writeFieldBegin('success', TType.LIST, 0)
11830
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11831
      for iter199 in self.success:
11832
        iter199.write(oprot)
5944 mandeep.dh 11833
      oprot.writeListEnd()
11834
      oprot.writeFieldEnd()
11835
    oprot.writeFieldStop()
11836
    oprot.writeStructEnd()
11837
 
11838
  def validate(self):
11839
    return
11840
 
11841
 
11842
  def __repr__(self):
11843
    L = ['%s=%r' % (key, value)
11844
      for key, value in self.__dict__.iteritems()]
11845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11846
 
11847
  def __eq__(self, other):
11848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11849
 
11850
  def __ne__(self, other):
11851
    return not (self == other)
11852
 
11853
class getSimilarItemsCatalogIds_args:
11854
  """
11855
  Attributes:
11856
   - beginIndex
11857
   - totalItems
11858
   - itemId
11859
  """
11860
 
11861
  thrift_spec = (
11862
    None, # 0
11863
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11864
    (2, TType.I64, 'totalItems', None, None, ), # 2
11865
    (3, TType.I64, 'itemId', None, None, ), # 3
11866
  )
11867
 
11868
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
11869
    self.beginIndex = beginIndex
11870
    self.totalItems = totalItems
11871
    self.itemId = itemId
11872
 
11873
  def read(self, iprot):
11874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11876
      return
11877
    iprot.readStructBegin()
11878
    while True:
11879
      (fname, ftype, fid) = iprot.readFieldBegin()
11880
      if ftype == TType.STOP:
11881
        break
11882
      if fid == 1:
11883
        if ftype == TType.I64:
11884
          self.beginIndex = iprot.readI64();
11885
        else:
11886
          iprot.skip(ftype)
11887
      elif fid == 2:
11888
        if ftype == TType.I64:
11889
          self.totalItems = iprot.readI64();
11890
        else:
11891
          iprot.skip(ftype)
11892
      elif fid == 3:
11893
        if ftype == TType.I64:
11894
          self.itemId = iprot.readI64();
11895
        else:
11896
          iprot.skip(ftype)
11897
      else:
11898
        iprot.skip(ftype)
11899
      iprot.readFieldEnd()
11900
    iprot.readStructEnd()
11901
 
11902
  def write(self, oprot):
11903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11905
      return
11906
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
11907
    if self.beginIndex is not None:
11908
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11909
      oprot.writeI64(self.beginIndex)
11910
      oprot.writeFieldEnd()
11911
    if self.totalItems is not None:
11912
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11913
      oprot.writeI64(self.totalItems)
11914
      oprot.writeFieldEnd()
11915
    if self.itemId is not None:
11916
      oprot.writeFieldBegin('itemId', TType.I64, 3)
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 getSimilarItemsCatalogIds_result:
11938
  """
11939
  Attributes:
11940
   - success
11941
  """
11942
 
11943
  thrift_spec = (
11944
    (0, TType.LIST, 'success', (TType.I64,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.LIST:
11961
          self.success = []
6850 kshitij.so 11962
          (_etype203, _size200) = iprot.readListBegin()
11963
          for _i204 in xrange(_size200):
11964
            _elem205 = iprot.readI64();
11965
            self.success.append(_elem205)
5944 mandeep.dh 11966
          iprot.readListEnd()
11967
        else:
11968
          iprot.skip(ftype)
11969
      else:
11970
        iprot.skip(ftype)
11971
      iprot.readFieldEnd()
11972
    iprot.readStructEnd()
11973
 
11974
  def write(self, oprot):
11975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11977
      return
11978
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
11979
    if self.success is not None:
11980
      oprot.writeFieldBegin('success', TType.LIST, 0)
11981
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 11982
      for iter206 in self.success:
11983
        oprot.writeI64(iter206)
5944 mandeep.dh 11984
      oprot.writeListEnd()
11985
      oprot.writeFieldEnd()
11986
    oprot.writeFieldStop()
11987
    oprot.writeStructEnd()
11988
 
11989
  def validate(self):
11990
    return
11991
 
11992
 
11993
  def __repr__(self):
11994
    L = ['%s=%r' % (key, value)
11995
      for key, value in self.__dict__.iteritems()]
11996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11997
 
11998
  def __eq__(self, other):
11999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12000
 
12001
  def __ne__(self, other):
12002
    return not (self == other)
12003
 
12004
class addProductNotification_args:
12005
  """
12006
  Attributes:
12007
   - itemId
12008
   - email
12009
  """
12010
 
12011
  thrift_spec = None
12012
  def __init__(self, itemId=None, email=None,):
12013
    self.itemId = itemId
12014
    self.email = email
12015
 
12016
  def read(self, iprot):
12017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12019
      return
12020
    iprot.readStructBegin()
12021
    while True:
12022
      (fname, ftype, fid) = iprot.readFieldBegin()
12023
      if ftype == TType.STOP:
12024
        break
12025
      if fid == -1:
12026
        if ftype == TType.I64:
12027
          self.itemId = iprot.readI64();
12028
        else:
12029
          iprot.skip(ftype)
12030
      elif fid == -2:
12031
        if ftype == TType.STRING:
12032
          self.email = iprot.readString();
12033
        else:
12034
          iprot.skip(ftype)
12035
      else:
12036
        iprot.skip(ftype)
12037
      iprot.readFieldEnd()
12038
    iprot.readStructEnd()
12039
 
12040
  def write(self, oprot):
12041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12043
      return
12044
    oprot.writeStructBegin('addProductNotification_args')
12045
    if self.email is not None:
12046
      oprot.writeFieldBegin('email', TType.STRING, -2)
12047
      oprot.writeString(self.email)
12048
      oprot.writeFieldEnd()
12049
    if self.itemId is not None:
12050
      oprot.writeFieldBegin('itemId', TType.I64, -1)
12051
      oprot.writeI64(self.itemId)
12052
      oprot.writeFieldEnd()
12053
    oprot.writeFieldStop()
12054
    oprot.writeStructEnd()
12055
 
12056
  def validate(self):
12057
    return
12058
 
12059
 
12060
  def __repr__(self):
12061
    L = ['%s=%r' % (key, value)
12062
      for key, value in self.__dict__.iteritems()]
12063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12064
 
12065
  def __eq__(self, other):
12066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12067
 
12068
  def __ne__(self, other):
12069
    return not (self == other)
12070
 
12071
class addProductNotification_result:
12072
  """
12073
  Attributes:
12074
   - success
12075
  """
12076
 
12077
  thrift_spec = (
12078
    (0, TType.BOOL, 'success', None, None, ), # 0
12079
  )
12080
 
12081
  def __init__(self, success=None,):
12082
    self.success = success
12083
 
12084
  def read(self, iprot):
12085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12087
      return
12088
    iprot.readStructBegin()
12089
    while True:
12090
      (fname, ftype, fid) = iprot.readFieldBegin()
12091
      if ftype == TType.STOP:
12092
        break
12093
      if fid == 0:
12094
        if ftype == TType.BOOL:
12095
          self.success = iprot.readBool();
12096
        else:
12097
          iprot.skip(ftype)
12098
      else:
12099
        iprot.skip(ftype)
12100
      iprot.readFieldEnd()
12101
    iprot.readStructEnd()
12102
 
12103
  def write(self, oprot):
12104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12106
      return
12107
    oprot.writeStructBegin('addProductNotification_result')
12108
    if self.success is not None:
12109
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12110
      oprot.writeBool(self.success)
12111
      oprot.writeFieldEnd()
12112
    oprot.writeFieldStop()
12113
    oprot.writeStructEnd()
12114
 
12115
  def validate(self):
12116
    return
12117
 
12118
 
12119
  def __repr__(self):
12120
    L = ['%s=%r' % (key, value)
12121
      for key, value in self.__dict__.iteritems()]
12122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12123
 
12124
  def __eq__(self, other):
12125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12126
 
12127
  def __ne__(self, other):
12128
    return not (self == other)
12129
 
12130
class sendProductNotifications_args:
12131
 
12132
  thrift_spec = (
12133
  )
12134
 
12135
  def read(self, iprot):
12136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12138
      return
12139
    iprot.readStructBegin()
12140
    while True:
12141
      (fname, ftype, fid) = iprot.readFieldBegin()
12142
      if ftype == TType.STOP:
12143
        break
12144
      else:
12145
        iprot.skip(ftype)
12146
      iprot.readFieldEnd()
12147
    iprot.readStructEnd()
12148
 
12149
  def write(self, oprot):
12150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12152
      return
12153
    oprot.writeStructBegin('sendProductNotifications_args')
12154
    oprot.writeFieldStop()
12155
    oprot.writeStructEnd()
12156
 
12157
  def validate(self):
12158
    return
12159
 
12160
 
12161
  def __repr__(self):
12162
    L = ['%s=%r' % (key, value)
12163
      for key, value in self.__dict__.iteritems()]
12164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12165
 
12166
  def __eq__(self, other):
12167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12168
 
12169
  def __ne__(self, other):
12170
    return not (self == other)
12171
 
12172
class sendProductNotifications_result:
12173
  """
12174
  Attributes:
12175
   - success
12176
  """
12177
 
12178
  thrift_spec = (
12179
    (0, TType.BOOL, 'success', None, None, ), # 0
12180
  )
12181
 
12182
  def __init__(self, success=None,):
12183
    self.success = success
12184
 
12185
  def read(self, iprot):
12186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12188
      return
12189
    iprot.readStructBegin()
12190
    while True:
12191
      (fname, ftype, fid) = iprot.readFieldBegin()
12192
      if ftype == TType.STOP:
12193
        break
12194
      if fid == 0:
12195
        if ftype == TType.BOOL:
12196
          self.success = iprot.readBool();
12197
        else:
12198
          iprot.skip(ftype)
12199
      else:
12200
        iprot.skip(ftype)
12201
      iprot.readFieldEnd()
12202
    iprot.readStructEnd()
12203
 
12204
  def write(self, oprot):
12205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12207
      return
12208
    oprot.writeStructBegin('sendProductNotifications_result')
12209
    if self.success is not None:
12210
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12211
      oprot.writeBool(self.success)
12212
      oprot.writeFieldEnd()
12213
    oprot.writeFieldStop()
12214
    oprot.writeStructEnd()
12215
 
12216
  def validate(self):
12217
    return
12218
 
12219
 
12220
  def __repr__(self):
12221
    L = ['%s=%r' % (key, value)
12222
      for key, value in self.__dict__.iteritems()]
12223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12224
 
12225
  def __eq__(self, other):
12226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12227
 
12228
  def __ne__(self, other):
12229
    return not (self == other)
12230
 
12231
class getAllBrandsByCategory_args:
12232
  """
12233
  Attributes:
12234
   - categoryId
12235
  """
12236
 
12237
  thrift_spec = (
12238
    None, # 0
12239
    (1, TType.I64, 'categoryId', None, None, ), # 1
12240
  )
12241
 
12242
  def __init__(self, categoryId=None,):
12243
    self.categoryId = categoryId
12244
 
12245
  def read(self, iprot):
12246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12248
      return
12249
    iprot.readStructBegin()
12250
    while True:
12251
      (fname, ftype, fid) = iprot.readFieldBegin()
12252
      if ftype == TType.STOP:
12253
        break
12254
      if fid == 1:
12255
        if ftype == TType.I64:
12256
          self.categoryId = iprot.readI64();
12257
        else:
12258
          iprot.skip(ftype)
12259
      else:
12260
        iprot.skip(ftype)
12261
      iprot.readFieldEnd()
12262
    iprot.readStructEnd()
12263
 
12264
  def write(self, oprot):
12265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12267
      return
12268
    oprot.writeStructBegin('getAllBrandsByCategory_args')
12269
    if self.categoryId is not None:
12270
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
12271
      oprot.writeI64(self.categoryId)
12272
      oprot.writeFieldEnd()
12273
    oprot.writeFieldStop()
12274
    oprot.writeStructEnd()
12275
 
12276
  def validate(self):
12277
    return
12278
 
12279
 
12280
  def __repr__(self):
12281
    L = ['%s=%r' % (key, value)
12282
      for key, value in self.__dict__.iteritems()]
12283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12284
 
12285
  def __eq__(self, other):
12286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12287
 
12288
  def __ne__(self, other):
12289
    return not (self == other)
12290
 
12291
class getAllBrandsByCategory_result:
12292
  """
12293
  Attributes:
12294
   - success
12295
  """
12296
 
12297
  thrift_spec = (
12298
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12299
  )
12300
 
12301
  def __init__(self, success=None,):
12302
    self.success = success
12303
 
12304
  def read(self, iprot):
12305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12307
      return
12308
    iprot.readStructBegin()
12309
    while True:
12310
      (fname, ftype, fid) = iprot.readFieldBegin()
12311
      if ftype == TType.STOP:
12312
        break
12313
      if fid == 0:
12314
        if ftype == TType.LIST:
12315
          self.success = []
6850 kshitij.so 12316
          (_etype210, _size207) = iprot.readListBegin()
12317
          for _i211 in xrange(_size207):
12318
            _elem212 = iprot.readString();
12319
            self.success.append(_elem212)
5944 mandeep.dh 12320
          iprot.readListEnd()
12321
        else:
12322
          iprot.skip(ftype)
12323
      else:
12324
        iprot.skip(ftype)
12325
      iprot.readFieldEnd()
12326
    iprot.readStructEnd()
12327
 
12328
  def write(self, oprot):
12329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12331
      return
12332
    oprot.writeStructBegin('getAllBrandsByCategory_result')
12333
    if self.success is not None:
12334
      oprot.writeFieldBegin('success', TType.LIST, 0)
12335
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12336
      for iter213 in self.success:
12337
        oprot.writeString(iter213)
5944 mandeep.dh 12338
      oprot.writeListEnd()
12339
      oprot.writeFieldEnd()
12340
    oprot.writeFieldStop()
12341
    oprot.writeStructEnd()
12342
 
12343
  def validate(self):
12344
    return
12345
 
12346
 
12347
  def __repr__(self):
12348
    L = ['%s=%r' % (key, value)
12349
      for key, value in self.__dict__.iteritems()]
12350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12351
 
12352
  def __eq__(self, other):
12353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12354
 
12355
  def __ne__(self, other):
12356
    return not (self == other)
12357
 
12358
class getAllBrands_args:
12359
 
12360
  thrift_spec = (
12361
  )
12362
 
12363
  def read(self, iprot):
12364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12366
      return
12367
    iprot.readStructBegin()
12368
    while True:
12369
      (fname, ftype, fid) = iprot.readFieldBegin()
12370
      if ftype == TType.STOP:
12371
        break
12372
      else:
12373
        iprot.skip(ftype)
12374
      iprot.readFieldEnd()
12375
    iprot.readStructEnd()
12376
 
12377
  def write(self, oprot):
12378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12380
      return
12381
    oprot.writeStructBegin('getAllBrands_args')
12382
    oprot.writeFieldStop()
12383
    oprot.writeStructEnd()
12384
 
12385
  def validate(self):
12386
    return
12387
 
12388
 
12389
  def __repr__(self):
12390
    L = ['%s=%r' % (key, value)
12391
      for key, value in self.__dict__.iteritems()]
12392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12393
 
12394
  def __eq__(self, other):
12395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12396
 
12397
  def __ne__(self, other):
12398
    return not (self == other)
12399
 
12400
class getAllBrands_result:
12401
  """
12402
  Attributes:
12403
   - success
12404
  """
12405
 
12406
  thrift_spec = (
12407
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12408
  )
12409
 
12410
  def __init__(self, success=None,):
12411
    self.success = success
12412
 
12413
  def read(self, iprot):
12414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12416
      return
12417
    iprot.readStructBegin()
12418
    while True:
12419
      (fname, ftype, fid) = iprot.readFieldBegin()
12420
      if ftype == TType.STOP:
12421
        break
12422
      if fid == 0:
12423
        if ftype == TType.LIST:
12424
          self.success = []
6850 kshitij.so 12425
          (_etype217, _size214) = iprot.readListBegin()
12426
          for _i218 in xrange(_size214):
12427
            _elem219 = iprot.readString();
12428
            self.success.append(_elem219)
5944 mandeep.dh 12429
          iprot.readListEnd()
12430
        else:
12431
          iprot.skip(ftype)
12432
      else:
12433
        iprot.skip(ftype)
12434
      iprot.readFieldEnd()
12435
    iprot.readStructEnd()
12436
 
12437
  def write(self, oprot):
12438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12440
      return
12441
    oprot.writeStructBegin('getAllBrands_result')
12442
    if self.success is not None:
12443
      oprot.writeFieldBegin('success', TType.LIST, 0)
12444
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12445
      for iter220 in self.success:
12446
        oprot.writeString(iter220)
5944 mandeep.dh 12447
      oprot.writeListEnd()
12448
      oprot.writeFieldEnd()
12449
    oprot.writeFieldStop()
12450
    oprot.writeStructEnd()
12451
 
12452
  def validate(self):
12453
    return
12454
 
12455
 
12456
  def __repr__(self):
12457
    L = ['%s=%r' % (key, value)
12458
      for key, value in self.__dict__.iteritems()]
12459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12460
 
12461
  def __eq__(self, other):
12462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12463
 
12464
  def __ne__(self, other):
12465
    return not (self == other)
12466
 
12467
class getAllSources_args:
12468
 
12469
  thrift_spec = (
12470
  )
12471
 
12472
  def read(self, iprot):
12473
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12474
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12475
      return
12476
    iprot.readStructBegin()
12477
    while True:
12478
      (fname, ftype, fid) = iprot.readFieldBegin()
12479
      if ftype == TType.STOP:
12480
        break
12481
      else:
12482
        iprot.skip(ftype)
12483
      iprot.readFieldEnd()
12484
    iprot.readStructEnd()
12485
 
12486
  def write(self, oprot):
12487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12489
      return
12490
    oprot.writeStructBegin('getAllSources_args')
12491
    oprot.writeFieldStop()
12492
    oprot.writeStructEnd()
12493
 
12494
  def validate(self):
12495
    return
12496
 
12497
 
12498
  def __repr__(self):
12499
    L = ['%s=%r' % (key, value)
12500
      for key, value in self.__dict__.iteritems()]
12501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12502
 
12503
  def __eq__(self, other):
12504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12505
 
12506
  def __ne__(self, other):
12507
    return not (self == other)
12508
 
12509
class getAllSources_result:
12510
  """
12511
  Attributes:
12512
   - success
12513
  """
12514
 
12515
  thrift_spec = (
12516
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
12517
  )
12518
 
12519
  def __init__(self, success=None,):
12520
    self.success = success
12521
 
12522
  def read(self, iprot):
12523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12525
      return
12526
    iprot.readStructBegin()
12527
    while True:
12528
      (fname, ftype, fid) = iprot.readFieldBegin()
12529
      if ftype == TType.STOP:
12530
        break
12531
      if fid == 0:
12532
        if ftype == TType.LIST:
12533
          self.success = []
6850 kshitij.so 12534
          (_etype224, _size221) = iprot.readListBegin()
12535
          for _i225 in xrange(_size221):
12536
            _elem226 = Source()
12537
            _elem226.read(iprot)
12538
            self.success.append(_elem226)
5944 mandeep.dh 12539
          iprot.readListEnd()
12540
        else:
12541
          iprot.skip(ftype)
12542
      else:
12543
        iprot.skip(ftype)
12544
      iprot.readFieldEnd()
12545
    iprot.readStructEnd()
12546
 
12547
  def write(self, oprot):
12548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12550
      return
12551
    oprot.writeStructBegin('getAllSources_result')
12552
    if self.success is not None:
12553
      oprot.writeFieldBegin('success', TType.LIST, 0)
12554
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12555
      for iter227 in self.success:
12556
        iter227.write(oprot)
5944 mandeep.dh 12557
      oprot.writeListEnd()
12558
      oprot.writeFieldEnd()
12559
    oprot.writeFieldStop()
12560
    oprot.writeStructEnd()
12561
 
12562
  def validate(self):
12563
    return
12564
 
12565
 
12566
  def __repr__(self):
12567
    L = ['%s=%r' % (key, value)
12568
      for key, value in self.__dict__.iteritems()]
12569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12570
 
12571
  def __eq__(self, other):
12572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12573
 
12574
  def __ne__(self, other):
12575
    return not (self == other)
12576
 
12577
class getItemPricingBySource_args:
12578
  """
12579
  Attributes:
12580
   - itemId
12581
   - sourceId
12582
  """
12583
 
12584
  thrift_spec = (
12585
    None, # 0
12586
    (1, TType.I64, 'itemId', None, None, ), # 1
12587
    (2, TType.I64, 'sourceId', None, None, ), # 2
12588
  )
12589
 
12590
  def __init__(self, itemId=None, sourceId=None,):
12591
    self.itemId = itemId
12592
    self.sourceId = sourceId
12593
 
12594
  def read(self, iprot):
12595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12597
      return
12598
    iprot.readStructBegin()
12599
    while True:
12600
      (fname, ftype, fid) = iprot.readFieldBegin()
12601
      if ftype == TType.STOP:
12602
        break
12603
      if fid == 1:
12604
        if ftype == TType.I64:
12605
          self.itemId = iprot.readI64();
12606
        else:
12607
          iprot.skip(ftype)
12608
      elif fid == 2:
12609
        if ftype == TType.I64:
12610
          self.sourceId = iprot.readI64();
12611
        else:
12612
          iprot.skip(ftype)
12613
      else:
12614
        iprot.skip(ftype)
12615
      iprot.readFieldEnd()
12616
    iprot.readStructEnd()
12617
 
12618
  def write(self, oprot):
12619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12621
      return
12622
    oprot.writeStructBegin('getItemPricingBySource_args')
12623
    if self.itemId is not None:
12624
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12625
      oprot.writeI64(self.itemId)
12626
      oprot.writeFieldEnd()
12627
    if self.sourceId is not None:
12628
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12629
      oprot.writeI64(self.sourceId)
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 getItemPricingBySource_result:
12650
  """
12651
  Attributes:
12652
   - success
12653
   - cex
12654
  """
12655
 
12656
  thrift_spec = (
12657
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
12658
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12659
  )
12660
 
12661
  def __init__(self, success=None, cex=None,):
12662
    self.success = success
12663
    self.cex = cex
12664
 
12665
  def read(self, iprot):
12666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12668
      return
12669
    iprot.readStructBegin()
12670
    while True:
12671
      (fname, ftype, fid) = iprot.readFieldBegin()
12672
      if ftype == TType.STOP:
12673
        break
12674
      if fid == 0:
12675
        if ftype == TType.STRUCT:
12676
          self.success = SourceItemPricing()
12677
          self.success.read(iprot)
12678
        else:
12679
          iprot.skip(ftype)
12680
      elif fid == 1:
12681
        if ftype == TType.STRUCT:
12682
          self.cex = CatalogServiceException()
12683
          self.cex.read(iprot)
12684
        else:
12685
          iprot.skip(ftype)
12686
      else:
12687
        iprot.skip(ftype)
12688
      iprot.readFieldEnd()
12689
    iprot.readStructEnd()
12690
 
12691
  def write(self, oprot):
12692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12694
      return
12695
    oprot.writeStructBegin('getItemPricingBySource_result')
12696
    if self.success is not None:
12697
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12698
      self.success.write(oprot)
12699
      oprot.writeFieldEnd()
12700
    if self.cex is not None:
12701
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12702
      self.cex.write(oprot)
12703
      oprot.writeFieldEnd()
12704
    oprot.writeFieldStop()
12705
    oprot.writeStructEnd()
12706
 
12707
  def validate(self):
12708
    return
12709
 
12710
 
12711
  def __repr__(self):
12712
    L = ['%s=%r' % (key, value)
12713
      for key, value in self.__dict__.iteritems()]
12714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12715
 
12716
  def __eq__(self, other):
12717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12718
 
12719
  def __ne__(self, other):
12720
    return not (self == other)
12721
 
12722
class addSourceItemPricing_args:
12723
  """
12724
  Attributes:
12725
   - sourceItemPricing
12726
  """
12727
 
12728
  thrift_spec = (
12729
    None, # 0
12730
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
12731
  )
12732
 
12733
  def __init__(self, sourceItemPricing=None,):
12734
    self.sourceItemPricing = sourceItemPricing
12735
 
12736
  def read(self, iprot):
12737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12739
      return
12740
    iprot.readStructBegin()
12741
    while True:
12742
      (fname, ftype, fid) = iprot.readFieldBegin()
12743
      if ftype == TType.STOP:
12744
        break
12745
      if fid == 1:
12746
        if ftype == TType.STRUCT:
12747
          self.sourceItemPricing = SourceItemPricing()
12748
          self.sourceItemPricing.read(iprot)
12749
        else:
12750
          iprot.skip(ftype)
12751
      else:
12752
        iprot.skip(ftype)
12753
      iprot.readFieldEnd()
12754
    iprot.readStructEnd()
12755
 
12756
  def write(self, oprot):
12757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12759
      return
12760
    oprot.writeStructBegin('addSourceItemPricing_args')
12761
    if self.sourceItemPricing is not None:
12762
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
12763
      self.sourceItemPricing.write(oprot)
12764
      oprot.writeFieldEnd()
12765
    oprot.writeFieldStop()
12766
    oprot.writeStructEnd()
12767
 
12768
  def validate(self):
12769
    return
12770
 
12771
 
12772
  def __repr__(self):
12773
    L = ['%s=%r' % (key, value)
12774
      for key, value in self.__dict__.iteritems()]
12775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12776
 
12777
  def __eq__(self, other):
12778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12779
 
12780
  def __ne__(self, other):
12781
    return not (self == other)
12782
 
12783
class addSourceItemPricing_result:
12784
  """
12785
  Attributes:
12786
   - cex
12787
  """
12788
 
12789
  thrift_spec = (
12790
    None, # 0
12791
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12792
  )
12793
 
12794
  def __init__(self, cex=None,):
12795
    self.cex = cex
12796
 
12797
  def read(self, iprot):
12798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12800
      return
12801
    iprot.readStructBegin()
12802
    while True:
12803
      (fname, ftype, fid) = iprot.readFieldBegin()
12804
      if ftype == TType.STOP:
12805
        break
12806
      if 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('addSourceItemPricing_result')
12822
    if self.cex is not None:
12823
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12824
      self.cex.write(oprot)
12825
      oprot.writeFieldEnd()
12826
    oprot.writeFieldStop()
12827
    oprot.writeStructEnd()
12828
 
12829
  def validate(self):
12830
    return
12831
 
12832
 
12833
  def __repr__(self):
12834
    L = ['%s=%r' % (key, value)
12835
      for key, value in self.__dict__.iteritems()]
12836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12837
 
12838
  def __eq__(self, other):
12839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12840
 
12841
  def __ne__(self, other):
12842
    return not (self == other)
12843
 
12844
class getAllSourcePricing_args:
12845
  """
12846
  Attributes:
12847
   - itemId
12848
  """
12849
 
12850
  thrift_spec = (
12851
    None, # 0
12852
    (1, TType.I64, 'itemId', None, None, ), # 1
12853
  )
12854
 
12855
  def __init__(self, itemId=None,):
12856
    self.itemId = itemId
12857
 
12858
  def read(self, iprot):
12859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12861
      return
12862
    iprot.readStructBegin()
12863
    while True:
12864
      (fname, ftype, fid) = iprot.readFieldBegin()
12865
      if ftype == TType.STOP:
12866
        break
12867
      if fid == 1:
12868
        if ftype == TType.I64:
12869
          self.itemId = iprot.readI64();
12870
        else:
12871
          iprot.skip(ftype)
12872
      else:
12873
        iprot.skip(ftype)
12874
      iprot.readFieldEnd()
12875
    iprot.readStructEnd()
12876
 
12877
  def write(self, oprot):
12878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12880
      return
12881
    oprot.writeStructBegin('getAllSourcePricing_args')
12882
    if self.itemId is not None:
12883
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12884
      oprot.writeI64(self.itemId)
12885
      oprot.writeFieldEnd()
12886
    oprot.writeFieldStop()
12887
    oprot.writeStructEnd()
12888
 
12889
  def validate(self):
12890
    return
12891
 
12892
 
12893
  def __repr__(self):
12894
    L = ['%s=%r' % (key, value)
12895
      for key, value in self.__dict__.iteritems()]
12896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12897
 
12898
  def __eq__(self, other):
12899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12900
 
12901
  def __ne__(self, other):
12902
    return not (self == other)
12903
 
12904
class getAllSourcePricing_result:
12905
  """
12906
  Attributes:
12907
   - success
12908
   - cex
12909
  """
12910
 
12911
  thrift_spec = (
12912
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
12913
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12914
  )
12915
 
12916
  def __init__(self, success=None, cex=None,):
12917
    self.success = success
12918
    self.cex = cex
12919
 
12920
  def read(self, iprot):
12921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12923
      return
12924
    iprot.readStructBegin()
12925
    while True:
12926
      (fname, ftype, fid) = iprot.readFieldBegin()
12927
      if ftype == TType.STOP:
12928
        break
12929
      if fid == 0:
12930
        if ftype == TType.LIST:
12931
          self.success = []
6850 kshitij.so 12932
          (_etype231, _size228) = iprot.readListBegin()
12933
          for _i232 in xrange(_size228):
12934
            _elem233 = SourceItemPricing()
12935
            _elem233.read(iprot)
12936
            self.success.append(_elem233)
5944 mandeep.dh 12937
          iprot.readListEnd()
12938
        else:
12939
          iprot.skip(ftype)
12940
      elif fid == 1:
12941
        if ftype == TType.STRUCT:
12942
          self.cex = CatalogServiceException()
12943
          self.cex.read(iprot)
12944
        else:
12945
          iprot.skip(ftype)
12946
      else:
12947
        iprot.skip(ftype)
12948
      iprot.readFieldEnd()
12949
    iprot.readStructEnd()
12950
 
12951
  def write(self, oprot):
12952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12954
      return
12955
    oprot.writeStructBegin('getAllSourcePricing_result')
12956
    if self.success is not None:
12957
      oprot.writeFieldBegin('success', TType.LIST, 0)
12958
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12959
      for iter234 in self.success:
12960
        iter234.write(oprot)
5944 mandeep.dh 12961
      oprot.writeListEnd()
12962
      oprot.writeFieldEnd()
12963
    if self.cex is not None:
12964
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12965
      self.cex.write(oprot)
12966
      oprot.writeFieldEnd()
12967
    oprot.writeFieldStop()
12968
    oprot.writeStructEnd()
12969
 
12970
  def validate(self):
12971
    return
12972
 
12973
 
12974
  def __repr__(self):
12975
    L = ['%s=%r' % (key, value)
12976
      for key, value in self.__dict__.iteritems()]
12977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12978
 
12979
  def __eq__(self, other):
12980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12981
 
12982
  def __ne__(self, other):
12983
    return not (self == other)
12984
 
12985
class getItemForSource_args:
12986
  """
12987
  Attributes:
12988
   - item_id
12989
   - sourceId
12990
  """
12991
 
12992
  thrift_spec = (
12993
    None, # 0
12994
    (1, TType.I64, 'item_id', None, None, ), # 1
12995
    (2, TType.I64, 'sourceId', None, None, ), # 2
12996
  )
12997
 
12998
  def __init__(self, item_id=None, sourceId=None,):
12999
    self.item_id = item_id
13000
    self.sourceId = sourceId
13001
 
13002
  def read(self, iprot):
13003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13005
      return
13006
    iprot.readStructBegin()
13007
    while True:
13008
      (fname, ftype, fid) = iprot.readFieldBegin()
13009
      if ftype == TType.STOP:
13010
        break
13011
      if fid == 1:
13012
        if ftype == TType.I64:
13013
          self.item_id = iprot.readI64();
13014
        else:
13015
          iprot.skip(ftype)
13016
      elif fid == 2:
13017
        if ftype == TType.I64:
13018
          self.sourceId = iprot.readI64();
13019
        else:
13020
          iprot.skip(ftype)
13021
      else:
13022
        iprot.skip(ftype)
13023
      iprot.readFieldEnd()
13024
    iprot.readStructEnd()
13025
 
13026
  def write(self, oprot):
13027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13029
      return
13030
    oprot.writeStructBegin('getItemForSource_args')
13031
    if self.item_id is not None:
13032
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13033
      oprot.writeI64(self.item_id)
13034
      oprot.writeFieldEnd()
13035
    if self.sourceId is not None:
13036
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13037
      oprot.writeI64(self.sourceId)
13038
      oprot.writeFieldEnd()
13039
    oprot.writeFieldStop()
13040
    oprot.writeStructEnd()
13041
 
13042
  def validate(self):
13043
    return
13044
 
13045
 
13046
  def __repr__(self):
13047
    L = ['%s=%r' % (key, value)
13048
      for key, value in self.__dict__.iteritems()]
13049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13050
 
13051
  def __eq__(self, other):
13052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13053
 
13054
  def __ne__(self, other):
13055
    return not (self == other)
13056
 
13057
class getItemForSource_result:
13058
  """
13059
  Attributes:
13060
   - success
13061
   - cex
13062
  """
13063
 
13064
  thrift_spec = (
13065
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
13066
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13067
  )
13068
 
13069
  def __init__(self, success=None, cex=None,):
13070
    self.success = success
13071
    self.cex = cex
13072
 
13073
  def read(self, iprot):
13074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13076
      return
13077
    iprot.readStructBegin()
13078
    while True:
13079
      (fname, ftype, fid) = iprot.readFieldBegin()
13080
      if ftype == TType.STOP:
13081
        break
13082
      if fid == 0:
13083
        if ftype == TType.STRUCT:
13084
          self.success = Item()
13085
          self.success.read(iprot)
13086
        else:
13087
          iprot.skip(ftype)
13088
      elif fid == 1:
13089
        if ftype == TType.STRUCT:
13090
          self.cex = CatalogServiceException()
13091
          self.cex.read(iprot)
13092
        else:
13093
          iprot.skip(ftype)
13094
      else:
13095
        iprot.skip(ftype)
13096
      iprot.readFieldEnd()
13097
    iprot.readStructEnd()
13098
 
13099
  def write(self, oprot):
13100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13102
      return
13103
    oprot.writeStructBegin('getItemForSource_result')
13104
    if self.success is not None:
13105
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13106
      self.success.write(oprot)
13107
      oprot.writeFieldEnd()
13108
    if self.cex is not None:
13109
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13110
      self.cex.write(oprot)
13111
      oprot.writeFieldEnd()
13112
    oprot.writeFieldStop()
13113
    oprot.writeStructEnd()
13114
 
13115
  def validate(self):
13116
    return
13117
 
13118
 
13119
  def __repr__(self):
13120
    L = ['%s=%r' % (key, value)
13121
      for key, value in self.__dict__.iteritems()]
13122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13123
 
13124
  def __eq__(self, other):
13125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13126
 
13127
  def __ne__(self, other):
13128
    return not (self == other)
13129
 
13130
class searchItemsInRange_args:
13131
  """
13132
  Attributes:
13133
   - searchTerms
13134
   - offset
13135
   - limit
13136
  """
13137
 
13138
  thrift_spec = (
13139
    None, # 0
13140
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13141
    (2, TType.I64, 'offset', None, None, ), # 2
13142
    (3, TType.I64, 'limit', None, None, ), # 3
13143
  )
13144
 
13145
  def __init__(self, searchTerms=None, offset=None, limit=None,):
13146
    self.searchTerms = searchTerms
13147
    self.offset = offset
13148
    self.limit = limit
13149
 
13150
  def read(self, iprot):
13151
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13152
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13153
      return
13154
    iprot.readStructBegin()
13155
    while True:
13156
      (fname, ftype, fid) = iprot.readFieldBegin()
13157
      if ftype == TType.STOP:
13158
        break
13159
      if fid == 1:
13160
        if ftype == TType.LIST:
13161
          self.searchTerms = []
6850 kshitij.so 13162
          (_etype238, _size235) = iprot.readListBegin()
13163
          for _i239 in xrange(_size235):
13164
            _elem240 = iprot.readString();
13165
            self.searchTerms.append(_elem240)
5944 mandeep.dh 13166
          iprot.readListEnd()
13167
        else:
13168
          iprot.skip(ftype)
13169
      elif fid == 2:
13170
        if ftype == TType.I64:
13171
          self.offset = iprot.readI64();
13172
        else:
13173
          iprot.skip(ftype)
13174
      elif fid == 3:
13175
        if ftype == TType.I64:
13176
          self.limit = iprot.readI64();
13177
        else:
13178
          iprot.skip(ftype)
13179
      else:
13180
        iprot.skip(ftype)
13181
      iprot.readFieldEnd()
13182
    iprot.readStructEnd()
13183
 
13184
  def write(self, oprot):
13185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13187
      return
13188
    oprot.writeStructBegin('searchItemsInRange_args')
13189
    if self.searchTerms is not None:
13190
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13191
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13192
      for iter241 in self.searchTerms:
13193
        oprot.writeString(iter241)
5944 mandeep.dh 13194
      oprot.writeListEnd()
13195
      oprot.writeFieldEnd()
13196
    if self.offset is not None:
13197
      oprot.writeFieldBegin('offset', TType.I64, 2)
13198
      oprot.writeI64(self.offset)
13199
      oprot.writeFieldEnd()
13200
    if self.limit is not None:
13201
      oprot.writeFieldBegin('limit', TType.I64, 3)
13202
      oprot.writeI64(self.limit)
13203
      oprot.writeFieldEnd()
13204
    oprot.writeFieldStop()
13205
    oprot.writeStructEnd()
13206
 
13207
  def validate(self):
13208
    return
13209
 
13210
 
13211
  def __repr__(self):
13212
    L = ['%s=%r' % (key, value)
13213
      for key, value in self.__dict__.iteritems()]
13214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13215
 
13216
  def __eq__(self, other):
13217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13218
 
13219
  def __ne__(self, other):
13220
    return not (self == other)
13221
 
13222
class searchItemsInRange_result:
13223
  """
13224
  Attributes:
13225
   - success
13226
  """
13227
 
13228
  thrift_spec = (
13229
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13230
  )
13231
 
13232
  def __init__(self, success=None,):
13233
    self.success = success
13234
 
13235
  def read(self, iprot):
13236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13238
      return
13239
    iprot.readStructBegin()
13240
    while True:
13241
      (fname, ftype, fid) = iprot.readFieldBegin()
13242
      if ftype == TType.STOP:
13243
        break
13244
      if fid == 0:
13245
        if ftype == TType.LIST:
13246
          self.success = []
6850 kshitij.so 13247
          (_etype245, _size242) = iprot.readListBegin()
13248
          for _i246 in xrange(_size242):
13249
            _elem247 = Item()
13250
            _elem247.read(iprot)
13251
            self.success.append(_elem247)
5944 mandeep.dh 13252
          iprot.readListEnd()
13253
        else:
13254
          iprot.skip(ftype)
13255
      else:
13256
        iprot.skip(ftype)
13257
      iprot.readFieldEnd()
13258
    iprot.readStructEnd()
13259
 
13260
  def write(self, oprot):
13261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13263
      return
13264
    oprot.writeStructBegin('searchItemsInRange_result')
13265
    if self.success is not None:
13266
      oprot.writeFieldBegin('success', TType.LIST, 0)
13267
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13268
      for iter248 in self.success:
13269
        iter248.write(oprot)
5944 mandeep.dh 13270
      oprot.writeListEnd()
13271
      oprot.writeFieldEnd()
13272
    oprot.writeFieldStop()
13273
    oprot.writeStructEnd()
13274
 
13275
  def validate(self):
13276
    return
13277
 
13278
 
13279
  def __repr__(self):
13280
    L = ['%s=%r' % (key, value)
13281
      for key, value in self.__dict__.iteritems()]
13282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13283
 
13284
  def __eq__(self, other):
13285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13286
 
13287
  def __ne__(self, other):
13288
    return not (self == other)
13289
 
13290
class getSearchResultCount_args:
13291
  """
13292
  Attributes:
13293
   - searchTerms
13294
  """
13295
 
13296
  thrift_spec = (
13297
    None, # 0
13298
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13299
  )
13300
 
13301
  def __init__(self, searchTerms=None,):
13302
    self.searchTerms = searchTerms
13303
 
13304
  def read(self, iprot):
13305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13307
      return
13308
    iprot.readStructBegin()
13309
    while True:
13310
      (fname, ftype, fid) = iprot.readFieldBegin()
13311
      if ftype == TType.STOP:
13312
        break
13313
      if fid == 1:
13314
        if ftype == TType.LIST:
13315
          self.searchTerms = []
6850 kshitij.so 13316
          (_etype252, _size249) = iprot.readListBegin()
13317
          for _i253 in xrange(_size249):
13318
            _elem254 = iprot.readString();
13319
            self.searchTerms.append(_elem254)
5944 mandeep.dh 13320
          iprot.readListEnd()
13321
        else:
13322
          iprot.skip(ftype)
13323
      else:
13324
        iprot.skip(ftype)
13325
      iprot.readFieldEnd()
13326
    iprot.readStructEnd()
13327
 
13328
  def write(self, oprot):
13329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13331
      return
13332
    oprot.writeStructBegin('getSearchResultCount_args')
13333
    if self.searchTerms is not None:
13334
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13335
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13336
      for iter255 in self.searchTerms:
13337
        oprot.writeString(iter255)
5944 mandeep.dh 13338
      oprot.writeListEnd()
13339
      oprot.writeFieldEnd()
13340
    oprot.writeFieldStop()
13341
    oprot.writeStructEnd()
13342
 
13343
  def validate(self):
13344
    return
13345
 
13346
 
13347
  def __repr__(self):
13348
    L = ['%s=%r' % (key, value)
13349
      for key, value in self.__dict__.iteritems()]
13350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13351
 
13352
  def __eq__(self, other):
13353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13354
 
13355
  def __ne__(self, other):
13356
    return not (self == other)
13357
 
13358
class getSearchResultCount_result:
13359
  """
13360
  Attributes:
13361
   - success
13362
  """
13363
 
13364
  thrift_spec = (
13365
    (0, TType.I32, 'success', None, None, ), # 0
13366
  )
13367
 
13368
  def __init__(self, success=None,):
13369
    self.success = success
13370
 
13371
  def read(self, iprot):
13372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13374
      return
13375
    iprot.readStructBegin()
13376
    while True:
13377
      (fname, ftype, fid) = iprot.readFieldBegin()
13378
      if ftype == TType.STOP:
13379
        break
13380
      if fid == 0:
13381
        if ftype == TType.I32:
13382
          self.success = iprot.readI32();
13383
        else:
13384
          iprot.skip(ftype)
13385
      else:
13386
        iprot.skip(ftype)
13387
      iprot.readFieldEnd()
13388
    iprot.readStructEnd()
13389
 
13390
  def write(self, oprot):
13391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13393
      return
13394
    oprot.writeStructBegin('getSearchResultCount_result')
13395
    if self.success is not None:
13396
      oprot.writeFieldBegin('success', TType.I32, 0)
13397
      oprot.writeI32(self.success)
13398
      oprot.writeFieldEnd()
13399
    oprot.writeFieldStop()
13400
    oprot.writeStructEnd()
13401
 
13402
  def validate(self):
13403
    return
13404
 
13405
 
13406
  def __repr__(self):
13407
    L = ['%s=%r' % (key, value)
13408
      for key, value in self.__dict__.iteritems()]
13409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13410
 
13411
  def __eq__(self, other):
13412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13413
 
13414
  def __ne__(self, other):
13415
    return not (self == other)
13416
 
13417
class getProductNotifications_args:
13418
  """
13419
  Attributes:
13420
   - startDateTime
13421
  """
13422
 
13423
  thrift_spec = (
13424
    None, # 0
13425
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13426
  )
13427
 
13428
  def __init__(self, startDateTime=None,):
13429
    self.startDateTime = startDateTime
13430
 
13431
  def read(self, iprot):
13432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13434
      return
13435
    iprot.readStructBegin()
13436
    while True:
13437
      (fname, ftype, fid) = iprot.readFieldBegin()
13438
      if ftype == TType.STOP:
13439
        break
13440
      if fid == 1:
13441
        if ftype == TType.I64:
13442
          self.startDateTime = iprot.readI64();
13443
        else:
13444
          iprot.skip(ftype)
13445
      else:
13446
        iprot.skip(ftype)
13447
      iprot.readFieldEnd()
13448
    iprot.readStructEnd()
13449
 
13450
  def write(self, oprot):
13451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13453
      return
13454
    oprot.writeStructBegin('getProductNotifications_args')
13455
    if self.startDateTime is not None:
13456
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13457
      oprot.writeI64(self.startDateTime)
13458
      oprot.writeFieldEnd()
13459
    oprot.writeFieldStop()
13460
    oprot.writeStructEnd()
13461
 
13462
  def validate(self):
13463
    return
13464
 
13465
 
13466
  def __repr__(self):
13467
    L = ['%s=%r' % (key, value)
13468
      for key, value in self.__dict__.iteritems()]
13469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13470
 
13471
  def __eq__(self, other):
13472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13473
 
13474
  def __ne__(self, other):
13475
    return not (self == other)
13476
 
13477
class getProductNotifications_result:
13478
  """
13479
  Attributes:
13480
   - success
13481
  """
13482
 
13483
  thrift_spec = (
13484
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
13485
  )
13486
 
13487
  def __init__(self, success=None,):
13488
    self.success = success
13489
 
13490
  def read(self, iprot):
13491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13493
      return
13494
    iprot.readStructBegin()
13495
    while True:
13496
      (fname, ftype, fid) = iprot.readFieldBegin()
13497
      if ftype == TType.STOP:
13498
        break
13499
      if fid == 0:
13500
        if ftype == TType.LIST:
13501
          self.success = []
6850 kshitij.so 13502
          (_etype259, _size256) = iprot.readListBegin()
13503
          for _i260 in xrange(_size256):
13504
            _elem261 = ProductNotificationRequest()
13505
            _elem261.read(iprot)
13506
            self.success.append(_elem261)
5944 mandeep.dh 13507
          iprot.readListEnd()
13508
        else:
13509
          iprot.skip(ftype)
13510
      else:
13511
        iprot.skip(ftype)
13512
      iprot.readFieldEnd()
13513
    iprot.readStructEnd()
13514
 
13515
  def write(self, oprot):
13516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13518
      return
13519
    oprot.writeStructBegin('getProductNotifications_result')
13520
    if self.success is not None:
13521
      oprot.writeFieldBegin('success', TType.LIST, 0)
13522
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13523
      for iter262 in self.success:
13524
        iter262.write(oprot)
5944 mandeep.dh 13525
      oprot.writeListEnd()
13526
      oprot.writeFieldEnd()
13527
    oprot.writeFieldStop()
13528
    oprot.writeStructEnd()
13529
 
13530
  def validate(self):
13531
    return
13532
 
13533
 
13534
  def __repr__(self):
13535
    L = ['%s=%r' % (key, value)
13536
      for key, value in self.__dict__.iteritems()]
13537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13538
 
13539
  def __eq__(self, other):
13540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13541
 
13542
  def __ne__(self, other):
13543
    return not (self == other)
13544
 
13545
class getProductNotificationRequestCount_args:
13546
  """
13547
  Attributes:
13548
   - startDateTime
13549
  """
13550
 
13551
  thrift_spec = (
13552
    None, # 0
13553
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13554
  )
13555
 
13556
  def __init__(self, startDateTime=None,):
13557
    self.startDateTime = startDateTime
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.startDateTime = iprot.readI64();
13571
        else:
13572
          iprot.skip(ftype)
13573
      else:
13574
        iprot.skip(ftype)
13575
      iprot.readFieldEnd()
13576
    iprot.readStructEnd()
13577
 
13578
  def write(self, oprot):
13579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13581
      return
13582
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
13583
    if self.startDateTime is not None:
13584
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13585
      oprot.writeI64(self.startDateTime)
13586
      oprot.writeFieldEnd()
13587
    oprot.writeFieldStop()
13588
    oprot.writeStructEnd()
13589
 
13590
  def validate(self):
13591
    return
13592
 
13593
 
13594
  def __repr__(self):
13595
    L = ['%s=%r' % (key, value)
13596
      for key, value in self.__dict__.iteritems()]
13597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13598
 
13599
  def __eq__(self, other):
13600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13601
 
13602
  def __ne__(self, other):
13603
    return not (self == other)
13604
 
13605
class getProductNotificationRequestCount_result:
13606
  """
13607
  Attributes:
13608
   - success
13609
  """
13610
 
13611
  thrift_spec = (
13612
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
13613
  )
13614
 
13615
  def __init__(self, success=None,):
13616
    self.success = success
13617
 
13618
  def read(self, iprot):
13619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13621
      return
13622
    iprot.readStructBegin()
13623
    while True:
13624
      (fname, ftype, fid) = iprot.readFieldBegin()
13625
      if ftype == TType.STOP:
13626
        break
13627
      if fid == 0:
13628
        if ftype == TType.LIST:
13629
          self.success = []
6850 kshitij.so 13630
          (_etype266, _size263) = iprot.readListBegin()
13631
          for _i267 in xrange(_size263):
13632
            _elem268 = ProductNotificationRequestCount()
13633
            _elem268.read(iprot)
13634
            self.success.append(_elem268)
5944 mandeep.dh 13635
          iprot.readListEnd()
13636
        else:
13637
          iprot.skip(ftype)
13638
      else:
13639
        iprot.skip(ftype)
13640
      iprot.readFieldEnd()
13641
    iprot.readStructEnd()
13642
 
13643
  def write(self, oprot):
13644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13646
      return
13647
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
13648
    if self.success is not None:
13649
      oprot.writeFieldBegin('success', TType.LIST, 0)
13650
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13651
      for iter269 in self.success:
13652
        iter269.write(oprot)
5944 mandeep.dh 13653
      oprot.writeListEnd()
13654
      oprot.writeFieldEnd()
13655
    oprot.writeFieldStop()
13656
    oprot.writeStructEnd()
13657
 
13658
  def validate(self):
13659
    return
13660
 
13661
 
13662
  def __repr__(self):
13663
    L = ['%s=%r' % (key, value)
13664
      for key, value in self.__dict__.iteritems()]
13665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13666
 
13667
  def __eq__(self, other):
13668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13669
 
13670
  def __ne__(self, other):
13671
    return not (self == other)
13672
 
13673
class addAuthorizationLog_args:
13674
  """
13675
  Attributes:
13676
   - itemId
13677
   - username
13678
   - reason
13679
  """
13680
 
13681
  thrift_spec = (
13682
    None, # 0
13683
    (1, TType.I64, 'itemId', None, None, ), # 1
13684
    (2, TType.STRING, 'username', None, None, ), # 2
13685
    (3, TType.STRING, 'reason', None, None, ), # 3
13686
  )
13687
 
13688
  def __init__(self, itemId=None, username=None, reason=None,):
13689
    self.itemId = itemId
13690
    self.username = username
13691
    self.reason = reason
13692
 
13693
  def read(self, iprot):
13694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13696
      return
13697
    iprot.readStructBegin()
13698
    while True:
13699
      (fname, ftype, fid) = iprot.readFieldBegin()
13700
      if ftype == TType.STOP:
13701
        break
13702
      if fid == 1:
13703
        if ftype == TType.I64:
13704
          self.itemId = iprot.readI64();
13705
        else:
13706
          iprot.skip(ftype)
13707
      elif fid == 2:
13708
        if ftype == TType.STRING:
13709
          self.username = iprot.readString();
13710
        else:
13711
          iprot.skip(ftype)
13712
      elif fid == 3:
13713
        if ftype == TType.STRING:
13714
          self.reason = iprot.readString();
13715
        else:
13716
          iprot.skip(ftype)
13717
      else:
13718
        iprot.skip(ftype)
13719
      iprot.readFieldEnd()
13720
    iprot.readStructEnd()
13721
 
13722
  def write(self, oprot):
13723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13725
      return
13726
    oprot.writeStructBegin('addAuthorizationLog_args')
13727
    if self.itemId is not None:
13728
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13729
      oprot.writeI64(self.itemId)
13730
      oprot.writeFieldEnd()
13731
    if self.username is not None:
13732
      oprot.writeFieldBegin('username', TType.STRING, 2)
13733
      oprot.writeString(self.username)
13734
      oprot.writeFieldEnd()
13735
    if self.reason is not None:
13736
      oprot.writeFieldBegin('reason', TType.STRING, 3)
13737
      oprot.writeString(self.reason)
13738
      oprot.writeFieldEnd()
13739
    oprot.writeFieldStop()
13740
    oprot.writeStructEnd()
13741
 
13742
  def validate(self):
13743
    return
13744
 
13745
 
13746
  def __repr__(self):
13747
    L = ['%s=%r' % (key, value)
13748
      for key, value in self.__dict__.iteritems()]
13749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13750
 
13751
  def __eq__(self, other):
13752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13753
 
13754
  def __ne__(self, other):
13755
    return not (self == other)
13756
 
13757
class addAuthorizationLog_result:
13758
  """
13759
  Attributes:
13760
   - success
13761
   - cex
13762
  """
13763
 
13764
  thrift_spec = (
13765
    (0, TType.BOOL, 'success', None, None, ), # 0
13766
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13767
  )
13768
 
13769
  def __init__(self, success=None, cex=None,):
13770
    self.success = success
13771
    self.cex = cex
13772
 
13773
  def read(self, iprot):
13774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13776
      return
13777
    iprot.readStructBegin()
13778
    while True:
13779
      (fname, ftype, fid) = iprot.readFieldBegin()
13780
      if ftype == TType.STOP:
13781
        break
13782
      if fid == 0:
13783
        if ftype == TType.BOOL:
13784
          self.success = iprot.readBool();
13785
        else:
13786
          iprot.skip(ftype)
13787
      elif fid == 1:
13788
        if ftype == TType.STRUCT:
13789
          self.cex = CatalogServiceException()
13790
          self.cex.read(iprot)
13791
        else:
13792
          iprot.skip(ftype)
13793
      else:
13794
        iprot.skip(ftype)
13795
      iprot.readFieldEnd()
13796
    iprot.readStructEnd()
13797
 
13798
  def write(self, oprot):
13799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13801
      return
13802
    oprot.writeStructBegin('addAuthorizationLog_result')
13803
    if self.success is not None:
13804
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13805
      oprot.writeBool(self.success)
13806
      oprot.writeFieldEnd()
13807
    if self.cex is not None:
13808
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13809
      self.cex.write(oprot)
13810
      oprot.writeFieldEnd()
13811
    oprot.writeFieldStop()
13812
    oprot.writeStructEnd()
13813
 
13814
  def validate(self):
13815
    return
13816
 
13817
 
13818
  def __repr__(self):
13819
    L = ['%s=%r' % (key, value)
13820
      for key, value in self.__dict__.iteritems()]
13821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13822
 
13823
  def __eq__(self, other):
13824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13825
 
13826
  def __ne__(self, other):
13827
    return not (self == other)
13828
 
13829
class addupdateVoucherForItem_args:
13830
  """
13831
  Attributes:
13832
   - catalog_item_id
13833
   - voucherType
13834
   - voucherAmount
13835
  """
13836
 
13837
  thrift_spec = (
13838
    None, # 0
13839
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13840
    (2, TType.I64, 'voucherType', None, None, ), # 2
13841
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
13842
  )
13843
 
13844
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
13845
    self.catalog_item_id = catalog_item_id
13846
    self.voucherType = voucherType
13847
    self.voucherAmount = voucherAmount
13848
 
13849
  def read(self, iprot):
13850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13852
      return
13853
    iprot.readStructBegin()
13854
    while True:
13855
      (fname, ftype, fid) = iprot.readFieldBegin()
13856
      if ftype == TType.STOP:
13857
        break
13858
      if fid == 1:
13859
        if ftype == TType.I64:
13860
          self.catalog_item_id = iprot.readI64();
13861
        else:
13862
          iprot.skip(ftype)
13863
      elif fid == 2:
13864
        if ftype == TType.I64:
13865
          self.voucherType = iprot.readI64();
13866
        else:
13867
          iprot.skip(ftype)
13868
      elif fid == 3:
13869
        if ftype == TType.I64:
13870
          self.voucherAmount = iprot.readI64();
13871
        else:
13872
          iprot.skip(ftype)
13873
      else:
13874
        iprot.skip(ftype)
13875
      iprot.readFieldEnd()
13876
    iprot.readStructEnd()
13877
 
13878
  def write(self, oprot):
13879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13881
      return
13882
    oprot.writeStructBegin('addupdateVoucherForItem_args')
13883
    if self.catalog_item_id is not None:
13884
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13885
      oprot.writeI64(self.catalog_item_id)
13886
      oprot.writeFieldEnd()
13887
    if self.voucherType is not None:
13888
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13889
      oprot.writeI64(self.voucherType)
13890
      oprot.writeFieldEnd()
13891
    if self.voucherAmount is not None:
13892
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
13893
      oprot.writeI64(self.voucherAmount)
13894
      oprot.writeFieldEnd()
13895
    oprot.writeFieldStop()
13896
    oprot.writeStructEnd()
13897
 
13898
  def validate(self):
13899
    return
13900
 
13901
 
13902
  def __repr__(self):
13903
    L = ['%s=%r' % (key, value)
13904
      for key, value in self.__dict__.iteritems()]
13905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13906
 
13907
  def __eq__(self, other):
13908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13909
 
13910
  def __ne__(self, other):
13911
    return not (self == other)
13912
 
13913
class addupdateVoucherForItem_result:
13914
  """
13915
  Attributes:
13916
   - success
13917
   - cex
13918
  """
13919
 
13920
  thrift_spec = (
13921
    (0, TType.BOOL, 'success', None, None, ), # 0
13922
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13923
  )
13924
 
13925
  def __init__(self, success=None, cex=None,):
13926
    self.success = success
13927
    self.cex = cex
13928
 
13929
  def read(self, iprot):
13930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13932
      return
13933
    iprot.readStructBegin()
13934
    while True:
13935
      (fname, ftype, fid) = iprot.readFieldBegin()
13936
      if ftype == TType.STOP:
13937
        break
13938
      if fid == 0:
13939
        if ftype == TType.BOOL:
13940
          self.success = iprot.readBool();
13941
        else:
13942
          iprot.skip(ftype)
13943
      elif fid == 1:
13944
        if ftype == TType.STRUCT:
13945
          self.cex = CatalogServiceException()
13946
          self.cex.read(iprot)
13947
        else:
13948
          iprot.skip(ftype)
13949
      else:
13950
        iprot.skip(ftype)
13951
      iprot.readFieldEnd()
13952
    iprot.readStructEnd()
13953
 
13954
  def write(self, oprot):
13955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13957
      return
13958
    oprot.writeStructBegin('addupdateVoucherForItem_result')
13959
    if self.success is not None:
13960
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13961
      oprot.writeBool(self.success)
13962
      oprot.writeFieldEnd()
13963
    if self.cex is not None:
13964
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13965
      self.cex.write(oprot)
13966
      oprot.writeFieldEnd()
13967
    oprot.writeFieldStop()
13968
    oprot.writeStructEnd()
13969
 
13970
  def validate(self):
13971
    return
13972
 
13973
 
13974
  def __repr__(self):
13975
    L = ['%s=%r' % (key, value)
13976
      for key, value in self.__dict__.iteritems()]
13977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13978
 
13979
  def __eq__(self, other):
13980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13981
 
13982
  def __ne__(self, other):
13983
    return not (self == other)
13984
 
13985
class deleteVoucherForItem_args:
13986
  """
13987
  Attributes:
13988
   - catalog_item_id
13989
   - voucherType
13990
  """
13991
 
13992
  thrift_spec = (
13993
    None, # 0
13994
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13995
    (2, TType.I64, 'voucherType', None, None, ), # 2
13996
  )
13997
 
13998
  def __init__(self, catalog_item_id=None, voucherType=None,):
13999
    self.catalog_item_id = catalog_item_id
14000
    self.voucherType = voucherType
14001
 
14002
  def read(self, iprot):
14003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14005
      return
14006
    iprot.readStructBegin()
14007
    while True:
14008
      (fname, ftype, fid) = iprot.readFieldBegin()
14009
      if ftype == TType.STOP:
14010
        break
14011
      if fid == 1:
14012
        if ftype == TType.I64:
14013
          self.catalog_item_id = iprot.readI64();
14014
        else:
14015
          iprot.skip(ftype)
14016
      elif fid == 2:
14017
        if ftype == TType.I64:
14018
          self.voucherType = iprot.readI64();
14019
        else:
14020
          iprot.skip(ftype)
14021
      else:
14022
        iprot.skip(ftype)
14023
      iprot.readFieldEnd()
14024
    iprot.readStructEnd()
14025
 
14026
  def write(self, oprot):
14027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14029
      return
14030
    oprot.writeStructBegin('deleteVoucherForItem_args')
14031
    if self.catalog_item_id is not None:
14032
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
14033
      oprot.writeI64(self.catalog_item_id)
14034
      oprot.writeFieldEnd()
14035
    if self.voucherType is not None:
14036
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
14037
      oprot.writeI64(self.voucherType)
14038
      oprot.writeFieldEnd()
14039
    oprot.writeFieldStop()
14040
    oprot.writeStructEnd()
14041
 
14042
  def validate(self):
14043
    return
14044
 
14045
 
14046
  def __repr__(self):
14047
    L = ['%s=%r' % (key, value)
14048
      for key, value in self.__dict__.iteritems()]
14049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14050
 
14051
  def __eq__(self, other):
14052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14053
 
14054
  def __ne__(self, other):
14055
    return not (self == other)
14056
 
14057
class deleteVoucherForItem_result:
14058
  """
14059
  Attributes:
14060
   - success
14061
   - cex
14062
  """
14063
 
14064
  thrift_spec = (
14065
    (0, TType.BOOL, 'success', None, None, ), # 0
14066
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
14067
  )
14068
 
14069
  def __init__(self, success=None, cex=None,):
14070
    self.success = success
14071
    self.cex = cex
14072
 
14073
  def read(self, iprot):
14074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14076
      return
14077
    iprot.readStructBegin()
14078
    while True:
14079
      (fname, ftype, fid) = iprot.readFieldBegin()
14080
      if ftype == TType.STOP:
14081
        break
14082
      if fid == 0:
14083
        if ftype == TType.BOOL:
14084
          self.success = iprot.readBool();
14085
        else:
14086
          iprot.skip(ftype)
14087
      elif fid == 1:
14088
        if ftype == TType.STRUCT:
14089
          self.cex = CatalogServiceException()
14090
          self.cex.read(iprot)
14091
        else:
14092
          iprot.skip(ftype)
14093
      else:
14094
        iprot.skip(ftype)
14095
      iprot.readFieldEnd()
14096
    iprot.readStructEnd()
14097
 
14098
  def write(self, oprot):
14099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14101
      return
14102
    oprot.writeStructBegin('deleteVoucherForItem_result')
14103
    if self.success is not None:
14104
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14105
      oprot.writeBool(self.success)
14106
      oprot.writeFieldEnd()
14107
    if self.cex is not None:
14108
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14109
      self.cex.write(oprot)
14110
      oprot.writeFieldEnd()
14111
    oprot.writeFieldStop()
14112
    oprot.writeStructEnd()
14113
 
14114
  def validate(self):
14115
    return
14116
 
14117
 
14118
  def __repr__(self):
14119
    L = ['%s=%r' % (key, value)
14120
      for key, value in self.__dict__.iteritems()]
14121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14122
 
14123
  def __eq__(self, other):
14124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14125
 
14126
  def __ne__(self, other):
14127
    return not (self == other)
14128
 
14129
class getVoucherAmount_args:
14130
  """
14131
  Attributes:
14132
   - itemId
14133
   - voucherType
14134
  """
14135
 
14136
  thrift_spec = (
14137
    None, # 0
14138
    (1, TType.I64, 'itemId', None, None, ), # 1
14139
    (2, TType.I64, 'voucherType', None, None, ), # 2
14140
  )
14141
 
14142
  def __init__(self, itemId=None, voucherType=None,):
14143
    self.itemId = itemId
14144
    self.voucherType = voucherType
14145
 
14146
  def read(self, iprot):
14147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14149
      return
14150
    iprot.readStructBegin()
14151
    while True:
14152
      (fname, ftype, fid) = iprot.readFieldBegin()
14153
      if ftype == TType.STOP:
14154
        break
14155
      if fid == 1:
14156
        if ftype == TType.I64:
14157
          self.itemId = iprot.readI64();
14158
        else:
14159
          iprot.skip(ftype)
14160
      elif fid == 2:
14161
        if ftype == TType.I64:
14162
          self.voucherType = iprot.readI64();
14163
        else:
14164
          iprot.skip(ftype)
14165
      else:
14166
        iprot.skip(ftype)
14167
      iprot.readFieldEnd()
14168
    iprot.readStructEnd()
14169
 
14170
  def write(self, oprot):
14171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14173
      return
14174
    oprot.writeStructBegin('getVoucherAmount_args')
14175
    if self.itemId is not None:
14176
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14177
      oprot.writeI64(self.itemId)
14178
      oprot.writeFieldEnd()
14179
    if self.voucherType is not None:
14180
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
14181
      oprot.writeI64(self.voucherType)
14182
      oprot.writeFieldEnd()
14183
    oprot.writeFieldStop()
14184
    oprot.writeStructEnd()
14185
 
14186
  def validate(self):
14187
    return
14188
 
14189
 
14190
  def __repr__(self):
14191
    L = ['%s=%r' % (key, value)
14192
      for key, value in self.__dict__.iteritems()]
14193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14194
 
14195
  def __eq__(self, other):
14196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14197
 
14198
  def __ne__(self, other):
14199
    return not (self == other)
14200
 
14201
class getVoucherAmount_result:
14202
  """
14203
  Attributes:
14204
   - success
14205
  """
14206
 
14207
  thrift_spec = (
14208
    (0, TType.I64, 'success', None, None, ), # 0
14209
  )
14210
 
14211
  def __init__(self, success=None,):
14212
    self.success = success
14213
 
14214
  def read(self, iprot):
14215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14217
      return
14218
    iprot.readStructBegin()
14219
    while True:
14220
      (fname, ftype, fid) = iprot.readFieldBegin()
14221
      if ftype == TType.STOP:
14222
        break
14223
      if fid == 0:
14224
        if ftype == TType.I64:
14225
          self.success = iprot.readI64();
14226
        else:
14227
          iprot.skip(ftype)
14228
      else:
14229
        iprot.skip(ftype)
14230
      iprot.readFieldEnd()
14231
    iprot.readStructEnd()
14232
 
14233
  def write(self, oprot):
14234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14236
      return
14237
    oprot.writeStructBegin('getVoucherAmount_result')
14238
    if self.success is not None:
14239
      oprot.writeFieldBegin('success', TType.I64, 0)
14240
      oprot.writeI64(self.success)
14241
      oprot.writeFieldEnd()
14242
    oprot.writeFieldStop()
14243
    oprot.writeStructEnd()
14244
 
14245
  def validate(self):
14246
    return
14247
 
14248
 
14249
  def __repr__(self):
14250
    L = ['%s=%r' % (key, value)
14251
      for key, value in self.__dict__.iteritems()]
14252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14253
 
14254
  def __eq__(self, other):
14255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14256
 
14257
  def __ne__(self, other):
14258
    return not (self == other)
14259
 
14260
class getAllItemVouchers_args:
14261
  """
14262
  Attributes:
14263
   - itemId
14264
  """
14265
 
14266
  thrift_spec = (
14267
    None, # 0
14268
    (1, TType.I64, 'itemId', None, None, ), # 1
14269
  )
14270
 
14271
  def __init__(self, itemId=None,):
14272
    self.itemId = itemId
14273
 
14274
  def read(self, iprot):
14275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14277
      return
14278
    iprot.readStructBegin()
14279
    while True:
14280
      (fname, ftype, fid) = iprot.readFieldBegin()
14281
      if ftype == TType.STOP:
14282
        break
14283
      if fid == 1:
14284
        if ftype == TType.I64:
14285
          self.itemId = iprot.readI64();
14286
        else:
14287
          iprot.skip(ftype)
14288
      else:
14289
        iprot.skip(ftype)
14290
      iprot.readFieldEnd()
14291
    iprot.readStructEnd()
14292
 
14293
  def write(self, oprot):
14294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14296
      return
14297
    oprot.writeStructBegin('getAllItemVouchers_args')
14298
    if self.itemId is not None:
14299
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14300
      oprot.writeI64(self.itemId)
14301
      oprot.writeFieldEnd()
14302
    oprot.writeFieldStop()
14303
    oprot.writeStructEnd()
14304
 
14305
  def validate(self):
14306
    return
14307
 
14308
 
14309
  def __repr__(self):
14310
    L = ['%s=%r' % (key, value)
14311
      for key, value in self.__dict__.iteritems()]
14312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14313
 
14314
  def __eq__(self, other):
14315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14316
 
14317
  def __ne__(self, other):
14318
    return not (self == other)
14319
 
14320
class getAllItemVouchers_result:
14321
  """
14322
  Attributes:
14323
   - success
14324
  """
14325
 
14326
  thrift_spec = (
14327
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
14328
  )
14329
 
14330
  def __init__(self, success=None,):
14331
    self.success = success
14332
 
14333
  def read(self, iprot):
14334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14336
      return
14337
    iprot.readStructBegin()
14338
    while True:
14339
      (fname, ftype, fid) = iprot.readFieldBegin()
14340
      if ftype == TType.STOP:
14341
        break
14342
      if fid == 0:
14343
        if ftype == TType.LIST:
14344
          self.success = []
7256 rajveer 14345
          (_etype273, _size270) = iprot.readListBegin()
14346
          for _i274 in xrange(_size270):
14347
            _elem275 = VoucherItemMapping()
14348
            _elem275.read(iprot)
14349
            self.success.append(_elem275)
5944 mandeep.dh 14350
          iprot.readListEnd()
14351
        else:
14352
          iprot.skip(ftype)
14353
      else:
14354
        iprot.skip(ftype)
14355
      iprot.readFieldEnd()
14356
    iprot.readStructEnd()
14357
 
14358
  def write(self, oprot):
14359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14361
      return
14362
    oprot.writeStructBegin('getAllItemVouchers_result')
14363
    if self.success is not None:
14364
      oprot.writeFieldBegin('success', TType.LIST, 0)
14365
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 14366
      for iter276 in self.success:
14367
        iter276.write(oprot)
5944 mandeep.dh 14368
      oprot.writeListEnd()
14369
      oprot.writeFieldEnd()
14370
    oprot.writeFieldStop()
14371
    oprot.writeStructEnd()
14372
 
14373
  def validate(self):
14374
    return
14375
 
14376
 
14377
  def __repr__(self):
14378
    L = ['%s=%r' % (key, value)
14379
      for key, value in self.__dict__.iteritems()]
14380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14381
 
14382
  def __eq__(self, other):
14383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14384
 
14385
  def __ne__(self, other):
14386
    return not (self == other)
14387
 
14388
class isValidCatalogItemId_args:
14389
  """
14390
  Attributes:
14391
   - catalog_item_id
14392
  """
14393
 
14394
  thrift_spec = (
14395
    None, # 0
14396
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
14397
  )
14398
 
14399
  def __init__(self, catalog_item_id=None,):
14400
    self.catalog_item_id = catalog_item_id
14401
 
14402
  def read(self, iprot):
14403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14405
      return
14406
    iprot.readStructBegin()
14407
    while True:
14408
      (fname, ftype, fid) = iprot.readFieldBegin()
14409
      if ftype == TType.STOP:
14410
        break
14411
      if fid == 1:
14412
        if ftype == TType.I64:
14413
          self.catalog_item_id = iprot.readI64();
14414
        else:
14415
          iprot.skip(ftype)
14416
      else:
14417
        iprot.skip(ftype)
14418
      iprot.readFieldEnd()
14419
    iprot.readStructEnd()
14420
 
14421
  def write(self, oprot):
14422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14424
      return
14425
    oprot.writeStructBegin('isValidCatalogItemId_args')
14426
    if self.catalog_item_id is not None:
14427
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
14428
      oprot.writeI64(self.catalog_item_id)
14429
      oprot.writeFieldEnd()
14430
    oprot.writeFieldStop()
14431
    oprot.writeStructEnd()
14432
 
14433
  def validate(self):
14434
    return
14435
 
14436
 
14437
  def __repr__(self):
14438
    L = ['%s=%r' % (key, value)
14439
      for key, value in self.__dict__.iteritems()]
14440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14441
 
14442
  def __eq__(self, other):
14443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14444
 
14445
  def __ne__(self, other):
14446
    return not (self == other)
14447
 
14448
class isValidCatalogItemId_result:
14449
  """
14450
  Attributes:
14451
   - success
14452
  """
14453
 
14454
  thrift_spec = (
14455
    (0, TType.BOOL, 'success', None, None, ), # 0
14456
  )
14457
 
14458
  def __init__(self, success=None,):
14459
    self.success = success
14460
 
14461
  def read(self, iprot):
14462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14464
      return
14465
    iprot.readStructBegin()
14466
    while True:
14467
      (fname, ftype, fid) = iprot.readFieldBegin()
14468
      if ftype == TType.STOP:
14469
        break
14470
      if fid == 0:
14471
        if ftype == TType.BOOL:
14472
          self.success = iprot.readBool();
14473
        else:
14474
          iprot.skip(ftype)
14475
      else:
14476
        iprot.skip(ftype)
14477
      iprot.readFieldEnd()
14478
    iprot.readStructEnd()
14479
 
14480
  def write(self, oprot):
14481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14483
      return
14484
    oprot.writeStructBegin('isValidCatalogItemId_result')
14485
    if self.success is not None:
14486
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14487
      oprot.writeBool(self.success)
14488
      oprot.writeFieldEnd()
14489
    oprot.writeFieldStop()
14490
    oprot.writeStructEnd()
14491
 
14492
  def validate(self):
14493
    return
14494
 
14495
 
14496
  def __repr__(self):
14497
    L = ['%s=%r' % (key, value)
14498
      for key, value in self.__dict__.iteritems()]
14499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14500
 
14501
  def __eq__(self, other):
14502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14503
 
14504
  def __ne__(self, other):
14505
    return not (self == other)
6039 amit.gupta 14506
 
14507
class getVatPercentageForItem_args:
14508
  """
14509
  Attributes:
14510
   - itemId
14511
   - price
14512
  """
14513
 
14514
  thrift_spec = (
14515
    None, # 0
14516
    (1, TType.I64, 'itemId', None, None, ), # 1
14517
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14518
  )
14519
 
14520
  def __init__(self, itemId=None, price=None,):
14521
    self.itemId = itemId
14522
    self.price = price
14523
 
14524
  def read(self, iprot):
14525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14527
      return
14528
    iprot.readStructBegin()
14529
    while True:
14530
      (fname, ftype, fid) = iprot.readFieldBegin()
14531
      if ftype == TType.STOP:
14532
        break
14533
      if fid == 1:
14534
        if ftype == TType.I64:
14535
          self.itemId = iprot.readI64();
14536
        else:
14537
          iprot.skip(ftype)
14538
      elif fid == 2:
14539
        if ftype == TType.DOUBLE:
14540
          self.price = iprot.readDouble();
14541
        else:
14542
          iprot.skip(ftype)
14543
      else:
14544
        iprot.skip(ftype)
14545
      iprot.readFieldEnd()
14546
    iprot.readStructEnd()
14547
 
14548
  def write(self, oprot):
14549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14551
      return
14552
    oprot.writeStructBegin('getVatPercentageForItem_args')
14553
    if self.itemId is not None:
14554
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14555
      oprot.writeI64(self.itemId)
14556
      oprot.writeFieldEnd()
14557
    if self.price is not None:
14558
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14559
      oprot.writeDouble(self.price)
14560
      oprot.writeFieldEnd()
14561
    oprot.writeFieldStop()
14562
    oprot.writeStructEnd()
14563
 
14564
  def validate(self):
14565
    return
14566
 
14567
 
14568
  def __repr__(self):
14569
    L = ['%s=%r' % (key, value)
14570
      for key, value in self.__dict__.iteritems()]
14571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14572
 
14573
  def __eq__(self, other):
14574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14575
 
14576
  def __ne__(self, other):
14577
    return not (self == other)
14578
 
14579
class getVatPercentageForItem_result:
14580
  """
14581
  Attributes:
14582
   - success
14583
  """
14584
 
14585
  thrift_spec = (
14586
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14587
  )
14588
 
14589
  def __init__(self, success=None,):
14590
    self.success = success
14591
 
14592
  def read(self, iprot):
14593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14595
      return
14596
    iprot.readStructBegin()
14597
    while True:
14598
      (fname, ftype, fid) = iprot.readFieldBegin()
14599
      if ftype == TType.STOP:
14600
        break
14601
      if fid == 0:
14602
        if ftype == TType.DOUBLE:
14603
          self.success = iprot.readDouble();
14604
        else:
14605
          iprot.skip(ftype)
14606
      else:
14607
        iprot.skip(ftype)
14608
      iprot.readFieldEnd()
14609
    iprot.readStructEnd()
14610
 
14611
  def write(self, oprot):
14612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14614
      return
14615
    oprot.writeStructBegin('getVatPercentageForItem_result')
14616
    if self.success is not None:
14617
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14618
      oprot.writeDouble(self.success)
14619
      oprot.writeFieldEnd()
14620
    oprot.writeFieldStop()
14621
    oprot.writeStructEnd()
14622
 
14623
  def validate(self):
14624
    return
14625
 
14626
 
14627
  def __repr__(self):
14628
    L = ['%s=%r' % (key, value)
14629
      for key, value in self.__dict__.iteritems()]
14630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14631
 
14632
  def __eq__(self, other):
14633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14634
 
14635
  def __ne__(self, other):
14636
    return not (self == other)
14637
 
14638
class getVatAmountForItem_args:
14639
  """
14640
  Attributes:
14641
   - itemId
14642
   - price
14643
  """
14644
 
14645
  thrift_spec = (
14646
    None, # 0
14647
    (1, TType.I64, 'itemId', None, None, ), # 1
14648
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14649
  )
14650
 
14651
  def __init__(self, itemId=None, price=None,):
14652
    self.itemId = itemId
14653
    self.price = price
14654
 
14655
  def read(self, iprot):
14656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14658
      return
14659
    iprot.readStructBegin()
14660
    while True:
14661
      (fname, ftype, fid) = iprot.readFieldBegin()
14662
      if ftype == TType.STOP:
14663
        break
14664
      if fid == 1:
14665
        if ftype == TType.I64:
14666
          self.itemId = iprot.readI64();
14667
        else:
14668
          iprot.skip(ftype)
14669
      elif fid == 2:
14670
        if ftype == TType.DOUBLE:
14671
          self.price = iprot.readDouble();
14672
        else:
14673
          iprot.skip(ftype)
14674
      else:
14675
        iprot.skip(ftype)
14676
      iprot.readFieldEnd()
14677
    iprot.readStructEnd()
14678
 
14679
  def write(self, oprot):
14680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14682
      return
14683
    oprot.writeStructBegin('getVatAmountForItem_args')
14684
    if self.itemId is not None:
14685
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14686
      oprot.writeI64(self.itemId)
14687
      oprot.writeFieldEnd()
14688
    if self.price is not None:
14689
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14690
      oprot.writeDouble(self.price)
14691
      oprot.writeFieldEnd()
14692
    oprot.writeFieldStop()
14693
    oprot.writeStructEnd()
14694
 
14695
  def validate(self):
14696
    return
14697
 
14698
 
14699
  def __repr__(self):
14700
    L = ['%s=%r' % (key, value)
14701
      for key, value in self.__dict__.iteritems()]
14702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14703
 
14704
  def __eq__(self, other):
14705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14706
 
14707
  def __ne__(self, other):
14708
    return not (self == other)
14709
 
14710
class getVatAmountForItem_result:
14711
  """
14712
  Attributes:
14713
   - success
14714
  """
14715
 
14716
  thrift_spec = (
14717
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14718
  )
14719
 
14720
  def __init__(self, success=None,):
14721
    self.success = success
14722
 
14723
  def read(self, iprot):
14724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14726
      return
14727
    iprot.readStructBegin()
14728
    while True:
14729
      (fname, ftype, fid) = iprot.readFieldBegin()
14730
      if ftype == TType.STOP:
14731
        break
14732
      if fid == 0:
14733
        if ftype == TType.DOUBLE:
14734
          self.success = iprot.readDouble();
14735
        else:
14736
          iprot.skip(ftype)
14737
      else:
14738
        iprot.skip(ftype)
14739
      iprot.readFieldEnd()
14740
    iprot.readStructEnd()
14741
 
14742
  def write(self, oprot):
14743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14745
      return
14746
    oprot.writeStructBegin('getVatAmountForItem_result')
14747
    if self.success is not None:
14748
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14749
      oprot.writeDouble(self.success)
14750
      oprot.writeFieldEnd()
14751
    oprot.writeFieldStop()
14752
    oprot.writeStructEnd()
14753
 
14754
  def validate(self):
14755
    return
14756
 
14757
 
14758
  def __repr__(self):
14759
    L = ['%s=%r' % (key, value)
14760
      for key, value in self.__dict__.iteritems()]
14761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14762
 
14763
  def __eq__(self, other):
14764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14765
 
14766
  def __ne__(self, other):
14767
    return not (self == other)
6531 vikram.rag 14768
 
14769
class getAllIgnoredInventoryUpdateItemsList_args:
14770
  """
14771
  Attributes:
14772
   - offset
14773
   - limit
14774
  """
14775
 
14776
  thrift_spec = (
14777
    None, # 0
14778
    (1, TType.I32, 'offset', None, None, ), # 1
14779
    (2, TType.I32, 'limit', None, None, ), # 2
14780
  )
14781
 
14782
  def __init__(self, offset=None, limit=None,):
14783
    self.offset = offset
14784
    self.limit = limit
14785
 
14786
  def read(self, iprot):
14787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14789
      return
14790
    iprot.readStructBegin()
14791
    while True:
14792
      (fname, ftype, fid) = iprot.readFieldBegin()
14793
      if ftype == TType.STOP:
14794
        break
14795
      if fid == 1:
14796
        if ftype == TType.I32:
14797
          self.offset = iprot.readI32();
14798
        else:
14799
          iprot.skip(ftype)
14800
      elif fid == 2:
14801
        if ftype == TType.I32:
14802
          self.limit = iprot.readI32();
14803
        else:
14804
          iprot.skip(ftype)
14805
      else:
14806
        iprot.skip(ftype)
14807
      iprot.readFieldEnd()
14808
    iprot.readStructEnd()
14809
 
14810
  def write(self, oprot):
14811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14813
      return
14814
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
14815
    if self.offset is not None:
14816
      oprot.writeFieldBegin('offset', TType.I32, 1)
14817
      oprot.writeI32(self.offset)
14818
      oprot.writeFieldEnd()
14819
    if self.limit is not None:
14820
      oprot.writeFieldBegin('limit', TType.I32, 2)
14821
      oprot.writeI32(self.limit)
14822
      oprot.writeFieldEnd()
14823
    oprot.writeFieldStop()
14824
    oprot.writeStructEnd()
14825
 
14826
  def validate(self):
14827
    return
14828
 
14829
 
14830
  def __repr__(self):
14831
    L = ['%s=%r' % (key, value)
14832
      for key, value in self.__dict__.iteritems()]
14833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14834
 
14835
  def __eq__(self, other):
14836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14837
 
14838
  def __ne__(self, other):
14839
    return not (self == other)
14840
 
14841
class getAllIgnoredInventoryUpdateItemsList_result:
14842
  """
14843
  Attributes:
14844
   - success
14845
  """
14846
 
14847
  thrift_spec = (
14848
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14849
  )
14850
 
14851
  def __init__(self, success=None,):
14852
    self.success = success
14853
 
14854
  def read(self, iprot):
14855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14857
      return
14858
    iprot.readStructBegin()
14859
    while True:
14860
      (fname, ftype, fid) = iprot.readFieldBegin()
14861
      if ftype == TType.STOP:
14862
        break
14863
      if fid == 0:
14864
        if ftype == TType.LIST:
14865
          self.success = []
7256 rajveer 14866
          (_etype280, _size277) = iprot.readListBegin()
14867
          for _i281 in xrange(_size277):
14868
            _elem282 = Item()
14869
            _elem282.read(iprot)
14870
            self.success.append(_elem282)
6531 vikram.rag 14871
          iprot.readListEnd()
14872
        else:
14873
          iprot.skip(ftype)
14874
      else:
14875
        iprot.skip(ftype)
14876
      iprot.readFieldEnd()
14877
    iprot.readStructEnd()
14878
 
14879
  def write(self, oprot):
14880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14882
      return
14883
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
14884
    if self.success is not None:
14885
      oprot.writeFieldBegin('success', TType.LIST, 0)
14886
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 14887
      for iter283 in self.success:
14888
        iter283.write(oprot)
6531 vikram.rag 14889
      oprot.writeListEnd()
14890
      oprot.writeFieldEnd()
14891
    oprot.writeFieldStop()
14892
    oprot.writeStructEnd()
14893
 
14894
  def validate(self):
14895
    return
14896
 
14897
 
14898
  def __repr__(self):
14899
    L = ['%s=%r' % (key, value)
14900
      for key, value in self.__dict__.iteritems()]
14901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14902
 
14903
  def __eq__(self, other):
14904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14905
 
14906
  def __ne__(self, other):
14907
    return not (self == other)
6805 anupam.sin 14908
 
6821 amar.kumar 14909
class getAllAliveItems_args:
14910
 
14911
  thrift_spec = (
14912
  )
14913
 
14914
  def read(self, iprot):
14915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14917
      return
14918
    iprot.readStructBegin()
14919
    while True:
14920
      (fname, ftype, fid) = iprot.readFieldBegin()
14921
      if ftype == TType.STOP:
14922
        break
14923
      else:
14924
        iprot.skip(ftype)
14925
      iprot.readFieldEnd()
14926
    iprot.readStructEnd()
14927
 
14928
  def write(self, oprot):
14929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14931
      return
14932
    oprot.writeStructBegin('getAllAliveItems_args')
14933
    oprot.writeFieldStop()
14934
    oprot.writeStructEnd()
14935
 
14936
  def validate(self):
14937
    return
14938
 
14939
 
14940
  def __repr__(self):
14941
    L = ['%s=%r' % (key, value)
14942
      for key, value in self.__dict__.iteritems()]
14943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14944
 
14945
  def __eq__(self, other):
14946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14947
 
14948
  def __ne__(self, other):
14949
    return not (self == other)
14950
 
14951
class getAllAliveItems_result:
14952
  """
14953
  Attributes:
14954
   - success
14955
  """
14956
 
14957
  thrift_spec = (
14958
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14959
  )
14960
 
14961
  def __init__(self, success=None,):
14962
    self.success = success
14963
 
14964
  def read(self, iprot):
14965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14967
      return
14968
    iprot.readStructBegin()
14969
    while True:
14970
      (fname, ftype, fid) = iprot.readFieldBegin()
14971
      if ftype == TType.STOP:
14972
        break
14973
      if fid == 0:
14974
        if ftype == TType.LIST:
14975
          self.success = []
7256 rajveer 14976
          (_etype287, _size284) = iprot.readListBegin()
14977
          for _i288 in xrange(_size284):
14978
            _elem289 = Item()
14979
            _elem289.read(iprot)
14980
            self.success.append(_elem289)
6821 amar.kumar 14981
          iprot.readListEnd()
14982
        else:
14983
          iprot.skip(ftype)
14984
      else:
14985
        iprot.skip(ftype)
14986
      iprot.readFieldEnd()
14987
    iprot.readStructEnd()
14988
 
14989
  def write(self, oprot):
14990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14992
      return
14993
    oprot.writeStructBegin('getAllAliveItems_result')
14994
    if self.success is not None:
14995
      oprot.writeFieldBegin('success', TType.LIST, 0)
14996
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 14997
      for iter290 in self.success:
14998
        iter290.write(oprot)
6821 amar.kumar 14999
      oprot.writeListEnd()
15000
      oprot.writeFieldEnd()
15001
    oprot.writeFieldStop()
15002
    oprot.writeStructEnd()
15003
 
15004
  def validate(self):
15005
    return
15006
 
15007
 
15008
  def __repr__(self):
15009
    L = ['%s=%r' % (key, value)
15010
      for key, value in self.__dict__.iteritems()]
15011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15012
 
15013
  def __eq__(self, other):
15014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15015
 
15016
  def __ne__(self, other):
15017
    return not (self == other)
15018
 
6805 anupam.sin 15019
class getInsuranceAmount_args:
15020
  """
15021
  Attributes:
15022
   - itemId
6921 anupam.sin 15023
   - price
6805 anupam.sin 15024
   - insurerId
15025
   - quantity
15026
  """
15027
 
15028
  thrift_spec = (
15029
    None, # 0
15030
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 15031
    (2, TType.DOUBLE, 'price', None, None, ), # 2
15032
    (3, TType.I64, 'insurerId', None, None, ), # 3
15033
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 15034
  )
15035
 
6921 anupam.sin 15036
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 15037
    self.itemId = itemId
6921 anupam.sin 15038
    self.price = price
6805 anupam.sin 15039
    self.insurerId = insurerId
15040
    self.quantity = quantity
15041
 
15042
  def read(self, iprot):
15043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15045
      return
15046
    iprot.readStructBegin()
15047
    while True:
15048
      (fname, ftype, fid) = iprot.readFieldBegin()
15049
      if ftype == TType.STOP:
15050
        break
15051
      if fid == 1:
15052
        if ftype == TType.I64:
15053
          self.itemId = iprot.readI64();
15054
        else:
15055
          iprot.skip(ftype)
15056
      elif fid == 2:
6921 anupam.sin 15057
        if ftype == TType.DOUBLE:
15058
          self.price = iprot.readDouble();
15059
        else:
15060
          iprot.skip(ftype)
15061
      elif fid == 3:
6805 anupam.sin 15062
        if ftype == TType.I64:
15063
          self.insurerId = iprot.readI64();
15064
        else:
15065
          iprot.skip(ftype)
6921 anupam.sin 15066
      elif fid == 4:
6805 anupam.sin 15067
        if ftype == TType.I64:
15068
          self.quantity = iprot.readI64();
15069
        else:
15070
          iprot.skip(ftype)
15071
      else:
15072
        iprot.skip(ftype)
15073
      iprot.readFieldEnd()
15074
    iprot.readStructEnd()
15075
 
15076
  def write(self, oprot):
15077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15079
      return
15080
    oprot.writeStructBegin('getInsuranceAmount_args')
15081
    if self.itemId is not None:
15082
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15083
      oprot.writeI64(self.itemId)
15084
      oprot.writeFieldEnd()
6921 anupam.sin 15085
    if self.price is not None:
15086
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
15087
      oprot.writeDouble(self.price)
15088
      oprot.writeFieldEnd()
6805 anupam.sin 15089
    if self.insurerId is not None:
6921 anupam.sin 15090
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 15091
      oprot.writeI64(self.insurerId)
15092
      oprot.writeFieldEnd()
15093
    if self.quantity is not None:
6921 anupam.sin 15094
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 15095
      oprot.writeI64(self.quantity)
15096
      oprot.writeFieldEnd()
15097
    oprot.writeFieldStop()
15098
    oprot.writeStructEnd()
15099
 
15100
  def validate(self):
15101
    return
15102
 
15103
 
15104
  def __repr__(self):
15105
    L = ['%s=%r' % (key, value)
15106
      for key, value in self.__dict__.iteritems()]
15107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15108
 
15109
  def __eq__(self, other):
15110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15111
 
15112
  def __ne__(self, other):
15113
    return not (self == other)
15114
 
15115
class getInsuranceAmount_result:
15116
  """
15117
  Attributes:
15118
   - success
15119
  """
15120
 
15121
  thrift_spec = (
15122
    (0, TType.I64, 'success', None, None, ), # 0
15123
  )
15124
 
15125
  def __init__(self, success=None,):
15126
    self.success = success
15127
 
15128
  def read(self, iprot):
15129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15131
      return
15132
    iprot.readStructBegin()
15133
    while True:
15134
      (fname, ftype, fid) = iprot.readFieldBegin()
15135
      if ftype == TType.STOP:
15136
        break
15137
      if fid == 0:
15138
        if ftype == TType.I64:
15139
          self.success = iprot.readI64();
15140
        else:
15141
          iprot.skip(ftype)
15142
      else:
15143
        iprot.skip(ftype)
15144
      iprot.readFieldEnd()
15145
    iprot.readStructEnd()
15146
 
15147
  def write(self, oprot):
15148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15150
      return
15151
    oprot.writeStructBegin('getInsuranceAmount_result')
15152
    if self.success is not None:
15153
      oprot.writeFieldBegin('success', TType.I64, 0)
15154
      oprot.writeI64(self.success)
15155
      oprot.writeFieldEnd()
15156
    oprot.writeFieldStop()
15157
    oprot.writeStructEnd()
15158
 
15159
  def validate(self):
15160
    return
15161
 
15162
 
15163
  def __repr__(self):
15164
    L = ['%s=%r' % (key, value)
15165
      for key, value in self.__dict__.iteritems()]
15166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15167
 
15168
  def __eq__(self, other):
15169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15170
 
15171
  def __ne__(self, other):
15172
    return not (self == other)
15173
 
15174
class getInsurer_args:
15175
  """
15176
  Attributes:
15177
   - insurerId
15178
  """
15179
 
15180
  thrift_spec = (
15181
    None, # 0
15182
    (1, TType.I64, 'insurerId', None, None, ), # 1
15183
  )
15184
 
15185
  def __init__(self, insurerId=None,):
15186
    self.insurerId = insurerId
15187
 
15188
  def read(self, iprot):
15189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15191
      return
15192
    iprot.readStructBegin()
15193
    while True:
15194
      (fname, ftype, fid) = iprot.readFieldBegin()
15195
      if ftype == TType.STOP:
15196
        break
15197
      if fid == 1:
15198
        if ftype == TType.I64:
15199
          self.insurerId = iprot.readI64();
15200
        else:
15201
          iprot.skip(ftype)
15202
      else:
15203
        iprot.skip(ftype)
15204
      iprot.readFieldEnd()
15205
    iprot.readStructEnd()
15206
 
15207
  def write(self, oprot):
15208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15210
      return
15211
    oprot.writeStructBegin('getInsurer_args')
15212
    if self.insurerId is not None:
15213
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15214
      oprot.writeI64(self.insurerId)
15215
      oprot.writeFieldEnd()
15216
    oprot.writeFieldStop()
15217
    oprot.writeStructEnd()
15218
 
15219
  def validate(self):
15220
    return
15221
 
15222
 
15223
  def __repr__(self):
15224
    L = ['%s=%r' % (key, value)
15225
      for key, value in self.__dict__.iteritems()]
15226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15227
 
15228
  def __eq__(self, other):
15229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15230
 
15231
  def __ne__(self, other):
15232
    return not (self == other)
15233
 
15234
class getInsurer_result:
15235
  """
15236
  Attributes:
15237
   - success
15238
  """
15239
 
15240
  thrift_spec = (
15241
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
15242
  )
15243
 
15244
  def __init__(self, success=None,):
15245
    self.success = success
15246
 
15247
  def read(self, iprot):
15248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15250
      return
15251
    iprot.readStructBegin()
15252
    while True:
15253
      (fname, ftype, fid) = iprot.readFieldBegin()
15254
      if ftype == TType.STOP:
15255
        break
15256
      if fid == 0:
15257
        if ftype == TType.STRUCT:
15258
          self.success = Insurer()
15259
          self.success.read(iprot)
15260
        else:
15261
          iprot.skip(ftype)
15262
      else:
15263
        iprot.skip(ftype)
15264
      iprot.readFieldEnd()
15265
    iprot.readStructEnd()
15266
 
15267
  def write(self, oprot):
15268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15270
      return
15271
    oprot.writeStructBegin('getInsurer_result')
15272
    if self.success is not None:
15273
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15274
      self.success.write(oprot)
15275
      oprot.writeFieldEnd()
15276
    oprot.writeFieldStop()
15277
    oprot.writeStructEnd()
15278
 
15279
  def validate(self):
15280
    return
15281
 
15282
 
15283
  def __repr__(self):
15284
    L = ['%s=%r' % (key, value)
15285
      for key, value in self.__dict__.iteritems()]
15286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15287
 
15288
  def __eq__(self, other):
15289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15290
 
15291
  def __ne__(self, other):
15292
    return not (self == other)
6838 vikram.rag 15293
 
15294
class getAllInsurers_args:
15295
 
15296
  thrift_spec = (
15297
  )
15298
 
15299
  def read(self, iprot):
15300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15302
      return
15303
    iprot.readStructBegin()
15304
    while True:
15305
      (fname, ftype, fid) = iprot.readFieldBegin()
15306
      if ftype == TType.STOP:
15307
        break
15308
      else:
15309
        iprot.skip(ftype)
15310
      iprot.readFieldEnd()
15311
    iprot.readStructEnd()
15312
 
15313
  def write(self, oprot):
15314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15316
      return
15317
    oprot.writeStructBegin('getAllInsurers_args')
15318
    oprot.writeFieldStop()
15319
    oprot.writeStructEnd()
15320
 
15321
  def validate(self):
15322
    return
15323
 
15324
 
15325
  def __repr__(self):
15326
    L = ['%s=%r' % (key, value)
15327
      for key, value in self.__dict__.iteritems()]
15328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15329
 
15330
  def __eq__(self, other):
15331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15332
 
15333
  def __ne__(self, other):
15334
    return not (self == other)
15335
 
15336
class getAllInsurers_result:
15337
  """
15338
  Attributes:
15339
   - success
15340
  """
15341
 
15342
  thrift_spec = (
15343
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
15344
  )
15345
 
15346
  def __init__(self, success=None,):
15347
    self.success = success
15348
 
15349
  def read(self, iprot):
15350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15352
      return
15353
    iprot.readStructBegin()
15354
    while True:
15355
      (fname, ftype, fid) = iprot.readFieldBegin()
15356
      if ftype == TType.STOP:
15357
        break
15358
      if fid == 0:
15359
        if ftype == TType.LIST:
15360
          self.success = []
7256 rajveer 15361
          (_etype294, _size291) = iprot.readListBegin()
15362
          for _i295 in xrange(_size291):
15363
            _elem296 = Insurer()
15364
            _elem296.read(iprot)
15365
            self.success.append(_elem296)
6838 vikram.rag 15366
          iprot.readListEnd()
15367
        else:
15368
          iprot.skip(ftype)
15369
      else:
15370
        iprot.skip(ftype)
15371
      iprot.readFieldEnd()
15372
    iprot.readStructEnd()
15373
 
15374
  def write(self, oprot):
15375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15377
      return
15378
    oprot.writeStructBegin('getAllInsurers_result')
15379
    if self.success is not None:
15380
      oprot.writeFieldBegin('success', TType.LIST, 0)
15381
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 15382
      for iter297 in self.success:
15383
        iter297.write(oprot)
6838 vikram.rag 15384
      oprot.writeListEnd()
15385
      oprot.writeFieldEnd()
15386
    oprot.writeFieldStop()
15387
    oprot.writeStructEnd()
15388
 
15389
  def validate(self):
15390
    return
15391
 
15392
 
15393
  def __repr__(self):
15394
    L = ['%s=%r' % (key, value)
15395
      for key, value in self.__dict__.iteritems()]
15396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15397
 
15398
  def __eq__(self, other):
15399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15400
 
15401
  def __ne__(self, other):
15402
    return not (self == other)
6962 rajveer 15403
 
15404
class updateInsuranceDeclaredAmount_args:
15405
  """
15406
  Attributes:
15407
   - insurerId
15408
   - amount
15409
  """
15410
 
15411
  thrift_spec = (
15412
    None, # 0
15413
    (1, TType.I64, 'insurerId', None, None, ), # 1
15414
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
15415
  )
15416
 
15417
  def __init__(self, insurerId=None, amount=None,):
15418
    self.insurerId = insurerId
15419
    self.amount = amount
15420
 
15421
  def read(self, iprot):
15422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15424
      return
15425
    iprot.readStructBegin()
15426
    while True:
15427
      (fname, ftype, fid) = iprot.readFieldBegin()
15428
      if ftype == TType.STOP:
15429
        break
15430
      if fid == 1:
15431
        if ftype == TType.I64:
15432
          self.insurerId = iprot.readI64();
15433
        else:
15434
          iprot.skip(ftype)
15435
      elif fid == 2:
15436
        if ftype == TType.DOUBLE:
15437
          self.amount = iprot.readDouble();
15438
        else:
15439
          iprot.skip(ftype)
15440
      else:
15441
        iprot.skip(ftype)
15442
      iprot.readFieldEnd()
15443
    iprot.readStructEnd()
15444
 
15445
  def write(self, oprot):
15446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15448
      return
15449
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
15450
    if self.insurerId is not None:
15451
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15452
      oprot.writeI64(self.insurerId)
15453
      oprot.writeFieldEnd()
15454
    if self.amount is not None:
15455
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
15456
      oprot.writeDouble(self.amount)
15457
      oprot.writeFieldEnd()
15458
    oprot.writeFieldStop()
15459
    oprot.writeStructEnd()
15460
 
15461
  def validate(self):
15462
    return
15463
 
15464
 
15465
  def __repr__(self):
15466
    L = ['%s=%r' % (key, value)
15467
      for key, value in self.__dict__.iteritems()]
15468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15469
 
15470
  def __eq__(self, other):
15471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15472
 
15473
  def __ne__(self, other):
15474
    return not (self == other)
15475
 
15476
class updateInsuranceDeclaredAmount_result:
15477
 
15478
  thrift_spec = (
15479
  )
15480
 
15481
  def read(self, iprot):
15482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15484
      return
15485
    iprot.readStructBegin()
15486
    while True:
15487
      (fname, ftype, fid) = iprot.readFieldBegin()
15488
      if ftype == TType.STOP:
15489
        break
15490
      else:
15491
        iprot.skip(ftype)
15492
      iprot.readFieldEnd()
15493
    iprot.readStructEnd()
15494
 
15495
  def write(self, oprot):
15496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15498
      return
15499
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
15500
    oprot.writeFieldStop()
15501
    oprot.writeStructEnd()
15502
 
15503
  def validate(self):
15504
    return
15505
 
15506
 
15507
  def __repr__(self):
15508
    L = ['%s=%r' % (key, value)
15509
      for key, value in self.__dict__.iteritems()]
15510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15511
 
15512
  def __eq__(self, other):
15513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15514
 
15515
  def __ne__(self, other):
15516
    return not (self == other)
7190 amar.kumar 15517
 
15518
class getFreebieForItem_args:
15519
  """
15520
  Attributes:
15521
   - itemId
15522
  """
15523
 
15524
  thrift_spec = (
15525
    None, # 0
15526
    (1, TType.I64, 'itemId', None, None, ), # 1
15527
  )
15528
 
15529
  def __init__(self, itemId=None,):
15530
    self.itemId = itemId
15531
 
15532
  def read(self, iprot):
15533
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15534
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15535
      return
15536
    iprot.readStructBegin()
15537
    while True:
15538
      (fname, ftype, fid) = iprot.readFieldBegin()
15539
      if ftype == TType.STOP:
15540
        break
15541
      if fid == 1:
15542
        if ftype == TType.I64:
15543
          self.itemId = iprot.readI64();
15544
        else:
15545
          iprot.skip(ftype)
15546
      else:
15547
        iprot.skip(ftype)
15548
      iprot.readFieldEnd()
15549
    iprot.readStructEnd()
15550
 
15551
  def write(self, oprot):
15552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15554
      return
15555
    oprot.writeStructBegin('getFreebieForItem_args')
15556
    if self.itemId is not None:
15557
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15558
      oprot.writeI64(self.itemId)
15559
      oprot.writeFieldEnd()
15560
    oprot.writeFieldStop()
15561
    oprot.writeStructEnd()
15562
 
15563
  def validate(self):
15564
    return
15565
 
15566
 
15567
  def __repr__(self):
15568
    L = ['%s=%r' % (key, value)
15569
      for key, value in self.__dict__.iteritems()]
15570
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15571
 
15572
  def __eq__(self, other):
15573
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15574
 
15575
  def __ne__(self, other):
15576
    return not (self == other)
15577
 
15578
class getFreebieForItem_result:
15579
  """
15580
  Attributes:
15581
   - success
15582
  """
15583
 
15584
  thrift_spec = (
15585
    (0, TType.I64, 'success', None, None, ), # 0
15586
  )
15587
 
15588
  def __init__(self, success=None,):
15589
    self.success = success
15590
 
15591
  def read(self, iprot):
15592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15594
      return
15595
    iprot.readStructBegin()
15596
    while True:
15597
      (fname, ftype, fid) = iprot.readFieldBegin()
15598
      if ftype == TType.STOP:
15599
        break
15600
      if fid == 0:
15601
        if ftype == TType.I64:
15602
          self.success = iprot.readI64();
15603
        else:
15604
          iprot.skip(ftype)
15605
      else:
15606
        iprot.skip(ftype)
15607
      iprot.readFieldEnd()
15608
    iprot.readStructEnd()
15609
 
15610
  def write(self, oprot):
15611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15613
      return
15614
    oprot.writeStructBegin('getFreebieForItem_result')
15615
    if self.success is not None:
15616
      oprot.writeFieldBegin('success', TType.I64, 0)
15617
      oprot.writeI64(self.success)
15618
      oprot.writeFieldEnd()
15619
    oprot.writeFieldStop()
15620
    oprot.writeStructEnd()
15621
 
15622
  def validate(self):
15623
    return
15624
 
15625
 
15626
  def __repr__(self):
15627
    L = ['%s=%r' % (key, value)
15628
      for key, value in self.__dict__.iteritems()]
15629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15630
 
15631
  def __eq__(self, other):
15632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15633
 
15634
  def __ne__(self, other):
15635
    return not (self == other)
15636
 
15637
class addOrUpdateFreebieForItem_args:
15638
  """
15639
  Attributes:
15640
   - freebieItem
15641
  """
15642
 
15643
  thrift_spec = (
15644
    None, # 0
15645
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
15646
  )
15647
 
15648
  def __init__(self, freebieItem=None,):
15649
    self.freebieItem = freebieItem
15650
 
15651
  def read(self, iprot):
15652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15654
      return
15655
    iprot.readStructBegin()
15656
    while True:
15657
      (fname, ftype, fid) = iprot.readFieldBegin()
15658
      if ftype == TType.STOP:
15659
        break
15660
      if fid == 1:
15661
        if ftype == TType.STRUCT:
15662
          self.freebieItem = FreebieItem()
15663
          self.freebieItem.read(iprot)
15664
        else:
15665
          iprot.skip(ftype)
15666
      else:
15667
        iprot.skip(ftype)
15668
      iprot.readFieldEnd()
15669
    iprot.readStructEnd()
15670
 
15671
  def write(self, oprot):
15672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15674
      return
15675
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
15676
    if self.freebieItem is not None:
15677
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
15678
      self.freebieItem.write(oprot)
15679
      oprot.writeFieldEnd()
15680
    oprot.writeFieldStop()
15681
    oprot.writeStructEnd()
15682
 
15683
  def validate(self):
15684
    return
15685
 
15686
 
15687
  def __repr__(self):
15688
    L = ['%s=%r' % (key, value)
15689
      for key, value in self.__dict__.iteritems()]
15690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15691
 
15692
  def __eq__(self, other):
15693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15694
 
15695
  def __ne__(self, other):
15696
    return not (self == other)
15697
 
15698
class addOrUpdateFreebieForItem_result:
15699
 
15700
  thrift_spec = (
15701
  )
15702
 
15703
  def read(self, iprot):
15704
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15705
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15706
      return
15707
    iprot.readStructBegin()
15708
    while True:
15709
      (fname, ftype, fid) = iprot.readFieldBegin()
15710
      if ftype == TType.STOP:
15711
        break
15712
      else:
15713
        iprot.skip(ftype)
15714
      iprot.readFieldEnd()
15715
    iprot.readStructEnd()
15716
 
15717
  def write(self, oprot):
15718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15720
      return
15721
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
15722
    oprot.writeFieldStop()
15723
    oprot.writeStructEnd()
15724
 
15725
  def validate(self):
15726
    return
15727
 
15728
 
15729
  def __repr__(self):
15730
    L = ['%s=%r' % (key, value)
15731
      for key, value in self.__dict__.iteritems()]
15732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15733
 
15734
  def __eq__(self, other):
15735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15736
 
15737
  def __ne__(self, other):
15738
    return not (self == other)
7256 rajveer 15739
 
7272 amit.gupta 15740
class addOrUpdateBrandInfo_args:
15741
  """
15742
  Attributes:
15743
   - brandInfo
15744
  """
15745
 
15746
  thrift_spec = (
15747
    None, # 0
15748
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
15749
  )
15750
 
15751
  def __init__(self, brandInfo=None,):
15752
    self.brandInfo = brandInfo
15753
 
15754
  def read(self, iprot):
15755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15757
      return
15758
    iprot.readStructBegin()
15759
    while True:
15760
      (fname, ftype, fid) = iprot.readFieldBegin()
15761
      if ftype == TType.STOP:
15762
        break
15763
      if fid == 1:
15764
        if ftype == TType.STRUCT:
15765
          self.brandInfo = BrandInfo()
15766
          self.brandInfo.read(iprot)
15767
        else:
15768
          iprot.skip(ftype)
15769
      else:
15770
        iprot.skip(ftype)
15771
      iprot.readFieldEnd()
15772
    iprot.readStructEnd()
15773
 
15774
  def write(self, oprot):
15775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15777
      return
15778
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
15779
    if self.brandInfo is not None:
15780
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
15781
      self.brandInfo.write(oprot)
15782
      oprot.writeFieldEnd()
15783
    oprot.writeFieldStop()
15784
    oprot.writeStructEnd()
15785
 
15786
  def validate(self):
15787
    return
15788
 
15789
 
15790
  def __repr__(self):
15791
    L = ['%s=%r' % (key, value)
15792
      for key, value in self.__dict__.iteritems()]
15793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15794
 
15795
  def __eq__(self, other):
15796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15797
 
15798
  def __ne__(self, other):
15799
    return not (self == other)
15800
 
15801
class addOrUpdateBrandInfo_result:
15802
 
15803
  thrift_spec = (
15804
  )
15805
 
15806
  def read(self, iprot):
15807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15809
      return
15810
    iprot.readStructBegin()
15811
    while True:
15812
      (fname, ftype, fid) = iprot.readFieldBegin()
15813
      if ftype == TType.STOP:
15814
        break
15815
      else:
15816
        iprot.skip(ftype)
15817
      iprot.readFieldEnd()
15818
    iprot.readStructEnd()
15819
 
15820
  def write(self, oprot):
15821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15823
      return
15824
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
15825
    oprot.writeFieldStop()
15826
    oprot.writeStructEnd()
15827
 
15828
  def validate(self):
15829
    return
15830
 
15831
 
15832
  def __repr__(self):
15833
    L = ['%s=%r' % (key, value)
15834
      for key, value in self.__dict__.iteritems()]
15835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15836
 
15837
  def __eq__(self, other):
15838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15839
 
15840
  def __ne__(self, other):
15841
    return not (self == other)
15842
 
15843
class getBrandInfo_args:
15844
 
15845
  thrift_spec = (
15846
  )
15847
 
15848
  def read(self, iprot):
15849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15851
      return
15852
    iprot.readStructBegin()
15853
    while True:
15854
      (fname, ftype, fid) = iprot.readFieldBegin()
15855
      if ftype == TType.STOP:
15856
        break
15857
      else:
15858
        iprot.skip(ftype)
15859
      iprot.readFieldEnd()
15860
    iprot.readStructEnd()
15861
 
15862
  def write(self, oprot):
15863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15865
      return
15866
    oprot.writeStructBegin('getBrandInfo_args')
15867
    oprot.writeFieldStop()
15868
    oprot.writeStructEnd()
15869
 
15870
  def validate(self):
15871
    return
15872
 
15873
 
15874
  def __repr__(self):
15875
    L = ['%s=%r' % (key, value)
15876
      for key, value in self.__dict__.iteritems()]
15877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15878
 
15879
  def __eq__(self, other):
15880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15881
 
15882
  def __ne__(self, other):
15883
    return not (self == other)
15884
 
15885
class getBrandInfo_result:
15886
  """
15887
  Attributes:
15888
   - success
15889
  """
15890
 
15891
  thrift_spec = (
15892
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
15893
  )
15894
 
15895
  def __init__(self, success=None,):
15896
    self.success = success
15897
 
15898
  def read(self, iprot):
15899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15901
      return
15902
    iprot.readStructBegin()
15903
    while True:
15904
      (fname, ftype, fid) = iprot.readFieldBegin()
15905
      if ftype == TType.STOP:
15906
        break
15907
      if fid == 0:
15908
        if ftype == TType.MAP:
15909
          self.success = {}
15910
          (_ktype299, _vtype300, _size298 ) = iprot.readMapBegin() 
15911
          for _i302 in xrange(_size298):
15912
            _key303 = iprot.readString();
15913
            _val304 = BrandInfo()
15914
            _val304.read(iprot)
15915
            self.success[_key303] = _val304
15916
          iprot.readMapEnd()
15917
        else:
15918
          iprot.skip(ftype)
15919
      else:
15920
        iprot.skip(ftype)
15921
      iprot.readFieldEnd()
15922
    iprot.readStructEnd()
15923
 
15924
  def write(self, oprot):
15925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15927
      return
15928
    oprot.writeStructBegin('getBrandInfo_result')
15929
    if self.success is not None:
15930
      oprot.writeFieldBegin('success', TType.MAP, 0)
15931
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
15932
      for kiter305,viter306 in self.success.items():
15933
        oprot.writeString(kiter305)
15934
        viter306.write(oprot)
15935
      oprot.writeMapEnd()
15936
      oprot.writeFieldEnd()
15937
    oprot.writeFieldStop()
15938
    oprot.writeStructEnd()
15939
 
15940
  def validate(self):
15941
    return
15942
 
15943
 
15944
  def __repr__(self):
15945
    L = ['%s=%r' % (key, value)
15946
      for key, value in self.__dict__.iteritems()]
15947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15948
 
15949
  def __eq__(self, other):
15950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15951
 
15952
  def __ne__(self, other):
15953
    return not (self == other)
15954
 
7256 rajveer 15955
class getStorePricing_args:
15956
  """
15957
  Attributes:
15958
   - itemId
15959
  """
15960
 
15961
  thrift_spec = (
15962
    None, # 0
15963
    (1, TType.I64, 'itemId', None, None, ), # 1
15964
  )
15965
 
15966
  def __init__(self, itemId=None,):
15967
    self.itemId = itemId
15968
 
15969
  def read(self, iprot):
15970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15972
      return
15973
    iprot.readStructBegin()
15974
    while True:
15975
      (fname, ftype, fid) = iprot.readFieldBegin()
15976
      if ftype == TType.STOP:
15977
        break
15978
      if fid == 1:
15979
        if ftype == TType.I64:
15980
          self.itemId = iprot.readI64();
15981
        else:
15982
          iprot.skip(ftype)
15983
      else:
15984
        iprot.skip(ftype)
15985
      iprot.readFieldEnd()
15986
    iprot.readStructEnd()
15987
 
15988
  def write(self, oprot):
15989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15991
      return
15992
    oprot.writeStructBegin('getStorePricing_args')
15993
    if self.itemId is not None:
15994
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15995
      oprot.writeI64(self.itemId)
15996
      oprot.writeFieldEnd()
15997
    oprot.writeFieldStop()
15998
    oprot.writeStructEnd()
15999
 
16000
  def validate(self):
16001
    return
16002
 
16003
 
16004
  def __repr__(self):
16005
    L = ['%s=%r' % (key, value)
16006
      for key, value in self.__dict__.iteritems()]
16007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16008
 
16009
  def __eq__(self, other):
16010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16011
 
16012
  def __ne__(self, other):
16013
    return not (self == other)
16014
 
16015
class getStorePricing_result:
16016
  """
16017
  Attributes:
16018
   - success
16019
  """
16020
 
16021
  thrift_spec = (
16022
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
16023
  )
16024
 
16025
  def __init__(self, success=None,):
16026
    self.success = success
16027
 
16028
  def read(self, iprot):
16029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16031
      return
16032
    iprot.readStructBegin()
16033
    while True:
16034
      (fname, ftype, fid) = iprot.readFieldBegin()
16035
      if ftype == TType.STOP:
16036
        break
16037
      if fid == 0:
16038
        if ftype == TType.STRUCT:
16039
          self.success = StorePricing()
16040
          self.success.read(iprot)
16041
        else:
16042
          iprot.skip(ftype)
16043
      else:
16044
        iprot.skip(ftype)
16045
      iprot.readFieldEnd()
16046
    iprot.readStructEnd()
16047
 
16048
  def write(self, oprot):
16049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16051
      return
16052
    oprot.writeStructBegin('getStorePricing_result')
16053
    if self.success is not None:
16054
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
16055
      self.success.write(oprot)
16056
      oprot.writeFieldEnd()
16057
    oprot.writeFieldStop()
16058
    oprot.writeStructEnd()
16059
 
16060
  def validate(self):
16061
    return
16062
 
16063
 
16064
  def __repr__(self):
16065
    L = ['%s=%r' % (key, value)
16066
      for key, value in self.__dict__.iteritems()]
16067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16068
 
16069
  def __eq__(self, other):
16070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16071
 
16072
  def __ne__(self, other):
16073
    return not (self == other)
7265 rajveer 16074
 
16075
class updateStorePricing_args:
16076
  """
16077
  Attributes:
16078
   - sp
16079
  """
16080
 
16081
  thrift_spec = (
16082
    None, # 0
16083
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
16084
  )
16085
 
16086
  def __init__(self, sp=None,):
16087
    self.sp = sp
16088
 
16089
  def read(self, iprot):
16090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16092
      return
16093
    iprot.readStructBegin()
16094
    while True:
16095
      (fname, ftype, fid) = iprot.readFieldBegin()
16096
      if ftype == TType.STOP:
16097
        break
16098
      if fid == 1:
16099
        if ftype == TType.STRUCT:
16100
          self.sp = StorePricing()
16101
          self.sp.read(iprot)
16102
        else:
16103
          iprot.skip(ftype)
16104
      else:
16105
        iprot.skip(ftype)
16106
      iprot.readFieldEnd()
16107
    iprot.readStructEnd()
16108
 
16109
  def write(self, oprot):
16110
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16111
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16112
      return
16113
    oprot.writeStructBegin('updateStorePricing_args')
16114
    if self.sp is not None:
16115
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
16116
      self.sp.write(oprot)
16117
      oprot.writeFieldEnd()
16118
    oprot.writeFieldStop()
16119
    oprot.writeStructEnd()
16120
 
16121
  def validate(self):
16122
    return
16123
 
16124
 
16125
  def __repr__(self):
16126
    L = ['%s=%r' % (key, value)
16127
      for key, value in self.__dict__.iteritems()]
16128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16129
 
16130
  def __eq__(self, other):
16131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16132
 
16133
  def __ne__(self, other):
16134
    return not (self == other)
16135
 
16136
class updateStorePricing_result:
16137
 
16138
  thrift_spec = (
16139
  )
16140
 
16141
  def read(self, iprot):
16142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16144
      return
16145
    iprot.readStructBegin()
16146
    while True:
16147
      (fname, ftype, fid) = iprot.readFieldBegin()
16148
      if ftype == TType.STOP:
16149
        break
16150
      else:
16151
        iprot.skip(ftype)
16152
      iprot.readFieldEnd()
16153
    iprot.readStructEnd()
16154
 
16155
  def write(self, oprot):
16156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16158
      return
16159
    oprot.writeStructBegin('updateStorePricing_result')
16160
    oprot.writeFieldStop()
16161
    oprot.writeStructEnd()
16162
 
16163
  def validate(self):
16164
    return
16165
 
16166
 
16167
  def __repr__(self):
16168
    L = ['%s=%r' % (key, value)
16169
      for key, value in self.__dict__.iteritems()]
16170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16171
 
16172
  def __eq__(self, other):
16173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16174
 
16175
  def __ne__(self, other):
16176
    return not (self == other)