Subversion Repositories SmartDukaan

Rev

Rev 9776 | Rev 9816 | 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
 
7438 amit.gupta 46
  def getItemsStatus(self, itemIds):
47
    """
48
    Parameters:
49
     - itemIds
50
    """
51
    pass
52
 
5944 mandeep.dh 53
  def getItemStatusDescription(self, itemId):
54
    """
55
    Parameters:
56
     - itemId
57
    """
58
    pass
59
 
60
  def startItemOn(self, item_id, timestamp):
61
    """
62
    Parameters:
63
     - item_id
64
     - timestamp
65
    """
66
    pass
67
 
68
  def retireItemOn(self, item_id, timestamp):
69
    """
70
    Parameters:
71
     - item_id
72
     - timestamp
73
    """
74
    pass
75
 
76
  def changeItemStatus(self, item_id, timestamp, newstatus):
77
    """
78
    Parameters:
79
     - item_id
80
     - timestamp
81
     - newstatus
82
    """
83
    pass
84
 
85
  def getItem(self, item_id):
86
    """
87
    Parameters:
88
     - item_id
89
    """
90
    pass
91
 
92
  def getItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getValidItemsByCatalogId(self, catalog_item_id):
100
    """
101
    Parameters:
102
     - catalog_item_id
103
    """
104
    pass
105
 
106
  def getAllItems(self, isActive):
107
    """
108
    Parameters:
109
     - isActive
110
    """
111
    pass
112
 
113
  def getAllItemsByStatus(self, itemStatus):
114
    """
115
    Parameters:
116
     - itemStatus
117
    """
118
    pass
119
 
9253 rajveer 120
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 121
    """
122
    Parameters:
123
     - entityId
124
     - category
125
     - brand
126
     - modelName
127
     - modelNumber
9253 rajveer 128
     - isAndroid
5944 mandeep.dh 129
    """
130
    pass
131
 
132
  def getAllItemsInRange(self, offset, limit):
133
    """
134
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
135
 
136
    Parameters:
137
     - offset
138
     - limit
139
    """
140
    pass
141
 
142
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
143
    """
144
    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.
145
 
146
    Parameters:
147
     - itemStatus
148
     - offset
149
     - limit
150
    """
151
    pass
152
 
153
  def getItemCountByStatus(self, useStatus, itemStatus):
154
    """
155
    Gets a count of all items by status
156
 
157
    Parameters:
158
     - useStatus
159
     - itemStatus
160
    """
161
    pass
162
 
163
  def getBestSellers(self, ):
164
    pass
165
 
166
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
167
    """
168
    Parameters:
169
     - beginIndex
170
     - totalItems
171
     - brand
172
     - category
173
    """
174
    pass
175
 
176
  def getBestSellersCount(self, ):
177
    pass
178
 
179
  def getBestDeals(self, ):
180
    pass
181
 
182
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
183
    """
184
    Parameters:
185
     - beginIndex
186
     - totalItems
187
     - brand
188
     - category
189
    """
190
    pass
191
 
192
  def getBestDealsCount(self, ):
193
    pass
194
 
195
  def getComingSoon(self, ):
196
    pass
197
 
198
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
199
    """
200
    Parameters:
201
     - beginIndex
202
     - totalItems
203
     - brand
204
     - category
205
    """
206
    pass
207
 
208
  def getComingSoonCount(self, ):
209
    pass
210
 
211
  def getLatestArrivals(self, ):
212
    """
213
    Returns a list of items sorted in the descending order by start date.
214
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
215
    """
216
    pass
217
 
218
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
219
    """
220
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
221
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
222
 
223
    Parameters:
224
     - beginIndex
225
     - totalItems
226
     - brand
227
     - categories
228
    """
229
    pass
230
 
231
  def getLatestArrivalsCount(self, ):
232
    """
233
    Get the total number of latest arrivals we are willing to show.
234
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
235
    """
236
    pass
237
 
238
  def generateNewEntityID(self, ):
239
    pass
240
 
241
  def addCategory(self, category):
242
    """
243
    All category related functions
244
 
245
    Parameters:
246
     - category
247
    """
248
    pass
249
 
250
  def getCategory(self, id):
251
    """
252
    Parameters:
253
     - id
254
    """
255
    pass
256
 
257
  def getAllCategories(self, ):
258
    pass
259
 
260
  def getAllSimilarItems(self, itemId):
261
    """
262
    Returns the list of similar items.
263
 
264
    Parameters:
265
     - itemId
266
    """
267
    pass
268
 
269
  def addSimilarItem(self, itemId, catalogItemId):
270
    """
271
    Adds similar item.
272
 
273
    Parameters:
274
     - itemId
275
     - catalogItemId
276
    """
277
    pass
278
 
6512 kshitij.so 279
  def addTag(self, displayName, itemId):
280
    """
281
    Tag Related
282
 
283
    Parameters:
284
     - displayName
285
     - itemId
286
    """
287
    pass
288
 
289
  def deleteEntityTag(self, displayName, itemId):
290
    """
291
    Parameters:
292
     - displayName
293
     - itemId
294
    """
295
    pass
296
 
297
  def deleteTag(self, displayName):
298
    """
299
    Parameters:
300
     - displayName
301
    """
302
    pass
303
 
304
  def getAllTags(self, ):
305
    pass
306
 
307
  def getAllEntitiesByTagName(self, displayName):
308
    """
309
    Parameters:
310
     - displayName
311
    """
312
    pass
313
 
6845 amit.gupta 314
  def getAllEntityTags(self, ):
315
    pass
316
 
8590 kshitij.so 317
  def addBanner(self, bannerCongregate):
6850 kshitij.so 318
    """
8579 kshitij.so 319
    Banner Related
320
 
6850 kshitij.so 321
    Parameters:
8590 kshitij.so 322
     - bannerCongregate
6850 kshitij.so 323
    """
324
    pass
325
 
8579 kshitij.so 326
  def updateBanner(self, banner):
327
    """
328
    Parameters:
329
     - banner
330
    """
331
    pass
332
 
6850 kshitij.so 333
  def getAllBanners(self, ):
334
    pass
335
 
9155 kshitij.so 336
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 337
    """
338
    Parameters:
339
     - bannerName
9155 kshitij.so 340
     - bannerType
6850 kshitij.so 341
    """
342
    pass
343
 
9155 kshitij.so 344
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 345
    """
346
    Parameters:
347
     - bannerName
9155 kshitij.so 348
     - bannerType
6850 kshitij.so 349
    """
350
    pass
351
 
352
  def getActiveBanners(self, ):
353
    pass
354
 
8579 kshitij.so 355
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 356
    """
357
    Parameters:
8579 kshitij.so 358
     - bannerMaps
6849 kshitij.so 359
    """
360
    pass
361
 
8579 kshitij.so 362
  def updateBannerMap(self, bannerMap):
363
    """
364
    Parameters:
365
     - bannerMap
366
    """
367
    pass
368
 
6849 kshitij.so 369
  def deleteBannerMap(self, bannerName):
370
    """
371
    Parameters:
372
     - bannerName
373
    """
374
    pass
375
 
9155 kshitij.so 376
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 377
    """
378
    Parameters:
379
     - bannerName
9155 kshitij.so 380
     - bannerType
6849 kshitij.so 381
    """
382
    pass
383
 
8579 kshitij.so 384
  def addBannerUri(self, bannerUriMappings):
385
    """
386
    Parameters:
387
     - bannerUriMappings
388
    """
389
    pass
390
 
9155 kshitij.so 391
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 392
    """
393
    Parameters:
394
     - bannerName
9155 kshitij.so 395
     - bannerType
8579 kshitij.so 396
    """
397
    pass
398
 
399
  def addCampaign(self, campaign):
400
    """
401
    Parameters:
402
     - campaign
403
    """
404
    pass
405
 
406
  def getCampaigns(self, campaignName):
407
    """
408
    Parameters:
409
     - campaignName
410
    """
411
    pass
412
 
413
  def deleteCampaign(self, campaignId):
414
    """
415
    Parameters:
416
     - campaignId
417
    """
418
    pass
419
 
420
  def getAllCampaigns(self, ):
421
    pass
422
 
9155 kshitij.so 423
  def getActiveBannersForMobileSite(self, ):
424
    pass
425
 
5944 mandeep.dh 426
  def deleteSimilarItem(self, itemId, catalogItemId):
427
    """
428
    Delete similar item.
429
 
430
    Parameters:
431
     - itemId
432
     - catalogItemId
433
    """
434
    pass
435
 
436
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
437
    """
438
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
439
    If yes, returns the itemId else returns 0
440
 
441
    Parameters:
442
     - brand
443
     - modelNumber
444
     - modelName
445
     - color
446
    """
447
    pass
448
 
449
  def validateRiskyStatus(self, itemId):
450
    """
451
    Check wether item is risky and change status if inventory is not available for risky items
452
 
453
    Parameters:
454
     - itemId
455
    """
456
    pass
457
 
458
  def changeItemRiskyFlag(self, itemId, risky):
459
    """
460
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
461
 
462
    Parameters:
463
     - itemId
464
     - risky
465
    """
466
    pass
467
 
468
  def getItemsByRiskyFlag(self, ):
469
    """
470
    Returns list of items marked as risky.
471
    """
472
    pass
473
 
474
  def getItemsForMasterSheet(self, category, brand):
475
    """
476
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
477
 
478
    Parameters:
479
     - category
480
     - brand
481
    """
482
    pass
483
 
484
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
485
    """
486
    Returns list of catalog ids of items with same similarity index as of the given itemId
487
 
488
    Parameters:
489
     - beginIndex
490
     - totalItems
491
     - itemId
492
    """
493
    pass
494
 
495
  def addProductNotification(self, itemId, email):
496
    """
497
    Add user requests for out of stock items. Once user will ask for notify me an entry will
498
 
499
    Parameters:
500
     - itemId
501
     - email
502
    """
503
    pass
504
 
505
  def sendProductNotifications(self, ):
506
    """
507
    Send the product notifications to the users for items which has stock.
508
    """
509
    pass
510
 
511
  def getAllBrandsByCategory(self, categoryId):
512
    """
513
    Returns list of brand names for a given category Id
514
 
515
    Parameters:
516
     - categoryId
517
    """
518
    pass
519
 
520
  def getAllBrands(self, ):
521
    """
522
    Returns list of brand names
523
    """
524
    pass
525
 
526
  def getAllSources(self, ):
527
    """
528
    Return list of all sources
529
    """
530
    pass
531
 
532
  def getItemPricingBySource(self, itemId, sourceId):
533
    """
534
    Returns the pricing information of an item. If no information is found, exception will be thrown.
535
 
536
    Parameters:
537
     - itemId
538
     - sourceId
539
    """
540
    pass
541
 
542
  def addSourceItemPricing(self, sourceItemPricing):
543
    """
544
    Adds prices to be displayed corresponding to the item if user comes from a source.
545
    If item is not found or source is not found, it will throw exception.
546
 
547
    Parameters:
548
     - sourceItemPricing
549
    """
550
    pass
551
 
552
  def getAllSourcePricing(self, itemId):
553
    """
554
    Returns the list of source pricing information of an item.
555
    Raises an exception if item not found corresponding to itemId
556
 
557
    Parameters:
558
     - itemId
559
    """
560
    pass
561
 
562
  def getItemForSource(self, item_id, sourceId):
563
    """
564
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
565
 
566
    Parameters:
567
     - item_id
568
     - sourceId
569
    """
570
    pass
571
 
572
  def searchItemsInRange(self, searchTerms, offset, limit):
573
    """
574
    Searches items matching the the given terms in the catalog and returns results within the specified range.
575
 
576
    Parameters:
577
     - searchTerms
578
     - offset
579
     - limit
580
    """
581
    pass
582
 
583
  def getSearchResultCount(self, searchTerms):
584
    """
585
    Gets the count of search results for the given search terms so that the user can go through all the pages.
586
 
587
    Parameters:
588
     - searchTerms
589
    """
590
    pass
591
 
592
  def getProductNotifications(self, startDateTime):
593
    """
594
    Returns a list of product notifications added after a supplied datetime
595
 
596
    Parameters:
597
     - startDateTime
598
    """
599
    pass
600
 
7897 amar.kumar 601
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 602
    """
603
    Returns a list of count of requests for product notification against each item
604
 
605
    Parameters:
606
     - startDateTime
7897 amar.kumar 607
     - categoryId
5944 mandeep.dh 608
    """
609
    pass
610
 
611
  def addAuthorizationLog(self, itemId, username, reason):
612
    """
613
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
614
 
615
    Parameters:
616
     - itemId
617
     - username
618
     - reason
619
    """
620
    pass
621
 
622
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
623
    """
624
    Parameters:
625
     - catalog_item_id
626
     - voucherType
627
     - voucherAmount
628
    """
629
    pass
630
 
631
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
632
    """
633
    Parameters:
634
     - catalog_item_id
635
     - voucherType
636
    """
637
    pass
638
 
639
  def getVoucherAmount(self, itemId, voucherType):
640
    """
641
    Parameters:
642
     - itemId
643
     - voucherType
644
    """
645
    pass
646
 
647
  def getAllItemVouchers(self, itemId):
648
    """
649
    Parameters:
650
     - itemId
651
    """
652
    pass
653
 
654
  def isValidCatalogItemId(self, catalog_item_id):
655
    """
656
    Parameters:
657
     - catalog_item_id
658
    """
659
    pass
660
 
7330 amit.gupta 661
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 662
    """
663
    Parameters:
664
     - itemId
7330 amit.gupta 665
     - stateId
6039 amit.gupta 666
     - price
667
    """
668
    pass
5944 mandeep.dh 669
 
6039 amit.gupta 670
  def getVatAmountForItem(self, itemId, price):
671
    """
672
    Parameters:
673
     - itemId
674
     - price
675
    """
676
    pass
677
 
6531 vikram.rag 678
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
679
    """
680
    Parameters:
681
     - offset
682
     - limit
683
    """
684
    pass
6039 amit.gupta 685
 
6821 amar.kumar 686
  def getAllAliveItems(self, ):
687
    pass
688
 
6921 anupam.sin 689
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 690
    """
691
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 692
 
6805 anupam.sin 693
    Parameters:
694
     - itemId
6921 anupam.sin 695
     - price
6805 anupam.sin 696
     - insurerId
697
     - quantity
698
    """
699
    pass
700
 
701
  def getInsurer(self, insurerId):
702
    """
703
    Parameters:
704
     - insurerId
705
    """
706
    pass
707
 
6838 vikram.rag 708
  def getAllInsurers(self, ):
709
    pass
6805 anupam.sin 710
 
6962 rajveer 711
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
712
    """
713
    Parameters:
714
     - insurerId
715
     - amount
716
    """
717
    pass
6838 vikram.rag 718
 
7190 amar.kumar 719
  def getFreebieForItem(self, itemId):
720
    """
721
    Parameters:
722
     - itemId
723
    """
724
    pass
6962 rajveer 725
 
7190 amar.kumar 726
  def addOrUpdateFreebieForItem(self, freebieItem):
727
    """
728
    Parameters:
729
     - freebieItem
730
    """
731
    pass
732
 
7272 amit.gupta 733
  def addOrUpdateBrandInfo(self, brandInfo):
734
    """
735
    Parameters:
736
     - brandInfo
737
    """
738
    pass
739
 
740
  def getBrandInfo(self, ):
741
    pass
742
 
7256 rajveer 743
  def getStorePricing(self, itemId):
744
    """
745
    Parameters:
746
     - itemId
747
    """
748
    pass
7190 amar.kumar 749
 
7306 rajveer 750
  def getStorePricings(self, itemIds):
751
    """
752
    Parameters:
753
     - itemIds
754
    """
755
    pass
756
 
7382 rajveer 757
  def updateStorePricing(self, sp, allColors):
7265 rajveer 758
    """
759
    Parameters:
760
     - sp
7382 rajveer 761
     - allColors
7265 rajveer 762
    """
763
    pass
7256 rajveer 764
 
7281 kshitij.so 765
  def getAllAmazonListedItems(self, ):
766
    pass
7265 rajveer 767
 
8619 kshitij.so 768
  def searchAmazonItems(self, searchTerm, offset, limit):
769
    """
770
    Parameters:
771
     - searchTerm
772
     - offset
773
     - limit
774
    """
775
    pass
776
 
777
  def getAmazonSearchResultCount(self, searchTerm):
778
    """
779
    Parameters:
780
     - searchTerm
781
    """
782
    pass
783
 
784
  def getCountForAmazonlistedItems(self, ):
785
    pass
786
 
7281 kshitij.so 787
  def getAmazonItemDetails(self, itemId):
788
    """
789
    Parameters:
790
     - itemId
791
    """
792
    pass
793
 
8168 kshitij.so 794
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 795
    """
796
    Parameters:
8168 kshitij.so 797
     - amazonlisted
7281 kshitij.so 798
    """
799
    pass
800
 
801
  def addAmazonItem(self, amazonlisted):
802
    """
803
    Parameters:
804
     - amazonlisted
805
    """
806
    pass
807
 
7291 vikram.rag 808
  def getAsinItems(self, ):
809
    pass
7281 kshitij.so 810
 
7291 vikram.rag 811
  def getAllFbaListedItems(self, ):
812
    pass
813
 
814
  def getAllNonFbaListedItems(self, ):
815
    pass
816
 
7460 kshitij.so 817
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
818
    """
819
    Parameters:
820
     - itemId
821
     - holdInventory
822
     - defaultInventory
823
    """
824
    pass
7291 vikram.rag 825
 
7770 kshitij.so 826
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
827
    """
828
    Parameters:
829
     - type
830
     - sku
831
     - timestamp
832
    """
833
    pass
7460 kshitij.so 834
 
7897 amar.kumar 835
  def getAllParentCategories(self, ):
836
    pass
7770 kshitij.so 837
 
7977 kshitij.so 838
  def addPageViewEvent(self, pageViewEvents):
839
    """
840
    Parameters:
841
     - pageViewEvents
842
    """
843
    pass
7897 amar.kumar 844
 
7977 kshitij.so 845
  def addCartEvent(self, cartEvents):
846
    """
847
    Parameters:
848
     - cartEvents
849
    """
850
    pass
851
 
8182 amar.kumar 852
  def addEbayItem(self, ebayItem):
853
    """
854
    Parameters:
855
     - ebayItem
856
    """
857
    pass
858
 
859
  def getEbayItem(self, listingId):
860
    """
861
    Parameters:
862
     - listingId
863
    """
864
    pass
865
 
866
  def updateEbayItem(self, ebayItem):
867
    """
868
    Parameters:
869
     - ebayItem
870
    """
871
    pass
872
 
8139 kshitij.so 873
  def getAmazonListedItems(self, offset, limit):
874
    """
875
    Parameters:
876
     - offset
877
     - limit
878
    """
879
    pass
7977 kshitij.so 880
 
8168 kshitij.so 881
  def updateAmazonAttributesInBulk(self, amazonlisted):
882
    """
883
    Parameters:
884
     - amazonlisted
885
    """
886
    pass
8139 kshitij.so 887
 
8379 vikram.rag 888
  def getAllItemstoListOnFba(self, ):
889
    pass
8168 kshitij.so 890
 
8379 vikram.rag 891
  def getAllItemstoListOnNonFba(self, ):
892
    pass
893
 
8619 kshitij.so 894
  def updateAsin(self, item):
895
    """
896
    Parameters:
897
     - item
898
    """
899
    pass
8616 vikram.rag 900
 
8739 vikram.rag 901
  def addOrUpdateSnapdealItem(self, snapdealitem):
902
    """
903
    Parameters:
904
     - snapdealitem
905
    """
906
    pass
8619 kshitij.so 907
 
8739 vikram.rag 908
  def getSnapdealItem(self, item_id):
909
    """
910
    Parameters:
911
     - item_id
912
    """
913
    pass
914
 
9242 kshitij.so 915
  def getSnapdealItemDetails(self, item_id):
916
    """
917
    Parameters:
918
     - item_id
919
    """
920
    pass
921
 
8739 vikram.rag 922
  def getAllSnapdealItems(self, ):
923
    pass
924
 
9242 kshitij.so 925
  def getSnapdealItems(self, offset, limit):
926
    """
927
    Parameters:
928
     - offset
929
     - limit
930
    """
931
    pass
8739 vikram.rag 932
 
9242 kshitij.so 933
  def searchSnapdealItems(self, searchTerm, offset, limit):
934
    """
935
    Parameters:
936
     - searchTerm
937
     - offset
938
     - limit
939
    """
940
    pass
941
 
942
  def getCountForSnapdealItems(self, ):
943
    pass
944
 
945
  def getSnapdealSearchResultCount(self, searchTerm):
946
    """
947
    Parameters:
948
     - searchTerm
949
    """
950
    pass
951
 
9299 kshitij.so 952
  def getPrefferedInsurerForItem(self, itemId, insurerType):
953
    """
954
    Parameters:
955
     - itemId
956
     - insurerType
957
    """
958
    pass
9242 kshitij.so 959
 
9456 vikram.rag 960
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
961
    """
962
    Parameters:
963
     - skuAtSnapdeal
964
    """
965
    pass
9299 kshitij.so 966
 
9621 manish.sha 967
  def getProductFeedSubmit(self, catalogItemId):
968
    """
969
    Parameters:
970
     - catalogItemId
971
    """
972
    pass
9456 vikram.rag 973
 
9621 manish.sha 974
  def addProductFeedSubmit(self, productFeedSubmit):
975
    """
976
    Parameters:
977
     - productFeedSubmit
978
    """
979
    pass
980
 
981
  def updateProductFeedSubmit(self, productFeedSubmit):
982
    """
983
    Parameters:
984
     - productFeedSubmit
985
    """
986
    pass
987
 
988
  def deleteProductFeedSubmit(self, catalogItemId):
989
    """
990
    Parameters:
991
     - catalogItemId
992
    """
993
    pass
994
 
995
  def getAllProductFeedSubmit(self, ):
996
    pass
997
 
9724 kshitij.so 998
  def getMarketplacedetailsForItem(self, itemId, sourceId):
999
    """
1000
    Parameters:
1001
     - itemId
1002
     - sourceId
1003
    """
1004
    pass
9621 manish.sha 1005
 
9724 kshitij.so 1006
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
1007
    """
1008
    Parameters:
1009
     - marketPlaceItem
1010
    """
1011
    pass
1012
 
9779 kshitij.so 1013
  def getCostingForMarketplace(self, source, item_id):
1014
    """
1015
    Parameters:
1016
     - source
1017
     - item_id
1018
    """
1019
    pass
1020
 
9776 vikram.rag 1021
  def getMarketPlaceItemsForPriceUpdate(self, source):
1022
    """
1023
    Parameters:
1024
     - source
1025
    """
1026
    pass
9724 kshitij.so 1027
 
9776 vikram.rag 1028
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp):
1029
    """
1030
    Parameters:
1031
     - skulist
1032
     - timestamp
1033
    """
1034
    pass
1035
 
1036
 
5944 mandeep.dh 1037
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1038
  def __init__(self, iprot, oprot=None):
1039
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1040
 
1041
  def addItem(self, item):
1042
    """
1043
    Availability and inventory attributes
1044
 
1045
    Parameters:
1046
     - item
1047
    """
1048
    self.send_addItem(item)
1049
    return self.recv_addItem()
1050
 
1051
  def send_addItem(self, item):
1052
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1053
    args = addItem_args()
1054
    args.item = item
1055
    args.write(self._oprot)
1056
    self._oprot.writeMessageEnd()
1057
    self._oprot.trans.flush()
1058
 
1059
  def recv_addItem(self, ):
1060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1061
    if mtype == TMessageType.EXCEPTION:
1062
      x = TApplicationException()
1063
      x.read(self._iprot)
1064
      self._iprot.readMessageEnd()
1065
      raise x
1066
    result = addItem_result()
1067
    result.read(self._iprot)
1068
    self._iprot.readMessageEnd()
1069
    if result.success is not None:
1070
      return result.success
1071
    if result.cex is not None:
1072
      raise result.cex
1073
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1074
 
1075
  def updateItem(self, item):
1076
    """
1077
    Parameters:
1078
     - item
1079
    """
1080
    self.send_updateItem(item)
1081
    return self.recv_updateItem()
1082
 
1083
  def send_updateItem(self, item):
1084
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1085
    args = updateItem_args()
1086
    args.item = item
1087
    args.write(self._oprot)
1088
    self._oprot.writeMessageEnd()
1089
    self._oprot.trans.flush()
1090
 
1091
  def recv_updateItem(self, ):
1092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1093
    if mtype == TMessageType.EXCEPTION:
1094
      x = TApplicationException()
1095
      x.read(self._iprot)
1096
      self._iprot.readMessageEnd()
1097
      raise x
1098
    result = updateItem_result()
1099
    result.read(self._iprot)
1100
    self._iprot.readMessageEnd()
1101
    if result.success is not None:
1102
      return result.success
1103
    if result.cex is not None:
1104
      raise result.cex
1105
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1106
 
1107
  def isActive(self, itemId):
1108
    """
1109
    Checks if the item given to the corresponding itemId is active. If it's active,
1110
    whether it's risky and if it's risky, its inventory position.
1111
 
1112
    Parameters:
1113
     - itemId
1114
    """
1115
    self.send_isActive(itemId)
1116
    return self.recv_isActive()
1117
 
1118
  def send_isActive(self, itemId):
1119
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1120
    args = isActive_args()
1121
    args.itemId = itemId
1122
    args.write(self._oprot)
1123
    self._oprot.writeMessageEnd()
1124
    self._oprot.trans.flush()
1125
 
1126
  def recv_isActive(self, ):
1127
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1128
    if mtype == TMessageType.EXCEPTION:
1129
      x = TApplicationException()
1130
      x.read(self._iprot)
1131
      self._iprot.readMessageEnd()
1132
      raise x
1133
    result = isActive_result()
1134
    result.read(self._iprot)
1135
    self._iprot.readMessageEnd()
1136
    if result.success is not None:
1137
      return result.success
1138
    if result.isex is not None:
1139
      raise result.isex
1140
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1141
 
7438 amit.gupta 1142
  def getItemsStatus(self, itemIds):
1143
    """
1144
    Parameters:
1145
     - itemIds
1146
    """
1147
    self.send_getItemsStatus(itemIds)
1148
    return self.recv_getItemsStatus()
1149
 
1150
  def send_getItemsStatus(self, itemIds):
1151
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1152
    args = getItemsStatus_args()
1153
    args.itemIds = itemIds
1154
    args.write(self._oprot)
1155
    self._oprot.writeMessageEnd()
1156
    self._oprot.trans.flush()
1157
 
1158
  def recv_getItemsStatus(self, ):
1159
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1160
    if mtype == TMessageType.EXCEPTION:
1161
      x = TApplicationException()
1162
      x.read(self._iprot)
1163
      self._iprot.readMessageEnd()
1164
      raise x
1165
    result = getItemsStatus_result()
1166
    result.read(self._iprot)
1167
    self._iprot.readMessageEnd()
1168
    if result.success is not None:
1169
      return result.success
1170
    if result.isex is not None:
1171
      raise result.isex
1172
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1173
 
5944 mandeep.dh 1174
  def getItemStatusDescription(self, itemId):
1175
    """
1176
    Parameters:
1177
     - itemId
1178
    """
1179
    self.send_getItemStatusDescription(itemId)
1180
    return self.recv_getItemStatusDescription()
1181
 
1182
  def send_getItemStatusDescription(self, itemId):
1183
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1184
    args = getItemStatusDescription_args()
1185
    args.itemId = itemId
1186
    args.write(self._oprot)
1187
    self._oprot.writeMessageEnd()
1188
    self._oprot.trans.flush()
1189
 
1190
  def recv_getItemStatusDescription(self, ):
1191
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1192
    if mtype == TMessageType.EXCEPTION:
1193
      x = TApplicationException()
1194
      x.read(self._iprot)
1195
      self._iprot.readMessageEnd()
1196
      raise x
1197
    result = getItemStatusDescription_result()
1198
    result.read(self._iprot)
1199
    self._iprot.readMessageEnd()
1200
    if result.success is not None:
1201
      return result.success
1202
    if result.isex is not None:
1203
      raise result.isex
1204
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1205
 
1206
  def startItemOn(self, item_id, timestamp):
1207
    """
1208
    Parameters:
1209
     - item_id
1210
     - timestamp
1211
    """
1212
    self.send_startItemOn(item_id, timestamp)
1213
    self.recv_startItemOn()
1214
 
1215
  def send_startItemOn(self, item_id, timestamp):
1216
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1217
    args = startItemOn_args()
1218
    args.item_id = item_id
1219
    args.timestamp = timestamp
1220
    args.write(self._oprot)
1221
    self._oprot.writeMessageEnd()
1222
    self._oprot.trans.flush()
1223
 
1224
  def recv_startItemOn(self, ):
1225
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1226
    if mtype == TMessageType.EXCEPTION:
1227
      x = TApplicationException()
1228
      x.read(self._iprot)
1229
      self._iprot.readMessageEnd()
1230
      raise x
1231
    result = startItemOn_result()
1232
    result.read(self._iprot)
1233
    self._iprot.readMessageEnd()
1234
    if result.cex is not None:
1235
      raise result.cex
1236
    return
1237
 
1238
  def retireItemOn(self, item_id, timestamp):
1239
    """
1240
    Parameters:
1241
     - item_id
1242
     - timestamp
1243
    """
1244
    self.send_retireItemOn(item_id, timestamp)
1245
    self.recv_retireItemOn()
1246
 
1247
  def send_retireItemOn(self, item_id, timestamp):
1248
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1249
    args = retireItemOn_args()
1250
    args.item_id = item_id
1251
    args.timestamp = timestamp
1252
    args.write(self._oprot)
1253
    self._oprot.writeMessageEnd()
1254
    self._oprot.trans.flush()
1255
 
1256
  def recv_retireItemOn(self, ):
1257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1258
    if mtype == TMessageType.EXCEPTION:
1259
      x = TApplicationException()
1260
      x.read(self._iprot)
1261
      self._iprot.readMessageEnd()
1262
      raise x
1263
    result = retireItemOn_result()
1264
    result.read(self._iprot)
1265
    self._iprot.readMessageEnd()
1266
    if result.cex is not None:
1267
      raise result.cex
1268
    return
1269
 
1270
  def changeItemStatus(self, item_id, timestamp, newstatus):
1271
    """
1272
    Parameters:
1273
     - item_id
1274
     - timestamp
1275
     - newstatus
1276
    """
1277
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1278
    self.recv_changeItemStatus()
1279
 
1280
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1281
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1282
    args = changeItemStatus_args()
1283
    args.item_id = item_id
1284
    args.timestamp = timestamp
1285
    args.newstatus = newstatus
1286
    args.write(self._oprot)
1287
    self._oprot.writeMessageEnd()
1288
    self._oprot.trans.flush()
1289
 
1290
  def recv_changeItemStatus(self, ):
1291
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1292
    if mtype == TMessageType.EXCEPTION:
1293
      x = TApplicationException()
1294
      x.read(self._iprot)
1295
      self._iprot.readMessageEnd()
1296
      raise x
1297
    result = changeItemStatus_result()
1298
    result.read(self._iprot)
1299
    self._iprot.readMessageEnd()
1300
    if result.cex is not None:
1301
      raise result.cex
1302
    return
1303
 
1304
  def getItem(self, item_id):
1305
    """
1306
    Parameters:
1307
     - item_id
1308
    """
1309
    self.send_getItem(item_id)
1310
    return self.recv_getItem()
1311
 
1312
  def send_getItem(self, item_id):
1313
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1314
    args = getItem_args()
1315
    args.item_id = item_id
1316
    args.write(self._oprot)
1317
    self._oprot.writeMessageEnd()
1318
    self._oprot.trans.flush()
1319
 
1320
  def recv_getItem(self, ):
1321
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1322
    if mtype == TMessageType.EXCEPTION:
1323
      x = TApplicationException()
1324
      x.read(self._iprot)
1325
      self._iprot.readMessageEnd()
1326
      raise x
1327
    result = getItem_result()
1328
    result.read(self._iprot)
1329
    self._iprot.readMessageEnd()
1330
    if result.success is not None:
1331
      return result.success
1332
    if result.cex is not None:
1333
      raise result.cex
1334
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1335
 
1336
  def getItemsByCatalogId(self, catalog_item_id):
1337
    """
1338
    Parameters:
1339
     - catalog_item_id
1340
    """
1341
    self.send_getItemsByCatalogId(catalog_item_id)
1342
    return self.recv_getItemsByCatalogId()
1343
 
1344
  def send_getItemsByCatalogId(self, catalog_item_id):
1345
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1346
    args = getItemsByCatalogId_args()
1347
    args.catalog_item_id = catalog_item_id
1348
    args.write(self._oprot)
1349
    self._oprot.writeMessageEnd()
1350
    self._oprot.trans.flush()
1351
 
1352
  def recv_getItemsByCatalogId(self, ):
1353
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1354
    if mtype == TMessageType.EXCEPTION:
1355
      x = TApplicationException()
1356
      x.read(self._iprot)
1357
      self._iprot.readMessageEnd()
1358
      raise x
1359
    result = getItemsByCatalogId_result()
1360
    result.read(self._iprot)
1361
    self._iprot.readMessageEnd()
1362
    if result.success is not None:
1363
      return result.success
1364
    if result.cex is not None:
1365
      raise result.cex
1366
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1367
 
1368
  def getValidItemsByCatalogId(self, catalog_item_id):
1369
    """
1370
    Parameters:
1371
     - catalog_item_id
1372
    """
1373
    self.send_getValidItemsByCatalogId(catalog_item_id)
1374
    return self.recv_getValidItemsByCatalogId()
1375
 
1376
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1377
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1378
    args = getValidItemsByCatalogId_args()
1379
    args.catalog_item_id = catalog_item_id
1380
    args.write(self._oprot)
1381
    self._oprot.writeMessageEnd()
1382
    self._oprot.trans.flush()
1383
 
1384
  def recv_getValidItemsByCatalogId(self, ):
1385
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1386
    if mtype == TMessageType.EXCEPTION:
1387
      x = TApplicationException()
1388
      x.read(self._iprot)
1389
      self._iprot.readMessageEnd()
1390
      raise x
1391
    result = getValidItemsByCatalogId_result()
1392
    result.read(self._iprot)
1393
    self._iprot.readMessageEnd()
1394
    if result.success is not None:
1395
      return result.success
1396
    if result.cex is not None:
1397
      raise result.cex
1398
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1399
 
1400
  def getAllItems(self, isActive):
1401
    """
1402
    Parameters:
1403
     - isActive
1404
    """
1405
    self.send_getAllItems(isActive)
1406
    return self.recv_getAllItems()
1407
 
1408
  def send_getAllItems(self, isActive):
1409
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1410
    args = getAllItems_args()
1411
    args.isActive = isActive
1412
    args.write(self._oprot)
1413
    self._oprot.writeMessageEnd()
1414
    self._oprot.trans.flush()
1415
 
1416
  def recv_getAllItems(self, ):
1417
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1418
    if mtype == TMessageType.EXCEPTION:
1419
      x = TApplicationException()
1420
      x.read(self._iprot)
1421
      self._iprot.readMessageEnd()
1422
      raise x
1423
    result = getAllItems_result()
1424
    result.read(self._iprot)
1425
    self._iprot.readMessageEnd()
1426
    if result.success is not None:
1427
      return result.success
1428
    if result.cex is not None:
1429
      raise result.cex
1430
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1431
 
1432
  def getAllItemsByStatus(self, itemStatus):
1433
    """
1434
    Parameters:
1435
     - itemStatus
1436
    """
1437
    self.send_getAllItemsByStatus(itemStatus)
1438
    return self.recv_getAllItemsByStatus()
1439
 
1440
  def send_getAllItemsByStatus(self, itemStatus):
1441
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1442
    args = getAllItemsByStatus_args()
1443
    args.itemStatus = itemStatus
1444
    args.write(self._oprot)
1445
    self._oprot.writeMessageEnd()
1446
    self._oprot.trans.flush()
1447
 
1448
  def recv_getAllItemsByStatus(self, ):
1449
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1450
    if mtype == TMessageType.EXCEPTION:
1451
      x = TApplicationException()
1452
      x.read(self._iprot)
1453
      self._iprot.readMessageEnd()
1454
      raise x
1455
    result = getAllItemsByStatus_result()
1456
    result.read(self._iprot)
1457
    self._iprot.readMessageEnd()
1458
    if result.success is not None:
1459
      return result.success
1460
    if result.cex is not None:
1461
      raise result.cex
1462
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1463
 
9253 rajveer 1464
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1465
    """
1466
    Parameters:
1467
     - entityId
1468
     - category
1469
     - brand
1470
     - modelName
1471
     - modelNumber
9253 rajveer 1472
     - isAndroid
5944 mandeep.dh 1473
    """
9253 rajveer 1474
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1475
    return self.recv_markItemAsContentComplete()
1476
 
9253 rajveer 1477
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1478
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1479
    args = markItemAsContentComplete_args()
1480
    args.entityId = entityId
1481
    args.category = category
1482
    args.brand = brand
1483
    args.modelName = modelName
1484
    args.modelNumber = modelNumber
9253 rajveer 1485
    args.isAndroid = isAndroid
5944 mandeep.dh 1486
    args.write(self._oprot)
1487
    self._oprot.writeMessageEnd()
1488
    self._oprot.trans.flush()
1489
 
1490
  def recv_markItemAsContentComplete(self, ):
1491
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1492
    if mtype == TMessageType.EXCEPTION:
1493
      x = TApplicationException()
1494
      x.read(self._iprot)
1495
      self._iprot.readMessageEnd()
1496
      raise x
1497
    result = markItemAsContentComplete_result()
1498
    result.read(self._iprot)
1499
    self._iprot.readMessageEnd()
1500
    if result.success is not None:
1501
      return result.success
1502
    if result.cex is not None:
1503
      raise result.cex
1504
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1505
 
1506
  def getAllItemsInRange(self, offset, limit):
1507
    """
1508
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1509
 
1510
    Parameters:
1511
     - offset
1512
     - limit
1513
    """
1514
    self.send_getAllItemsInRange(offset, limit)
1515
    return self.recv_getAllItemsInRange()
1516
 
1517
  def send_getAllItemsInRange(self, offset, limit):
1518
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1519
    args = getAllItemsInRange_args()
1520
    args.offset = offset
1521
    args.limit = limit
1522
    args.write(self._oprot)
1523
    self._oprot.writeMessageEnd()
1524
    self._oprot.trans.flush()
1525
 
1526
  def recv_getAllItemsInRange(self, ):
1527
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1528
    if mtype == TMessageType.EXCEPTION:
1529
      x = TApplicationException()
1530
      x.read(self._iprot)
1531
      self._iprot.readMessageEnd()
1532
      raise x
1533
    result = getAllItemsInRange_result()
1534
    result.read(self._iprot)
1535
    self._iprot.readMessageEnd()
1536
    if result.success is not None:
1537
      return result.success
1538
    if result.cex is not None:
1539
      raise result.cex
1540
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1541
 
1542
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1543
    """
1544
    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.
1545
 
1546
    Parameters:
1547
     - itemStatus
1548
     - offset
1549
     - limit
1550
    """
1551
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1552
    return self.recv_getAllItemsByStatusInRange()
1553
 
1554
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1555
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1556
    args = getAllItemsByStatusInRange_args()
1557
    args.itemStatus = itemStatus
1558
    args.offset = offset
1559
    args.limit = limit
1560
    args.write(self._oprot)
1561
    self._oprot.writeMessageEnd()
1562
    self._oprot.trans.flush()
1563
 
1564
  def recv_getAllItemsByStatusInRange(self, ):
1565
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1566
    if mtype == TMessageType.EXCEPTION:
1567
      x = TApplicationException()
1568
      x.read(self._iprot)
1569
      self._iprot.readMessageEnd()
1570
      raise x
1571
    result = getAllItemsByStatusInRange_result()
1572
    result.read(self._iprot)
1573
    self._iprot.readMessageEnd()
1574
    if result.success is not None:
1575
      return result.success
1576
    if result.cex is not None:
1577
      raise result.cex
1578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1579
 
1580
  def getItemCountByStatus(self, useStatus, itemStatus):
1581
    """
1582
    Gets a count of all items by status
1583
 
1584
    Parameters:
1585
     - useStatus
1586
     - itemStatus
1587
    """
1588
    self.send_getItemCountByStatus(useStatus, itemStatus)
1589
    return self.recv_getItemCountByStatus()
1590
 
1591
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1592
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1593
    args = getItemCountByStatus_args()
1594
    args.useStatus = useStatus
1595
    args.itemStatus = itemStatus
1596
    args.write(self._oprot)
1597
    self._oprot.writeMessageEnd()
1598
    self._oprot.trans.flush()
1599
 
1600
  def recv_getItemCountByStatus(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 = getItemCountByStatus_result()
1608
    result.read(self._iprot)
1609
    self._iprot.readMessageEnd()
1610
    if result.success is not None:
1611
      return result.success
1612
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1613
 
1614
  def getBestSellers(self, ):
1615
    self.send_getBestSellers()
1616
    return self.recv_getBestSellers()
1617
 
1618
  def send_getBestSellers(self, ):
1619
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1620
    args = getBestSellers_args()
1621
    args.write(self._oprot)
1622
    self._oprot.writeMessageEnd()
1623
    self._oprot.trans.flush()
1624
 
1625
  def recv_getBestSellers(self, ):
1626
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1627
    if mtype == TMessageType.EXCEPTION:
1628
      x = TApplicationException()
1629
      x.read(self._iprot)
1630
      self._iprot.readMessageEnd()
1631
      raise x
1632
    result = getBestSellers_result()
1633
    result.read(self._iprot)
1634
    self._iprot.readMessageEnd()
1635
    if result.success is not None:
1636
      return result.success
1637
    if result.isex is not None:
1638
      raise result.isex
1639
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1640
 
1641
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1642
    """
1643
    Parameters:
1644
     - beginIndex
1645
     - totalItems
1646
     - brand
1647
     - category
1648
    """
1649
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1650
    return self.recv_getBestSellersCatalogIds()
1651
 
1652
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1653
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1654
    args = getBestSellersCatalogIds_args()
1655
    args.beginIndex = beginIndex
1656
    args.totalItems = totalItems
1657
    args.brand = brand
1658
    args.category = category
1659
    args.write(self._oprot)
1660
    self._oprot.writeMessageEnd()
1661
    self._oprot.trans.flush()
1662
 
1663
  def recv_getBestSellersCatalogIds(self, ):
1664
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1665
    if mtype == TMessageType.EXCEPTION:
1666
      x = TApplicationException()
1667
      x.read(self._iprot)
1668
      self._iprot.readMessageEnd()
1669
      raise x
1670
    result = getBestSellersCatalogIds_result()
1671
    result.read(self._iprot)
1672
    self._iprot.readMessageEnd()
1673
    if result.success is not None:
1674
      return result.success
1675
    if result.cex is not None:
1676
      raise result.cex
1677
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1678
 
1679
  def getBestSellersCount(self, ):
1680
    self.send_getBestSellersCount()
1681
    return self.recv_getBestSellersCount()
1682
 
1683
  def send_getBestSellersCount(self, ):
1684
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1685
    args = getBestSellersCount_args()
1686
    args.write(self._oprot)
1687
    self._oprot.writeMessageEnd()
1688
    self._oprot.trans.flush()
1689
 
1690
  def recv_getBestSellersCount(self, ):
1691
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1692
    if mtype == TMessageType.EXCEPTION:
1693
      x = TApplicationException()
1694
      x.read(self._iprot)
1695
      self._iprot.readMessageEnd()
1696
      raise x
1697
    result = getBestSellersCount_result()
1698
    result.read(self._iprot)
1699
    self._iprot.readMessageEnd()
1700
    if result.success is not None:
1701
      return result.success
1702
    if result.cex is not None:
1703
      raise result.cex
1704
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1705
 
1706
  def getBestDeals(self, ):
1707
    self.send_getBestDeals()
1708
    return self.recv_getBestDeals()
1709
 
1710
  def send_getBestDeals(self, ):
1711
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1712
    args = getBestDeals_args()
1713
    args.write(self._oprot)
1714
    self._oprot.writeMessageEnd()
1715
    self._oprot.trans.flush()
1716
 
1717
  def recv_getBestDeals(self, ):
1718
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1719
    if mtype == TMessageType.EXCEPTION:
1720
      x = TApplicationException()
1721
      x.read(self._iprot)
1722
      self._iprot.readMessageEnd()
1723
      raise x
1724
    result = getBestDeals_result()
1725
    result.read(self._iprot)
1726
    self._iprot.readMessageEnd()
1727
    if result.success is not None:
1728
      return result.success
1729
    if result.isex is not None:
1730
      raise result.isex
1731
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1732
 
1733
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1734
    """
1735
    Parameters:
1736
     - beginIndex
1737
     - totalItems
1738
     - brand
1739
     - category
1740
    """
1741
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1742
    return self.recv_getBestDealsCatalogIds()
1743
 
1744
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1745
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1746
    args = getBestDealsCatalogIds_args()
1747
    args.beginIndex = beginIndex
1748
    args.totalItems = totalItems
1749
    args.brand = brand
1750
    args.category = category
1751
    args.write(self._oprot)
1752
    self._oprot.writeMessageEnd()
1753
    self._oprot.trans.flush()
1754
 
1755
  def recv_getBestDealsCatalogIds(self, ):
1756
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1757
    if mtype == TMessageType.EXCEPTION:
1758
      x = TApplicationException()
1759
      x.read(self._iprot)
1760
      self._iprot.readMessageEnd()
1761
      raise x
1762
    result = getBestDealsCatalogIds_result()
1763
    result.read(self._iprot)
1764
    self._iprot.readMessageEnd()
1765
    if result.success is not None:
1766
      return result.success
1767
    if result.cex is not None:
1768
      raise result.cex
1769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1770
 
1771
  def getBestDealsCount(self, ):
1772
    self.send_getBestDealsCount()
1773
    return self.recv_getBestDealsCount()
1774
 
1775
  def send_getBestDealsCount(self, ):
1776
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1777
    args = getBestDealsCount_args()
1778
    args.write(self._oprot)
1779
    self._oprot.writeMessageEnd()
1780
    self._oprot.trans.flush()
1781
 
1782
  def recv_getBestDealsCount(self, ):
1783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1784
    if mtype == TMessageType.EXCEPTION:
1785
      x = TApplicationException()
1786
      x.read(self._iprot)
1787
      self._iprot.readMessageEnd()
1788
      raise x
1789
    result = getBestDealsCount_result()
1790
    result.read(self._iprot)
1791
    self._iprot.readMessageEnd()
1792
    if result.success is not None:
1793
      return result.success
1794
    if result.cex is not None:
1795
      raise result.cex
1796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1797
 
1798
  def getComingSoon(self, ):
1799
    self.send_getComingSoon()
1800
    return self.recv_getComingSoon()
1801
 
1802
  def send_getComingSoon(self, ):
1803
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1804
    args = getComingSoon_args()
1805
    args.write(self._oprot)
1806
    self._oprot.writeMessageEnd()
1807
    self._oprot.trans.flush()
1808
 
1809
  def recv_getComingSoon(self, ):
1810
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1811
    if mtype == TMessageType.EXCEPTION:
1812
      x = TApplicationException()
1813
      x.read(self._iprot)
1814
      self._iprot.readMessageEnd()
1815
      raise x
1816
    result = getComingSoon_result()
1817
    result.read(self._iprot)
1818
    self._iprot.readMessageEnd()
1819
    if result.success is not None:
1820
      return result.success
1821
    if result.isex is not None:
1822
      raise result.isex
1823
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1824
 
1825
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1826
    """
1827
    Parameters:
1828
     - beginIndex
1829
     - totalItems
1830
     - brand
1831
     - category
1832
    """
1833
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1834
    return self.recv_getComingSoonCatalogIds()
1835
 
1836
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1837
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1838
    args = getComingSoonCatalogIds_args()
1839
    args.beginIndex = beginIndex
1840
    args.totalItems = totalItems
1841
    args.brand = brand
1842
    args.category = category
1843
    args.write(self._oprot)
1844
    self._oprot.writeMessageEnd()
1845
    self._oprot.trans.flush()
1846
 
1847
  def recv_getComingSoonCatalogIds(self, ):
1848
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1849
    if mtype == TMessageType.EXCEPTION:
1850
      x = TApplicationException()
1851
      x.read(self._iprot)
1852
      self._iprot.readMessageEnd()
1853
      raise x
1854
    result = getComingSoonCatalogIds_result()
1855
    result.read(self._iprot)
1856
    self._iprot.readMessageEnd()
1857
    if result.success is not None:
1858
      return result.success
1859
    if result.cex is not None:
1860
      raise result.cex
1861
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1862
 
1863
  def getComingSoonCount(self, ):
1864
    self.send_getComingSoonCount()
1865
    return self.recv_getComingSoonCount()
1866
 
1867
  def send_getComingSoonCount(self, ):
1868
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1869
    args = getComingSoonCount_args()
1870
    args.write(self._oprot)
1871
    self._oprot.writeMessageEnd()
1872
    self._oprot.trans.flush()
1873
 
1874
  def recv_getComingSoonCount(self, ):
1875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1876
    if mtype == TMessageType.EXCEPTION:
1877
      x = TApplicationException()
1878
      x.read(self._iprot)
1879
      self._iprot.readMessageEnd()
1880
      raise x
1881
    result = getComingSoonCount_result()
1882
    result.read(self._iprot)
1883
    self._iprot.readMessageEnd()
1884
    if result.success is not None:
1885
      return result.success
1886
    if result.cex is not None:
1887
      raise result.cex
1888
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1889
 
1890
  def getLatestArrivals(self, ):
1891
    """
1892
    Returns a list of items sorted in the descending order by start date.
1893
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1894
    """
1895
    self.send_getLatestArrivals()
1896
    return self.recv_getLatestArrivals()
1897
 
1898
  def send_getLatestArrivals(self, ):
1899
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1900
    args = getLatestArrivals_args()
1901
    args.write(self._oprot)
1902
    self._oprot.writeMessageEnd()
1903
    self._oprot.trans.flush()
1904
 
1905
  def recv_getLatestArrivals(self, ):
1906
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1907
    if mtype == TMessageType.EXCEPTION:
1908
      x = TApplicationException()
1909
      x.read(self._iprot)
1910
      self._iprot.readMessageEnd()
1911
      raise x
1912
    result = getLatestArrivals_result()
1913
    result.read(self._iprot)
1914
    self._iprot.readMessageEnd()
1915
    if result.success is not None:
1916
      return result.success
1917
    if result.isex is not None:
1918
      raise result.isex
1919
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1920
 
1921
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1922
    """
1923
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1924
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1925
 
1926
    Parameters:
1927
     - beginIndex
1928
     - totalItems
1929
     - brand
1930
     - categories
1931
    """
1932
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1933
    return self.recv_getLatestArrivalsCatalogIds()
1934
 
1935
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1936
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1937
    args = getLatestArrivalsCatalogIds_args()
1938
    args.beginIndex = beginIndex
1939
    args.totalItems = totalItems
1940
    args.brand = brand
1941
    args.categories = categories
1942
    args.write(self._oprot)
1943
    self._oprot.writeMessageEnd()
1944
    self._oprot.trans.flush()
1945
 
1946
  def recv_getLatestArrivalsCatalogIds(self, ):
1947
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1948
    if mtype == TMessageType.EXCEPTION:
1949
      x = TApplicationException()
1950
      x.read(self._iprot)
1951
      self._iprot.readMessageEnd()
1952
      raise x
1953
    result = getLatestArrivalsCatalogIds_result()
1954
    result.read(self._iprot)
1955
    self._iprot.readMessageEnd()
1956
    if result.success is not None:
1957
      return result.success
1958
    if result.cex is not None:
1959
      raise result.cex
1960
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1961
 
1962
  def getLatestArrivalsCount(self, ):
1963
    """
1964
    Get the total number of latest arrivals we are willing to show.
1965
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1966
    """
1967
    self.send_getLatestArrivalsCount()
1968
    return self.recv_getLatestArrivalsCount()
1969
 
1970
  def send_getLatestArrivalsCount(self, ):
1971
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1972
    args = getLatestArrivalsCount_args()
1973
    args.write(self._oprot)
1974
    self._oprot.writeMessageEnd()
1975
    self._oprot.trans.flush()
1976
 
1977
  def recv_getLatestArrivalsCount(self, ):
1978
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1979
    if mtype == TMessageType.EXCEPTION:
1980
      x = TApplicationException()
1981
      x.read(self._iprot)
1982
      self._iprot.readMessageEnd()
1983
      raise x
1984
    result = getLatestArrivalsCount_result()
1985
    result.read(self._iprot)
1986
    self._iprot.readMessageEnd()
1987
    if result.success is not None:
1988
      return result.success
1989
    if result.cex is not None:
1990
      raise result.cex
1991
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1992
 
1993
  def generateNewEntityID(self, ):
1994
    self.send_generateNewEntityID()
1995
    return self.recv_generateNewEntityID()
1996
 
1997
  def send_generateNewEntityID(self, ):
1998
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1999
    args = generateNewEntityID_args()
2000
    args.write(self._oprot)
2001
    self._oprot.writeMessageEnd()
2002
    self._oprot.trans.flush()
2003
 
2004
  def recv_generateNewEntityID(self, ):
2005
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2006
    if mtype == TMessageType.EXCEPTION:
2007
      x = TApplicationException()
2008
      x.read(self._iprot)
2009
      self._iprot.readMessageEnd()
2010
      raise x
2011
    result = generateNewEntityID_result()
2012
    result.read(self._iprot)
2013
    self._iprot.readMessageEnd()
2014
    if result.success is not None:
2015
      return result.success
2016
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2017
 
2018
  def addCategory(self, category):
2019
    """
2020
    All category related functions
2021
 
2022
    Parameters:
2023
     - category
2024
    """
2025
    self.send_addCategory(category)
2026
    return self.recv_addCategory()
2027
 
2028
  def send_addCategory(self, category):
2029
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2030
    args = addCategory_args()
2031
    args.category = category
2032
    args.write(self._oprot)
2033
    self._oprot.writeMessageEnd()
2034
    self._oprot.trans.flush()
2035
 
2036
  def recv_addCategory(self, ):
2037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2038
    if mtype == TMessageType.EXCEPTION:
2039
      x = TApplicationException()
2040
      x.read(self._iprot)
2041
      self._iprot.readMessageEnd()
2042
      raise x
2043
    result = addCategory_result()
2044
    result.read(self._iprot)
2045
    self._iprot.readMessageEnd()
2046
    if result.success is not None:
2047
      return result.success
2048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2049
 
2050
  def getCategory(self, id):
2051
    """
2052
    Parameters:
2053
     - id
2054
    """
2055
    self.send_getCategory(id)
2056
    return self.recv_getCategory()
2057
 
2058
  def send_getCategory(self, id):
2059
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2060
    args = getCategory_args()
2061
    args.id = id
2062
    args.write(self._oprot)
2063
    self._oprot.writeMessageEnd()
2064
    self._oprot.trans.flush()
2065
 
2066
  def recv_getCategory(self, ):
2067
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2068
    if mtype == TMessageType.EXCEPTION:
2069
      x = TApplicationException()
2070
      x.read(self._iprot)
2071
      self._iprot.readMessageEnd()
2072
      raise x
2073
    result = getCategory_result()
2074
    result.read(self._iprot)
2075
    self._iprot.readMessageEnd()
2076
    if result.success is not None:
2077
      return result.success
2078
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2079
 
2080
  def getAllCategories(self, ):
2081
    self.send_getAllCategories()
2082
    return self.recv_getAllCategories()
2083
 
2084
  def send_getAllCategories(self, ):
2085
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2086
    args = getAllCategories_args()
2087
    args.write(self._oprot)
2088
    self._oprot.writeMessageEnd()
2089
    self._oprot.trans.flush()
2090
 
2091
  def recv_getAllCategories(self, ):
2092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2093
    if mtype == TMessageType.EXCEPTION:
2094
      x = TApplicationException()
2095
      x.read(self._iprot)
2096
      self._iprot.readMessageEnd()
2097
      raise x
2098
    result = getAllCategories_result()
2099
    result.read(self._iprot)
2100
    self._iprot.readMessageEnd()
2101
    if result.success is not None:
2102
      return result.success
2103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2104
 
2105
  def getAllSimilarItems(self, itemId):
2106
    """
2107
    Returns the list of similar items.
2108
 
2109
    Parameters:
2110
     - itemId
2111
    """
2112
    self.send_getAllSimilarItems(itemId)
2113
    return self.recv_getAllSimilarItems()
2114
 
2115
  def send_getAllSimilarItems(self, itemId):
2116
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2117
    args = getAllSimilarItems_args()
2118
    args.itemId = itemId
2119
    args.write(self._oprot)
2120
    self._oprot.writeMessageEnd()
2121
    self._oprot.trans.flush()
2122
 
2123
  def recv_getAllSimilarItems(self, ):
2124
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2125
    if mtype == TMessageType.EXCEPTION:
2126
      x = TApplicationException()
2127
      x.read(self._iprot)
2128
      self._iprot.readMessageEnd()
2129
      raise x
2130
    result = getAllSimilarItems_result()
2131
    result.read(self._iprot)
2132
    self._iprot.readMessageEnd()
2133
    if result.success is not None:
2134
      return result.success
2135
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2136
 
2137
  def addSimilarItem(self, itemId, catalogItemId):
2138
    """
2139
    Adds similar item.
2140
 
2141
    Parameters:
2142
     - itemId
2143
     - catalogItemId
2144
    """
2145
    self.send_addSimilarItem(itemId, catalogItemId)
2146
    return self.recv_addSimilarItem()
2147
 
2148
  def send_addSimilarItem(self, itemId, catalogItemId):
2149
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2150
    args = addSimilarItem_args()
2151
    args.itemId = itemId
2152
    args.catalogItemId = catalogItemId
2153
    args.write(self._oprot)
2154
    self._oprot.writeMessageEnd()
2155
    self._oprot.trans.flush()
2156
 
2157
  def recv_addSimilarItem(self, ):
2158
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2159
    if mtype == TMessageType.EXCEPTION:
2160
      x = TApplicationException()
2161
      x.read(self._iprot)
2162
      self._iprot.readMessageEnd()
2163
      raise x
2164
    result = addSimilarItem_result()
2165
    result.read(self._iprot)
2166
    self._iprot.readMessageEnd()
2167
    if result.success is not None:
2168
      return result.success
2169
    if result.cex is not None:
2170
      raise result.cex
2171
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2172
 
6512 kshitij.so 2173
  def addTag(self, displayName, itemId):
2174
    """
2175
    Tag Related
2176
 
2177
    Parameters:
2178
     - displayName
2179
     - itemId
2180
    """
2181
    self.send_addTag(displayName, itemId)
2182
    return self.recv_addTag()
2183
 
2184
  def send_addTag(self, displayName, itemId):
2185
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2186
    args = addTag_args()
2187
    args.displayName = displayName
2188
    args.itemId = itemId
2189
    args.write(self._oprot)
2190
    self._oprot.writeMessageEnd()
2191
    self._oprot.trans.flush()
2192
 
2193
  def recv_addTag(self, ):
2194
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2195
    if mtype == TMessageType.EXCEPTION:
2196
      x = TApplicationException()
2197
      x.read(self._iprot)
2198
      self._iprot.readMessageEnd()
2199
      raise x
2200
    result = addTag_result()
2201
    result.read(self._iprot)
2202
    self._iprot.readMessageEnd()
2203
    if result.success is not None:
2204
      return result.success
2205
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2206
 
2207
  def deleteEntityTag(self, displayName, itemId):
2208
    """
2209
    Parameters:
2210
     - displayName
2211
     - itemId
2212
    """
2213
    self.send_deleteEntityTag(displayName, itemId)
2214
    return self.recv_deleteEntityTag()
2215
 
2216
  def send_deleteEntityTag(self, displayName, itemId):
2217
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2218
    args = deleteEntityTag_args()
2219
    args.displayName = displayName
2220
    args.itemId = itemId
2221
    args.write(self._oprot)
2222
    self._oprot.writeMessageEnd()
2223
    self._oprot.trans.flush()
2224
 
2225
  def recv_deleteEntityTag(self, ):
2226
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2227
    if mtype == TMessageType.EXCEPTION:
2228
      x = TApplicationException()
2229
      x.read(self._iprot)
2230
      self._iprot.readMessageEnd()
2231
      raise x
2232
    result = deleteEntityTag_result()
2233
    result.read(self._iprot)
2234
    self._iprot.readMessageEnd()
2235
    if result.success is not None:
2236
      return result.success
2237
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2238
 
2239
  def deleteTag(self, displayName):
2240
    """
2241
    Parameters:
2242
     - displayName
2243
    """
2244
    self.send_deleteTag(displayName)
2245
    return self.recv_deleteTag()
2246
 
2247
  def send_deleteTag(self, displayName):
2248
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2249
    args = deleteTag_args()
2250
    args.displayName = displayName
2251
    args.write(self._oprot)
2252
    self._oprot.writeMessageEnd()
2253
    self._oprot.trans.flush()
2254
 
2255
  def recv_deleteTag(self, ):
2256
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2257
    if mtype == TMessageType.EXCEPTION:
2258
      x = TApplicationException()
2259
      x.read(self._iprot)
2260
      self._iprot.readMessageEnd()
2261
      raise x
2262
    result = deleteTag_result()
2263
    result.read(self._iprot)
2264
    self._iprot.readMessageEnd()
2265
    if result.success is not None:
2266
      return result.success
2267
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2268
 
2269
  def getAllTags(self, ):
2270
    self.send_getAllTags()
2271
    return self.recv_getAllTags()
2272
 
2273
  def send_getAllTags(self, ):
2274
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2275
    args = getAllTags_args()
2276
    args.write(self._oprot)
2277
    self._oprot.writeMessageEnd()
2278
    self._oprot.trans.flush()
2279
 
2280
  def recv_getAllTags(self, ):
2281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2282
    if mtype == TMessageType.EXCEPTION:
2283
      x = TApplicationException()
2284
      x.read(self._iprot)
2285
      self._iprot.readMessageEnd()
2286
      raise x
2287
    result = getAllTags_result()
2288
    result.read(self._iprot)
2289
    self._iprot.readMessageEnd()
2290
    if result.success is not None:
2291
      return result.success
2292
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2293
 
2294
  def getAllEntitiesByTagName(self, displayName):
2295
    """
2296
    Parameters:
2297
     - displayName
2298
    """
2299
    self.send_getAllEntitiesByTagName(displayName)
2300
    return self.recv_getAllEntitiesByTagName()
2301
 
2302
  def send_getAllEntitiesByTagName(self, displayName):
2303
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2304
    args = getAllEntitiesByTagName_args()
2305
    args.displayName = displayName
2306
    args.write(self._oprot)
2307
    self._oprot.writeMessageEnd()
2308
    self._oprot.trans.flush()
2309
 
2310
  def recv_getAllEntitiesByTagName(self, ):
2311
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2312
    if mtype == TMessageType.EXCEPTION:
2313
      x = TApplicationException()
2314
      x.read(self._iprot)
2315
      self._iprot.readMessageEnd()
2316
      raise x
2317
    result = getAllEntitiesByTagName_result()
2318
    result.read(self._iprot)
2319
    self._iprot.readMessageEnd()
2320
    if result.success is not None:
2321
      return result.success
2322
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2323
 
6845 amit.gupta 2324
  def getAllEntityTags(self, ):
2325
    self.send_getAllEntityTags()
2326
    return self.recv_getAllEntityTags()
2327
 
2328
  def send_getAllEntityTags(self, ):
2329
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2330
    args = getAllEntityTags_args()
2331
    args.write(self._oprot)
2332
    self._oprot.writeMessageEnd()
2333
    self._oprot.trans.flush()
2334
 
2335
  def recv_getAllEntityTags(self, ):
2336
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2337
    if mtype == TMessageType.EXCEPTION:
2338
      x = TApplicationException()
2339
      x.read(self._iprot)
2340
      self._iprot.readMessageEnd()
2341
      raise x
2342
    result = getAllEntityTags_result()
2343
    result.read(self._iprot)
2344
    self._iprot.readMessageEnd()
2345
    if result.success is not None:
2346
      return result.success
2347
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2348
 
8590 kshitij.so 2349
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2350
    """
8579 kshitij.so 2351
    Banner Related
2352
 
6850 kshitij.so 2353
    Parameters:
8590 kshitij.so 2354
     - bannerCongregate
6850 kshitij.so 2355
    """
8590 kshitij.so 2356
    self.send_addBanner(bannerCongregate)
2357
    self.recv_addBanner()
6850 kshitij.so 2358
 
8590 kshitij.so 2359
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2360
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2361
    args = addBanner_args()
8590 kshitij.so 2362
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2363
    args.write(self._oprot)
2364
    self._oprot.writeMessageEnd()
2365
    self._oprot.trans.flush()
2366
 
2367
  def recv_addBanner(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 = addBanner_result()
2375
    result.read(self._iprot)
2376
    self._iprot.readMessageEnd()
8590 kshitij.so 2377
    return
6850 kshitij.so 2378
 
8579 kshitij.so 2379
  def updateBanner(self, banner):
2380
    """
2381
    Parameters:
2382
     - banner
2383
    """
2384
    self.send_updateBanner(banner)
2385
    return self.recv_updateBanner()
2386
 
2387
  def send_updateBanner(self, banner):
2388
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2389
    args = updateBanner_args()
2390
    args.banner = banner
2391
    args.write(self._oprot)
2392
    self._oprot.writeMessageEnd()
2393
    self._oprot.trans.flush()
2394
 
2395
  def recv_updateBanner(self, ):
2396
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2397
    if mtype == TMessageType.EXCEPTION:
2398
      x = TApplicationException()
2399
      x.read(self._iprot)
2400
      self._iprot.readMessageEnd()
2401
      raise x
2402
    result = updateBanner_result()
2403
    result.read(self._iprot)
2404
    self._iprot.readMessageEnd()
2405
    if result.success is not None:
2406
      return result.success
2407
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2408
 
6850 kshitij.so 2409
  def getAllBanners(self, ):
2410
    self.send_getAllBanners()
2411
    return self.recv_getAllBanners()
2412
 
2413
  def send_getAllBanners(self, ):
2414
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2415
    args = getAllBanners_args()
2416
    args.write(self._oprot)
2417
    self._oprot.writeMessageEnd()
2418
    self._oprot.trans.flush()
2419
 
2420
  def recv_getAllBanners(self, ):
2421
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2422
    if mtype == TMessageType.EXCEPTION:
2423
      x = TApplicationException()
2424
      x.read(self._iprot)
2425
      self._iprot.readMessageEnd()
2426
      raise x
2427
    result = getAllBanners_result()
2428
    result.read(self._iprot)
2429
    self._iprot.readMessageEnd()
2430
    if result.success is not None:
2431
      return result.success
2432
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2433
 
9155 kshitij.so 2434
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2435
    """
2436
    Parameters:
2437
     - bannerName
9155 kshitij.so 2438
     - bannerType
6850 kshitij.so 2439
    """
9155 kshitij.so 2440
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2441
    return self.recv_deleteBanner()
2442
 
9155 kshitij.so 2443
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2444
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2445
    args = deleteBanner_args()
2446
    args.bannerName = bannerName
9155 kshitij.so 2447
    args.bannerType = bannerType
6850 kshitij.so 2448
    args.write(self._oprot)
2449
    self._oprot.writeMessageEnd()
2450
    self._oprot.trans.flush()
2451
 
2452
  def recv_deleteBanner(self, ):
2453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2454
    if mtype == TMessageType.EXCEPTION:
2455
      x = TApplicationException()
2456
      x.read(self._iprot)
2457
      self._iprot.readMessageEnd()
2458
      raise x
2459
    result = deleteBanner_result()
2460
    result.read(self._iprot)
2461
    self._iprot.readMessageEnd()
2462
    if result.success is not None:
2463
      return result.success
2464
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2465
 
9155 kshitij.so 2466
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2467
    """
2468
    Parameters:
2469
     - bannerName
9155 kshitij.so 2470
     - bannerType
6850 kshitij.so 2471
    """
9155 kshitij.so 2472
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2473
    return self.recv_getBannerDetails()
2474
 
9155 kshitij.so 2475
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2476
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2477
    args = getBannerDetails_args()
2478
    args.bannerName = bannerName
9155 kshitij.so 2479
    args.bannerType = bannerType
6850 kshitij.so 2480
    args.write(self._oprot)
2481
    self._oprot.writeMessageEnd()
2482
    self._oprot.trans.flush()
2483
 
2484
  def recv_getBannerDetails(self, ):
2485
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2486
    if mtype == TMessageType.EXCEPTION:
2487
      x = TApplicationException()
2488
      x.read(self._iprot)
2489
      self._iprot.readMessageEnd()
2490
      raise x
2491
    result = getBannerDetails_result()
2492
    result.read(self._iprot)
2493
    self._iprot.readMessageEnd()
2494
    if result.success is not None:
2495
      return result.success
2496
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2497
 
2498
  def getActiveBanners(self, ):
2499
    self.send_getActiveBanners()
2500
    return self.recv_getActiveBanners()
2501
 
2502
  def send_getActiveBanners(self, ):
2503
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2504
    args = getActiveBanners_args()
2505
    args.write(self._oprot)
2506
    self._oprot.writeMessageEnd()
2507
    self._oprot.trans.flush()
2508
 
2509
  def recv_getActiveBanners(self, ):
2510
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2511
    if mtype == TMessageType.EXCEPTION:
2512
      x = TApplicationException()
2513
      x.read(self._iprot)
2514
      self._iprot.readMessageEnd()
2515
      raise x
2516
    result = getActiveBanners_result()
2517
    result.read(self._iprot)
2518
    self._iprot.readMessageEnd()
2519
    if result.success is not None:
2520
      return result.success
2521
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2522
 
8579 kshitij.so 2523
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2524
    """
2525
    Parameters:
8579 kshitij.so 2526
     - bannerMaps
6849 kshitij.so 2527
    """
8579 kshitij.so 2528
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2529
    return self.recv_addBannerMap()
2530
 
8579 kshitij.so 2531
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2532
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2533
    args = addBannerMap_args()
8579 kshitij.so 2534
    args.bannerMaps = bannerMaps
6849 kshitij.so 2535
    args.write(self._oprot)
2536
    self._oprot.writeMessageEnd()
2537
    self._oprot.trans.flush()
2538
 
2539
  def recv_addBannerMap(self, ):
2540
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2541
    if mtype == TMessageType.EXCEPTION:
2542
      x = TApplicationException()
2543
      x.read(self._iprot)
2544
      self._iprot.readMessageEnd()
2545
      raise x
2546
    result = addBannerMap_result()
2547
    result.read(self._iprot)
2548
    self._iprot.readMessageEnd()
2549
    if result.success is not None:
2550
      return result.success
2551
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2552
 
8579 kshitij.so 2553
  def updateBannerMap(self, bannerMap):
2554
    """
2555
    Parameters:
2556
     - bannerMap
2557
    """
2558
    self.send_updateBannerMap(bannerMap)
2559
    return self.recv_updateBannerMap()
2560
 
2561
  def send_updateBannerMap(self, bannerMap):
2562
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2563
    args = updateBannerMap_args()
2564
    args.bannerMap = bannerMap
2565
    args.write(self._oprot)
2566
    self._oprot.writeMessageEnd()
2567
    self._oprot.trans.flush()
2568
 
2569
  def recv_updateBannerMap(self, ):
2570
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2571
    if mtype == TMessageType.EXCEPTION:
2572
      x = TApplicationException()
2573
      x.read(self._iprot)
2574
      self._iprot.readMessageEnd()
2575
      raise x
2576
    result = updateBannerMap_result()
2577
    result.read(self._iprot)
2578
    self._iprot.readMessageEnd()
2579
    if result.success is not None:
2580
      return result.success
2581
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2582
 
6849 kshitij.so 2583
  def deleteBannerMap(self, bannerName):
2584
    """
2585
    Parameters:
2586
     - bannerName
2587
    """
2588
    self.send_deleteBannerMap(bannerName)
2589
    return self.recv_deleteBannerMap()
2590
 
2591
  def send_deleteBannerMap(self, bannerName):
2592
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2593
    args = deleteBannerMap_args()
2594
    args.bannerName = bannerName
2595
    args.write(self._oprot)
2596
    self._oprot.writeMessageEnd()
2597
    self._oprot.trans.flush()
2598
 
2599
  def recv_deleteBannerMap(self, ):
2600
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2601
    if mtype == TMessageType.EXCEPTION:
2602
      x = TApplicationException()
2603
      x.read(self._iprot)
2604
      self._iprot.readMessageEnd()
2605
      raise x
2606
    result = deleteBannerMap_result()
2607
    result.read(self._iprot)
2608
    self._iprot.readMessageEnd()
2609
    if result.success is not None:
2610
      return result.success
2611
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2612
 
9155 kshitij.so 2613
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2614
    """
2615
    Parameters:
2616
     - bannerName
9155 kshitij.so 2617
     - bannerType
6849 kshitij.so 2618
    """
9155 kshitij.so 2619
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2620
    return self.recv_getBannerMapDetails()
2621
 
9155 kshitij.so 2622
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2623
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2624
    args = getBannerMapDetails_args()
2625
    args.bannerName = bannerName
9155 kshitij.so 2626
    args.bannerType = bannerType
6849 kshitij.so 2627
    args.write(self._oprot)
2628
    self._oprot.writeMessageEnd()
2629
    self._oprot.trans.flush()
2630
 
2631
  def recv_getBannerMapDetails(self, ):
2632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2633
    if mtype == TMessageType.EXCEPTION:
2634
      x = TApplicationException()
2635
      x.read(self._iprot)
2636
      self._iprot.readMessageEnd()
2637
      raise x
2638
    result = getBannerMapDetails_result()
2639
    result.read(self._iprot)
2640
    self._iprot.readMessageEnd()
2641
    if result.success is not None:
2642
      return result.success
2643
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2644
 
8579 kshitij.so 2645
  def addBannerUri(self, bannerUriMappings):
2646
    """
2647
    Parameters:
2648
     - bannerUriMappings
2649
    """
2650
    self.send_addBannerUri(bannerUriMappings)
2651
    self.recv_addBannerUri()
2652
 
2653
  def send_addBannerUri(self, bannerUriMappings):
2654
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2655
    args = addBannerUri_args()
2656
    args.bannerUriMappings = bannerUriMappings
2657
    args.write(self._oprot)
2658
    self._oprot.writeMessageEnd()
2659
    self._oprot.trans.flush()
2660
 
2661
  def recv_addBannerUri(self, ):
2662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2663
    if mtype == TMessageType.EXCEPTION:
2664
      x = TApplicationException()
2665
      x.read(self._iprot)
2666
      self._iprot.readMessageEnd()
2667
      raise x
2668
    result = addBannerUri_result()
2669
    result.read(self._iprot)
2670
    self._iprot.readMessageEnd()
2671
    return
2672
 
9155 kshitij.so 2673
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2674
    """
2675
    Parameters:
2676
     - bannerName
9155 kshitij.so 2677
     - bannerType
8579 kshitij.so 2678
    """
9155 kshitij.so 2679
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2680
    return self.recv_getUriMapping()
2681
 
9155 kshitij.so 2682
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2683
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2684
    args = getUriMapping_args()
2685
    args.bannerName = bannerName
9155 kshitij.so 2686
    args.bannerType = bannerType
8579 kshitij.so 2687
    args.write(self._oprot)
2688
    self._oprot.writeMessageEnd()
2689
    self._oprot.trans.flush()
2690
 
2691
  def recv_getUriMapping(self, ):
2692
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2693
    if mtype == TMessageType.EXCEPTION:
2694
      x = TApplicationException()
2695
      x.read(self._iprot)
2696
      self._iprot.readMessageEnd()
2697
      raise x
2698
    result = getUriMapping_result()
2699
    result.read(self._iprot)
2700
    self._iprot.readMessageEnd()
2701
    if result.success is not None:
2702
      return result.success
2703
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2704
 
2705
  def addCampaign(self, campaign):
2706
    """
2707
    Parameters:
2708
     - campaign
2709
    """
2710
    self.send_addCampaign(campaign)
2711
    self.recv_addCampaign()
2712
 
2713
  def send_addCampaign(self, campaign):
2714
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2715
    args = addCampaign_args()
2716
    args.campaign = campaign
2717
    args.write(self._oprot)
2718
    self._oprot.writeMessageEnd()
2719
    self._oprot.trans.flush()
2720
 
2721
  def recv_addCampaign(self, ):
2722
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2723
    if mtype == TMessageType.EXCEPTION:
2724
      x = TApplicationException()
2725
      x.read(self._iprot)
2726
      self._iprot.readMessageEnd()
2727
      raise x
2728
    result = addCampaign_result()
2729
    result.read(self._iprot)
2730
    self._iprot.readMessageEnd()
2731
    return
2732
 
2733
  def getCampaigns(self, campaignName):
2734
    """
2735
    Parameters:
2736
     - campaignName
2737
    """
2738
    self.send_getCampaigns(campaignName)
2739
    return self.recv_getCampaigns()
2740
 
2741
  def send_getCampaigns(self, campaignName):
2742
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
2743
    args = getCampaigns_args()
2744
    args.campaignName = campaignName
2745
    args.write(self._oprot)
2746
    self._oprot.writeMessageEnd()
2747
    self._oprot.trans.flush()
2748
 
2749
  def recv_getCampaigns(self, ):
2750
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2751
    if mtype == TMessageType.EXCEPTION:
2752
      x = TApplicationException()
2753
      x.read(self._iprot)
2754
      self._iprot.readMessageEnd()
2755
      raise x
2756
    result = getCampaigns_result()
2757
    result.read(self._iprot)
2758
    self._iprot.readMessageEnd()
2759
    if result.success is not None:
2760
      return result.success
2761
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
2762
 
2763
  def deleteCampaign(self, campaignId):
2764
    """
2765
    Parameters:
2766
     - campaignId
2767
    """
2768
    self.send_deleteCampaign(campaignId)
2769
    self.recv_deleteCampaign()
2770
 
2771
  def send_deleteCampaign(self, campaignId):
2772
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
2773
    args = deleteCampaign_args()
2774
    args.campaignId = campaignId
2775
    args.write(self._oprot)
2776
    self._oprot.writeMessageEnd()
2777
    self._oprot.trans.flush()
2778
 
2779
  def recv_deleteCampaign(self, ):
2780
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2781
    if mtype == TMessageType.EXCEPTION:
2782
      x = TApplicationException()
2783
      x.read(self._iprot)
2784
      self._iprot.readMessageEnd()
2785
      raise x
2786
    result = deleteCampaign_result()
2787
    result.read(self._iprot)
2788
    self._iprot.readMessageEnd()
2789
    return
2790
 
2791
  def getAllCampaigns(self, ):
2792
    self.send_getAllCampaigns()
2793
    return self.recv_getAllCampaigns()
2794
 
2795
  def send_getAllCampaigns(self, ):
2796
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
2797
    args = getAllCampaigns_args()
2798
    args.write(self._oprot)
2799
    self._oprot.writeMessageEnd()
2800
    self._oprot.trans.flush()
2801
 
2802
  def recv_getAllCampaigns(self, ):
2803
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2804
    if mtype == TMessageType.EXCEPTION:
2805
      x = TApplicationException()
2806
      x.read(self._iprot)
2807
      self._iprot.readMessageEnd()
2808
      raise x
2809
    result = getAllCampaigns_result()
2810
    result.read(self._iprot)
2811
    self._iprot.readMessageEnd()
2812
    if result.success is not None:
2813
      return result.success
2814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
2815
 
9155 kshitij.so 2816
  def getActiveBannersForMobileSite(self, ):
2817
    self.send_getActiveBannersForMobileSite()
2818
    return self.recv_getActiveBannersForMobileSite()
2819
 
2820
  def send_getActiveBannersForMobileSite(self, ):
2821
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
2822
    args = getActiveBannersForMobileSite_args()
2823
    args.write(self._oprot)
2824
    self._oprot.writeMessageEnd()
2825
    self._oprot.trans.flush()
2826
 
2827
  def recv_getActiveBannersForMobileSite(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 = getActiveBannersForMobileSite_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, "getActiveBannersForMobileSite failed: unknown result");
2840
 
5944 mandeep.dh 2841
  def deleteSimilarItem(self, itemId, catalogItemId):
2842
    """
2843
    Delete similar item.
2844
 
2845
    Parameters:
2846
     - itemId
2847
     - catalogItemId
2848
    """
2849
    self.send_deleteSimilarItem(itemId, catalogItemId)
2850
    return self.recv_deleteSimilarItem()
2851
 
2852
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2853
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2854
    args = deleteSimilarItem_args()
2855
    args.itemId = itemId
2856
    args.catalogItemId = catalogItemId
2857
    args.write(self._oprot)
2858
    self._oprot.writeMessageEnd()
2859
    self._oprot.trans.flush()
2860
 
2861
  def recv_deleteSimilarItem(self, ):
2862
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2863
    if mtype == TMessageType.EXCEPTION:
2864
      x = TApplicationException()
2865
      x.read(self._iprot)
2866
      self._iprot.readMessageEnd()
2867
      raise x
2868
    result = deleteSimilarItem_result()
2869
    result.read(self._iprot)
2870
    self._iprot.readMessageEnd()
2871
    if result.success is not None:
2872
      return result.success
2873
    if result.cex is not None:
2874
      raise result.cex
2875
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2876
 
2877
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2878
    """
2879
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2880
    If yes, returns the itemId else returns 0
2881
 
2882
    Parameters:
2883
     - brand
2884
     - modelNumber
2885
     - modelName
2886
     - color
2887
    """
2888
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2889
    return self.recv_checkSimilarItem()
2890
 
2891
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2892
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2893
    args = checkSimilarItem_args()
2894
    args.brand = brand
2895
    args.modelNumber = modelNumber
2896
    args.modelName = modelName
2897
    args.color = color
2898
    args.write(self._oprot)
2899
    self._oprot.writeMessageEnd()
2900
    self._oprot.trans.flush()
2901
 
2902
  def recv_checkSimilarItem(self, ):
2903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2904
    if mtype == TMessageType.EXCEPTION:
2905
      x = TApplicationException()
2906
      x.read(self._iprot)
2907
      self._iprot.readMessageEnd()
2908
      raise x
2909
    result = checkSimilarItem_result()
2910
    result.read(self._iprot)
2911
    self._iprot.readMessageEnd()
2912
    if result.success is not None:
2913
      return result.success
2914
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2915
 
2916
  def validateRiskyStatus(self, itemId):
2917
    """
2918
    Check wether item is risky and change status if inventory is not available for risky items
2919
 
2920
    Parameters:
2921
     - itemId
2922
    """
2923
    self.send_validateRiskyStatus(itemId)
2924
    self.recv_validateRiskyStatus()
2925
 
2926
  def send_validateRiskyStatus(self, itemId):
2927
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2928
    args = validateRiskyStatus_args()
2929
    args.itemId = itemId
2930
    args.write(self._oprot)
2931
    self._oprot.writeMessageEnd()
2932
    self._oprot.trans.flush()
2933
 
2934
  def recv_validateRiskyStatus(self, ):
2935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2936
    if mtype == TMessageType.EXCEPTION:
2937
      x = TApplicationException()
2938
      x.read(self._iprot)
2939
      self._iprot.readMessageEnd()
2940
      raise x
2941
    result = validateRiskyStatus_result()
2942
    result.read(self._iprot)
2943
    self._iprot.readMessageEnd()
2944
    return
2945
 
2946
  def changeItemRiskyFlag(self, itemId, risky):
2947
    """
2948
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2949
 
2950
    Parameters:
2951
     - itemId
2952
     - risky
2953
    """
2954
    self.send_changeItemRiskyFlag(itemId, risky)
2955
    self.recv_changeItemRiskyFlag()
2956
 
2957
  def send_changeItemRiskyFlag(self, itemId, risky):
2958
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2959
    args = changeItemRiskyFlag_args()
2960
    args.itemId = itemId
2961
    args.risky = risky
2962
    args.write(self._oprot)
2963
    self._oprot.writeMessageEnd()
2964
    self._oprot.trans.flush()
2965
 
2966
  def recv_changeItemRiskyFlag(self, ):
2967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2968
    if mtype == TMessageType.EXCEPTION:
2969
      x = TApplicationException()
2970
      x.read(self._iprot)
2971
      self._iprot.readMessageEnd()
2972
      raise x
2973
    result = changeItemRiskyFlag_result()
2974
    result.read(self._iprot)
2975
    self._iprot.readMessageEnd()
2976
    return
2977
 
2978
  def getItemsByRiskyFlag(self, ):
2979
    """
2980
    Returns list of items marked as risky.
2981
    """
2982
    self.send_getItemsByRiskyFlag()
2983
    return self.recv_getItemsByRiskyFlag()
2984
 
2985
  def send_getItemsByRiskyFlag(self, ):
2986
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2987
    args = getItemsByRiskyFlag_args()
2988
    args.write(self._oprot)
2989
    self._oprot.writeMessageEnd()
2990
    self._oprot.trans.flush()
2991
 
2992
  def recv_getItemsByRiskyFlag(self, ):
2993
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2994
    if mtype == TMessageType.EXCEPTION:
2995
      x = TApplicationException()
2996
      x.read(self._iprot)
2997
      self._iprot.readMessageEnd()
2998
      raise x
2999
    result = getItemsByRiskyFlag_result()
3000
    result.read(self._iprot)
3001
    self._iprot.readMessageEnd()
3002
    if result.success is not None:
3003
      return result.success
3004
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3005
 
3006
  def getItemsForMasterSheet(self, category, brand):
3007
    """
3008
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3009
 
3010
    Parameters:
3011
     - category
3012
     - brand
3013
    """
3014
    self.send_getItemsForMasterSheet(category, brand)
3015
    return self.recv_getItemsForMasterSheet()
3016
 
3017
  def send_getItemsForMasterSheet(self, category, brand):
3018
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3019
    args = getItemsForMasterSheet_args()
3020
    args.category = category
3021
    args.brand = brand
3022
    args.write(self._oprot)
3023
    self._oprot.writeMessageEnd()
3024
    self._oprot.trans.flush()
3025
 
3026
  def recv_getItemsForMasterSheet(self, ):
3027
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3028
    if mtype == TMessageType.EXCEPTION:
3029
      x = TApplicationException()
3030
      x.read(self._iprot)
3031
      self._iprot.readMessageEnd()
3032
      raise x
3033
    result = getItemsForMasterSheet_result()
3034
    result.read(self._iprot)
3035
    self._iprot.readMessageEnd()
3036
    if result.success is not None:
3037
      return result.success
3038
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3039
 
3040
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3041
    """
3042
    Returns list of catalog ids of items with same similarity index as of the given itemId
3043
 
3044
    Parameters:
3045
     - beginIndex
3046
     - totalItems
3047
     - itemId
3048
    """
3049
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3050
    return self.recv_getSimilarItemsCatalogIds()
3051
 
3052
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3053
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3054
    args = getSimilarItemsCatalogIds_args()
3055
    args.beginIndex = beginIndex
3056
    args.totalItems = totalItems
3057
    args.itemId = itemId
3058
    args.write(self._oprot)
3059
    self._oprot.writeMessageEnd()
3060
    self._oprot.trans.flush()
3061
 
3062
  def recv_getSimilarItemsCatalogIds(self, ):
3063
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3064
    if mtype == TMessageType.EXCEPTION:
3065
      x = TApplicationException()
3066
      x.read(self._iprot)
3067
      self._iprot.readMessageEnd()
3068
      raise x
3069
    result = getSimilarItemsCatalogIds_result()
3070
    result.read(self._iprot)
3071
    self._iprot.readMessageEnd()
3072
    if result.success is not None:
3073
      return result.success
3074
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3075
 
3076
  def addProductNotification(self, itemId, email):
3077
    """
3078
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3079
 
3080
    Parameters:
3081
     - itemId
3082
     - email
3083
    """
3084
    self.send_addProductNotification(itemId, email)
3085
    return self.recv_addProductNotification()
3086
 
3087
  def send_addProductNotification(self, itemId, email):
3088
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3089
    args = addProductNotification_args()
3090
    args.itemId = itemId
3091
    args.email = email
3092
    args.write(self._oprot)
3093
    self._oprot.writeMessageEnd()
3094
    self._oprot.trans.flush()
3095
 
3096
  def recv_addProductNotification(self, ):
3097
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3098
    if mtype == TMessageType.EXCEPTION:
3099
      x = TApplicationException()
3100
      x.read(self._iprot)
3101
      self._iprot.readMessageEnd()
3102
      raise x
3103
    result = addProductNotification_result()
3104
    result.read(self._iprot)
3105
    self._iprot.readMessageEnd()
3106
    if result.success is not None:
3107
      return result.success
3108
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3109
 
3110
  def sendProductNotifications(self, ):
3111
    """
3112
    Send the product notifications to the users for items which has stock.
3113
    """
3114
    self.send_sendProductNotifications()
3115
    return self.recv_sendProductNotifications()
3116
 
3117
  def send_sendProductNotifications(self, ):
3118
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3119
    args = sendProductNotifications_args()
3120
    args.write(self._oprot)
3121
    self._oprot.writeMessageEnd()
3122
    self._oprot.trans.flush()
3123
 
3124
  def recv_sendProductNotifications(self, ):
3125
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3126
    if mtype == TMessageType.EXCEPTION:
3127
      x = TApplicationException()
3128
      x.read(self._iprot)
3129
      self._iprot.readMessageEnd()
3130
      raise x
3131
    result = sendProductNotifications_result()
3132
    result.read(self._iprot)
3133
    self._iprot.readMessageEnd()
3134
    if result.success is not None:
3135
      return result.success
3136
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3137
 
3138
  def getAllBrandsByCategory(self, categoryId):
3139
    """
3140
    Returns list of brand names for a given category Id
3141
 
3142
    Parameters:
3143
     - categoryId
3144
    """
3145
    self.send_getAllBrandsByCategory(categoryId)
3146
    return self.recv_getAllBrandsByCategory()
3147
 
3148
  def send_getAllBrandsByCategory(self, categoryId):
3149
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3150
    args = getAllBrandsByCategory_args()
3151
    args.categoryId = categoryId
3152
    args.write(self._oprot)
3153
    self._oprot.writeMessageEnd()
3154
    self._oprot.trans.flush()
3155
 
3156
  def recv_getAllBrandsByCategory(self, ):
3157
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3158
    if mtype == TMessageType.EXCEPTION:
3159
      x = TApplicationException()
3160
      x.read(self._iprot)
3161
      self._iprot.readMessageEnd()
3162
      raise x
3163
    result = getAllBrandsByCategory_result()
3164
    result.read(self._iprot)
3165
    self._iprot.readMessageEnd()
3166
    if result.success is not None:
3167
      return result.success
3168
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3169
 
3170
  def getAllBrands(self, ):
3171
    """
3172
    Returns list of brand names
3173
    """
3174
    self.send_getAllBrands()
3175
    return self.recv_getAllBrands()
3176
 
3177
  def send_getAllBrands(self, ):
3178
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3179
    args = getAllBrands_args()
3180
    args.write(self._oprot)
3181
    self._oprot.writeMessageEnd()
3182
    self._oprot.trans.flush()
3183
 
3184
  def recv_getAllBrands(self, ):
3185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3186
    if mtype == TMessageType.EXCEPTION:
3187
      x = TApplicationException()
3188
      x.read(self._iprot)
3189
      self._iprot.readMessageEnd()
3190
      raise x
3191
    result = getAllBrands_result()
3192
    result.read(self._iprot)
3193
    self._iprot.readMessageEnd()
3194
    if result.success is not None:
3195
      return result.success
3196
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3197
 
3198
  def getAllSources(self, ):
3199
    """
3200
    Return list of all sources
3201
    """
3202
    self.send_getAllSources()
3203
    return self.recv_getAllSources()
3204
 
3205
  def send_getAllSources(self, ):
3206
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3207
    args = getAllSources_args()
3208
    args.write(self._oprot)
3209
    self._oprot.writeMessageEnd()
3210
    self._oprot.trans.flush()
3211
 
3212
  def recv_getAllSources(self, ):
3213
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3214
    if mtype == TMessageType.EXCEPTION:
3215
      x = TApplicationException()
3216
      x.read(self._iprot)
3217
      self._iprot.readMessageEnd()
3218
      raise x
3219
    result = getAllSources_result()
3220
    result.read(self._iprot)
3221
    self._iprot.readMessageEnd()
3222
    if result.success is not None:
3223
      return result.success
3224
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3225
 
3226
  def getItemPricingBySource(self, itemId, sourceId):
3227
    """
3228
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3229
 
3230
    Parameters:
3231
     - itemId
3232
     - sourceId
3233
    """
3234
    self.send_getItemPricingBySource(itemId, sourceId)
3235
    return self.recv_getItemPricingBySource()
3236
 
3237
  def send_getItemPricingBySource(self, itemId, sourceId):
3238
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3239
    args = getItemPricingBySource_args()
3240
    args.itemId = itemId
3241
    args.sourceId = sourceId
3242
    args.write(self._oprot)
3243
    self._oprot.writeMessageEnd()
3244
    self._oprot.trans.flush()
3245
 
3246
  def recv_getItemPricingBySource(self, ):
3247
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3248
    if mtype == TMessageType.EXCEPTION:
3249
      x = TApplicationException()
3250
      x.read(self._iprot)
3251
      self._iprot.readMessageEnd()
3252
      raise x
3253
    result = getItemPricingBySource_result()
3254
    result.read(self._iprot)
3255
    self._iprot.readMessageEnd()
3256
    if result.success is not None:
3257
      return result.success
3258
    if result.cex is not None:
3259
      raise result.cex
3260
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3261
 
3262
  def addSourceItemPricing(self, sourceItemPricing):
3263
    """
3264
    Adds prices to be displayed corresponding to the item if user comes from a source.
3265
    If item is not found or source is not found, it will throw exception.
3266
 
3267
    Parameters:
3268
     - sourceItemPricing
3269
    """
3270
    self.send_addSourceItemPricing(sourceItemPricing)
3271
    self.recv_addSourceItemPricing()
3272
 
3273
  def send_addSourceItemPricing(self, sourceItemPricing):
3274
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3275
    args = addSourceItemPricing_args()
3276
    args.sourceItemPricing = sourceItemPricing
3277
    args.write(self._oprot)
3278
    self._oprot.writeMessageEnd()
3279
    self._oprot.trans.flush()
3280
 
3281
  def recv_addSourceItemPricing(self, ):
3282
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3283
    if mtype == TMessageType.EXCEPTION:
3284
      x = TApplicationException()
3285
      x.read(self._iprot)
3286
      self._iprot.readMessageEnd()
3287
      raise x
3288
    result = addSourceItemPricing_result()
3289
    result.read(self._iprot)
3290
    self._iprot.readMessageEnd()
3291
    if result.cex is not None:
3292
      raise result.cex
3293
    return
3294
 
3295
  def getAllSourcePricing(self, itemId):
3296
    """
3297
    Returns the list of source pricing information of an item.
3298
    Raises an exception if item not found corresponding to itemId
3299
 
3300
    Parameters:
3301
     - itemId
3302
    """
3303
    self.send_getAllSourcePricing(itemId)
3304
    return self.recv_getAllSourcePricing()
3305
 
3306
  def send_getAllSourcePricing(self, itemId):
3307
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3308
    args = getAllSourcePricing_args()
3309
    args.itemId = itemId
3310
    args.write(self._oprot)
3311
    self._oprot.writeMessageEnd()
3312
    self._oprot.trans.flush()
3313
 
3314
  def recv_getAllSourcePricing(self, ):
3315
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3316
    if mtype == TMessageType.EXCEPTION:
3317
      x = TApplicationException()
3318
      x.read(self._iprot)
3319
      self._iprot.readMessageEnd()
3320
      raise x
3321
    result = getAllSourcePricing_result()
3322
    result.read(self._iprot)
3323
    self._iprot.readMessageEnd()
3324
    if result.success is not None:
3325
      return result.success
3326
    if result.cex is not None:
3327
      raise result.cex
3328
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3329
 
3330
  def getItemForSource(self, item_id, sourceId):
3331
    """
3332
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3333
 
3334
    Parameters:
3335
     - item_id
3336
     - sourceId
3337
    """
3338
    self.send_getItemForSource(item_id, sourceId)
3339
    return self.recv_getItemForSource()
3340
 
3341
  def send_getItemForSource(self, item_id, sourceId):
3342
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3343
    args = getItemForSource_args()
3344
    args.item_id = item_id
3345
    args.sourceId = sourceId
3346
    args.write(self._oprot)
3347
    self._oprot.writeMessageEnd()
3348
    self._oprot.trans.flush()
3349
 
3350
  def recv_getItemForSource(self, ):
3351
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3352
    if mtype == TMessageType.EXCEPTION:
3353
      x = TApplicationException()
3354
      x.read(self._iprot)
3355
      self._iprot.readMessageEnd()
3356
      raise x
3357
    result = getItemForSource_result()
3358
    result.read(self._iprot)
3359
    self._iprot.readMessageEnd()
3360
    if result.success is not None:
3361
      return result.success
3362
    if result.cex is not None:
3363
      raise result.cex
3364
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3365
 
3366
  def searchItemsInRange(self, searchTerms, offset, limit):
3367
    """
3368
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3369
 
3370
    Parameters:
3371
     - searchTerms
3372
     - offset
3373
     - limit
3374
    """
3375
    self.send_searchItemsInRange(searchTerms, offset, limit)
3376
    return self.recv_searchItemsInRange()
3377
 
3378
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3379
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3380
    args = searchItemsInRange_args()
3381
    args.searchTerms = searchTerms
3382
    args.offset = offset
3383
    args.limit = limit
3384
    args.write(self._oprot)
3385
    self._oprot.writeMessageEnd()
3386
    self._oprot.trans.flush()
3387
 
3388
  def recv_searchItemsInRange(self, ):
3389
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3390
    if mtype == TMessageType.EXCEPTION:
3391
      x = TApplicationException()
3392
      x.read(self._iprot)
3393
      self._iprot.readMessageEnd()
3394
      raise x
3395
    result = searchItemsInRange_result()
3396
    result.read(self._iprot)
3397
    self._iprot.readMessageEnd()
3398
    if result.success is not None:
3399
      return result.success
3400
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3401
 
3402
  def getSearchResultCount(self, searchTerms):
3403
    """
3404
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3405
 
3406
    Parameters:
3407
     - searchTerms
3408
    """
3409
    self.send_getSearchResultCount(searchTerms)
3410
    return self.recv_getSearchResultCount()
3411
 
3412
  def send_getSearchResultCount(self, searchTerms):
3413
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3414
    args = getSearchResultCount_args()
3415
    args.searchTerms = searchTerms
3416
    args.write(self._oprot)
3417
    self._oprot.writeMessageEnd()
3418
    self._oprot.trans.flush()
3419
 
3420
  def recv_getSearchResultCount(self, ):
3421
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3422
    if mtype == TMessageType.EXCEPTION:
3423
      x = TApplicationException()
3424
      x.read(self._iprot)
3425
      self._iprot.readMessageEnd()
3426
      raise x
3427
    result = getSearchResultCount_result()
3428
    result.read(self._iprot)
3429
    self._iprot.readMessageEnd()
3430
    if result.success is not None:
3431
      return result.success
3432
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3433
 
3434
  def getProductNotifications(self, startDateTime):
3435
    """
3436
    Returns a list of product notifications added after a supplied datetime
3437
 
3438
    Parameters:
3439
     - startDateTime
3440
    """
3441
    self.send_getProductNotifications(startDateTime)
3442
    return self.recv_getProductNotifications()
3443
 
3444
  def send_getProductNotifications(self, startDateTime):
3445
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3446
    args = getProductNotifications_args()
3447
    args.startDateTime = startDateTime
3448
    args.write(self._oprot)
3449
    self._oprot.writeMessageEnd()
3450
    self._oprot.trans.flush()
3451
 
3452
  def recv_getProductNotifications(self, ):
3453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3454
    if mtype == TMessageType.EXCEPTION:
3455
      x = TApplicationException()
3456
      x.read(self._iprot)
3457
      self._iprot.readMessageEnd()
3458
      raise x
3459
    result = getProductNotifications_result()
3460
    result.read(self._iprot)
3461
    self._iprot.readMessageEnd()
3462
    if result.success is not None:
3463
      return result.success
3464
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3465
 
7897 amar.kumar 3466
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3467
    """
3468
    Returns a list of count of requests for product notification against each item
3469
 
3470
    Parameters:
3471
     - startDateTime
7897 amar.kumar 3472
     - categoryId
5944 mandeep.dh 3473
    """
7897 amar.kumar 3474
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3475
    return self.recv_getProductNotificationRequestCount()
3476
 
7897 amar.kumar 3477
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3478
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3479
    args = getProductNotificationRequestCount_args()
3480
    args.startDateTime = startDateTime
7897 amar.kumar 3481
    args.categoryId = categoryId
5944 mandeep.dh 3482
    args.write(self._oprot)
3483
    self._oprot.writeMessageEnd()
3484
    self._oprot.trans.flush()
3485
 
3486
  def recv_getProductNotificationRequestCount(self, ):
3487
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3488
    if mtype == TMessageType.EXCEPTION:
3489
      x = TApplicationException()
3490
      x.read(self._iprot)
3491
      self._iprot.readMessageEnd()
3492
      raise x
3493
    result = getProductNotificationRequestCount_result()
3494
    result.read(self._iprot)
3495
    self._iprot.readMessageEnd()
3496
    if result.success is not None:
3497
      return result.success
3498
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3499
 
3500
  def addAuthorizationLog(self, itemId, username, reason):
3501
    """
3502
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3503
 
3504
    Parameters:
3505
     - itemId
3506
     - username
3507
     - reason
3508
    """
3509
    self.send_addAuthorizationLog(itemId, username, reason)
3510
    return self.recv_addAuthorizationLog()
3511
 
3512
  def send_addAuthorizationLog(self, itemId, username, reason):
3513
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3514
    args = addAuthorizationLog_args()
3515
    args.itemId = itemId
3516
    args.username = username
3517
    args.reason = reason
3518
    args.write(self._oprot)
3519
    self._oprot.writeMessageEnd()
3520
    self._oprot.trans.flush()
3521
 
3522
  def recv_addAuthorizationLog(self, ):
3523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3524
    if mtype == TMessageType.EXCEPTION:
3525
      x = TApplicationException()
3526
      x.read(self._iprot)
3527
      self._iprot.readMessageEnd()
3528
      raise x
3529
    result = addAuthorizationLog_result()
3530
    result.read(self._iprot)
3531
    self._iprot.readMessageEnd()
3532
    if result.success is not None:
3533
      return result.success
3534
    if result.cex is not None:
3535
      raise result.cex
3536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3537
 
3538
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3539
    """
3540
    Parameters:
3541
     - catalog_item_id
3542
     - voucherType
3543
     - voucherAmount
3544
    """
3545
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3546
    return self.recv_addupdateVoucherForItem()
3547
 
3548
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3549
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3550
    args = addupdateVoucherForItem_args()
3551
    args.catalog_item_id = catalog_item_id
3552
    args.voucherType = voucherType
3553
    args.voucherAmount = voucherAmount
3554
    args.write(self._oprot)
3555
    self._oprot.writeMessageEnd()
3556
    self._oprot.trans.flush()
3557
 
3558
  def recv_addupdateVoucherForItem(self, ):
3559
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3560
    if mtype == TMessageType.EXCEPTION:
3561
      x = TApplicationException()
3562
      x.read(self._iprot)
3563
      self._iprot.readMessageEnd()
3564
      raise x
3565
    result = addupdateVoucherForItem_result()
3566
    result.read(self._iprot)
3567
    self._iprot.readMessageEnd()
3568
    if result.success is not None:
3569
      return result.success
3570
    if result.cex is not None:
3571
      raise result.cex
3572
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3573
 
3574
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3575
    """
3576
    Parameters:
3577
     - catalog_item_id
3578
     - voucherType
3579
    """
3580
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3581
    return self.recv_deleteVoucherForItem()
3582
 
3583
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3584
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3585
    args = deleteVoucherForItem_args()
3586
    args.catalog_item_id = catalog_item_id
3587
    args.voucherType = voucherType
3588
    args.write(self._oprot)
3589
    self._oprot.writeMessageEnd()
3590
    self._oprot.trans.flush()
3591
 
3592
  def recv_deleteVoucherForItem(self, ):
3593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3594
    if mtype == TMessageType.EXCEPTION:
3595
      x = TApplicationException()
3596
      x.read(self._iprot)
3597
      self._iprot.readMessageEnd()
3598
      raise x
3599
    result = deleteVoucherForItem_result()
3600
    result.read(self._iprot)
3601
    self._iprot.readMessageEnd()
3602
    if result.success is not None:
3603
      return result.success
3604
    if result.cex is not None:
3605
      raise result.cex
3606
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3607
 
3608
  def getVoucherAmount(self, itemId, voucherType):
3609
    """
3610
    Parameters:
3611
     - itemId
3612
     - voucherType
3613
    """
3614
    self.send_getVoucherAmount(itemId, voucherType)
3615
    return self.recv_getVoucherAmount()
3616
 
3617
  def send_getVoucherAmount(self, itemId, voucherType):
3618
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3619
    args = getVoucherAmount_args()
3620
    args.itemId = itemId
3621
    args.voucherType = voucherType
3622
    args.write(self._oprot)
3623
    self._oprot.writeMessageEnd()
3624
    self._oprot.trans.flush()
3625
 
3626
  def recv_getVoucherAmount(self, ):
3627
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3628
    if mtype == TMessageType.EXCEPTION:
3629
      x = TApplicationException()
3630
      x.read(self._iprot)
3631
      self._iprot.readMessageEnd()
3632
      raise x
3633
    result = getVoucherAmount_result()
3634
    result.read(self._iprot)
3635
    self._iprot.readMessageEnd()
3636
    if result.success is not None:
3637
      return result.success
3638
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3639
 
3640
  def getAllItemVouchers(self, itemId):
3641
    """
3642
    Parameters:
3643
     - itemId
3644
    """
3645
    self.send_getAllItemVouchers(itemId)
3646
    return self.recv_getAllItemVouchers()
3647
 
3648
  def send_getAllItemVouchers(self, itemId):
3649
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3650
    args = getAllItemVouchers_args()
3651
    args.itemId = itemId
3652
    args.write(self._oprot)
3653
    self._oprot.writeMessageEnd()
3654
    self._oprot.trans.flush()
3655
 
3656
  def recv_getAllItemVouchers(self, ):
3657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3658
    if mtype == TMessageType.EXCEPTION:
3659
      x = TApplicationException()
3660
      x.read(self._iprot)
3661
      self._iprot.readMessageEnd()
3662
      raise x
3663
    result = getAllItemVouchers_result()
3664
    result.read(self._iprot)
3665
    self._iprot.readMessageEnd()
3666
    if result.success is not None:
3667
      return result.success
3668
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3669
 
3670
  def isValidCatalogItemId(self, catalog_item_id):
3671
    """
3672
    Parameters:
3673
     - catalog_item_id
3674
    """
3675
    self.send_isValidCatalogItemId(catalog_item_id)
3676
    return self.recv_isValidCatalogItemId()
3677
 
3678
  def send_isValidCatalogItemId(self, catalog_item_id):
3679
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3680
    args = isValidCatalogItemId_args()
3681
    args.catalog_item_id = catalog_item_id
3682
    args.write(self._oprot)
3683
    self._oprot.writeMessageEnd()
3684
    self._oprot.trans.flush()
3685
 
3686
  def recv_isValidCatalogItemId(self, ):
3687
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3688
    if mtype == TMessageType.EXCEPTION:
3689
      x = TApplicationException()
3690
      x.read(self._iprot)
3691
      self._iprot.readMessageEnd()
3692
      raise x
3693
    result = isValidCatalogItemId_result()
3694
    result.read(self._iprot)
3695
    self._iprot.readMessageEnd()
3696
    if result.success is not None:
3697
      return result.success
3698
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3699
 
7330 amit.gupta 3700
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3701
    """
3702
    Parameters:
3703
     - itemId
7330 amit.gupta 3704
     - stateId
6039 amit.gupta 3705
     - price
3706
    """
7330 amit.gupta 3707
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3708
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3709
 
7330 amit.gupta 3710
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3711
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3712
    args = getVatPercentageForItem_args()
3713
    args.itemId = itemId
7330 amit.gupta 3714
    args.stateId = stateId
6039 amit.gupta 3715
    args.price = price
3716
    args.write(self._oprot)
3717
    self._oprot.writeMessageEnd()
3718
    self._oprot.trans.flush()
3719
 
3720
  def recv_getVatPercentageForItem(self, ):
3721
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3722
    if mtype == TMessageType.EXCEPTION:
3723
      x = TApplicationException()
3724
      x.read(self._iprot)
3725
      self._iprot.readMessageEnd()
3726
      raise x
3727
    result = getVatPercentageForItem_result()
3728
    result.read(self._iprot)
3729
    self._iprot.readMessageEnd()
3730
    if result.success is not None:
3731
      return result.success
7340 amit.gupta 3732
    if result.cex is not None:
3733
      raise result.cex
6039 amit.gupta 3734
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3735
 
3736
  def getVatAmountForItem(self, itemId, price):
3737
    """
3738
    Parameters:
3739
     - itemId
3740
     - price
3741
    """
3742
    self.send_getVatAmountForItem(itemId, price)
3743
    return self.recv_getVatAmountForItem()
3744
 
3745
  def send_getVatAmountForItem(self, itemId, price):
3746
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3747
    args = getVatAmountForItem_args()
3748
    args.itemId = itemId
3749
    args.price = price
3750
    args.write(self._oprot)
3751
    self._oprot.writeMessageEnd()
3752
    self._oprot.trans.flush()
3753
 
3754
  def recv_getVatAmountForItem(self, ):
3755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3756
    if mtype == TMessageType.EXCEPTION:
3757
      x = TApplicationException()
3758
      x.read(self._iprot)
3759
      self._iprot.readMessageEnd()
3760
      raise x
3761
    result = getVatAmountForItem_result()
3762
    result.read(self._iprot)
3763
    self._iprot.readMessageEnd()
3764
    if result.success is not None:
3765
      return result.success
3766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3767
 
6531 vikram.rag 3768
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3769
    """
3770
    Parameters:
3771
     - offset
3772
     - limit
3773
    """
3774
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3775
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3776
 
6531 vikram.rag 3777
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3778
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3779
    args = getAllIgnoredInventoryUpdateItemsList_args()
3780
    args.offset = offset
3781
    args.limit = limit
3782
    args.write(self._oprot)
3783
    self._oprot.writeMessageEnd()
3784
    self._oprot.trans.flush()
3785
 
3786
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3787
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3788
    if mtype == TMessageType.EXCEPTION:
3789
      x = TApplicationException()
3790
      x.read(self._iprot)
3791
      self._iprot.readMessageEnd()
3792
      raise x
3793
    result = getAllIgnoredInventoryUpdateItemsList_result()
3794
    result.read(self._iprot)
3795
    self._iprot.readMessageEnd()
3796
    if result.success is not None:
3797
      return result.success
3798
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3799
 
6821 amar.kumar 3800
  def getAllAliveItems(self, ):
3801
    self.send_getAllAliveItems()
3802
    return self.recv_getAllAliveItems()
3803
 
3804
  def send_getAllAliveItems(self, ):
3805
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3806
    args = getAllAliveItems_args()
3807
    args.write(self._oprot)
3808
    self._oprot.writeMessageEnd()
3809
    self._oprot.trans.flush()
3810
 
3811
  def recv_getAllAliveItems(self, ):
3812
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3813
    if mtype == TMessageType.EXCEPTION:
3814
      x = TApplicationException()
3815
      x.read(self._iprot)
3816
      self._iprot.readMessageEnd()
3817
      raise x
3818
    result = getAllAliveItems_result()
3819
    result.read(self._iprot)
3820
    self._iprot.readMessageEnd()
3821
    if result.success is not None:
3822
      return result.success
3823
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3824
 
6921 anupam.sin 3825
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3826
    """
3827
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3828
 
6805 anupam.sin 3829
    Parameters:
3830
     - itemId
6921 anupam.sin 3831
     - price
6805 anupam.sin 3832
     - insurerId
3833
     - quantity
3834
    """
6921 anupam.sin 3835
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3836
    return self.recv_getInsuranceAmount()
3837
 
6921 anupam.sin 3838
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3839
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3840
    args = getInsuranceAmount_args()
3841
    args.itemId = itemId
6921 anupam.sin 3842
    args.price = price
6805 anupam.sin 3843
    args.insurerId = insurerId
3844
    args.quantity = quantity
3845
    args.write(self._oprot)
3846
    self._oprot.writeMessageEnd()
3847
    self._oprot.trans.flush()
3848
 
3849
  def recv_getInsuranceAmount(self, ):
3850
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3851
    if mtype == TMessageType.EXCEPTION:
3852
      x = TApplicationException()
3853
      x.read(self._iprot)
3854
      self._iprot.readMessageEnd()
3855
      raise x
3856
    result = getInsuranceAmount_result()
3857
    result.read(self._iprot)
3858
    self._iprot.readMessageEnd()
3859
    if result.success is not None:
3860
      return result.success
3861
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3862
 
3863
  def getInsurer(self, insurerId):
3864
    """
3865
    Parameters:
3866
     - insurerId
3867
    """
3868
    self.send_getInsurer(insurerId)
3869
    return self.recv_getInsurer()
3870
 
3871
  def send_getInsurer(self, insurerId):
3872
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3873
    args = getInsurer_args()
3874
    args.insurerId = insurerId
3875
    args.write(self._oprot)
3876
    self._oprot.writeMessageEnd()
3877
    self._oprot.trans.flush()
3878
 
3879
  def recv_getInsurer(self, ):
3880
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3881
    if mtype == TMessageType.EXCEPTION:
3882
      x = TApplicationException()
3883
      x.read(self._iprot)
3884
      self._iprot.readMessageEnd()
3885
      raise x
3886
    result = getInsurer_result()
3887
    result.read(self._iprot)
3888
    self._iprot.readMessageEnd()
3889
    if result.success is not None:
3890
      return result.success
3891
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3892
 
6838 vikram.rag 3893
  def getAllInsurers(self, ):
3894
    self.send_getAllInsurers()
3895
    return self.recv_getAllInsurers()
6805 anupam.sin 3896
 
6838 vikram.rag 3897
  def send_getAllInsurers(self, ):
3898
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3899
    args = getAllInsurers_args()
3900
    args.write(self._oprot)
3901
    self._oprot.writeMessageEnd()
3902
    self._oprot.trans.flush()
3903
 
3904
  def recv_getAllInsurers(self, ):
3905
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3906
    if mtype == TMessageType.EXCEPTION:
3907
      x = TApplicationException()
3908
      x.read(self._iprot)
3909
      self._iprot.readMessageEnd()
3910
      raise x
3911
    result = getAllInsurers_result()
3912
    result.read(self._iprot)
3913
    self._iprot.readMessageEnd()
3914
    if result.success is not None:
3915
      return result.success
3916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3917
 
6962 rajveer 3918
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
3919
    """
3920
    Parameters:
3921
     - insurerId
3922
     - amount
3923
    """
3924
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
3925
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 3926
 
6962 rajveer 3927
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
3928
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
3929
    args = updateInsuranceDeclaredAmount_args()
3930
    args.insurerId = insurerId
3931
    args.amount = amount
3932
    args.write(self._oprot)
3933
    self._oprot.writeMessageEnd()
3934
    self._oprot.trans.flush()
3935
 
3936
  def recv_updateInsuranceDeclaredAmount(self, ):
3937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3938
    if mtype == TMessageType.EXCEPTION:
3939
      x = TApplicationException()
3940
      x.read(self._iprot)
3941
      self._iprot.readMessageEnd()
3942
      raise x
3943
    result = updateInsuranceDeclaredAmount_result()
3944
    result.read(self._iprot)
3945
    self._iprot.readMessageEnd()
3946
    return
3947
 
7190 amar.kumar 3948
  def getFreebieForItem(self, itemId):
3949
    """
3950
    Parameters:
3951
     - itemId
3952
    """
3953
    self.send_getFreebieForItem(itemId)
3954
    return self.recv_getFreebieForItem()
6962 rajveer 3955
 
7190 amar.kumar 3956
  def send_getFreebieForItem(self, itemId):
3957
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
3958
    args = getFreebieForItem_args()
3959
    args.itemId = itemId
3960
    args.write(self._oprot)
3961
    self._oprot.writeMessageEnd()
3962
    self._oprot.trans.flush()
3963
 
3964
  def recv_getFreebieForItem(self, ):
3965
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3966
    if mtype == TMessageType.EXCEPTION:
3967
      x = TApplicationException()
3968
      x.read(self._iprot)
3969
      self._iprot.readMessageEnd()
3970
      raise x
3971
    result = getFreebieForItem_result()
3972
    result.read(self._iprot)
3973
    self._iprot.readMessageEnd()
3974
    if result.success is not None:
3975
      return result.success
3976
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
3977
 
3978
  def addOrUpdateFreebieForItem(self, freebieItem):
3979
    """
3980
    Parameters:
3981
     - freebieItem
3982
    """
3983
    self.send_addOrUpdateFreebieForItem(freebieItem)
3984
    self.recv_addOrUpdateFreebieForItem()
3985
 
3986
  def send_addOrUpdateFreebieForItem(self, freebieItem):
3987
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
3988
    args = addOrUpdateFreebieForItem_args()
3989
    args.freebieItem = freebieItem
3990
    args.write(self._oprot)
3991
    self._oprot.writeMessageEnd()
3992
    self._oprot.trans.flush()
3993
 
3994
  def recv_addOrUpdateFreebieForItem(self, ):
3995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3996
    if mtype == TMessageType.EXCEPTION:
3997
      x = TApplicationException()
3998
      x.read(self._iprot)
3999
      self._iprot.readMessageEnd()
4000
      raise x
4001
    result = addOrUpdateFreebieForItem_result()
4002
    result.read(self._iprot)
4003
    self._iprot.readMessageEnd()
4004
    return
4005
 
7272 amit.gupta 4006
  def addOrUpdateBrandInfo(self, brandInfo):
4007
    """
4008
    Parameters:
4009
     - brandInfo
4010
    """
4011
    self.send_addOrUpdateBrandInfo(brandInfo)
4012
    self.recv_addOrUpdateBrandInfo()
4013
 
4014
  def send_addOrUpdateBrandInfo(self, brandInfo):
4015
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4016
    args = addOrUpdateBrandInfo_args()
4017
    args.brandInfo = brandInfo
4018
    args.write(self._oprot)
4019
    self._oprot.writeMessageEnd()
4020
    self._oprot.trans.flush()
4021
 
4022
  def recv_addOrUpdateBrandInfo(self, ):
4023
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4024
    if mtype == TMessageType.EXCEPTION:
4025
      x = TApplicationException()
4026
      x.read(self._iprot)
4027
      self._iprot.readMessageEnd()
4028
      raise x
4029
    result = addOrUpdateBrandInfo_result()
4030
    result.read(self._iprot)
4031
    self._iprot.readMessageEnd()
4032
    return
4033
 
4034
  def getBrandInfo(self, ):
4035
    self.send_getBrandInfo()
4036
    return self.recv_getBrandInfo()
4037
 
4038
  def send_getBrandInfo(self, ):
4039
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4040
    args = getBrandInfo_args()
4041
    args.write(self._oprot)
4042
    self._oprot.writeMessageEnd()
4043
    self._oprot.trans.flush()
4044
 
4045
  def recv_getBrandInfo(self, ):
4046
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4047
    if mtype == TMessageType.EXCEPTION:
4048
      x = TApplicationException()
4049
      x.read(self._iprot)
4050
      self._iprot.readMessageEnd()
4051
      raise x
4052
    result = getBrandInfo_result()
4053
    result.read(self._iprot)
4054
    self._iprot.readMessageEnd()
4055
    if result.success is not None:
4056
      return result.success
4057
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4058
 
7256 rajveer 4059
  def getStorePricing(self, itemId):
4060
    """
4061
    Parameters:
4062
     - itemId
4063
    """
4064
    self.send_getStorePricing(itemId)
4065
    return self.recv_getStorePricing()
7190 amar.kumar 4066
 
7256 rajveer 4067
  def send_getStorePricing(self, itemId):
4068
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4069
    args = getStorePricing_args()
4070
    args.itemId = itemId
4071
    args.write(self._oprot)
4072
    self._oprot.writeMessageEnd()
4073
    self._oprot.trans.flush()
4074
 
4075
  def recv_getStorePricing(self, ):
4076
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4077
    if mtype == TMessageType.EXCEPTION:
4078
      x = TApplicationException()
4079
      x.read(self._iprot)
4080
      self._iprot.readMessageEnd()
4081
      raise x
4082
    result = getStorePricing_result()
4083
    result.read(self._iprot)
4084
    self._iprot.readMessageEnd()
4085
    if result.success is not None:
4086
      return result.success
4087
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4088
 
7306 rajveer 4089
  def getStorePricings(self, itemIds):
4090
    """
4091
    Parameters:
4092
     - itemIds
4093
    """
4094
    self.send_getStorePricings(itemIds)
4095
    return self.recv_getStorePricings()
4096
 
4097
  def send_getStorePricings(self, itemIds):
4098
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4099
    args = getStorePricings_args()
4100
    args.itemIds = itemIds
4101
    args.write(self._oprot)
4102
    self._oprot.writeMessageEnd()
4103
    self._oprot.trans.flush()
4104
 
4105
  def recv_getStorePricings(self, ):
4106
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4107
    if mtype == TMessageType.EXCEPTION:
4108
      x = TApplicationException()
4109
      x.read(self._iprot)
4110
      self._iprot.readMessageEnd()
4111
      raise x
4112
    result = getStorePricings_result()
4113
    result.read(self._iprot)
4114
    self._iprot.readMessageEnd()
4115
    if result.success is not None:
4116
      return result.success
4117
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4118
 
7382 rajveer 4119
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4120
    """
4121
    Parameters:
4122
     - sp
7382 rajveer 4123
     - allColors
7265 rajveer 4124
    """
7382 rajveer 4125
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4126
    self.recv_updateStorePricing()
7256 rajveer 4127
 
7382 rajveer 4128
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4129
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4130
    args = updateStorePricing_args()
4131
    args.sp = sp
7382 rajveer 4132
    args.allColors = allColors
7265 rajveer 4133
    args.write(self._oprot)
4134
    self._oprot.writeMessageEnd()
4135
    self._oprot.trans.flush()
4136
 
4137
  def recv_updateStorePricing(self, ):
4138
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4139
    if mtype == TMessageType.EXCEPTION:
4140
      x = TApplicationException()
4141
      x.read(self._iprot)
4142
      self._iprot.readMessageEnd()
4143
      raise x
4144
    result = updateStorePricing_result()
4145
    result.read(self._iprot)
4146
    self._iprot.readMessageEnd()
4147
    return
4148
 
7281 kshitij.so 4149
  def getAllAmazonListedItems(self, ):
4150
    self.send_getAllAmazonListedItems()
4151
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4152
 
7281 kshitij.so 4153
  def send_getAllAmazonListedItems(self, ):
4154
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4155
    args = getAllAmazonListedItems_args()
4156
    args.write(self._oprot)
4157
    self._oprot.writeMessageEnd()
4158
    self._oprot.trans.flush()
4159
 
4160
  def recv_getAllAmazonListedItems(self, ):
4161
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4162
    if mtype == TMessageType.EXCEPTION:
4163
      x = TApplicationException()
4164
      x.read(self._iprot)
4165
      self._iprot.readMessageEnd()
4166
      raise x
4167
    result = getAllAmazonListedItems_result()
4168
    result.read(self._iprot)
4169
    self._iprot.readMessageEnd()
4170
    if result.success is not None:
4171
      return result.success
4172
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4173
 
8619 kshitij.so 4174
  def searchAmazonItems(self, searchTerm, offset, limit):
4175
    """
4176
    Parameters:
4177
     - searchTerm
4178
     - offset
4179
     - limit
4180
    """
4181
    self.send_searchAmazonItems(searchTerm, offset, limit)
4182
    return self.recv_searchAmazonItems()
4183
 
4184
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4185
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4186
    args = searchAmazonItems_args()
4187
    args.searchTerm = searchTerm
4188
    args.offset = offset
4189
    args.limit = limit
4190
    args.write(self._oprot)
4191
    self._oprot.writeMessageEnd()
4192
    self._oprot.trans.flush()
4193
 
4194
  def recv_searchAmazonItems(self, ):
4195
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4196
    if mtype == TMessageType.EXCEPTION:
4197
      x = TApplicationException()
4198
      x.read(self._iprot)
4199
      self._iprot.readMessageEnd()
4200
      raise x
4201
    result = searchAmazonItems_result()
4202
    result.read(self._iprot)
4203
    self._iprot.readMessageEnd()
4204
    if result.success is not None:
4205
      return result.success
4206
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4207
 
4208
  def getAmazonSearchResultCount(self, searchTerm):
4209
    """
4210
    Parameters:
4211
     - searchTerm
4212
    """
4213
    self.send_getAmazonSearchResultCount(searchTerm)
4214
    return self.recv_getAmazonSearchResultCount()
4215
 
4216
  def send_getAmazonSearchResultCount(self, searchTerm):
4217
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4218
    args = getAmazonSearchResultCount_args()
4219
    args.searchTerm = searchTerm
4220
    args.write(self._oprot)
4221
    self._oprot.writeMessageEnd()
4222
    self._oprot.trans.flush()
4223
 
4224
  def recv_getAmazonSearchResultCount(self, ):
4225
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4226
    if mtype == TMessageType.EXCEPTION:
4227
      x = TApplicationException()
4228
      x.read(self._iprot)
4229
      self._iprot.readMessageEnd()
4230
      raise x
4231
    result = getAmazonSearchResultCount_result()
4232
    result.read(self._iprot)
4233
    self._iprot.readMessageEnd()
4234
    if result.success is not None:
4235
      return result.success
4236
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4237
 
4238
  def getCountForAmazonlistedItems(self, ):
4239
    self.send_getCountForAmazonlistedItems()
4240
    return self.recv_getCountForAmazonlistedItems()
4241
 
4242
  def send_getCountForAmazonlistedItems(self, ):
4243
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4244
    args = getCountForAmazonlistedItems_args()
4245
    args.write(self._oprot)
4246
    self._oprot.writeMessageEnd()
4247
    self._oprot.trans.flush()
4248
 
4249
  def recv_getCountForAmazonlistedItems(self, ):
4250
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4251
    if mtype == TMessageType.EXCEPTION:
4252
      x = TApplicationException()
4253
      x.read(self._iprot)
4254
      self._iprot.readMessageEnd()
4255
      raise x
4256
    result = getCountForAmazonlistedItems_result()
4257
    result.read(self._iprot)
4258
    self._iprot.readMessageEnd()
4259
    if result.success is not None:
4260
      return result.success
4261
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4262
 
7281 kshitij.so 4263
  def getAmazonItemDetails(self, itemId):
4264
    """
4265
    Parameters:
4266
     - itemId
4267
    """
4268
    self.send_getAmazonItemDetails(itemId)
4269
    return self.recv_getAmazonItemDetails()
4270
 
4271
  def send_getAmazonItemDetails(self, itemId):
4272
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4273
    args = getAmazonItemDetails_args()
4274
    args.itemId = itemId
4275
    args.write(self._oprot)
4276
    self._oprot.writeMessageEnd()
4277
    self._oprot.trans.flush()
4278
 
4279
  def recv_getAmazonItemDetails(self, ):
4280
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4281
    if mtype == TMessageType.EXCEPTION:
4282
      x = TApplicationException()
4283
      x.read(self._iprot)
4284
      self._iprot.readMessageEnd()
4285
      raise x
4286
    result = getAmazonItemDetails_result()
4287
    result.read(self._iprot)
4288
    self._iprot.readMessageEnd()
4289
    if result.success is not None:
4290
      return result.success
4291
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4292
 
8168 kshitij.so 4293
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4294
    """
4295
    Parameters:
8168 kshitij.so 4296
     - amazonlisted
7281 kshitij.so 4297
    """
8168 kshitij.so 4298
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4299
    self.recv_updateAmazonItemDetails()
4300
 
8168 kshitij.so 4301
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4302
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4303
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4304
    args.amazonlisted = amazonlisted
7281 kshitij.so 4305
    args.write(self._oprot)
4306
    self._oprot.writeMessageEnd()
4307
    self._oprot.trans.flush()
4308
 
4309
  def recv_updateAmazonItemDetails(self, ):
4310
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4311
    if mtype == TMessageType.EXCEPTION:
4312
      x = TApplicationException()
4313
      x.read(self._iprot)
4314
      self._iprot.readMessageEnd()
4315
      raise x
4316
    result = updateAmazonItemDetails_result()
4317
    result.read(self._iprot)
4318
    self._iprot.readMessageEnd()
4319
    return
4320
 
4321
  def addAmazonItem(self, amazonlisted):
4322
    """
4323
    Parameters:
4324
     - amazonlisted
4325
    """
4326
    self.send_addAmazonItem(amazonlisted)
4327
    self.recv_addAmazonItem()
4328
 
4329
  def send_addAmazonItem(self, amazonlisted):
4330
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4331
    args = addAmazonItem_args()
4332
    args.amazonlisted = amazonlisted
4333
    args.write(self._oprot)
4334
    self._oprot.writeMessageEnd()
4335
    self._oprot.trans.flush()
4336
 
4337
  def recv_addAmazonItem(self, ):
4338
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4339
    if mtype == TMessageType.EXCEPTION:
4340
      x = TApplicationException()
4341
      x.read(self._iprot)
4342
      self._iprot.readMessageEnd()
4343
      raise x
4344
    result = addAmazonItem_result()
4345
    result.read(self._iprot)
4346
    self._iprot.readMessageEnd()
4347
    return
4348
 
7291 vikram.rag 4349
  def getAsinItems(self, ):
4350
    self.send_getAsinItems()
4351
    return self.recv_getAsinItems()
7281 kshitij.so 4352
 
7291 vikram.rag 4353
  def send_getAsinItems(self, ):
4354
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4355
    args = getAsinItems_args()
4356
    args.write(self._oprot)
4357
    self._oprot.writeMessageEnd()
4358
    self._oprot.trans.flush()
4359
 
4360
  def recv_getAsinItems(self, ):
4361
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4362
    if mtype == TMessageType.EXCEPTION:
4363
      x = TApplicationException()
4364
      x.read(self._iprot)
4365
      self._iprot.readMessageEnd()
4366
      raise x
4367
    result = getAsinItems_result()
4368
    result.read(self._iprot)
4369
    self._iprot.readMessageEnd()
4370
    if result.success is not None:
4371
      return result.success
4372
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4373
 
4374
  def getAllFbaListedItems(self, ):
4375
    self.send_getAllFbaListedItems()
4376
    return self.recv_getAllFbaListedItems()
4377
 
4378
  def send_getAllFbaListedItems(self, ):
4379
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4380
    args = getAllFbaListedItems_args()
4381
    args.write(self._oprot)
4382
    self._oprot.writeMessageEnd()
4383
    self._oprot.trans.flush()
4384
 
4385
  def recv_getAllFbaListedItems(self, ):
4386
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4387
    if mtype == TMessageType.EXCEPTION:
4388
      x = TApplicationException()
4389
      x.read(self._iprot)
4390
      self._iprot.readMessageEnd()
4391
      raise x
4392
    result = getAllFbaListedItems_result()
4393
    result.read(self._iprot)
4394
    self._iprot.readMessageEnd()
4395
    if result.success is not None:
4396
      return result.success
4397
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4398
 
4399
  def getAllNonFbaListedItems(self, ):
4400
    self.send_getAllNonFbaListedItems()
4401
    return self.recv_getAllNonFbaListedItems()
4402
 
4403
  def send_getAllNonFbaListedItems(self, ):
4404
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4405
    args = getAllNonFbaListedItems_args()
4406
    args.write(self._oprot)
4407
    self._oprot.writeMessageEnd()
4408
    self._oprot.trans.flush()
4409
 
4410
  def recv_getAllNonFbaListedItems(self, ):
4411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4412
    if mtype == TMessageType.EXCEPTION:
4413
      x = TApplicationException()
4414
      x.read(self._iprot)
4415
      self._iprot.readMessageEnd()
4416
      raise x
4417
    result = getAllNonFbaListedItems_result()
4418
    result.read(self._iprot)
4419
    self._iprot.readMessageEnd()
4420
    if result.success is not None:
4421
      return result.success
4422
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4423
 
7460 kshitij.so 4424
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4425
    """
4426
    Parameters:
4427
     - itemId
4428
     - holdInventory
4429
     - defaultInventory
4430
    """
4431
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4432
    return self.recv_updateItemInventory()
7291 vikram.rag 4433
 
7460 kshitij.so 4434
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4435
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4436
    args = updateItemInventory_args()
4437
    args.itemId = itemId
4438
    args.holdInventory = holdInventory
4439
    args.defaultInventory = defaultInventory
4440
    args.write(self._oprot)
4441
    self._oprot.writeMessageEnd()
4442
    self._oprot.trans.flush()
4443
 
4444
  def recv_updateItemInventory(self, ):
4445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4446
    if mtype == TMessageType.EXCEPTION:
4447
      x = TApplicationException()
4448
      x.read(self._iprot)
4449
      self._iprot.readMessageEnd()
4450
      raise x
4451
    result = updateItemInventory_result()
4452
    result.read(self._iprot)
4453
    self._iprot.readMessageEnd()
4454
    if result.success is not None:
4455
      return result.success
4456
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4457
 
7770 kshitij.so 4458
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4459
    """
4460
    Parameters:
4461
     - type
4462
     - sku
4463
     - timestamp
4464
    """
4465
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4466
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4467
 
7770 kshitij.so 4468
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4469
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4470
    args = updateTimestampForAmazonFeeds_args()
4471
    args.type = type
4472
    args.sku = sku
4473
    args.timestamp = timestamp
4474
    args.write(self._oprot)
4475
    self._oprot.writeMessageEnd()
4476
    self._oprot.trans.flush()
4477
 
4478
  def recv_updateTimestampForAmazonFeeds(self, ):
4479
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4480
    if mtype == TMessageType.EXCEPTION:
4481
      x = TApplicationException()
4482
      x.read(self._iprot)
4483
      self._iprot.readMessageEnd()
4484
      raise x
4485
    result = updateTimestampForAmazonFeeds_result()
4486
    result.read(self._iprot)
4487
    self._iprot.readMessageEnd()
4488
    if result.success is not None:
4489
      return result.success
4490
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4491
 
7897 amar.kumar 4492
  def getAllParentCategories(self, ):
4493
    self.send_getAllParentCategories()
4494
    return self.recv_getAllParentCategories()
7770 kshitij.so 4495
 
7897 amar.kumar 4496
  def send_getAllParentCategories(self, ):
4497
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4498
    args = getAllParentCategories_args()
4499
    args.write(self._oprot)
4500
    self._oprot.writeMessageEnd()
4501
    self._oprot.trans.flush()
4502
 
4503
  def recv_getAllParentCategories(self, ):
4504
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4505
    if mtype == TMessageType.EXCEPTION:
4506
      x = TApplicationException()
4507
      x.read(self._iprot)
4508
      self._iprot.readMessageEnd()
4509
      raise x
4510
    result = getAllParentCategories_result()
4511
    result.read(self._iprot)
4512
    self._iprot.readMessageEnd()
4513
    if result.success is not None:
4514
      return result.success
4515
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4516
 
7977 kshitij.so 4517
  def addPageViewEvent(self, pageViewEvents):
4518
    """
4519
    Parameters:
4520
     - pageViewEvents
4521
    """
4522
    self.send_addPageViewEvent(pageViewEvents)
4523
    self.recv_addPageViewEvent()
7897 amar.kumar 4524
 
7977 kshitij.so 4525
  def send_addPageViewEvent(self, pageViewEvents):
4526
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4527
    args = addPageViewEvent_args()
4528
    args.pageViewEvents = pageViewEvents
4529
    args.write(self._oprot)
4530
    self._oprot.writeMessageEnd()
4531
    self._oprot.trans.flush()
4532
 
4533
  def recv_addPageViewEvent(self, ):
4534
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4535
    if mtype == TMessageType.EXCEPTION:
4536
      x = TApplicationException()
4537
      x.read(self._iprot)
4538
      self._iprot.readMessageEnd()
4539
      raise x
4540
    result = addPageViewEvent_result()
4541
    result.read(self._iprot)
4542
    self._iprot.readMessageEnd()
4543
    return
4544
 
4545
  def addCartEvent(self, cartEvents):
4546
    """
4547
    Parameters:
4548
     - cartEvents
4549
    """
4550
    self.send_addCartEvent(cartEvents)
4551
    self.recv_addCartEvent()
4552
 
4553
  def send_addCartEvent(self, cartEvents):
4554
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4555
    args = addCartEvent_args()
4556
    args.cartEvents = cartEvents
4557
    args.write(self._oprot)
4558
    self._oprot.writeMessageEnd()
4559
    self._oprot.trans.flush()
4560
 
4561
  def recv_addCartEvent(self, ):
4562
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4563
    if mtype == TMessageType.EXCEPTION:
4564
      x = TApplicationException()
4565
      x.read(self._iprot)
4566
      self._iprot.readMessageEnd()
4567
      raise x
4568
    result = addCartEvent_result()
4569
    result.read(self._iprot)
4570
    self._iprot.readMessageEnd()
4571
    return
4572
 
8182 amar.kumar 4573
  def addEbayItem(self, ebayItem):
4574
    """
4575
    Parameters:
4576
     - ebayItem
4577
    """
4578
    self.send_addEbayItem(ebayItem)
4579
    self.recv_addEbayItem()
4580
 
4581
  def send_addEbayItem(self, ebayItem):
4582
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4583
    args = addEbayItem_args()
4584
    args.ebayItem = ebayItem
4585
    args.write(self._oprot)
4586
    self._oprot.writeMessageEnd()
4587
    self._oprot.trans.flush()
4588
 
4589
  def recv_addEbayItem(self, ):
4590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4591
    if mtype == TMessageType.EXCEPTION:
4592
      x = TApplicationException()
4593
      x.read(self._iprot)
4594
      self._iprot.readMessageEnd()
4595
      raise x
4596
    result = addEbayItem_result()
4597
    result.read(self._iprot)
4598
    self._iprot.readMessageEnd()
4599
    return
4600
 
4601
  def getEbayItem(self, listingId):
4602
    """
4603
    Parameters:
4604
     - listingId
4605
    """
4606
    self.send_getEbayItem(listingId)
4607
    return self.recv_getEbayItem()
4608
 
4609
  def send_getEbayItem(self, listingId):
4610
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4611
    args = getEbayItem_args()
4612
    args.listingId = listingId
4613
    args.write(self._oprot)
4614
    self._oprot.writeMessageEnd()
4615
    self._oprot.trans.flush()
4616
 
4617
  def recv_getEbayItem(self, ):
4618
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4619
    if mtype == TMessageType.EXCEPTION:
4620
      x = TApplicationException()
4621
      x.read(self._iprot)
4622
      self._iprot.readMessageEnd()
4623
      raise x
4624
    result = getEbayItem_result()
4625
    result.read(self._iprot)
4626
    self._iprot.readMessageEnd()
4627
    if result.success is not None:
4628
      return result.success
4629
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4630
 
4631
  def updateEbayItem(self, ebayItem):
4632
    """
4633
    Parameters:
4634
     - ebayItem
4635
    """
4636
    self.send_updateEbayItem(ebayItem)
4637
    self.recv_updateEbayItem()
4638
 
4639
  def send_updateEbayItem(self, ebayItem):
4640
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4641
    args = updateEbayItem_args()
4642
    args.ebayItem = ebayItem
4643
    args.write(self._oprot)
4644
    self._oprot.writeMessageEnd()
4645
    self._oprot.trans.flush()
4646
 
4647
  def recv_updateEbayItem(self, ):
4648
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4649
    if mtype == TMessageType.EXCEPTION:
4650
      x = TApplicationException()
4651
      x.read(self._iprot)
4652
      self._iprot.readMessageEnd()
4653
      raise x
4654
    result = updateEbayItem_result()
4655
    result.read(self._iprot)
4656
    self._iprot.readMessageEnd()
4657
    return
4658
 
8139 kshitij.so 4659
  def getAmazonListedItems(self, offset, limit):
4660
    """
4661
    Parameters:
4662
     - offset
4663
     - limit
4664
    """
4665
    self.send_getAmazonListedItems(offset, limit)
4666
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4667
 
8139 kshitij.so 4668
  def send_getAmazonListedItems(self, offset, limit):
4669
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4670
    args = getAmazonListedItems_args()
4671
    args.offset = offset
4672
    args.limit = limit
4673
    args.write(self._oprot)
4674
    self._oprot.writeMessageEnd()
4675
    self._oprot.trans.flush()
4676
 
4677
  def recv_getAmazonListedItems(self, ):
4678
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4679
    if mtype == TMessageType.EXCEPTION:
4680
      x = TApplicationException()
4681
      x.read(self._iprot)
4682
      self._iprot.readMessageEnd()
4683
      raise x
4684
    result = getAmazonListedItems_result()
4685
    result.read(self._iprot)
4686
    self._iprot.readMessageEnd()
4687
    if result.success is not None:
4688
      return result.success
4689
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4690
 
8168 kshitij.so 4691
  def updateAmazonAttributesInBulk(self, amazonlisted):
4692
    """
4693
    Parameters:
4694
     - amazonlisted
4695
    """
4696
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4697
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4698
 
8168 kshitij.so 4699
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4700
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4701
    args = updateAmazonAttributesInBulk_args()
4702
    args.amazonlisted = amazonlisted
4703
    args.write(self._oprot)
4704
    self._oprot.writeMessageEnd()
4705
    self._oprot.trans.flush()
4706
 
4707
  def recv_updateAmazonAttributesInBulk(self, ):
4708
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4709
    if mtype == TMessageType.EXCEPTION:
4710
      x = TApplicationException()
4711
      x.read(self._iprot)
4712
      self._iprot.readMessageEnd()
4713
      raise x
4714
    result = updateAmazonAttributesInBulk_result()
4715
    result.read(self._iprot)
4716
    self._iprot.readMessageEnd()
4717
    if result.success is not None:
4718
      return result.success
4719
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4720
 
8379 vikram.rag 4721
  def getAllItemstoListOnFba(self, ):
4722
    self.send_getAllItemstoListOnFba()
4723
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 4724
 
8379 vikram.rag 4725
  def send_getAllItemstoListOnFba(self, ):
4726
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
4727
    args = getAllItemstoListOnFba_args()
4728
    args.write(self._oprot)
4729
    self._oprot.writeMessageEnd()
4730
    self._oprot.trans.flush()
4731
 
4732
  def recv_getAllItemstoListOnFba(self, ):
4733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4734
    if mtype == TMessageType.EXCEPTION:
4735
      x = TApplicationException()
4736
      x.read(self._iprot)
4737
      self._iprot.readMessageEnd()
4738
      raise x
4739
    result = getAllItemstoListOnFba_result()
4740
    result.read(self._iprot)
4741
    self._iprot.readMessageEnd()
4742
    if result.success is not None:
4743
      return result.success
4744
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
4745
 
4746
  def getAllItemstoListOnNonFba(self, ):
4747
    self.send_getAllItemstoListOnNonFba()
4748
    return self.recv_getAllItemstoListOnNonFba()
4749
 
4750
  def send_getAllItemstoListOnNonFba(self, ):
4751
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
4752
    args = getAllItemstoListOnNonFba_args()
4753
    args.write(self._oprot)
4754
    self._oprot.writeMessageEnd()
4755
    self._oprot.trans.flush()
4756
 
4757
  def recv_getAllItemstoListOnNonFba(self, ):
4758
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4759
    if mtype == TMessageType.EXCEPTION:
4760
      x = TApplicationException()
4761
      x.read(self._iprot)
4762
      self._iprot.readMessageEnd()
4763
      raise x
4764
    result = getAllItemstoListOnNonFba_result()
4765
    result.read(self._iprot)
4766
    self._iprot.readMessageEnd()
4767
    if result.success is not None:
4768
      return result.success
4769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4770
 
8619 kshitij.so 4771
  def updateAsin(self, item):
4772
    """
4773
    Parameters:
4774
     - item
4775
    """
4776
    self.send_updateAsin(item)
4777
    self.recv_updateAsin()
8616 vikram.rag 4778
 
8619 kshitij.so 4779
  def send_updateAsin(self, item):
4780
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
4781
    args = updateAsin_args()
4782
    args.item = item
4783
    args.write(self._oprot)
4784
    self._oprot.writeMessageEnd()
4785
    self._oprot.trans.flush()
4786
 
4787
  def recv_updateAsin(self, ):
4788
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4789
    if mtype == TMessageType.EXCEPTION:
4790
      x = TApplicationException()
4791
      x.read(self._iprot)
4792
      self._iprot.readMessageEnd()
4793
      raise x
4794
    result = updateAsin_result()
4795
    result.read(self._iprot)
4796
    self._iprot.readMessageEnd()
4797
    return
4798
 
8739 vikram.rag 4799
  def addOrUpdateSnapdealItem(self, snapdealitem):
4800
    """
4801
    Parameters:
4802
     - snapdealitem
4803
    """
4804
    self.send_addOrUpdateSnapdealItem(snapdealitem)
4805
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 4806
 
8739 vikram.rag 4807
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
4808
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
4809
    args = addOrUpdateSnapdealItem_args()
4810
    args.snapdealitem = snapdealitem
4811
    args.write(self._oprot)
4812
    self._oprot.writeMessageEnd()
4813
    self._oprot.trans.flush()
4814
 
4815
  def recv_addOrUpdateSnapdealItem(self, ):
4816
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4817
    if mtype == TMessageType.EXCEPTION:
4818
      x = TApplicationException()
4819
      x.read(self._iprot)
4820
      self._iprot.readMessageEnd()
4821
      raise x
4822
    result = addOrUpdateSnapdealItem_result()
4823
    result.read(self._iprot)
4824
    self._iprot.readMessageEnd()
4825
    if result.success is not None:
4826
      return result.success
4827
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
4828
 
4829
  def getSnapdealItem(self, item_id):
4830
    """
4831
    Parameters:
4832
     - item_id
4833
    """
4834
    self.send_getSnapdealItem(item_id)
4835
    return self.recv_getSnapdealItem()
4836
 
4837
  def send_getSnapdealItem(self, item_id):
4838
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
4839
    args = getSnapdealItem_args()
4840
    args.item_id = item_id
4841
    args.write(self._oprot)
4842
    self._oprot.writeMessageEnd()
4843
    self._oprot.trans.flush()
4844
 
4845
  def recv_getSnapdealItem(self, ):
4846
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4847
    if mtype == TMessageType.EXCEPTION:
4848
      x = TApplicationException()
4849
      x.read(self._iprot)
4850
      self._iprot.readMessageEnd()
4851
      raise x
4852
    result = getSnapdealItem_result()
4853
    result.read(self._iprot)
4854
    self._iprot.readMessageEnd()
4855
    if result.success is not None:
4856
      return result.success
4857
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
4858
 
9242 kshitij.so 4859
  def getSnapdealItemDetails(self, item_id):
4860
    """
4861
    Parameters:
4862
     - item_id
4863
    """
4864
    self.send_getSnapdealItemDetails(item_id)
4865
    return self.recv_getSnapdealItemDetails()
4866
 
4867
  def send_getSnapdealItemDetails(self, item_id):
4868
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
4869
    args = getSnapdealItemDetails_args()
4870
    args.item_id = item_id
4871
    args.write(self._oprot)
4872
    self._oprot.writeMessageEnd()
4873
    self._oprot.trans.flush()
4874
 
4875
  def recv_getSnapdealItemDetails(self, ):
4876
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4877
    if mtype == TMessageType.EXCEPTION:
4878
      x = TApplicationException()
4879
      x.read(self._iprot)
4880
      self._iprot.readMessageEnd()
4881
      raise x
4882
    result = getSnapdealItemDetails_result()
4883
    result.read(self._iprot)
4884
    self._iprot.readMessageEnd()
4885
    if result.success is not None:
4886
      return result.success
4887
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
4888
 
8739 vikram.rag 4889
  def getAllSnapdealItems(self, ):
4890
    self.send_getAllSnapdealItems()
4891
    return self.recv_getAllSnapdealItems()
4892
 
4893
  def send_getAllSnapdealItems(self, ):
4894
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
4895
    args = getAllSnapdealItems_args()
4896
    args.write(self._oprot)
4897
    self._oprot.writeMessageEnd()
4898
    self._oprot.trans.flush()
4899
 
4900
  def recv_getAllSnapdealItems(self, ):
4901
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4902
    if mtype == TMessageType.EXCEPTION:
4903
      x = TApplicationException()
4904
      x.read(self._iprot)
4905
      self._iprot.readMessageEnd()
4906
      raise x
4907
    result = getAllSnapdealItems_result()
4908
    result.read(self._iprot)
4909
    self._iprot.readMessageEnd()
4910
    if result.success is not None:
4911
      return result.success
4912
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
4913
 
9242 kshitij.so 4914
  def getSnapdealItems(self, offset, limit):
4915
    """
4916
    Parameters:
4917
     - offset
4918
     - limit
4919
    """
4920
    self.send_getSnapdealItems(offset, limit)
4921
    return self.recv_getSnapdealItems()
8739 vikram.rag 4922
 
9242 kshitij.so 4923
  def send_getSnapdealItems(self, offset, limit):
4924
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
4925
    args = getSnapdealItems_args()
4926
    args.offset = offset
4927
    args.limit = limit
4928
    args.write(self._oprot)
4929
    self._oprot.writeMessageEnd()
4930
    self._oprot.trans.flush()
4931
 
4932
  def recv_getSnapdealItems(self, ):
4933
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4934
    if mtype == TMessageType.EXCEPTION:
4935
      x = TApplicationException()
4936
      x.read(self._iprot)
4937
      self._iprot.readMessageEnd()
4938
      raise x
4939
    result = getSnapdealItems_result()
4940
    result.read(self._iprot)
4941
    self._iprot.readMessageEnd()
4942
    if result.success is not None:
4943
      return result.success
4944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
4945
 
4946
  def searchSnapdealItems(self, searchTerm, offset, limit):
4947
    """
4948
    Parameters:
4949
     - searchTerm
4950
     - offset
4951
     - limit
4952
    """
4953
    self.send_searchSnapdealItems(searchTerm, offset, limit)
4954
    return self.recv_searchSnapdealItems()
4955
 
4956
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
4957
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
4958
    args = searchSnapdealItems_args()
4959
    args.searchTerm = searchTerm
4960
    args.offset = offset
4961
    args.limit = limit
4962
    args.write(self._oprot)
4963
    self._oprot.writeMessageEnd()
4964
    self._oprot.trans.flush()
4965
 
4966
  def recv_searchSnapdealItems(self, ):
4967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4968
    if mtype == TMessageType.EXCEPTION:
4969
      x = TApplicationException()
4970
      x.read(self._iprot)
4971
      self._iprot.readMessageEnd()
4972
      raise x
4973
    result = searchSnapdealItems_result()
4974
    result.read(self._iprot)
4975
    self._iprot.readMessageEnd()
4976
    if result.success is not None:
4977
      return result.success
4978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
4979
 
4980
  def getCountForSnapdealItems(self, ):
4981
    self.send_getCountForSnapdealItems()
4982
    return self.recv_getCountForSnapdealItems()
4983
 
4984
  def send_getCountForSnapdealItems(self, ):
4985
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
4986
    args = getCountForSnapdealItems_args()
4987
    args.write(self._oprot)
4988
    self._oprot.writeMessageEnd()
4989
    self._oprot.trans.flush()
4990
 
4991
  def recv_getCountForSnapdealItems(self, ):
4992
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4993
    if mtype == TMessageType.EXCEPTION:
4994
      x = TApplicationException()
4995
      x.read(self._iprot)
4996
      self._iprot.readMessageEnd()
4997
      raise x
4998
    result = getCountForSnapdealItems_result()
4999
    result.read(self._iprot)
5000
    self._iprot.readMessageEnd()
5001
    if result.success is not None:
5002
      return result.success
5003
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5004
 
5005
  def getSnapdealSearchResultCount(self, searchTerm):
5006
    """
5007
    Parameters:
5008
     - searchTerm
5009
    """
5010
    self.send_getSnapdealSearchResultCount(searchTerm)
5011
    return self.recv_getSnapdealSearchResultCount()
5012
 
5013
  def send_getSnapdealSearchResultCount(self, searchTerm):
5014
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5015
    args = getSnapdealSearchResultCount_args()
5016
    args.searchTerm = searchTerm
5017
    args.write(self._oprot)
5018
    self._oprot.writeMessageEnd()
5019
    self._oprot.trans.flush()
5020
 
5021
  def recv_getSnapdealSearchResultCount(self, ):
5022
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5023
    if mtype == TMessageType.EXCEPTION:
5024
      x = TApplicationException()
5025
      x.read(self._iprot)
5026
      self._iprot.readMessageEnd()
5027
      raise x
5028
    result = getSnapdealSearchResultCount_result()
5029
    result.read(self._iprot)
5030
    self._iprot.readMessageEnd()
5031
    if result.success is not None:
5032
      return result.success
5033
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5034
 
9299 kshitij.so 5035
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5036
    """
5037
    Parameters:
5038
     - itemId
5039
     - insurerType
5040
    """
5041
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5042
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5043
 
9299 kshitij.so 5044
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5045
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5046
    args = getPrefferedInsurerForItem_args()
5047
    args.itemId = itemId
5048
    args.insurerType = insurerType
5049
    args.write(self._oprot)
5050
    self._oprot.writeMessageEnd()
5051
    self._oprot.trans.flush()
5052
 
5053
  def recv_getPrefferedInsurerForItem(self, ):
5054
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5055
    if mtype == TMessageType.EXCEPTION:
5056
      x = TApplicationException()
5057
      x.read(self._iprot)
5058
      self._iprot.readMessageEnd()
5059
      raise x
5060
    result = getPrefferedInsurerForItem_result()
5061
    result.read(self._iprot)
5062
    self._iprot.readMessageEnd()
5063
    if result.success is not None:
5064
      return result.success
5065
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5066
 
9456 vikram.rag 5067
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5068
    """
5069
    Parameters:
5070
     - skuAtSnapdeal
5071
    """
5072
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5073
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5074
 
9456 vikram.rag 5075
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5076
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5077
    args = getSnapdealItembySkuAtSnapdeal_args()
5078
    args.skuAtSnapdeal = skuAtSnapdeal
5079
    args.write(self._oprot)
5080
    self._oprot.writeMessageEnd()
5081
    self._oprot.trans.flush()
5082
 
5083
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5084
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5085
    if mtype == TMessageType.EXCEPTION:
5086
      x = TApplicationException()
5087
      x.read(self._iprot)
5088
      self._iprot.readMessageEnd()
5089
      raise x
5090
    result = getSnapdealItembySkuAtSnapdeal_result()
5091
    result.read(self._iprot)
5092
    self._iprot.readMessageEnd()
5093
    if result.success is not None:
5094
      return result.success
5095
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5096
 
9621 manish.sha 5097
  def getProductFeedSubmit(self, catalogItemId):
5098
    """
5099
    Parameters:
5100
     - catalogItemId
5101
    """
5102
    self.send_getProductFeedSubmit(catalogItemId)
5103
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5104
 
9621 manish.sha 5105
  def send_getProductFeedSubmit(self, catalogItemId):
5106
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5107
    args = getProductFeedSubmit_args()
5108
    args.catalogItemId = catalogItemId
5109
    args.write(self._oprot)
5110
    self._oprot.writeMessageEnd()
5111
    self._oprot.trans.flush()
5112
 
5113
  def recv_getProductFeedSubmit(self, ):
5114
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5115
    if mtype == TMessageType.EXCEPTION:
5116
      x = TApplicationException()
5117
      x.read(self._iprot)
5118
      self._iprot.readMessageEnd()
5119
      raise x
5120
    result = getProductFeedSubmit_result()
5121
    result.read(self._iprot)
5122
    self._iprot.readMessageEnd()
5123
    if result.success is not None:
5124
      return result.success
5125
    if result.cex is not None:
5126
      raise result.cex
5127
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5128
 
5129
  def addProductFeedSubmit(self, productFeedSubmit):
5130
    """
5131
    Parameters:
5132
     - productFeedSubmit
5133
    """
5134
    self.send_addProductFeedSubmit(productFeedSubmit)
5135
    return self.recv_addProductFeedSubmit()
5136
 
5137
  def send_addProductFeedSubmit(self, productFeedSubmit):
5138
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5139
    args = addProductFeedSubmit_args()
5140
    args.productFeedSubmit = productFeedSubmit
5141
    args.write(self._oprot)
5142
    self._oprot.writeMessageEnd()
5143
    self._oprot.trans.flush()
5144
 
5145
  def recv_addProductFeedSubmit(self, ):
5146
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5147
    if mtype == TMessageType.EXCEPTION:
5148
      x = TApplicationException()
5149
      x.read(self._iprot)
5150
      self._iprot.readMessageEnd()
5151
      raise x
5152
    result = addProductFeedSubmit_result()
5153
    result.read(self._iprot)
5154
    self._iprot.readMessageEnd()
5155
    if result.success is not None:
5156
      return result.success
5157
    if result.cex is not None:
5158
      raise result.cex
5159
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5160
 
5161
  def updateProductFeedSubmit(self, productFeedSubmit):
5162
    """
5163
    Parameters:
5164
     - productFeedSubmit
5165
    """
5166
    self.send_updateProductFeedSubmit(productFeedSubmit)
5167
    return self.recv_updateProductFeedSubmit()
5168
 
5169
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5170
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5171
    args = updateProductFeedSubmit_args()
5172
    args.productFeedSubmit = productFeedSubmit
5173
    args.write(self._oprot)
5174
    self._oprot.writeMessageEnd()
5175
    self._oprot.trans.flush()
5176
 
5177
  def recv_updateProductFeedSubmit(self, ):
5178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5179
    if mtype == TMessageType.EXCEPTION:
5180
      x = TApplicationException()
5181
      x.read(self._iprot)
5182
      self._iprot.readMessageEnd()
5183
      raise x
5184
    result = updateProductFeedSubmit_result()
5185
    result.read(self._iprot)
5186
    self._iprot.readMessageEnd()
5187
    if result.success is not None:
5188
      return result.success
5189
    if result.cex is not None:
5190
      raise result.cex
5191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5192
 
5193
  def deleteProductFeedSubmit(self, catalogItemId):
5194
    """
5195
    Parameters:
5196
     - catalogItemId
5197
    """
5198
    self.send_deleteProductFeedSubmit(catalogItemId)
5199
    return self.recv_deleteProductFeedSubmit()
5200
 
5201
  def send_deleteProductFeedSubmit(self, catalogItemId):
5202
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5203
    args = deleteProductFeedSubmit_args()
5204
    args.catalogItemId = catalogItemId
5205
    args.write(self._oprot)
5206
    self._oprot.writeMessageEnd()
5207
    self._oprot.trans.flush()
5208
 
5209
  def recv_deleteProductFeedSubmit(self, ):
5210
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5211
    if mtype == TMessageType.EXCEPTION:
5212
      x = TApplicationException()
5213
      x.read(self._iprot)
5214
      self._iprot.readMessageEnd()
5215
      raise x
5216
    result = deleteProductFeedSubmit_result()
5217
    result.read(self._iprot)
5218
    self._iprot.readMessageEnd()
5219
    if result.success is not None:
5220
      return result.success
5221
    if result.cex is not None:
5222
      raise result.cex
5223
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5224
 
5225
  def getAllProductFeedSubmit(self, ):
5226
    self.send_getAllProductFeedSubmit()
5227
    return self.recv_getAllProductFeedSubmit()
5228
 
5229
  def send_getAllProductFeedSubmit(self, ):
5230
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5231
    args = getAllProductFeedSubmit_args()
5232
    args.write(self._oprot)
5233
    self._oprot.writeMessageEnd()
5234
    self._oprot.trans.flush()
5235
 
5236
  def recv_getAllProductFeedSubmit(self, ):
5237
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5238
    if mtype == TMessageType.EXCEPTION:
5239
      x = TApplicationException()
5240
      x.read(self._iprot)
5241
      self._iprot.readMessageEnd()
5242
      raise x
5243
    result = getAllProductFeedSubmit_result()
5244
    result.read(self._iprot)
5245
    self._iprot.readMessageEnd()
5246
    if result.success is not None:
5247
      return result.success
5248
    if result.cex is not None:
5249
      raise result.cex
5250
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5251
 
9724 kshitij.so 5252
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5253
    """
5254
    Parameters:
5255
     - itemId
5256
     - sourceId
5257
    """
5258
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5259
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5260
 
9724 kshitij.so 5261
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5262
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5263
    args = getMarketplacedetailsForItem_args()
5264
    args.itemId = itemId
5265
    args.sourceId = sourceId
5266
    args.write(self._oprot)
5267
    self._oprot.writeMessageEnd()
5268
    self._oprot.trans.flush()
5269
 
5270
  def recv_getMarketplacedetailsForItem(self, ):
5271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5272
    if mtype == TMessageType.EXCEPTION:
5273
      x = TApplicationException()
5274
      x.read(self._iprot)
5275
      self._iprot.readMessageEnd()
5276
      raise x
5277
    result = getMarketplacedetailsForItem_result()
5278
    result.read(self._iprot)
5279
    self._iprot.readMessageEnd()
5280
    if result.success is not None:
5281
      return result.success
5282
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5283
 
5284
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5285
    """
5286
    Parameters:
5287
     - marketPlaceItem
5288
    """
5289
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5290
    return self.recv_updateMarketplaceAttributesForItem()
5291
 
5292
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5293
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5294
    args = updateMarketplaceAttributesForItem_args()
5295
    args.marketPlaceItem = marketPlaceItem
5296
    args.write(self._oprot)
5297
    self._oprot.writeMessageEnd()
5298
    self._oprot.trans.flush()
5299
 
5300
  def recv_updateMarketplaceAttributesForItem(self, ):
5301
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5302
    if mtype == TMessageType.EXCEPTION:
5303
      x = TApplicationException()
5304
      x.read(self._iprot)
5305
      self._iprot.readMessageEnd()
5306
      raise x
5307
    result = updateMarketplaceAttributesForItem_result()
5308
    result.read(self._iprot)
5309
    self._iprot.readMessageEnd()
5310
    if result.success is not None:
5311
      return result.success
5312
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5313
 
9779 kshitij.so 5314
  def getCostingForMarketplace(self, source, item_id):
5315
    """
5316
    Parameters:
5317
     - source
5318
     - item_id
5319
    """
5320
    self.send_getCostingForMarketplace(source, item_id)
5321
    return self.recv_getCostingForMarketplace()
5322
 
5323
  def send_getCostingForMarketplace(self, source, item_id):
5324
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5325
    args = getCostingForMarketplace_args()
5326
    args.source = source
5327
    args.item_id = item_id
5328
    args.write(self._oprot)
5329
    self._oprot.writeMessageEnd()
5330
    self._oprot.trans.flush()
5331
 
5332
  def recv_getCostingForMarketplace(self, ):
5333
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5334
    if mtype == TMessageType.EXCEPTION:
5335
      x = TApplicationException()
5336
      x.read(self._iprot)
5337
      self._iprot.readMessageEnd()
5338
      raise x
5339
    result = getCostingForMarketplace_result()
5340
    result.read(self._iprot)
5341
    self._iprot.readMessageEnd()
5342
    if result.success is not None:
5343
      return result.success
5344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5345
 
9776 vikram.rag 5346
  def getMarketPlaceItemsForPriceUpdate(self, source):
5347
    """
5348
    Parameters:
5349
     - source
5350
    """
5351
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5352
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5353
 
9776 vikram.rag 5354
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5355
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5356
    args = getMarketPlaceItemsForPriceUpdate_args()
5357
    args.source = source
5358
    args.write(self._oprot)
5359
    self._oprot.writeMessageEnd()
5360
    self._oprot.trans.flush()
5361
 
5362
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5364
    if mtype == TMessageType.EXCEPTION:
5365
      x = TApplicationException()
5366
      x.read(self._iprot)
5367
      self._iprot.readMessageEnd()
5368
      raise x
5369
    result = getMarketPlaceItemsForPriceUpdate_result()
5370
    result.read(self._iprot)
5371
    self._iprot.readMessageEnd()
5372
    if result.success is not None:
5373
      return result.success
5374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5375
 
5376
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp):
5377
    """
5378
    Parameters:
5379
     - skulist
5380
     - timestamp
5381
    """
5382
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp)
5383
    self.recv_updateMarketPlacePriceUpdateStatus()
5384
 
5385
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp):
5386
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5387
    args = updateMarketPlacePriceUpdateStatus_args()
5388
    args.skulist = skulist
5389
    args.timestamp = timestamp
5390
    args.write(self._oprot)
5391
    self._oprot.writeMessageEnd()
5392
    self._oprot.trans.flush()
5393
 
5394
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5395
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5396
    if mtype == TMessageType.EXCEPTION:
5397
      x = TApplicationException()
5398
      x.read(self._iprot)
5399
      self._iprot.readMessageEnd()
5400
      raise x
5401
    result = updateMarketPlacePriceUpdateStatus_result()
5402
    result.read(self._iprot)
5403
    self._iprot.readMessageEnd()
5404
    return
5405
 
5406
 
5944 mandeep.dh 5407
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5408
  def __init__(self, handler):
5409
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5410
    self._processMap["addItem"] = Processor.process_addItem
5411
    self._processMap["updateItem"] = Processor.process_updateItem
5412
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 5413
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 5414
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
5415
    self._processMap["startItemOn"] = Processor.process_startItemOn
5416
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
5417
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
5418
    self._processMap["getItem"] = Processor.process_getItem
5419
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
5420
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
5421
    self._processMap["getAllItems"] = Processor.process_getAllItems
5422
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
5423
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
5424
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
5425
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
5426
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
5427
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
5428
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
5429
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
5430
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
5431
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
5432
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
5433
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
5434
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
5435
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
5436
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
5437
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
5438
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
5439
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
5440
    self._processMap["addCategory"] = Processor.process_addCategory
5441
    self._processMap["getCategory"] = Processor.process_getCategory
5442
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
5443
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
5444
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 5445
    self._processMap["addTag"] = Processor.process_addTag
5446
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
5447
    self._processMap["deleteTag"] = Processor.process_deleteTag
5448
    self._processMap["getAllTags"] = Processor.process_getAllTags
5449
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 5450
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 5451
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 5452
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 5453
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
5454
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
5455
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
5456
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 5457
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 5458
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 5459
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
5460
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 5461
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
5462
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
5463
    self._processMap["addCampaign"] = Processor.process_addCampaign
5464
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
5465
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
5466
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 5467
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 5468
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
5469
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
5470
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
5471
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
5472
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
5473
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
5474
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
5475
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
5476
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
5477
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
5478
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
5479
    self._processMap["getAllSources"] = Processor.process_getAllSources
5480
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
5481
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
5482
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
5483
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
5484
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
5485
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
5486
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
5487
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
5488
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
5489
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
5490
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
5491
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
5492
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
5493
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 5494
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
5495
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 5496
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 5497
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 5498
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
5499
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 5500
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 5501
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 5502
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
5503
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 5504
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
5505
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 5506
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 5507
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 5508
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 5509
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 5510
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
5511
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
5512
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 5513
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
5514
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
5515
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 5516
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
5517
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
5518
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 5519
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 5520
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 5521
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 5522
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
5523
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 5524
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
5525
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
5526
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 5527
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 5528
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 5529
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
5530
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 5531
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 5532
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
5533
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 5534
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 5535
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 5536
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
5537
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
5538
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
5539
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 5540
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 5541
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 5542
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
5543
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
5544
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
5545
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
5546
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 5547
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
5548
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 5549
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 5550
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5551
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
5944 mandeep.dh 5552
 
5553
  def process(self, iprot, oprot):
5554
    (name, type, seqid) = iprot.readMessageBegin()
5555
    if name not in self._processMap:
5556
      iprot.skip(TType.STRUCT)
5557
      iprot.readMessageEnd()
5558
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
5559
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
5560
      x.write(oprot)
5561
      oprot.writeMessageEnd()
5562
      oprot.trans.flush()
5563
      return
5564
    else:
5565
      self._processMap[name](self, seqid, iprot, oprot)
5566
    return True
5567
 
5568
  def process_addItem(self, seqid, iprot, oprot):
5569
    args = addItem_args()
5570
    args.read(iprot)
5571
    iprot.readMessageEnd()
5572
    result = addItem_result()
5573
    try:
5574
      result.success = self._handler.addItem(args.item)
5575
    except CatalogServiceException, cex:
5576
      result.cex = cex
5577
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
5578
    result.write(oprot)
5579
    oprot.writeMessageEnd()
5580
    oprot.trans.flush()
5581
 
5582
  def process_updateItem(self, seqid, iprot, oprot):
5583
    args = updateItem_args()
5584
    args.read(iprot)
5585
    iprot.readMessageEnd()
5586
    result = updateItem_result()
5587
    try:
5588
      result.success = self._handler.updateItem(args.item)
5589
    except CatalogServiceException, cex:
5590
      result.cex = cex
5591
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
5592
    result.write(oprot)
5593
    oprot.writeMessageEnd()
5594
    oprot.trans.flush()
5595
 
5596
  def process_isActive(self, seqid, iprot, oprot):
5597
    args = isActive_args()
5598
    args.read(iprot)
5599
    iprot.readMessageEnd()
5600
    result = isActive_result()
5601
    try:
5602
      result.success = self._handler.isActive(args.itemId)
5603
    except CatalogServiceException, isex:
5604
      result.isex = isex
5605
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
5606
    result.write(oprot)
5607
    oprot.writeMessageEnd()
5608
    oprot.trans.flush()
5609
 
7438 amit.gupta 5610
  def process_getItemsStatus(self, seqid, iprot, oprot):
5611
    args = getItemsStatus_args()
5612
    args.read(iprot)
5613
    iprot.readMessageEnd()
5614
    result = getItemsStatus_result()
5615
    try:
5616
      result.success = self._handler.getItemsStatus(args.itemIds)
5617
    except CatalogServiceException, isex:
5618
      result.isex = isex
5619
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
5620
    result.write(oprot)
5621
    oprot.writeMessageEnd()
5622
    oprot.trans.flush()
5623
 
5944 mandeep.dh 5624
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
5625
    args = getItemStatusDescription_args()
5626
    args.read(iprot)
5627
    iprot.readMessageEnd()
5628
    result = getItemStatusDescription_result()
5629
    try:
5630
      result.success = self._handler.getItemStatusDescription(args.itemId)
5631
    except CatalogServiceException, isex:
5632
      result.isex = isex
5633
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
5634
    result.write(oprot)
5635
    oprot.writeMessageEnd()
5636
    oprot.trans.flush()
5637
 
5638
  def process_startItemOn(self, seqid, iprot, oprot):
5639
    args = startItemOn_args()
5640
    args.read(iprot)
5641
    iprot.readMessageEnd()
5642
    result = startItemOn_result()
5643
    try:
5644
      self._handler.startItemOn(args.item_id, args.timestamp)
5645
    except CatalogServiceException, cex:
5646
      result.cex = cex
5647
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
5648
    result.write(oprot)
5649
    oprot.writeMessageEnd()
5650
    oprot.trans.flush()
5651
 
5652
  def process_retireItemOn(self, seqid, iprot, oprot):
5653
    args = retireItemOn_args()
5654
    args.read(iprot)
5655
    iprot.readMessageEnd()
5656
    result = retireItemOn_result()
5657
    try:
5658
      self._handler.retireItemOn(args.item_id, args.timestamp)
5659
    except CatalogServiceException, cex:
5660
      result.cex = cex
5661
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
5662
    result.write(oprot)
5663
    oprot.writeMessageEnd()
5664
    oprot.trans.flush()
5665
 
5666
  def process_changeItemStatus(self, seqid, iprot, oprot):
5667
    args = changeItemStatus_args()
5668
    args.read(iprot)
5669
    iprot.readMessageEnd()
5670
    result = changeItemStatus_result()
5671
    try:
5672
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
5673
    except CatalogServiceException, cex:
5674
      result.cex = cex
5675
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
5676
    result.write(oprot)
5677
    oprot.writeMessageEnd()
5678
    oprot.trans.flush()
5679
 
5680
  def process_getItem(self, seqid, iprot, oprot):
5681
    args = getItem_args()
5682
    args.read(iprot)
5683
    iprot.readMessageEnd()
5684
    result = getItem_result()
5685
    try:
5686
      result.success = self._handler.getItem(args.item_id)
5687
    except CatalogServiceException, cex:
5688
      result.cex = cex
5689
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
5690
    result.write(oprot)
5691
    oprot.writeMessageEnd()
5692
    oprot.trans.flush()
5693
 
5694
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
5695
    args = getItemsByCatalogId_args()
5696
    args.read(iprot)
5697
    iprot.readMessageEnd()
5698
    result = getItemsByCatalogId_result()
5699
    try:
5700
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
5701
    except CatalogServiceException, cex:
5702
      result.cex = cex
5703
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
5704
    result.write(oprot)
5705
    oprot.writeMessageEnd()
5706
    oprot.trans.flush()
5707
 
5708
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
5709
    args = getValidItemsByCatalogId_args()
5710
    args.read(iprot)
5711
    iprot.readMessageEnd()
5712
    result = getValidItemsByCatalogId_result()
5713
    try:
5714
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
5715
    except CatalogServiceException, cex:
5716
      result.cex = cex
5717
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
5718
    result.write(oprot)
5719
    oprot.writeMessageEnd()
5720
    oprot.trans.flush()
5721
 
5722
  def process_getAllItems(self, seqid, iprot, oprot):
5723
    args = getAllItems_args()
5724
    args.read(iprot)
5725
    iprot.readMessageEnd()
5726
    result = getAllItems_result()
5727
    try:
5728
      result.success = self._handler.getAllItems(args.isActive)
5729
    except CatalogServiceException, cex:
5730
      result.cex = cex
5731
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
5732
    result.write(oprot)
5733
    oprot.writeMessageEnd()
5734
    oprot.trans.flush()
5735
 
5736
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
5737
    args = getAllItemsByStatus_args()
5738
    args.read(iprot)
5739
    iprot.readMessageEnd()
5740
    result = getAllItemsByStatus_result()
5741
    try:
5742
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
5743
    except CatalogServiceException, cex:
5744
      result.cex = cex
5745
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
5746
    result.write(oprot)
5747
    oprot.writeMessageEnd()
5748
    oprot.trans.flush()
5749
 
5750
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
5751
    args = markItemAsContentComplete_args()
5752
    args.read(iprot)
5753
    iprot.readMessageEnd()
5754
    result = markItemAsContentComplete_result()
5755
    try:
9253 rajveer 5756
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 5757
    except CatalogServiceException, cex:
5758
      result.cex = cex
5759
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
5760
    result.write(oprot)
5761
    oprot.writeMessageEnd()
5762
    oprot.trans.flush()
5763
 
5764
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
5765
    args = getAllItemsInRange_args()
5766
    args.read(iprot)
5767
    iprot.readMessageEnd()
5768
    result = getAllItemsInRange_result()
5769
    try:
5770
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
5771
    except CatalogServiceException, cex:
5772
      result.cex = cex
5773
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
5774
    result.write(oprot)
5775
    oprot.writeMessageEnd()
5776
    oprot.trans.flush()
5777
 
5778
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
5779
    args = getAllItemsByStatusInRange_args()
5780
    args.read(iprot)
5781
    iprot.readMessageEnd()
5782
    result = getAllItemsByStatusInRange_result()
5783
    try:
5784
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
5785
    except CatalogServiceException, cex:
5786
      result.cex = cex
5787
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
5788
    result.write(oprot)
5789
    oprot.writeMessageEnd()
5790
    oprot.trans.flush()
5791
 
5792
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
5793
    args = getItemCountByStatus_args()
5794
    args.read(iprot)
5795
    iprot.readMessageEnd()
5796
    result = getItemCountByStatus_result()
5797
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
5798
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
5799
    result.write(oprot)
5800
    oprot.writeMessageEnd()
5801
    oprot.trans.flush()
5802
 
5803
  def process_getBestSellers(self, seqid, iprot, oprot):
5804
    args = getBestSellers_args()
5805
    args.read(iprot)
5806
    iprot.readMessageEnd()
5807
    result = getBestSellers_result()
5808
    try:
5809
      result.success = self._handler.getBestSellers()
5810
    except CatalogServiceException, isex:
5811
      result.isex = isex
5812
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
5813
    result.write(oprot)
5814
    oprot.writeMessageEnd()
5815
    oprot.trans.flush()
5816
 
5817
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
5818
    args = getBestSellersCatalogIds_args()
5819
    args.read(iprot)
5820
    iprot.readMessageEnd()
5821
    result = getBestSellersCatalogIds_result()
5822
    try:
5823
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
5824
    except CatalogServiceException, cex:
5825
      result.cex = cex
5826
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
5827
    result.write(oprot)
5828
    oprot.writeMessageEnd()
5829
    oprot.trans.flush()
5830
 
5831
  def process_getBestSellersCount(self, seqid, iprot, oprot):
5832
    args = getBestSellersCount_args()
5833
    args.read(iprot)
5834
    iprot.readMessageEnd()
5835
    result = getBestSellersCount_result()
5836
    try:
5837
      result.success = self._handler.getBestSellersCount()
5838
    except CatalogServiceException, cex:
5839
      result.cex = cex
5840
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
5841
    result.write(oprot)
5842
    oprot.writeMessageEnd()
5843
    oprot.trans.flush()
5844
 
5845
  def process_getBestDeals(self, seqid, iprot, oprot):
5846
    args = getBestDeals_args()
5847
    args.read(iprot)
5848
    iprot.readMessageEnd()
5849
    result = getBestDeals_result()
5850
    try:
5851
      result.success = self._handler.getBestDeals()
5852
    except CatalogServiceException, isex:
5853
      result.isex = isex
5854
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
5855
    result.write(oprot)
5856
    oprot.writeMessageEnd()
5857
    oprot.trans.flush()
5858
 
5859
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
5860
    args = getBestDealsCatalogIds_args()
5861
    args.read(iprot)
5862
    iprot.readMessageEnd()
5863
    result = getBestDealsCatalogIds_result()
5864
    try:
5865
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
5866
    except CatalogServiceException, cex:
5867
      result.cex = cex
5868
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
5869
    result.write(oprot)
5870
    oprot.writeMessageEnd()
5871
    oprot.trans.flush()
5872
 
5873
  def process_getBestDealsCount(self, seqid, iprot, oprot):
5874
    args = getBestDealsCount_args()
5875
    args.read(iprot)
5876
    iprot.readMessageEnd()
5877
    result = getBestDealsCount_result()
5878
    try:
5879
      result.success = self._handler.getBestDealsCount()
5880
    except CatalogServiceException, cex:
5881
      result.cex = cex
5882
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
5883
    result.write(oprot)
5884
    oprot.writeMessageEnd()
5885
    oprot.trans.flush()
5886
 
5887
  def process_getComingSoon(self, seqid, iprot, oprot):
5888
    args = getComingSoon_args()
5889
    args.read(iprot)
5890
    iprot.readMessageEnd()
5891
    result = getComingSoon_result()
5892
    try:
5893
      result.success = self._handler.getComingSoon()
5894
    except CatalogServiceException, isex:
5895
      result.isex = isex
5896
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
5897
    result.write(oprot)
5898
    oprot.writeMessageEnd()
5899
    oprot.trans.flush()
5900
 
5901
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
5902
    args = getComingSoonCatalogIds_args()
5903
    args.read(iprot)
5904
    iprot.readMessageEnd()
5905
    result = getComingSoonCatalogIds_result()
5906
    try:
5907
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
5908
    except CatalogServiceException, cex:
5909
      result.cex = cex
5910
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
5911
    result.write(oprot)
5912
    oprot.writeMessageEnd()
5913
    oprot.trans.flush()
5914
 
5915
  def process_getComingSoonCount(self, seqid, iprot, oprot):
5916
    args = getComingSoonCount_args()
5917
    args.read(iprot)
5918
    iprot.readMessageEnd()
5919
    result = getComingSoonCount_result()
5920
    try:
5921
      result.success = self._handler.getComingSoonCount()
5922
    except CatalogServiceException, cex:
5923
      result.cex = cex
5924
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
5925
    result.write(oprot)
5926
    oprot.writeMessageEnd()
5927
    oprot.trans.flush()
5928
 
5929
  def process_getLatestArrivals(self, seqid, iprot, oprot):
5930
    args = getLatestArrivals_args()
5931
    args.read(iprot)
5932
    iprot.readMessageEnd()
5933
    result = getLatestArrivals_result()
5934
    try:
5935
      result.success = self._handler.getLatestArrivals()
5936
    except CatalogServiceException, isex:
5937
      result.isex = isex
5938
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
5939
    result.write(oprot)
5940
    oprot.writeMessageEnd()
5941
    oprot.trans.flush()
5942
 
5943
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
5944
    args = getLatestArrivalsCatalogIds_args()
5945
    args.read(iprot)
5946
    iprot.readMessageEnd()
5947
    result = getLatestArrivalsCatalogIds_result()
5948
    try:
5949
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
5950
    except CatalogServiceException, cex:
5951
      result.cex = cex
5952
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
5953
    result.write(oprot)
5954
    oprot.writeMessageEnd()
5955
    oprot.trans.flush()
5956
 
5957
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
5958
    args = getLatestArrivalsCount_args()
5959
    args.read(iprot)
5960
    iprot.readMessageEnd()
5961
    result = getLatestArrivalsCount_result()
5962
    try:
5963
      result.success = self._handler.getLatestArrivalsCount()
5964
    except CatalogServiceException, cex:
5965
      result.cex = cex
5966
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
5967
    result.write(oprot)
5968
    oprot.writeMessageEnd()
5969
    oprot.trans.flush()
5970
 
5971
  def process_generateNewEntityID(self, seqid, iprot, oprot):
5972
    args = generateNewEntityID_args()
5973
    args.read(iprot)
5974
    iprot.readMessageEnd()
5975
    result = generateNewEntityID_result()
5976
    result.success = self._handler.generateNewEntityID()
5977
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
5978
    result.write(oprot)
5979
    oprot.writeMessageEnd()
5980
    oprot.trans.flush()
5981
 
5982
  def process_addCategory(self, seqid, iprot, oprot):
5983
    args = addCategory_args()
5984
    args.read(iprot)
5985
    iprot.readMessageEnd()
5986
    result = addCategory_result()
5987
    result.success = self._handler.addCategory(args.category)
5988
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
5989
    result.write(oprot)
5990
    oprot.writeMessageEnd()
5991
    oprot.trans.flush()
5992
 
5993
  def process_getCategory(self, seqid, iprot, oprot):
5994
    args = getCategory_args()
5995
    args.read(iprot)
5996
    iprot.readMessageEnd()
5997
    result = getCategory_result()
5998
    result.success = self._handler.getCategory(args.id)
5999
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
6000
    result.write(oprot)
6001
    oprot.writeMessageEnd()
6002
    oprot.trans.flush()
6003
 
6004
  def process_getAllCategories(self, seqid, iprot, oprot):
6005
    args = getAllCategories_args()
6006
    args.read(iprot)
6007
    iprot.readMessageEnd()
6008
    result = getAllCategories_result()
6009
    result.success = self._handler.getAllCategories()
6010
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
6011
    result.write(oprot)
6012
    oprot.writeMessageEnd()
6013
    oprot.trans.flush()
6014
 
6015
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
6016
    args = getAllSimilarItems_args()
6017
    args.read(iprot)
6018
    iprot.readMessageEnd()
6019
    result = getAllSimilarItems_result()
6020
    result.success = self._handler.getAllSimilarItems(args.itemId)
6021
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
6022
    result.write(oprot)
6023
    oprot.writeMessageEnd()
6024
    oprot.trans.flush()
6025
 
6026
  def process_addSimilarItem(self, seqid, iprot, oprot):
6027
    args = addSimilarItem_args()
6028
    args.read(iprot)
6029
    iprot.readMessageEnd()
6030
    result = addSimilarItem_result()
6031
    try:
6032
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
6033
    except CatalogServiceException, cex:
6034
      result.cex = cex
6035
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
6036
    result.write(oprot)
6037
    oprot.writeMessageEnd()
6038
    oprot.trans.flush()
6039
 
6512 kshitij.so 6040
  def process_addTag(self, seqid, iprot, oprot):
6041
    args = addTag_args()
6042
    args.read(iprot)
6043
    iprot.readMessageEnd()
6044
    result = addTag_result()
6045
    result.success = self._handler.addTag(args.displayName, args.itemId)
6046
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
6047
    result.write(oprot)
6048
    oprot.writeMessageEnd()
6049
    oprot.trans.flush()
6050
 
6051
  def process_deleteEntityTag(self, seqid, iprot, oprot):
6052
    args = deleteEntityTag_args()
6053
    args.read(iprot)
6054
    iprot.readMessageEnd()
6055
    result = deleteEntityTag_result()
6056
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
6057
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
6058
    result.write(oprot)
6059
    oprot.writeMessageEnd()
6060
    oprot.trans.flush()
6061
 
6062
  def process_deleteTag(self, seqid, iprot, oprot):
6063
    args = deleteTag_args()
6064
    args.read(iprot)
6065
    iprot.readMessageEnd()
6066
    result = deleteTag_result()
6067
    result.success = self._handler.deleteTag(args.displayName)
6068
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
6069
    result.write(oprot)
6070
    oprot.writeMessageEnd()
6071
    oprot.trans.flush()
6072
 
6073
  def process_getAllTags(self, seqid, iprot, oprot):
6074
    args = getAllTags_args()
6075
    args.read(iprot)
6076
    iprot.readMessageEnd()
6077
    result = getAllTags_result()
6078
    result.success = self._handler.getAllTags()
6079
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
6080
    result.write(oprot)
6081
    oprot.writeMessageEnd()
6082
    oprot.trans.flush()
6083
 
6084
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
6085
    args = getAllEntitiesByTagName_args()
6086
    args.read(iprot)
6087
    iprot.readMessageEnd()
6088
    result = getAllEntitiesByTagName_result()
6089
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
6090
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
6091
    result.write(oprot)
6092
    oprot.writeMessageEnd()
6093
    oprot.trans.flush()
6094
 
6845 amit.gupta 6095
  def process_getAllEntityTags(self, seqid, iprot, oprot):
6096
    args = getAllEntityTags_args()
6097
    args.read(iprot)
6098
    iprot.readMessageEnd()
6099
    result = getAllEntityTags_result()
6100
    result.success = self._handler.getAllEntityTags()
6101
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
6102
    result.write(oprot)
6103
    oprot.writeMessageEnd()
6104
    oprot.trans.flush()
6105
 
6850 kshitij.so 6106
  def process_addBanner(self, seqid, iprot, oprot):
6107
    args = addBanner_args()
6108
    args.read(iprot)
6109
    iprot.readMessageEnd()
6110
    result = addBanner_result()
8590 kshitij.so 6111
    self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 6112
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
6113
    result.write(oprot)
6114
    oprot.writeMessageEnd()
6115
    oprot.trans.flush()
6116
 
8579 kshitij.so 6117
  def process_updateBanner(self, seqid, iprot, oprot):
6118
    args = updateBanner_args()
6119
    args.read(iprot)
6120
    iprot.readMessageEnd()
6121
    result = updateBanner_result()
6122
    result.success = self._handler.updateBanner(args.banner)
6123
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
6124
    result.write(oprot)
6125
    oprot.writeMessageEnd()
6126
    oprot.trans.flush()
6127
 
6850 kshitij.so 6128
  def process_getAllBanners(self, seqid, iprot, oprot):
6129
    args = getAllBanners_args()
6130
    args.read(iprot)
6131
    iprot.readMessageEnd()
6132
    result = getAllBanners_result()
6133
    result.success = self._handler.getAllBanners()
6134
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
6135
    result.write(oprot)
6136
    oprot.writeMessageEnd()
6137
    oprot.trans.flush()
6138
 
6139
  def process_deleteBanner(self, seqid, iprot, oprot):
6140
    args = deleteBanner_args()
6141
    args.read(iprot)
6142
    iprot.readMessageEnd()
6143
    result = deleteBanner_result()
9155 kshitij.so 6144
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 6145
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
6146
    result.write(oprot)
6147
    oprot.writeMessageEnd()
6148
    oprot.trans.flush()
6149
 
6150
  def process_getBannerDetails(self, seqid, iprot, oprot):
6151
    args = getBannerDetails_args()
6152
    args.read(iprot)
6153
    iprot.readMessageEnd()
6154
    result = getBannerDetails_result()
9155 kshitij.so 6155
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 6156
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
6157
    result.write(oprot)
6158
    oprot.writeMessageEnd()
6159
    oprot.trans.flush()
6160
 
6161
  def process_getActiveBanners(self, seqid, iprot, oprot):
6162
    args = getActiveBanners_args()
6163
    args.read(iprot)
6164
    iprot.readMessageEnd()
6165
    result = getActiveBanners_result()
6166
    result.success = self._handler.getActiveBanners()
6167
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
6168
    result.write(oprot)
6169
    oprot.writeMessageEnd()
6170
    oprot.trans.flush()
6171
 
6849 kshitij.so 6172
  def process_addBannerMap(self, seqid, iprot, oprot):
6173
    args = addBannerMap_args()
6174
    args.read(iprot)
6175
    iprot.readMessageEnd()
6176
    result = addBannerMap_result()
8579 kshitij.so 6177
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 6178
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
6179
    result.write(oprot)
6180
    oprot.writeMessageEnd()
6181
    oprot.trans.flush()
6182
 
8579 kshitij.so 6183
  def process_updateBannerMap(self, seqid, iprot, oprot):
6184
    args = updateBannerMap_args()
6185
    args.read(iprot)
6186
    iprot.readMessageEnd()
6187
    result = updateBannerMap_result()
6188
    result.success = self._handler.updateBannerMap(args.bannerMap)
6189
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
6190
    result.write(oprot)
6191
    oprot.writeMessageEnd()
6192
    oprot.trans.flush()
6193
 
6849 kshitij.so 6194
  def process_deleteBannerMap(self, seqid, iprot, oprot):
6195
    args = deleteBannerMap_args()
6196
    args.read(iprot)
6197
    iprot.readMessageEnd()
6198
    result = deleteBannerMap_result()
6199
    result.success = self._handler.deleteBannerMap(args.bannerName)
6200
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
6201
    result.write(oprot)
6202
    oprot.writeMessageEnd()
6203
    oprot.trans.flush()
6204
 
6205
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
6206
    args = getBannerMapDetails_args()
6207
    args.read(iprot)
6208
    iprot.readMessageEnd()
6209
    result = getBannerMapDetails_result()
9155 kshitij.so 6210
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 6211
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
6212
    result.write(oprot)
6213
    oprot.writeMessageEnd()
6214
    oprot.trans.flush()
6215
 
8579 kshitij.so 6216
  def process_addBannerUri(self, seqid, iprot, oprot):
6217
    args = addBannerUri_args()
6218
    args.read(iprot)
6219
    iprot.readMessageEnd()
6220
    result = addBannerUri_result()
6221
    self._handler.addBannerUri(args.bannerUriMappings)
6222
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
6223
    result.write(oprot)
6224
    oprot.writeMessageEnd()
6225
    oprot.trans.flush()
6226
 
6227
  def process_getUriMapping(self, seqid, iprot, oprot):
6228
    args = getUriMapping_args()
6229
    args.read(iprot)
6230
    iprot.readMessageEnd()
6231
    result = getUriMapping_result()
9155 kshitij.so 6232
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 6233
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
6234
    result.write(oprot)
6235
    oprot.writeMessageEnd()
6236
    oprot.trans.flush()
6237
 
6238
  def process_addCampaign(self, seqid, iprot, oprot):
6239
    args = addCampaign_args()
6240
    args.read(iprot)
6241
    iprot.readMessageEnd()
6242
    result = addCampaign_result()
6243
    self._handler.addCampaign(args.campaign)
6244
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
6245
    result.write(oprot)
6246
    oprot.writeMessageEnd()
6247
    oprot.trans.flush()
6248
 
6249
  def process_getCampaigns(self, seqid, iprot, oprot):
6250
    args = getCampaigns_args()
6251
    args.read(iprot)
6252
    iprot.readMessageEnd()
6253
    result = getCampaigns_result()
6254
    result.success = self._handler.getCampaigns(args.campaignName)
6255
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
6256
    result.write(oprot)
6257
    oprot.writeMessageEnd()
6258
    oprot.trans.flush()
6259
 
6260
  def process_deleteCampaign(self, seqid, iprot, oprot):
6261
    args = deleteCampaign_args()
6262
    args.read(iprot)
6263
    iprot.readMessageEnd()
6264
    result = deleteCampaign_result()
6265
    self._handler.deleteCampaign(args.campaignId)
6266
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
6267
    result.write(oprot)
6268
    oprot.writeMessageEnd()
6269
    oprot.trans.flush()
6270
 
6271
  def process_getAllCampaigns(self, seqid, iprot, oprot):
6272
    args = getAllCampaigns_args()
6273
    args.read(iprot)
6274
    iprot.readMessageEnd()
6275
    result = getAllCampaigns_result()
6276
    result.success = self._handler.getAllCampaigns()
6277
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
6278
    result.write(oprot)
6279
    oprot.writeMessageEnd()
6280
    oprot.trans.flush()
6281
 
9155 kshitij.so 6282
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
6283
    args = getActiveBannersForMobileSite_args()
6284
    args.read(iprot)
6285
    iprot.readMessageEnd()
6286
    result = getActiveBannersForMobileSite_result()
6287
    result.success = self._handler.getActiveBannersForMobileSite()
6288
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
6289
    result.write(oprot)
6290
    oprot.writeMessageEnd()
6291
    oprot.trans.flush()
6292
 
5944 mandeep.dh 6293
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
6294
    args = deleteSimilarItem_args()
6295
    args.read(iprot)
6296
    iprot.readMessageEnd()
6297
    result = deleteSimilarItem_result()
6298
    try:
6299
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
6300
    except CatalogServiceException, cex:
6301
      result.cex = cex
6302
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
6303
    result.write(oprot)
6304
    oprot.writeMessageEnd()
6305
    oprot.trans.flush()
6306
 
6307
  def process_checkSimilarItem(self, seqid, iprot, oprot):
6308
    args = checkSimilarItem_args()
6309
    args.read(iprot)
6310
    iprot.readMessageEnd()
6311
    result = checkSimilarItem_result()
6312
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
6313
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
6314
    result.write(oprot)
6315
    oprot.writeMessageEnd()
6316
    oprot.trans.flush()
6317
 
6318
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
6319
    args = validateRiskyStatus_args()
6320
    args.read(iprot)
6321
    iprot.readMessageEnd()
6322
    result = validateRiskyStatus_result()
6323
    self._handler.validateRiskyStatus(args.itemId)
6324
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
6325
    result.write(oprot)
6326
    oprot.writeMessageEnd()
6327
    oprot.trans.flush()
6328
 
6329
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
6330
    args = changeItemRiskyFlag_args()
6331
    args.read(iprot)
6332
    iprot.readMessageEnd()
6333
    result = changeItemRiskyFlag_result()
6334
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
6335
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
6336
    result.write(oprot)
6337
    oprot.writeMessageEnd()
6338
    oprot.trans.flush()
6339
 
6340
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
6341
    args = getItemsByRiskyFlag_args()
6342
    args.read(iprot)
6343
    iprot.readMessageEnd()
6344
    result = getItemsByRiskyFlag_result()
6345
    result.success = self._handler.getItemsByRiskyFlag()
6346
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
6347
    result.write(oprot)
6348
    oprot.writeMessageEnd()
6349
    oprot.trans.flush()
6350
 
6351
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
6352
    args = getItemsForMasterSheet_args()
6353
    args.read(iprot)
6354
    iprot.readMessageEnd()
6355
    result = getItemsForMasterSheet_result()
6356
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
6357
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
6358
    result.write(oprot)
6359
    oprot.writeMessageEnd()
6360
    oprot.trans.flush()
6361
 
6362
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
6363
    args = getSimilarItemsCatalogIds_args()
6364
    args.read(iprot)
6365
    iprot.readMessageEnd()
6366
    result = getSimilarItemsCatalogIds_result()
6367
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
6368
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
6369
    result.write(oprot)
6370
    oprot.writeMessageEnd()
6371
    oprot.trans.flush()
6372
 
6373
  def process_addProductNotification(self, seqid, iprot, oprot):
6374
    args = addProductNotification_args()
6375
    args.read(iprot)
6376
    iprot.readMessageEnd()
6377
    result = addProductNotification_result()
6378
    result.success = self._handler.addProductNotification(args.itemId, args.email)
6379
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
6380
    result.write(oprot)
6381
    oprot.writeMessageEnd()
6382
    oprot.trans.flush()
6383
 
6384
  def process_sendProductNotifications(self, seqid, iprot, oprot):
6385
    args = sendProductNotifications_args()
6386
    args.read(iprot)
6387
    iprot.readMessageEnd()
6388
    result = sendProductNotifications_result()
6389
    result.success = self._handler.sendProductNotifications()
6390
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
6391
    result.write(oprot)
6392
    oprot.writeMessageEnd()
6393
    oprot.trans.flush()
6394
 
6395
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
6396
    args = getAllBrandsByCategory_args()
6397
    args.read(iprot)
6398
    iprot.readMessageEnd()
6399
    result = getAllBrandsByCategory_result()
6400
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
6401
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
6402
    result.write(oprot)
6403
    oprot.writeMessageEnd()
6404
    oprot.trans.flush()
6405
 
6406
  def process_getAllBrands(self, seqid, iprot, oprot):
6407
    args = getAllBrands_args()
6408
    args.read(iprot)
6409
    iprot.readMessageEnd()
6410
    result = getAllBrands_result()
6411
    result.success = self._handler.getAllBrands()
6412
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
6413
    result.write(oprot)
6414
    oprot.writeMessageEnd()
6415
    oprot.trans.flush()
6416
 
6417
  def process_getAllSources(self, seqid, iprot, oprot):
6418
    args = getAllSources_args()
6419
    args.read(iprot)
6420
    iprot.readMessageEnd()
6421
    result = getAllSources_result()
6422
    result.success = self._handler.getAllSources()
6423
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
6424
    result.write(oprot)
6425
    oprot.writeMessageEnd()
6426
    oprot.trans.flush()
6427
 
6428
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
6429
    args = getItemPricingBySource_args()
6430
    args.read(iprot)
6431
    iprot.readMessageEnd()
6432
    result = getItemPricingBySource_result()
6433
    try:
6434
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
6435
    except CatalogServiceException, cex:
6436
      result.cex = cex
6437
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
6438
    result.write(oprot)
6439
    oprot.writeMessageEnd()
6440
    oprot.trans.flush()
6441
 
6442
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
6443
    args = addSourceItemPricing_args()
6444
    args.read(iprot)
6445
    iprot.readMessageEnd()
6446
    result = addSourceItemPricing_result()
6447
    try:
6448
      self._handler.addSourceItemPricing(args.sourceItemPricing)
6449
    except CatalogServiceException, cex:
6450
      result.cex = cex
6451
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
6452
    result.write(oprot)
6453
    oprot.writeMessageEnd()
6454
    oprot.trans.flush()
6455
 
6456
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
6457
    args = getAllSourcePricing_args()
6458
    args.read(iprot)
6459
    iprot.readMessageEnd()
6460
    result = getAllSourcePricing_result()
6461
    try:
6462
      result.success = self._handler.getAllSourcePricing(args.itemId)
6463
    except CatalogServiceException, cex:
6464
      result.cex = cex
6465
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
6466
    result.write(oprot)
6467
    oprot.writeMessageEnd()
6468
    oprot.trans.flush()
6469
 
6470
  def process_getItemForSource(self, seqid, iprot, oprot):
6471
    args = getItemForSource_args()
6472
    args.read(iprot)
6473
    iprot.readMessageEnd()
6474
    result = getItemForSource_result()
6475
    try:
6476
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
6477
    except CatalogServiceException, cex:
6478
      result.cex = cex
6479
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
6480
    result.write(oprot)
6481
    oprot.writeMessageEnd()
6482
    oprot.trans.flush()
6483
 
6484
  def process_searchItemsInRange(self, seqid, iprot, oprot):
6485
    args = searchItemsInRange_args()
6486
    args.read(iprot)
6487
    iprot.readMessageEnd()
6488
    result = searchItemsInRange_result()
6489
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
6490
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
6491
    result.write(oprot)
6492
    oprot.writeMessageEnd()
6493
    oprot.trans.flush()
6494
 
6495
  def process_getSearchResultCount(self, seqid, iprot, oprot):
6496
    args = getSearchResultCount_args()
6497
    args.read(iprot)
6498
    iprot.readMessageEnd()
6499
    result = getSearchResultCount_result()
6500
    result.success = self._handler.getSearchResultCount(args.searchTerms)
6501
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
6502
    result.write(oprot)
6503
    oprot.writeMessageEnd()
6504
    oprot.trans.flush()
6505
 
6506
  def process_getProductNotifications(self, seqid, iprot, oprot):
6507
    args = getProductNotifications_args()
6508
    args.read(iprot)
6509
    iprot.readMessageEnd()
6510
    result = getProductNotifications_result()
6511
    result.success = self._handler.getProductNotifications(args.startDateTime)
6512
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
6513
    result.write(oprot)
6514
    oprot.writeMessageEnd()
6515
    oprot.trans.flush()
6516
 
6517
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
6518
    args = getProductNotificationRequestCount_args()
6519
    args.read(iprot)
6520
    iprot.readMessageEnd()
6521
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 6522
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 6523
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
6524
    result.write(oprot)
6525
    oprot.writeMessageEnd()
6526
    oprot.trans.flush()
6527
 
6528
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
6529
    args = addAuthorizationLog_args()
6530
    args.read(iprot)
6531
    iprot.readMessageEnd()
6532
    result = addAuthorizationLog_result()
6533
    try:
6534
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
6535
    except CatalogServiceException, cex:
6536
      result.cex = cex
6537
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
6538
    result.write(oprot)
6539
    oprot.writeMessageEnd()
6540
    oprot.trans.flush()
6541
 
6542
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
6543
    args = addupdateVoucherForItem_args()
6544
    args.read(iprot)
6545
    iprot.readMessageEnd()
6546
    result = addupdateVoucherForItem_result()
6547
    try:
6548
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
6549
    except CatalogServiceException, cex:
6550
      result.cex = cex
6551
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
6552
    result.write(oprot)
6553
    oprot.writeMessageEnd()
6554
    oprot.trans.flush()
6555
 
6556
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
6557
    args = deleteVoucherForItem_args()
6558
    args.read(iprot)
6559
    iprot.readMessageEnd()
6560
    result = deleteVoucherForItem_result()
6561
    try:
6562
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
6563
    except CatalogServiceException, cex:
6564
      result.cex = cex
6565
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
6566
    result.write(oprot)
6567
    oprot.writeMessageEnd()
6568
    oprot.trans.flush()
6569
 
6570
  def process_getVoucherAmount(self, seqid, iprot, oprot):
6571
    args = getVoucherAmount_args()
6572
    args.read(iprot)
6573
    iprot.readMessageEnd()
6574
    result = getVoucherAmount_result()
6575
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
6576
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
6577
    result.write(oprot)
6578
    oprot.writeMessageEnd()
6579
    oprot.trans.flush()
6580
 
6581
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
6582
    args = getAllItemVouchers_args()
6583
    args.read(iprot)
6584
    iprot.readMessageEnd()
6585
    result = getAllItemVouchers_result()
6586
    result.success = self._handler.getAllItemVouchers(args.itemId)
6587
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
6588
    result.write(oprot)
6589
    oprot.writeMessageEnd()
6590
    oprot.trans.flush()
6591
 
6592
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
6593
    args = isValidCatalogItemId_args()
6594
    args.read(iprot)
6595
    iprot.readMessageEnd()
6596
    result = isValidCatalogItemId_result()
6597
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
6598
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
6599
    result.write(oprot)
6600
    oprot.writeMessageEnd()
6601
    oprot.trans.flush()
6602
 
6039 amit.gupta 6603
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
6604
    args = getVatPercentageForItem_args()
6605
    args.read(iprot)
6606
    iprot.readMessageEnd()
6607
    result = getVatPercentageForItem_result()
7340 amit.gupta 6608
    try:
6609
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
6610
    except CatalogServiceException, cex:
6611
      result.cex = cex
6039 amit.gupta 6612
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
6613
    result.write(oprot)
6614
    oprot.writeMessageEnd()
6615
    oprot.trans.flush()
5944 mandeep.dh 6616
 
6039 amit.gupta 6617
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
6618
    args = getVatAmountForItem_args()
6619
    args.read(iprot)
6620
    iprot.readMessageEnd()
6621
    result = getVatAmountForItem_result()
6622
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
6623
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
6624
    result.write(oprot)
6625
    oprot.writeMessageEnd()
6626
    oprot.trans.flush()
6627
 
6531 vikram.rag 6628
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
6629
    args = getAllIgnoredInventoryUpdateItemsList_args()
6630
    args.read(iprot)
6631
    iprot.readMessageEnd()
6632
    result = getAllIgnoredInventoryUpdateItemsList_result()
6633
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
6634
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
6635
    result.write(oprot)
6636
    oprot.writeMessageEnd()
6637
    oprot.trans.flush()
6039 amit.gupta 6638
 
6821 amar.kumar 6639
  def process_getAllAliveItems(self, seqid, iprot, oprot):
6640
    args = getAllAliveItems_args()
6641
    args.read(iprot)
6642
    iprot.readMessageEnd()
6643
    result = getAllAliveItems_result()
6644
    result.success = self._handler.getAllAliveItems()
6645
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
6646
    result.write(oprot)
6647
    oprot.writeMessageEnd()
6648
    oprot.trans.flush()
6649
 
6805 anupam.sin 6650
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
6651
    args = getInsuranceAmount_args()
6652
    args.read(iprot)
6653
    iprot.readMessageEnd()
6654
    result = getInsuranceAmount_result()
6921 anupam.sin 6655
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 6656
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
6657
    result.write(oprot)
6658
    oprot.writeMessageEnd()
6659
    oprot.trans.flush()
6531 vikram.rag 6660
 
6805 anupam.sin 6661
  def process_getInsurer(self, seqid, iprot, oprot):
6662
    args = getInsurer_args()
6663
    args.read(iprot)
6664
    iprot.readMessageEnd()
6665
    result = getInsurer_result()
6666
    result.success = self._handler.getInsurer(args.insurerId)
6667
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
6668
    result.write(oprot)
6669
    oprot.writeMessageEnd()
6670
    oprot.trans.flush()
6671
 
6838 vikram.rag 6672
  def process_getAllInsurers(self, seqid, iprot, oprot):
6673
    args = getAllInsurers_args()
6674
    args.read(iprot)
6675
    iprot.readMessageEnd()
6676
    result = getAllInsurers_result()
6677
    result.success = self._handler.getAllInsurers()
6678
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
6679
    result.write(oprot)
6680
    oprot.writeMessageEnd()
6681
    oprot.trans.flush()
6805 anupam.sin 6682
 
6962 rajveer 6683
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
6684
    args = updateInsuranceDeclaredAmount_args()
6685
    args.read(iprot)
6686
    iprot.readMessageEnd()
6687
    result = updateInsuranceDeclaredAmount_result()
6688
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
6689
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
6690
    result.write(oprot)
6691
    oprot.writeMessageEnd()
6692
    oprot.trans.flush()
6838 vikram.rag 6693
 
7190 amar.kumar 6694
  def process_getFreebieForItem(self, seqid, iprot, oprot):
6695
    args = getFreebieForItem_args()
6696
    args.read(iprot)
6697
    iprot.readMessageEnd()
6698
    result = getFreebieForItem_result()
6699
    result.success = self._handler.getFreebieForItem(args.itemId)
6700
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
6701
    result.write(oprot)
6702
    oprot.writeMessageEnd()
6703
    oprot.trans.flush()
6962 rajveer 6704
 
7190 amar.kumar 6705
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
6706
    args = addOrUpdateFreebieForItem_args()
6707
    args.read(iprot)
6708
    iprot.readMessageEnd()
6709
    result = addOrUpdateFreebieForItem_result()
6710
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
6711
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
6712
    result.write(oprot)
6713
    oprot.writeMessageEnd()
6714
    oprot.trans.flush()
6715
 
7272 amit.gupta 6716
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
6717
    args = addOrUpdateBrandInfo_args()
6718
    args.read(iprot)
6719
    iprot.readMessageEnd()
6720
    result = addOrUpdateBrandInfo_result()
6721
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
6722
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
6723
    result.write(oprot)
6724
    oprot.writeMessageEnd()
6725
    oprot.trans.flush()
6726
 
6727
  def process_getBrandInfo(self, seqid, iprot, oprot):
6728
    args = getBrandInfo_args()
6729
    args.read(iprot)
6730
    iprot.readMessageEnd()
6731
    result = getBrandInfo_result()
6732
    result.success = self._handler.getBrandInfo()
6733
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
6734
    result.write(oprot)
6735
    oprot.writeMessageEnd()
6736
    oprot.trans.flush()
6737
 
7256 rajveer 6738
  def process_getStorePricing(self, seqid, iprot, oprot):
6739
    args = getStorePricing_args()
6740
    args.read(iprot)
6741
    iprot.readMessageEnd()
6742
    result = getStorePricing_result()
6743
    result.success = self._handler.getStorePricing(args.itemId)
6744
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
6745
    result.write(oprot)
6746
    oprot.writeMessageEnd()
6747
    oprot.trans.flush()
7190 amar.kumar 6748
 
7306 rajveer 6749
  def process_getStorePricings(self, seqid, iprot, oprot):
6750
    args = getStorePricings_args()
6751
    args.read(iprot)
6752
    iprot.readMessageEnd()
6753
    result = getStorePricings_result()
6754
    result.success = self._handler.getStorePricings(args.itemIds)
6755
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
6756
    result.write(oprot)
6757
    oprot.writeMessageEnd()
6758
    oprot.trans.flush()
6759
 
7265 rajveer 6760
  def process_updateStorePricing(self, seqid, iprot, oprot):
6761
    args = updateStorePricing_args()
6762
    args.read(iprot)
6763
    iprot.readMessageEnd()
6764
    result = updateStorePricing_result()
7382 rajveer 6765
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 6766
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
6767
    result.write(oprot)
6768
    oprot.writeMessageEnd()
6769
    oprot.trans.flush()
7256 rajveer 6770
 
7281 kshitij.so 6771
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
6772
    args = getAllAmazonListedItems_args()
6773
    args.read(iprot)
6774
    iprot.readMessageEnd()
6775
    result = getAllAmazonListedItems_result()
6776
    result.success = self._handler.getAllAmazonListedItems()
6777
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
6778
    result.write(oprot)
6779
    oprot.writeMessageEnd()
6780
    oprot.trans.flush()
7265 rajveer 6781
 
8619 kshitij.so 6782
  def process_searchAmazonItems(self, seqid, iprot, oprot):
6783
    args = searchAmazonItems_args()
6784
    args.read(iprot)
6785
    iprot.readMessageEnd()
6786
    result = searchAmazonItems_result()
6787
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
6788
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
6789
    result.write(oprot)
6790
    oprot.writeMessageEnd()
6791
    oprot.trans.flush()
6792
 
6793
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
6794
    args = getAmazonSearchResultCount_args()
6795
    args.read(iprot)
6796
    iprot.readMessageEnd()
6797
    result = getAmazonSearchResultCount_result()
6798
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
6799
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
6800
    result.write(oprot)
6801
    oprot.writeMessageEnd()
6802
    oprot.trans.flush()
6803
 
6804
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
6805
    args = getCountForAmazonlistedItems_args()
6806
    args.read(iprot)
6807
    iprot.readMessageEnd()
6808
    result = getCountForAmazonlistedItems_result()
6809
    result.success = self._handler.getCountForAmazonlistedItems()
6810
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
6811
    result.write(oprot)
6812
    oprot.writeMessageEnd()
6813
    oprot.trans.flush()
6814
 
7281 kshitij.so 6815
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
6816
    args = getAmazonItemDetails_args()
6817
    args.read(iprot)
6818
    iprot.readMessageEnd()
6819
    result = getAmazonItemDetails_result()
6820
    result.success = self._handler.getAmazonItemDetails(args.itemId)
6821
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
6822
    result.write(oprot)
6823
    oprot.writeMessageEnd()
6824
    oprot.trans.flush()
6825
 
6826
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
6827
    args = updateAmazonItemDetails_args()
6828
    args.read(iprot)
6829
    iprot.readMessageEnd()
6830
    result = updateAmazonItemDetails_result()
8168 kshitij.so 6831
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 6832
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
6833
    result.write(oprot)
6834
    oprot.writeMessageEnd()
6835
    oprot.trans.flush()
6836
 
6837
  def process_addAmazonItem(self, seqid, iprot, oprot):
6838
    args = addAmazonItem_args()
6839
    args.read(iprot)
6840
    iprot.readMessageEnd()
6841
    result = addAmazonItem_result()
6842
    self._handler.addAmazonItem(args.amazonlisted)
6843
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
6844
    result.write(oprot)
6845
    oprot.writeMessageEnd()
6846
    oprot.trans.flush()
6847
 
7291 vikram.rag 6848
  def process_getAsinItems(self, seqid, iprot, oprot):
6849
    args = getAsinItems_args()
6850
    args.read(iprot)
6851
    iprot.readMessageEnd()
6852
    result = getAsinItems_result()
6853
    result.success = self._handler.getAsinItems()
6854
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
6855
    result.write(oprot)
6856
    oprot.writeMessageEnd()
6857
    oprot.trans.flush()
7281 kshitij.so 6858
 
7291 vikram.rag 6859
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
6860
    args = getAllFbaListedItems_args()
6861
    args.read(iprot)
6862
    iprot.readMessageEnd()
6863
    result = getAllFbaListedItems_result()
6864
    result.success = self._handler.getAllFbaListedItems()
6865
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
6866
    result.write(oprot)
6867
    oprot.writeMessageEnd()
6868
    oprot.trans.flush()
6869
 
6870
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
6871
    args = getAllNonFbaListedItems_args()
6872
    args.read(iprot)
6873
    iprot.readMessageEnd()
6874
    result = getAllNonFbaListedItems_result()
6875
    result.success = self._handler.getAllNonFbaListedItems()
6876
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
6877
    result.write(oprot)
6878
    oprot.writeMessageEnd()
6879
    oprot.trans.flush()
6880
 
7460 kshitij.so 6881
  def process_updateItemInventory(self, seqid, iprot, oprot):
6882
    args = updateItemInventory_args()
6883
    args.read(iprot)
6884
    iprot.readMessageEnd()
6885
    result = updateItemInventory_result()
6886
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
6887
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
6888
    result.write(oprot)
6889
    oprot.writeMessageEnd()
6890
    oprot.trans.flush()
7291 vikram.rag 6891
 
7770 kshitij.so 6892
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
6893
    args = updateTimestampForAmazonFeeds_args()
6894
    args.read(iprot)
6895
    iprot.readMessageEnd()
6896
    result = updateTimestampForAmazonFeeds_result()
6897
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
6898
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
6899
    result.write(oprot)
6900
    oprot.writeMessageEnd()
6901
    oprot.trans.flush()
7460 kshitij.so 6902
 
7897 amar.kumar 6903
  def process_getAllParentCategories(self, seqid, iprot, oprot):
6904
    args = getAllParentCategories_args()
6905
    args.read(iprot)
6906
    iprot.readMessageEnd()
6907
    result = getAllParentCategories_result()
6908
    result.success = self._handler.getAllParentCategories()
6909
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
6910
    result.write(oprot)
6911
    oprot.writeMessageEnd()
6912
    oprot.trans.flush()
7770 kshitij.so 6913
 
7977 kshitij.so 6914
  def process_addPageViewEvent(self, seqid, iprot, oprot):
6915
    args = addPageViewEvent_args()
6916
    args.read(iprot)
6917
    iprot.readMessageEnd()
6918
    result = addPageViewEvent_result()
6919
    self._handler.addPageViewEvent(args.pageViewEvents)
6920
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
6921
    result.write(oprot)
6922
    oprot.writeMessageEnd()
6923
    oprot.trans.flush()
7897 amar.kumar 6924
 
7977 kshitij.so 6925
  def process_addCartEvent(self, seqid, iprot, oprot):
6926
    args = addCartEvent_args()
6927
    args.read(iprot)
6928
    iprot.readMessageEnd()
6929
    result = addCartEvent_result()
6930
    self._handler.addCartEvent(args.cartEvents)
6931
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
6932
    result.write(oprot)
6933
    oprot.writeMessageEnd()
6934
    oprot.trans.flush()
6935
 
8182 amar.kumar 6936
  def process_addEbayItem(self, seqid, iprot, oprot):
6937
    args = addEbayItem_args()
6938
    args.read(iprot)
6939
    iprot.readMessageEnd()
6940
    result = addEbayItem_result()
6941
    self._handler.addEbayItem(args.ebayItem)
6942
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
6943
    result.write(oprot)
6944
    oprot.writeMessageEnd()
6945
    oprot.trans.flush()
6946
 
6947
  def process_getEbayItem(self, seqid, iprot, oprot):
6948
    args = getEbayItem_args()
6949
    args.read(iprot)
6950
    iprot.readMessageEnd()
6951
    result = getEbayItem_result()
6952
    result.success = self._handler.getEbayItem(args.listingId)
6953
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
6954
    result.write(oprot)
6955
    oprot.writeMessageEnd()
6956
    oprot.trans.flush()
6957
 
6958
  def process_updateEbayItem(self, seqid, iprot, oprot):
6959
    args = updateEbayItem_args()
6960
    args.read(iprot)
6961
    iprot.readMessageEnd()
6962
    result = updateEbayItem_result()
6963
    self._handler.updateEbayItem(args.ebayItem)
6964
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
6965
    result.write(oprot)
6966
    oprot.writeMessageEnd()
6967
    oprot.trans.flush()
6968
 
8139 kshitij.so 6969
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
6970
    args = getAmazonListedItems_args()
6971
    args.read(iprot)
6972
    iprot.readMessageEnd()
6973
    result = getAmazonListedItems_result()
6974
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
6975
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
6976
    result.write(oprot)
6977
    oprot.writeMessageEnd()
6978
    oprot.trans.flush()
7977 kshitij.so 6979
 
8168 kshitij.so 6980
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
6981
    args = updateAmazonAttributesInBulk_args()
6982
    args.read(iprot)
6983
    iprot.readMessageEnd()
6984
    result = updateAmazonAttributesInBulk_result()
6985
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
6986
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
6987
    result.write(oprot)
6988
    oprot.writeMessageEnd()
6989
    oprot.trans.flush()
8139 kshitij.so 6990
 
8379 vikram.rag 6991
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
6992
    args = getAllItemstoListOnFba_args()
6993
    args.read(iprot)
6994
    iprot.readMessageEnd()
6995
    result = getAllItemstoListOnFba_result()
6996
    result.success = self._handler.getAllItemstoListOnFba()
6997
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
6998
    result.write(oprot)
6999
    oprot.writeMessageEnd()
7000
    oprot.trans.flush()
8168 kshitij.so 7001
 
8379 vikram.rag 7002
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
7003
    args = getAllItemstoListOnNonFba_args()
7004
    args.read(iprot)
7005
    iprot.readMessageEnd()
7006
    result = getAllItemstoListOnNonFba_result()
7007
    result.success = self._handler.getAllItemstoListOnNonFba()
7008
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
7009
    result.write(oprot)
7010
    oprot.writeMessageEnd()
7011
    oprot.trans.flush()
7012
 
8619 kshitij.so 7013
  def process_updateAsin(self, seqid, iprot, oprot):
7014
    args = updateAsin_args()
7015
    args.read(iprot)
7016
    iprot.readMessageEnd()
7017
    result = updateAsin_result()
7018
    self._handler.updateAsin(args.item)
7019
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
7020
    result.write(oprot)
7021
    oprot.writeMessageEnd()
7022
    oprot.trans.flush()
8616 vikram.rag 7023
 
8739 vikram.rag 7024
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
7025
    args = addOrUpdateSnapdealItem_args()
7026
    args.read(iprot)
7027
    iprot.readMessageEnd()
7028
    result = addOrUpdateSnapdealItem_result()
7029
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
7030
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
7031
    result.write(oprot)
7032
    oprot.writeMessageEnd()
7033
    oprot.trans.flush()
8619 kshitij.so 7034
 
8739 vikram.rag 7035
  def process_getSnapdealItem(self, seqid, iprot, oprot):
7036
    args = getSnapdealItem_args()
7037
    args.read(iprot)
7038
    iprot.readMessageEnd()
7039
    result = getSnapdealItem_result()
7040
    result.success = self._handler.getSnapdealItem(args.item_id)
7041
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
7042
    result.write(oprot)
7043
    oprot.writeMessageEnd()
7044
    oprot.trans.flush()
7045
 
9242 kshitij.so 7046
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
7047
    args = getSnapdealItemDetails_args()
7048
    args.read(iprot)
7049
    iprot.readMessageEnd()
7050
    result = getSnapdealItemDetails_result()
7051
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
7052
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
7053
    result.write(oprot)
7054
    oprot.writeMessageEnd()
7055
    oprot.trans.flush()
7056
 
8739 vikram.rag 7057
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
7058
    args = getAllSnapdealItems_args()
7059
    args.read(iprot)
7060
    iprot.readMessageEnd()
7061
    result = getAllSnapdealItems_result()
7062
    result.success = self._handler.getAllSnapdealItems()
7063
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
7064
    result.write(oprot)
7065
    oprot.writeMessageEnd()
7066
    oprot.trans.flush()
7067
 
9242 kshitij.so 7068
  def process_getSnapdealItems(self, seqid, iprot, oprot):
7069
    args = getSnapdealItems_args()
7070
    args.read(iprot)
7071
    iprot.readMessageEnd()
7072
    result = getSnapdealItems_result()
7073
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
7074
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
7075
    result.write(oprot)
7076
    oprot.writeMessageEnd()
7077
    oprot.trans.flush()
8739 vikram.rag 7078
 
9242 kshitij.so 7079
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
7080
    args = searchSnapdealItems_args()
7081
    args.read(iprot)
7082
    iprot.readMessageEnd()
7083
    result = searchSnapdealItems_result()
7084
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
7085
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
7086
    result.write(oprot)
7087
    oprot.writeMessageEnd()
7088
    oprot.trans.flush()
7089
 
7090
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
7091
    args = getCountForSnapdealItems_args()
7092
    args.read(iprot)
7093
    iprot.readMessageEnd()
7094
    result = getCountForSnapdealItems_result()
7095
    result.success = self._handler.getCountForSnapdealItems()
7096
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
7097
    result.write(oprot)
7098
    oprot.writeMessageEnd()
7099
    oprot.trans.flush()
7100
 
7101
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
7102
    args = getSnapdealSearchResultCount_args()
7103
    args.read(iprot)
7104
    iprot.readMessageEnd()
7105
    result = getSnapdealSearchResultCount_result()
7106
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
7107
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
7108
    result.write(oprot)
7109
    oprot.writeMessageEnd()
7110
    oprot.trans.flush()
7111
 
9299 kshitij.so 7112
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
7113
    args = getPrefferedInsurerForItem_args()
7114
    args.read(iprot)
7115
    iprot.readMessageEnd()
7116
    result = getPrefferedInsurerForItem_result()
7117
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
7118
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
7119
    result.write(oprot)
7120
    oprot.writeMessageEnd()
7121
    oprot.trans.flush()
9242 kshitij.so 7122
 
9456 vikram.rag 7123
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
7124
    args = getSnapdealItembySkuAtSnapdeal_args()
7125
    args.read(iprot)
7126
    iprot.readMessageEnd()
7127
    result = getSnapdealItembySkuAtSnapdeal_result()
7128
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
7129
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
7130
    result.write(oprot)
7131
    oprot.writeMessageEnd()
7132
    oprot.trans.flush()
9299 kshitij.so 7133
 
9621 manish.sha 7134
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
7135
    args = getProductFeedSubmit_args()
7136
    args.read(iprot)
7137
    iprot.readMessageEnd()
7138
    result = getProductFeedSubmit_result()
7139
    try:
7140
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
7141
    except CatalogServiceException, cex:
7142
      result.cex = cex
7143
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
7144
    result.write(oprot)
7145
    oprot.writeMessageEnd()
7146
    oprot.trans.flush()
9456 vikram.rag 7147
 
9621 manish.sha 7148
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
7149
    args = addProductFeedSubmit_args()
7150
    args.read(iprot)
7151
    iprot.readMessageEnd()
7152
    result = addProductFeedSubmit_result()
7153
    try:
7154
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
7155
    except CatalogServiceException, cex:
7156
      result.cex = cex
7157
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
7158
    result.write(oprot)
7159
    oprot.writeMessageEnd()
7160
    oprot.trans.flush()
7161
 
7162
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
7163
    args = updateProductFeedSubmit_args()
7164
    args.read(iprot)
7165
    iprot.readMessageEnd()
7166
    result = updateProductFeedSubmit_result()
7167
    try:
7168
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
7169
    except CatalogServiceException, cex:
7170
      result.cex = cex
7171
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
7172
    result.write(oprot)
7173
    oprot.writeMessageEnd()
7174
    oprot.trans.flush()
7175
 
7176
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
7177
    args = deleteProductFeedSubmit_args()
7178
    args.read(iprot)
7179
    iprot.readMessageEnd()
7180
    result = deleteProductFeedSubmit_result()
7181
    try:
7182
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
7183
    except CatalogServiceException, cex:
7184
      result.cex = cex
7185
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
7186
    result.write(oprot)
7187
    oprot.writeMessageEnd()
7188
    oprot.trans.flush()
7189
 
7190
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
7191
    args = getAllProductFeedSubmit_args()
7192
    args.read(iprot)
7193
    iprot.readMessageEnd()
7194
    result = getAllProductFeedSubmit_result()
7195
    try:
7196
      result.success = self._handler.getAllProductFeedSubmit()
7197
    except CatalogServiceException, cex:
7198
      result.cex = cex
7199
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
7200
    result.write(oprot)
7201
    oprot.writeMessageEnd()
7202
    oprot.trans.flush()
7203
 
9724 kshitij.so 7204
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
7205
    args = getMarketplacedetailsForItem_args()
7206
    args.read(iprot)
7207
    iprot.readMessageEnd()
7208
    result = getMarketplacedetailsForItem_result()
7209
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
7210
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
7211
    result.write(oprot)
7212
    oprot.writeMessageEnd()
7213
    oprot.trans.flush()
9621 manish.sha 7214
 
9724 kshitij.so 7215
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
7216
    args = updateMarketplaceAttributesForItem_args()
7217
    args.read(iprot)
7218
    iprot.readMessageEnd()
7219
    result = updateMarketplaceAttributesForItem_result()
7220
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
7221
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
7222
    result.write(oprot)
7223
    oprot.writeMessageEnd()
7224
    oprot.trans.flush()
7225
 
9779 kshitij.so 7226
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
7227
    args = getCostingForMarketplace_args()
7228
    args.read(iprot)
7229
    iprot.readMessageEnd()
7230
    result = getCostingForMarketplace_result()
7231
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
7232
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
7233
    result.write(oprot)
7234
    oprot.writeMessageEnd()
7235
    oprot.trans.flush()
7236
 
9776 vikram.rag 7237
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
7238
    args = getMarketPlaceItemsForPriceUpdate_args()
7239
    args.read(iprot)
7240
    iprot.readMessageEnd()
7241
    result = getMarketPlaceItemsForPriceUpdate_result()
7242
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
7243
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
7244
    result.write(oprot)
7245
    oprot.writeMessageEnd()
7246
    oprot.trans.flush()
9724 kshitij.so 7247
 
9776 vikram.rag 7248
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
7249
    args = updateMarketPlacePriceUpdateStatus_args()
7250
    args.read(iprot)
7251
    iprot.readMessageEnd()
7252
    result = updateMarketPlacePriceUpdateStatus_result()
7253
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp)
7254
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
7255
    result.write(oprot)
7256
    oprot.writeMessageEnd()
7257
    oprot.trans.flush()
7258
 
7259
 
5944 mandeep.dh 7260
# HELPER FUNCTIONS AND STRUCTURES
7261
 
7262
class addItem_args:
7263
  """
7264
  Attributes:
7265
   - item
7266
  """
7267
 
7268
  thrift_spec = (
7269
    None, # 0
7270
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
7271
  )
7272
 
7273
  def __init__(self, item=None,):
7274
    self.item = item
7275
 
7276
  def read(self, iprot):
7277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7279
      return
7280
    iprot.readStructBegin()
7281
    while True:
7282
      (fname, ftype, fid) = iprot.readFieldBegin()
7283
      if ftype == TType.STOP:
7284
        break
7285
      if fid == 1:
7286
        if ftype == TType.STRUCT:
7287
          self.item = Item()
7288
          self.item.read(iprot)
7289
        else:
7290
          iprot.skip(ftype)
7291
      else:
7292
        iprot.skip(ftype)
7293
      iprot.readFieldEnd()
7294
    iprot.readStructEnd()
7295
 
7296
  def write(self, oprot):
7297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7299
      return
7300
    oprot.writeStructBegin('addItem_args')
7301
    if self.item is not None:
7302
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
7303
      self.item.write(oprot)
7304
      oprot.writeFieldEnd()
7305
    oprot.writeFieldStop()
7306
    oprot.writeStructEnd()
7307
 
7308
  def validate(self):
7309
    return
7310
 
7311
 
7312
  def __repr__(self):
7313
    L = ['%s=%r' % (key, value)
7314
      for key, value in self.__dict__.iteritems()]
7315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7316
 
7317
  def __eq__(self, other):
7318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7319
 
7320
  def __ne__(self, other):
7321
    return not (self == other)
7322
 
7323
class addItem_result:
7324
  """
7325
  Attributes:
7326
   - success
7327
   - cex
7328
  """
7329
 
7330
  thrift_spec = (
7331
    (0, TType.I64, 'success', None, None, ), # 0
7332
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7333
  )
7334
 
7335
  def __init__(self, success=None, cex=None,):
7336
    self.success = success
7337
    self.cex = cex
7338
 
7339
  def read(self, iprot):
7340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7342
      return
7343
    iprot.readStructBegin()
7344
    while True:
7345
      (fname, ftype, fid) = iprot.readFieldBegin()
7346
      if ftype == TType.STOP:
7347
        break
7348
      if fid == 0:
7349
        if ftype == TType.I64:
7350
          self.success = iprot.readI64();
7351
        else:
7352
          iprot.skip(ftype)
7353
      elif fid == 1:
7354
        if ftype == TType.STRUCT:
7355
          self.cex = CatalogServiceException()
7356
          self.cex.read(iprot)
7357
        else:
7358
          iprot.skip(ftype)
7359
      else:
7360
        iprot.skip(ftype)
7361
      iprot.readFieldEnd()
7362
    iprot.readStructEnd()
7363
 
7364
  def write(self, oprot):
7365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7367
      return
7368
    oprot.writeStructBegin('addItem_result')
7369
    if self.success is not None:
7370
      oprot.writeFieldBegin('success', TType.I64, 0)
7371
      oprot.writeI64(self.success)
7372
      oprot.writeFieldEnd()
7373
    if self.cex is not None:
7374
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7375
      self.cex.write(oprot)
7376
      oprot.writeFieldEnd()
7377
    oprot.writeFieldStop()
7378
    oprot.writeStructEnd()
7379
 
7380
  def validate(self):
7381
    return
7382
 
7383
 
7384
  def __repr__(self):
7385
    L = ['%s=%r' % (key, value)
7386
      for key, value in self.__dict__.iteritems()]
7387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7388
 
7389
  def __eq__(self, other):
7390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7391
 
7392
  def __ne__(self, other):
7393
    return not (self == other)
7394
 
7395
class updateItem_args:
7396
  """
7397
  Attributes:
7398
   - item
7399
  """
7400
 
7401
  thrift_spec = (
7402
    None, # 0
7403
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
7404
  )
7405
 
7406
  def __init__(self, item=None,):
7407
    self.item = item
7408
 
7409
  def read(self, iprot):
7410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7412
      return
7413
    iprot.readStructBegin()
7414
    while True:
7415
      (fname, ftype, fid) = iprot.readFieldBegin()
7416
      if ftype == TType.STOP:
7417
        break
7418
      if fid == 1:
7419
        if ftype == TType.STRUCT:
7420
          self.item = Item()
7421
          self.item.read(iprot)
7422
        else:
7423
          iprot.skip(ftype)
7424
      else:
7425
        iprot.skip(ftype)
7426
      iprot.readFieldEnd()
7427
    iprot.readStructEnd()
7428
 
7429
  def write(self, oprot):
7430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7432
      return
7433
    oprot.writeStructBegin('updateItem_args')
7434
    if self.item is not None:
7435
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
7436
      self.item.write(oprot)
7437
      oprot.writeFieldEnd()
7438
    oprot.writeFieldStop()
7439
    oprot.writeStructEnd()
7440
 
7441
  def validate(self):
7442
    return
7443
 
7444
 
7445
  def __repr__(self):
7446
    L = ['%s=%r' % (key, value)
7447
      for key, value in self.__dict__.iteritems()]
7448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7449
 
7450
  def __eq__(self, other):
7451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7452
 
7453
  def __ne__(self, other):
7454
    return not (self == other)
7455
 
7456
class updateItem_result:
7457
  """
7458
  Attributes:
7459
   - success
7460
   - cex
7461
  """
7462
 
7463
  thrift_spec = (
7464
    (0, TType.I64, 'success', None, None, ), # 0
7465
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7466
  )
7467
 
7468
  def __init__(self, success=None, cex=None,):
7469
    self.success = success
7470
    self.cex = cex
7471
 
7472
  def read(self, iprot):
7473
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7474
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7475
      return
7476
    iprot.readStructBegin()
7477
    while True:
7478
      (fname, ftype, fid) = iprot.readFieldBegin()
7479
      if ftype == TType.STOP:
7480
        break
7481
      if fid == 0:
7482
        if ftype == TType.I64:
7483
          self.success = iprot.readI64();
7484
        else:
7485
          iprot.skip(ftype)
7486
      elif fid == 1:
7487
        if ftype == TType.STRUCT:
7488
          self.cex = CatalogServiceException()
7489
          self.cex.read(iprot)
7490
        else:
7491
          iprot.skip(ftype)
7492
      else:
7493
        iprot.skip(ftype)
7494
      iprot.readFieldEnd()
7495
    iprot.readStructEnd()
7496
 
7497
  def write(self, oprot):
7498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7500
      return
7501
    oprot.writeStructBegin('updateItem_result')
7502
    if self.success is not None:
7503
      oprot.writeFieldBegin('success', TType.I64, 0)
7504
      oprot.writeI64(self.success)
7505
      oprot.writeFieldEnd()
7506
    if self.cex is not None:
7507
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7508
      self.cex.write(oprot)
7509
      oprot.writeFieldEnd()
7510
    oprot.writeFieldStop()
7511
    oprot.writeStructEnd()
7512
 
7513
  def validate(self):
7514
    return
7515
 
7516
 
7517
  def __repr__(self):
7518
    L = ['%s=%r' % (key, value)
7519
      for key, value in self.__dict__.iteritems()]
7520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7521
 
7522
  def __eq__(self, other):
7523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7524
 
7525
  def __ne__(self, other):
7526
    return not (self == other)
7527
 
7528
class isActive_args:
7529
  """
7530
  Attributes:
7531
   - itemId
7532
  """
7533
 
7534
  thrift_spec = (
7535
    None, # 0
7536
    (1, TType.I64, 'itemId', None, None, ), # 1
7537
  )
7538
 
7539
  def __init__(self, itemId=None,):
7540
    self.itemId = itemId
7541
 
7542
  def read(self, iprot):
7543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7545
      return
7546
    iprot.readStructBegin()
7547
    while True:
7548
      (fname, ftype, fid) = iprot.readFieldBegin()
7549
      if ftype == TType.STOP:
7550
        break
7551
      if fid == 1:
7552
        if ftype == TType.I64:
7553
          self.itemId = iprot.readI64();
7554
        else:
7555
          iprot.skip(ftype)
7556
      else:
7557
        iprot.skip(ftype)
7558
      iprot.readFieldEnd()
7559
    iprot.readStructEnd()
7560
 
7561
  def write(self, oprot):
7562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7564
      return
7565
    oprot.writeStructBegin('isActive_args')
7566
    if self.itemId is not None:
7567
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7568
      oprot.writeI64(self.itemId)
7569
      oprot.writeFieldEnd()
7570
    oprot.writeFieldStop()
7571
    oprot.writeStructEnd()
7572
 
7573
  def validate(self):
7574
    return
7575
 
7576
 
7577
  def __repr__(self):
7578
    L = ['%s=%r' % (key, value)
7579
      for key, value in self.__dict__.iteritems()]
7580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7581
 
7582
  def __eq__(self, other):
7583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7584
 
7585
  def __ne__(self, other):
7586
    return not (self == other)
7587
 
7588
class isActive_result:
7589
  """
7590
  Attributes:
7591
   - success
7592
   - isex
7593
  """
7594
 
7595
  thrift_spec = (
7596
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
7597
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7598
  )
7599
 
7600
  def __init__(self, success=None, isex=None,):
7601
    self.success = success
7602
    self.isex = isex
7603
 
7604
  def read(self, iprot):
7605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7607
      return
7608
    iprot.readStructBegin()
7609
    while True:
7610
      (fname, ftype, fid) = iprot.readFieldBegin()
7611
      if ftype == TType.STOP:
7612
        break
7613
      if fid == 0:
7614
        if ftype == TType.STRUCT:
7615
          self.success = ItemShippingInfo()
7616
          self.success.read(iprot)
7617
        else:
7618
          iprot.skip(ftype)
7619
      elif fid == 1:
7620
        if ftype == TType.STRUCT:
7621
          self.isex = CatalogServiceException()
7622
          self.isex.read(iprot)
7623
        else:
7624
          iprot.skip(ftype)
7625
      else:
7626
        iprot.skip(ftype)
7627
      iprot.readFieldEnd()
7628
    iprot.readStructEnd()
7629
 
7630
  def write(self, oprot):
7631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7633
      return
7634
    oprot.writeStructBegin('isActive_result')
7635
    if self.success is not None:
7636
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7637
      self.success.write(oprot)
7638
      oprot.writeFieldEnd()
7639
    if self.isex is not None:
7640
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7641
      self.isex.write(oprot)
7642
      oprot.writeFieldEnd()
7643
    oprot.writeFieldStop()
7644
    oprot.writeStructEnd()
7645
 
7646
  def validate(self):
7647
    return
7648
 
7649
 
7650
  def __repr__(self):
7651
    L = ['%s=%r' % (key, value)
7652
      for key, value in self.__dict__.iteritems()]
7653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7654
 
7655
  def __eq__(self, other):
7656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7657
 
7658
  def __ne__(self, other):
7659
    return not (self == other)
7660
 
7438 amit.gupta 7661
class getItemsStatus_args:
7662
  """
7663
  Attributes:
7664
   - itemIds
7665
  """
7666
 
7667
  thrift_spec = (
7668
    None, # 0
7669
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
7670
  )
7671
 
7672
  def __init__(self, itemIds=None,):
7673
    self.itemIds = itemIds
7674
 
7675
  def read(self, iprot):
7676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7678
      return
7679
    iprot.readStructBegin()
7680
    while True:
7681
      (fname, ftype, fid) = iprot.readFieldBegin()
7682
      if ftype == TType.STOP:
7683
        break
7684
      if fid == 1:
7685
        if ftype == TType.LIST:
7686
          self.itemIds = []
8590 kshitij.so 7687
          (_etype33, _size30) = iprot.readListBegin()
7688
          for _i34 in xrange(_size30):
7689
            _elem35 = iprot.readI64();
7690
            self.itemIds.append(_elem35)
7438 amit.gupta 7691
          iprot.readListEnd()
7692
        else:
7693
          iprot.skip(ftype)
7694
      else:
7695
        iprot.skip(ftype)
7696
      iprot.readFieldEnd()
7697
    iprot.readStructEnd()
7698
 
7699
  def write(self, oprot):
7700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7702
      return
7703
    oprot.writeStructBegin('getItemsStatus_args')
7704
    if self.itemIds is not None:
7705
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
7706
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 7707
      for iter36 in self.itemIds:
7708
        oprot.writeI64(iter36)
7438 amit.gupta 7709
      oprot.writeListEnd()
7710
      oprot.writeFieldEnd()
7711
    oprot.writeFieldStop()
7712
    oprot.writeStructEnd()
7713
 
7714
  def validate(self):
7715
    return
7716
 
7717
 
7718
  def __repr__(self):
7719
    L = ['%s=%r' % (key, value)
7720
      for key, value in self.__dict__.iteritems()]
7721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7722
 
7723
  def __eq__(self, other):
7724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7725
 
7726
  def __ne__(self, other):
7727
    return not (self == other)
7728
 
7729
class getItemsStatus_result:
7730
  """
7731
  Attributes:
7732
   - success
7733
   - isex
7734
  """
7735
 
7736
  thrift_spec = (
7737
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
7738
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7739
  )
7740
 
7741
  def __init__(self, success=None, isex=None,):
7742
    self.success = success
7743
    self.isex = isex
7744
 
7745
  def read(self, iprot):
7746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7748
      return
7749
    iprot.readStructBegin()
7750
    while True:
7751
      (fname, ftype, fid) = iprot.readFieldBegin()
7752
      if ftype == TType.STOP:
7753
        break
7754
      if fid == 0:
7755
        if ftype == TType.MAP:
7756
          self.success = {}
8590 kshitij.so 7757
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
7758
          for _i41 in xrange(_size37):
7759
            _key42 = iprot.readI64();
7760
            _val43 = iprot.readBool();
7761
            self.success[_key42] = _val43
7438 amit.gupta 7762
          iprot.readMapEnd()
7763
        else:
7764
          iprot.skip(ftype)
7765
      elif fid == 1:
7766
        if ftype == TType.STRUCT:
7767
          self.isex = CatalogServiceException()
7768
          self.isex.read(iprot)
7769
        else:
7770
          iprot.skip(ftype)
7771
      else:
7772
        iprot.skip(ftype)
7773
      iprot.readFieldEnd()
7774
    iprot.readStructEnd()
7775
 
7776
  def write(self, oprot):
7777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7779
      return
7780
    oprot.writeStructBegin('getItemsStatus_result')
7781
    if self.success is not None:
7782
      oprot.writeFieldBegin('success', TType.MAP, 0)
7783
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 7784
      for kiter44,viter45 in self.success.items():
7785
        oprot.writeI64(kiter44)
7786
        oprot.writeBool(viter45)
7438 amit.gupta 7787
      oprot.writeMapEnd()
7788
      oprot.writeFieldEnd()
7789
    if self.isex is not None:
7790
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7791
      self.isex.write(oprot)
7792
      oprot.writeFieldEnd()
7793
    oprot.writeFieldStop()
7794
    oprot.writeStructEnd()
7795
 
7796
  def validate(self):
7797
    return
7798
 
7799
 
7800
  def __repr__(self):
7801
    L = ['%s=%r' % (key, value)
7802
      for key, value in self.__dict__.iteritems()]
7803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7804
 
7805
  def __eq__(self, other):
7806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7807
 
7808
  def __ne__(self, other):
7809
    return not (self == other)
7810
 
5944 mandeep.dh 7811
class getItemStatusDescription_args:
7812
  """
7813
  Attributes:
7814
   - itemId
7815
  """
7816
 
7817
  thrift_spec = (
7818
    None, # 0
7819
    (1, TType.I64, 'itemId', None, None, ), # 1
7820
  )
7821
 
7822
  def __init__(self, itemId=None,):
7823
    self.itemId = itemId
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 == 1:
7835
        if ftype == TType.I64:
7836
          self.itemId = iprot.readI64();
7837
        else:
7838
          iprot.skip(ftype)
7839
      else:
7840
        iprot.skip(ftype)
7841
      iprot.readFieldEnd()
7842
    iprot.readStructEnd()
7843
 
7844
  def write(self, oprot):
7845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7847
      return
7848
    oprot.writeStructBegin('getItemStatusDescription_args')
7849
    if self.itemId is not None:
7850
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7851
      oprot.writeI64(self.itemId)
7852
      oprot.writeFieldEnd()
7853
    oprot.writeFieldStop()
7854
    oprot.writeStructEnd()
7855
 
7856
  def validate(self):
7857
    return
7858
 
7859
 
7860
  def __repr__(self):
7861
    L = ['%s=%r' % (key, value)
7862
      for key, value in self.__dict__.iteritems()]
7863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7864
 
7865
  def __eq__(self, other):
7866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7867
 
7868
  def __ne__(self, other):
7869
    return not (self == other)
7870
 
7871
class getItemStatusDescription_result:
7872
  """
7873
  Attributes:
7874
   - success
7875
   - isex
7876
  """
7877
 
7878
  thrift_spec = (
7879
    (0, TType.STRING, 'success', None, None, ), # 0
7880
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7881
  )
7882
 
7883
  def __init__(self, success=None, isex=None,):
7884
    self.success = success
7885
    self.isex = isex
7886
 
7887
  def read(self, iprot):
7888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7890
      return
7891
    iprot.readStructBegin()
7892
    while True:
7893
      (fname, ftype, fid) = iprot.readFieldBegin()
7894
      if ftype == TType.STOP:
7895
        break
7896
      if fid == 0:
7897
        if ftype == TType.STRING:
7898
          self.success = iprot.readString();
7899
        else:
7900
          iprot.skip(ftype)
7901
      elif fid == 1:
7902
        if ftype == TType.STRUCT:
7903
          self.isex = CatalogServiceException()
7904
          self.isex.read(iprot)
7905
        else:
7906
          iprot.skip(ftype)
7907
      else:
7908
        iprot.skip(ftype)
7909
      iprot.readFieldEnd()
7910
    iprot.readStructEnd()
7911
 
7912
  def write(self, oprot):
7913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7915
      return
7916
    oprot.writeStructBegin('getItemStatusDescription_result')
7917
    if self.success is not None:
7918
      oprot.writeFieldBegin('success', TType.STRING, 0)
7919
      oprot.writeString(self.success)
7920
      oprot.writeFieldEnd()
7921
    if self.isex is not None:
7922
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7923
      self.isex.write(oprot)
7924
      oprot.writeFieldEnd()
7925
    oprot.writeFieldStop()
7926
    oprot.writeStructEnd()
7927
 
7928
  def validate(self):
7929
    return
7930
 
7931
 
7932
  def __repr__(self):
7933
    L = ['%s=%r' % (key, value)
7934
      for key, value in self.__dict__.iteritems()]
7935
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7936
 
7937
  def __eq__(self, other):
7938
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7939
 
7940
  def __ne__(self, other):
7941
    return not (self == other)
7942
 
7943
class startItemOn_args:
7944
  """
7945
  Attributes:
7946
   - item_id
7947
   - timestamp
7948
  """
7949
 
7950
  thrift_spec = (
7951
    None, # 0
7952
    (1, TType.I64, 'item_id', None, None, ), # 1
7953
    (2, TType.I64, 'timestamp', None, None, ), # 2
7954
  )
7955
 
7956
  def __init__(self, item_id=None, timestamp=None,):
7957
    self.item_id = item_id
7958
    self.timestamp = timestamp
7959
 
7960
  def read(self, iprot):
7961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7963
      return
7964
    iprot.readStructBegin()
7965
    while True:
7966
      (fname, ftype, fid) = iprot.readFieldBegin()
7967
      if ftype == TType.STOP:
7968
        break
7969
      if fid == 1:
7970
        if ftype == TType.I64:
7971
          self.item_id = iprot.readI64();
7972
        else:
7973
          iprot.skip(ftype)
7974
      elif fid == 2:
7975
        if ftype == TType.I64:
7976
          self.timestamp = iprot.readI64();
7977
        else:
7978
          iprot.skip(ftype)
7979
      else:
7980
        iprot.skip(ftype)
7981
      iprot.readFieldEnd()
7982
    iprot.readStructEnd()
7983
 
7984
  def write(self, oprot):
7985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7987
      return
7988
    oprot.writeStructBegin('startItemOn_args')
7989
    if self.item_id is not None:
7990
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7991
      oprot.writeI64(self.item_id)
7992
      oprot.writeFieldEnd()
7993
    if self.timestamp is not None:
7994
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
7995
      oprot.writeI64(self.timestamp)
7996
      oprot.writeFieldEnd()
7997
    oprot.writeFieldStop()
7998
    oprot.writeStructEnd()
7999
 
8000
  def validate(self):
8001
    return
8002
 
8003
 
8004
  def __repr__(self):
8005
    L = ['%s=%r' % (key, value)
8006
      for key, value in self.__dict__.iteritems()]
8007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8008
 
8009
  def __eq__(self, other):
8010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8011
 
8012
  def __ne__(self, other):
8013
    return not (self == other)
8014
 
8015
class startItemOn_result:
8016
  """
8017
  Attributes:
8018
   - cex
8019
  """
8020
 
8021
  thrift_spec = (
8022
    None, # 0
8023
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8024
  )
8025
 
8026
  def __init__(self, cex=None,):
8027
    self.cex = cex
8028
 
8029
  def read(self, iprot):
8030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8032
      return
8033
    iprot.readStructBegin()
8034
    while True:
8035
      (fname, ftype, fid) = iprot.readFieldBegin()
8036
      if ftype == TType.STOP:
8037
        break
8038
      if fid == 1:
8039
        if ftype == TType.STRUCT:
8040
          self.cex = CatalogServiceException()
8041
          self.cex.read(iprot)
8042
        else:
8043
          iprot.skip(ftype)
8044
      else:
8045
        iprot.skip(ftype)
8046
      iprot.readFieldEnd()
8047
    iprot.readStructEnd()
8048
 
8049
  def write(self, oprot):
8050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8052
      return
8053
    oprot.writeStructBegin('startItemOn_result')
8054
    if self.cex is not None:
8055
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8056
      self.cex.write(oprot)
8057
      oprot.writeFieldEnd()
8058
    oprot.writeFieldStop()
8059
    oprot.writeStructEnd()
8060
 
8061
  def validate(self):
8062
    return
8063
 
8064
 
8065
  def __repr__(self):
8066
    L = ['%s=%r' % (key, value)
8067
      for key, value in self.__dict__.iteritems()]
8068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8069
 
8070
  def __eq__(self, other):
8071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8072
 
8073
  def __ne__(self, other):
8074
    return not (self == other)
8075
 
8076
class retireItemOn_args:
8077
  """
8078
  Attributes:
8079
   - item_id
8080
   - timestamp
8081
  """
8082
 
8083
  thrift_spec = (
8084
    None, # 0
8085
    (1, TType.I64, 'item_id', None, None, ), # 1
8086
    (2, TType.I64, 'timestamp', None, None, ), # 2
8087
  )
8088
 
8089
  def __init__(self, item_id=None, timestamp=None,):
8090
    self.item_id = item_id
8091
    self.timestamp = timestamp
8092
 
8093
  def read(self, iprot):
8094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8096
      return
8097
    iprot.readStructBegin()
8098
    while True:
8099
      (fname, ftype, fid) = iprot.readFieldBegin()
8100
      if ftype == TType.STOP:
8101
        break
8102
      if fid == 1:
8103
        if ftype == TType.I64:
8104
          self.item_id = iprot.readI64();
8105
        else:
8106
          iprot.skip(ftype)
8107
      elif fid == 2:
8108
        if ftype == TType.I64:
8109
          self.timestamp = iprot.readI64();
8110
        else:
8111
          iprot.skip(ftype)
8112
      else:
8113
        iprot.skip(ftype)
8114
      iprot.readFieldEnd()
8115
    iprot.readStructEnd()
8116
 
8117
  def write(self, oprot):
8118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8120
      return
8121
    oprot.writeStructBegin('retireItemOn_args')
8122
    if self.item_id is not None:
8123
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8124
      oprot.writeI64(self.item_id)
8125
      oprot.writeFieldEnd()
8126
    if self.timestamp is not None:
8127
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
8128
      oprot.writeI64(self.timestamp)
8129
      oprot.writeFieldEnd()
8130
    oprot.writeFieldStop()
8131
    oprot.writeStructEnd()
8132
 
8133
  def validate(self):
8134
    return
8135
 
8136
 
8137
  def __repr__(self):
8138
    L = ['%s=%r' % (key, value)
8139
      for key, value in self.__dict__.iteritems()]
8140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8141
 
8142
  def __eq__(self, other):
8143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8144
 
8145
  def __ne__(self, other):
8146
    return not (self == other)
8147
 
8148
class retireItemOn_result:
8149
  """
8150
  Attributes:
8151
   - cex
8152
  """
8153
 
8154
  thrift_spec = (
8155
    None, # 0
8156
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8157
  )
8158
 
8159
  def __init__(self, cex=None,):
8160
    self.cex = cex
8161
 
8162
  def read(self, iprot):
8163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8165
      return
8166
    iprot.readStructBegin()
8167
    while True:
8168
      (fname, ftype, fid) = iprot.readFieldBegin()
8169
      if ftype == TType.STOP:
8170
        break
8171
      if fid == 1:
8172
        if ftype == TType.STRUCT:
8173
          self.cex = CatalogServiceException()
8174
          self.cex.read(iprot)
8175
        else:
8176
          iprot.skip(ftype)
8177
      else:
8178
        iprot.skip(ftype)
8179
      iprot.readFieldEnd()
8180
    iprot.readStructEnd()
8181
 
8182
  def write(self, oprot):
8183
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8184
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8185
      return
8186
    oprot.writeStructBegin('retireItemOn_result')
8187
    if self.cex is not None:
8188
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8189
      self.cex.write(oprot)
8190
      oprot.writeFieldEnd()
8191
    oprot.writeFieldStop()
8192
    oprot.writeStructEnd()
8193
 
8194
  def validate(self):
8195
    return
8196
 
8197
 
8198
  def __repr__(self):
8199
    L = ['%s=%r' % (key, value)
8200
      for key, value in self.__dict__.iteritems()]
8201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8202
 
8203
  def __eq__(self, other):
8204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8205
 
8206
  def __ne__(self, other):
8207
    return not (self == other)
8208
 
8209
class changeItemStatus_args:
8210
  """
8211
  Attributes:
8212
   - item_id
8213
   - timestamp
8214
   - newstatus
8215
  """
8216
 
8217
  thrift_spec = (
8218
    None, # 0
8219
    (1, TType.I64, 'item_id', None, None, ), # 1
8220
    (2, TType.I64, 'timestamp', None, None, ), # 2
8221
    (3, TType.I32, 'newstatus', None, None, ), # 3
8222
  )
8223
 
8224
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
8225
    self.item_id = item_id
8226
    self.timestamp = timestamp
8227
    self.newstatus = newstatus
8228
 
8229
  def read(self, iprot):
8230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8232
      return
8233
    iprot.readStructBegin()
8234
    while True:
8235
      (fname, ftype, fid) = iprot.readFieldBegin()
8236
      if ftype == TType.STOP:
8237
        break
8238
      if fid == 1:
8239
        if ftype == TType.I64:
8240
          self.item_id = iprot.readI64();
8241
        else:
8242
          iprot.skip(ftype)
8243
      elif fid == 2:
8244
        if ftype == TType.I64:
8245
          self.timestamp = iprot.readI64();
8246
        else:
8247
          iprot.skip(ftype)
8248
      elif fid == 3:
8249
        if ftype == TType.I32:
8250
          self.newstatus = iprot.readI32();
8251
        else:
8252
          iprot.skip(ftype)
8253
      else:
8254
        iprot.skip(ftype)
8255
      iprot.readFieldEnd()
8256
    iprot.readStructEnd()
8257
 
8258
  def write(self, oprot):
8259
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8260
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8261
      return
8262
    oprot.writeStructBegin('changeItemStatus_args')
8263
    if self.item_id is not None:
8264
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8265
      oprot.writeI64(self.item_id)
8266
      oprot.writeFieldEnd()
8267
    if self.timestamp is not None:
8268
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
8269
      oprot.writeI64(self.timestamp)
8270
      oprot.writeFieldEnd()
8271
    if self.newstatus is not None:
8272
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
8273
      oprot.writeI32(self.newstatus)
8274
      oprot.writeFieldEnd()
8275
    oprot.writeFieldStop()
8276
    oprot.writeStructEnd()
8277
 
8278
  def validate(self):
8279
    return
8280
 
8281
 
8282
  def __repr__(self):
8283
    L = ['%s=%r' % (key, value)
8284
      for key, value in self.__dict__.iteritems()]
8285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8286
 
8287
  def __eq__(self, other):
8288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8289
 
8290
  def __ne__(self, other):
8291
    return not (self == other)
8292
 
8293
class changeItemStatus_result:
8294
  """
8295
  Attributes:
8296
   - cex
8297
  """
8298
 
8299
  thrift_spec = (
8300
    None, # 0
8301
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8302
  )
8303
 
8304
  def __init__(self, cex=None,):
8305
    self.cex = cex
8306
 
8307
  def read(self, iprot):
8308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8310
      return
8311
    iprot.readStructBegin()
8312
    while True:
8313
      (fname, ftype, fid) = iprot.readFieldBegin()
8314
      if ftype == TType.STOP:
8315
        break
8316
      if fid == 1:
8317
        if ftype == TType.STRUCT:
8318
          self.cex = CatalogServiceException()
8319
          self.cex.read(iprot)
8320
        else:
8321
          iprot.skip(ftype)
8322
      else:
8323
        iprot.skip(ftype)
8324
      iprot.readFieldEnd()
8325
    iprot.readStructEnd()
8326
 
8327
  def write(self, oprot):
8328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8330
      return
8331
    oprot.writeStructBegin('changeItemStatus_result')
8332
    if self.cex is not None:
8333
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8334
      self.cex.write(oprot)
8335
      oprot.writeFieldEnd()
8336
    oprot.writeFieldStop()
8337
    oprot.writeStructEnd()
8338
 
8339
  def validate(self):
8340
    return
8341
 
8342
 
8343
  def __repr__(self):
8344
    L = ['%s=%r' % (key, value)
8345
      for key, value in self.__dict__.iteritems()]
8346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8347
 
8348
  def __eq__(self, other):
8349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8350
 
8351
  def __ne__(self, other):
8352
    return not (self == other)
8353
 
8354
class getItem_args:
8355
  """
8356
  Attributes:
8357
   - item_id
8358
  """
8359
 
8360
  thrift_spec = (
8361
    None, # 0
8362
    (1, TType.I64, 'item_id', None, None, ), # 1
8363
  )
8364
 
8365
  def __init__(self, item_id=None,):
8366
    self.item_id = item_id
8367
 
8368
  def read(self, iprot):
8369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8371
      return
8372
    iprot.readStructBegin()
8373
    while True:
8374
      (fname, ftype, fid) = iprot.readFieldBegin()
8375
      if ftype == TType.STOP:
8376
        break
8377
      if fid == 1:
8378
        if ftype == TType.I64:
8379
          self.item_id = iprot.readI64();
8380
        else:
8381
          iprot.skip(ftype)
8382
      else:
8383
        iprot.skip(ftype)
8384
      iprot.readFieldEnd()
8385
    iprot.readStructEnd()
8386
 
8387
  def write(self, oprot):
8388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8390
      return
8391
    oprot.writeStructBegin('getItem_args')
8392
    if self.item_id is not None:
8393
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8394
      oprot.writeI64(self.item_id)
8395
      oprot.writeFieldEnd()
8396
    oprot.writeFieldStop()
8397
    oprot.writeStructEnd()
8398
 
8399
  def validate(self):
8400
    return
8401
 
8402
 
8403
  def __repr__(self):
8404
    L = ['%s=%r' % (key, value)
8405
      for key, value in self.__dict__.iteritems()]
8406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8407
 
8408
  def __eq__(self, other):
8409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8410
 
8411
  def __ne__(self, other):
8412
    return not (self == other)
8413
 
8414
class getItem_result:
8415
  """
8416
  Attributes:
8417
   - success
8418
   - cex
8419
  """
8420
 
8421
  thrift_spec = (
8422
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8423
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8424
  )
8425
 
8426
  def __init__(self, success=None, cex=None,):
8427
    self.success = success
8428
    self.cex = cex
8429
 
8430
  def read(self, iprot):
8431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8433
      return
8434
    iprot.readStructBegin()
8435
    while True:
8436
      (fname, ftype, fid) = iprot.readFieldBegin()
8437
      if ftype == TType.STOP:
8438
        break
8439
      if fid == 0:
8440
        if ftype == TType.STRUCT:
8441
          self.success = Item()
8442
          self.success.read(iprot)
8443
        else:
8444
          iprot.skip(ftype)
8445
      elif fid == 1:
8446
        if ftype == TType.STRUCT:
8447
          self.cex = CatalogServiceException()
8448
          self.cex.read(iprot)
8449
        else:
8450
          iprot.skip(ftype)
8451
      else:
8452
        iprot.skip(ftype)
8453
      iprot.readFieldEnd()
8454
    iprot.readStructEnd()
8455
 
8456
  def write(self, oprot):
8457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8459
      return
8460
    oprot.writeStructBegin('getItem_result')
8461
    if self.success is not None:
8462
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8463
      self.success.write(oprot)
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 getItemsByCatalogId_args:
8488
  """
8489
  Attributes:
8490
   - catalog_item_id
8491
  """
8492
 
8493
  thrift_spec = (
8494
    None, # 0
8495
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
8496
  )
8497
 
8498
  def __init__(self, catalog_item_id=None,):
8499
    self.catalog_item_id = catalog_item_id
8500
 
8501
  def read(self, iprot):
8502
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8503
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8504
      return
8505
    iprot.readStructBegin()
8506
    while True:
8507
      (fname, ftype, fid) = iprot.readFieldBegin()
8508
      if ftype == TType.STOP:
8509
        break
8510
      if fid == 1:
8511
        if ftype == TType.I64:
8512
          self.catalog_item_id = iprot.readI64();
8513
        else:
8514
          iprot.skip(ftype)
8515
      else:
8516
        iprot.skip(ftype)
8517
      iprot.readFieldEnd()
8518
    iprot.readStructEnd()
8519
 
8520
  def write(self, oprot):
8521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8523
      return
8524
    oprot.writeStructBegin('getItemsByCatalogId_args')
8525
    if self.catalog_item_id is not None:
8526
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
8527
      oprot.writeI64(self.catalog_item_id)
8528
      oprot.writeFieldEnd()
8529
    oprot.writeFieldStop()
8530
    oprot.writeStructEnd()
8531
 
8532
  def validate(self):
8533
    return
8534
 
8535
 
8536
  def __repr__(self):
8537
    L = ['%s=%r' % (key, value)
8538
      for key, value in self.__dict__.iteritems()]
8539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8540
 
8541
  def __eq__(self, other):
8542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8543
 
8544
  def __ne__(self, other):
8545
    return not (self == other)
8546
 
8547
class getItemsByCatalogId_result:
8548
  """
8549
  Attributes:
8550
   - success
8551
   - cex
8552
  """
8553
 
8554
  thrift_spec = (
8555
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8556
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8557
  )
8558
 
8559
  def __init__(self, success=None, cex=None,):
8560
    self.success = success
8561
    self.cex = cex
8562
 
8563
  def read(self, iprot):
8564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8566
      return
8567
    iprot.readStructBegin()
8568
    while True:
8569
      (fname, ftype, fid) = iprot.readFieldBegin()
8570
      if ftype == TType.STOP:
8571
        break
8572
      if fid == 0:
8573
        if ftype == TType.LIST:
8574
          self.success = []
8590 kshitij.so 8575
          (_etype49, _size46) = iprot.readListBegin()
8576
          for _i50 in xrange(_size46):
8577
            _elem51 = Item()
8578
            _elem51.read(iprot)
8579
            self.success.append(_elem51)
5944 mandeep.dh 8580
          iprot.readListEnd()
8581
        else:
8582
          iprot.skip(ftype)
8583
      elif fid == 1:
8584
        if ftype == TType.STRUCT:
8585
          self.cex = CatalogServiceException()
8586
          self.cex.read(iprot)
8587
        else:
8588
          iprot.skip(ftype)
8589
      else:
8590
        iprot.skip(ftype)
8591
      iprot.readFieldEnd()
8592
    iprot.readStructEnd()
8593
 
8594
  def write(self, oprot):
8595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8597
      return
8598
    oprot.writeStructBegin('getItemsByCatalogId_result')
8599
    if self.success is not None:
8600
      oprot.writeFieldBegin('success', TType.LIST, 0)
8601
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8602
      for iter52 in self.success:
8603
        iter52.write(oprot)
5944 mandeep.dh 8604
      oprot.writeListEnd()
8605
      oprot.writeFieldEnd()
8606
    if self.cex is not None:
8607
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8608
      self.cex.write(oprot)
8609
      oprot.writeFieldEnd()
8610
    oprot.writeFieldStop()
8611
    oprot.writeStructEnd()
8612
 
8613
  def validate(self):
8614
    return
8615
 
8616
 
8617
  def __repr__(self):
8618
    L = ['%s=%r' % (key, value)
8619
      for key, value in self.__dict__.iteritems()]
8620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8621
 
8622
  def __eq__(self, other):
8623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8624
 
8625
  def __ne__(self, other):
8626
    return not (self == other)
8627
 
8628
class getValidItemsByCatalogId_args:
8629
  """
8630
  Attributes:
8631
   - catalog_item_id
8632
  """
8633
 
8634
  thrift_spec = (
8635
    None, # 0
8636
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
8637
  )
8638
 
8639
  def __init__(self, catalog_item_id=None,):
8640
    self.catalog_item_id = catalog_item_id
8641
 
8642
  def read(self, iprot):
8643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8645
      return
8646
    iprot.readStructBegin()
8647
    while True:
8648
      (fname, ftype, fid) = iprot.readFieldBegin()
8649
      if ftype == TType.STOP:
8650
        break
8651
      if fid == 1:
8652
        if ftype == TType.I64:
8653
          self.catalog_item_id = iprot.readI64();
8654
        else:
8655
          iprot.skip(ftype)
8656
      else:
8657
        iprot.skip(ftype)
8658
      iprot.readFieldEnd()
8659
    iprot.readStructEnd()
8660
 
8661
  def write(self, oprot):
8662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8664
      return
8665
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
8666
    if self.catalog_item_id is not None:
8667
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
8668
      oprot.writeI64(self.catalog_item_id)
8669
      oprot.writeFieldEnd()
8670
    oprot.writeFieldStop()
8671
    oprot.writeStructEnd()
8672
 
8673
  def validate(self):
8674
    return
8675
 
8676
 
8677
  def __repr__(self):
8678
    L = ['%s=%r' % (key, value)
8679
      for key, value in self.__dict__.iteritems()]
8680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8681
 
8682
  def __eq__(self, other):
8683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8684
 
8685
  def __ne__(self, other):
8686
    return not (self == other)
8687
 
8688
class getValidItemsByCatalogId_result:
8689
  """
8690
  Attributes:
8691
   - success
8692
   - cex
8693
  """
8694
 
8695
  thrift_spec = (
8696
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8697
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8698
  )
8699
 
8700
  def __init__(self, success=None, cex=None,):
8701
    self.success = success
8702
    self.cex = cex
8703
 
8704
  def read(self, iprot):
8705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8707
      return
8708
    iprot.readStructBegin()
8709
    while True:
8710
      (fname, ftype, fid) = iprot.readFieldBegin()
8711
      if ftype == TType.STOP:
8712
        break
8713
      if fid == 0:
8714
        if ftype == TType.LIST:
8715
          self.success = []
8590 kshitij.so 8716
          (_etype56, _size53) = iprot.readListBegin()
8717
          for _i57 in xrange(_size53):
8718
            _elem58 = Item()
8719
            _elem58.read(iprot)
8720
            self.success.append(_elem58)
5944 mandeep.dh 8721
          iprot.readListEnd()
8722
        else:
8723
          iprot.skip(ftype)
8724
      elif fid == 1:
8725
        if ftype == TType.STRUCT:
8726
          self.cex = CatalogServiceException()
8727
          self.cex.read(iprot)
8728
        else:
8729
          iprot.skip(ftype)
8730
      else:
8731
        iprot.skip(ftype)
8732
      iprot.readFieldEnd()
8733
    iprot.readStructEnd()
8734
 
8735
  def write(self, oprot):
8736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8738
      return
8739
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
8740
    if self.success is not None:
8741
      oprot.writeFieldBegin('success', TType.LIST, 0)
8742
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8743
      for iter59 in self.success:
8744
        iter59.write(oprot)
5944 mandeep.dh 8745
      oprot.writeListEnd()
8746
      oprot.writeFieldEnd()
8747
    if self.cex is not None:
8748
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8749
      self.cex.write(oprot)
8750
      oprot.writeFieldEnd()
8751
    oprot.writeFieldStop()
8752
    oprot.writeStructEnd()
8753
 
8754
  def validate(self):
8755
    return
8756
 
8757
 
8758
  def __repr__(self):
8759
    L = ['%s=%r' % (key, value)
8760
      for key, value in self.__dict__.iteritems()]
8761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8762
 
8763
  def __eq__(self, other):
8764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8765
 
8766
  def __ne__(self, other):
8767
    return not (self == other)
8768
 
8769
class getAllItems_args:
8770
  """
8771
  Attributes:
8772
   - isActive
8773
  """
8774
 
8775
  thrift_spec = (
8776
    None, # 0
8777
    (1, TType.BOOL, 'isActive', None, None, ), # 1
8778
  )
8779
 
8780
  def __init__(self, isActive=None,):
8781
    self.isActive = isActive
8782
 
8783
  def read(self, iprot):
8784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8786
      return
8787
    iprot.readStructBegin()
8788
    while True:
8789
      (fname, ftype, fid) = iprot.readFieldBegin()
8790
      if ftype == TType.STOP:
8791
        break
8792
      if fid == 1:
8793
        if ftype == TType.BOOL:
8794
          self.isActive = iprot.readBool();
8795
        else:
8796
          iprot.skip(ftype)
8797
      else:
8798
        iprot.skip(ftype)
8799
      iprot.readFieldEnd()
8800
    iprot.readStructEnd()
8801
 
8802
  def write(self, oprot):
8803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8805
      return
8806
    oprot.writeStructBegin('getAllItems_args')
8807
    if self.isActive is not None:
8808
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
8809
      oprot.writeBool(self.isActive)
8810
      oprot.writeFieldEnd()
8811
    oprot.writeFieldStop()
8812
    oprot.writeStructEnd()
8813
 
8814
  def validate(self):
8815
    return
8816
 
8817
 
8818
  def __repr__(self):
8819
    L = ['%s=%r' % (key, value)
8820
      for key, value in self.__dict__.iteritems()]
8821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8822
 
8823
  def __eq__(self, other):
8824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8825
 
8826
  def __ne__(self, other):
8827
    return not (self == other)
8828
 
8829
class getAllItems_result:
8830
  """
8831
  Attributes:
8832
   - success
8833
   - cex
8834
  """
8835
 
8836
  thrift_spec = (
8837
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8838
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8839
  )
8840
 
8841
  def __init__(self, success=None, cex=None,):
8842
    self.success = success
8843
    self.cex = cex
8844
 
8845
  def read(self, iprot):
8846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8848
      return
8849
    iprot.readStructBegin()
8850
    while True:
8851
      (fname, ftype, fid) = iprot.readFieldBegin()
8852
      if ftype == TType.STOP:
8853
        break
8854
      if fid == 0:
8855
        if ftype == TType.LIST:
8856
          self.success = []
8590 kshitij.so 8857
          (_etype63, _size60) = iprot.readListBegin()
8858
          for _i64 in xrange(_size60):
8859
            _elem65 = Item()
8860
            _elem65.read(iprot)
8861
            self.success.append(_elem65)
5944 mandeep.dh 8862
          iprot.readListEnd()
8863
        else:
8864
          iprot.skip(ftype)
8865
      elif fid == 1:
8866
        if ftype == TType.STRUCT:
8867
          self.cex = CatalogServiceException()
8868
          self.cex.read(iprot)
8869
        else:
8870
          iprot.skip(ftype)
8871
      else:
8872
        iprot.skip(ftype)
8873
      iprot.readFieldEnd()
8874
    iprot.readStructEnd()
8875
 
8876
  def write(self, oprot):
8877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8879
      return
8880
    oprot.writeStructBegin('getAllItems_result')
8881
    if self.success is not None:
8882
      oprot.writeFieldBegin('success', TType.LIST, 0)
8883
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8884
      for iter66 in self.success:
8885
        iter66.write(oprot)
5944 mandeep.dh 8886
      oprot.writeListEnd()
8887
      oprot.writeFieldEnd()
8888
    if self.cex is not None:
8889
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8890
      self.cex.write(oprot)
8891
      oprot.writeFieldEnd()
8892
    oprot.writeFieldStop()
8893
    oprot.writeStructEnd()
8894
 
8895
  def validate(self):
8896
    return
8897
 
8898
 
8899
  def __repr__(self):
8900
    L = ['%s=%r' % (key, value)
8901
      for key, value in self.__dict__.iteritems()]
8902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8903
 
8904
  def __eq__(self, other):
8905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8906
 
8907
  def __ne__(self, other):
8908
    return not (self == other)
8909
 
8910
class getAllItemsByStatus_args:
8911
  """
8912
  Attributes:
8913
   - itemStatus
8914
  """
8915
 
8916
  thrift_spec = (
8917
    None, # 0
8918
    (1, TType.I32, 'itemStatus', None, None, ), # 1
8919
  )
8920
 
8921
  def __init__(self, itemStatus=None,):
8922
    self.itemStatus = itemStatus
8923
 
8924
  def read(self, iprot):
8925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8927
      return
8928
    iprot.readStructBegin()
8929
    while True:
8930
      (fname, ftype, fid) = iprot.readFieldBegin()
8931
      if ftype == TType.STOP:
8932
        break
8933
      if fid == 1:
8934
        if ftype == TType.I32:
8935
          self.itemStatus = iprot.readI32();
8936
        else:
8937
          iprot.skip(ftype)
8938
      else:
8939
        iprot.skip(ftype)
8940
      iprot.readFieldEnd()
8941
    iprot.readStructEnd()
8942
 
8943
  def write(self, oprot):
8944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8946
      return
8947
    oprot.writeStructBegin('getAllItemsByStatus_args')
8948
    if self.itemStatus is not None:
8949
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
8950
      oprot.writeI32(self.itemStatus)
8951
      oprot.writeFieldEnd()
8952
    oprot.writeFieldStop()
8953
    oprot.writeStructEnd()
8954
 
8955
  def validate(self):
8956
    return
8957
 
8958
 
8959
  def __repr__(self):
8960
    L = ['%s=%r' % (key, value)
8961
      for key, value in self.__dict__.iteritems()]
8962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8963
 
8964
  def __eq__(self, other):
8965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8966
 
8967
  def __ne__(self, other):
8968
    return not (self == other)
8969
 
8970
class getAllItemsByStatus_result:
8971
  """
8972
  Attributes:
8973
   - success
8974
   - cex
8975
  """
8976
 
8977
  thrift_spec = (
8978
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8979
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8980
  )
8981
 
8982
  def __init__(self, success=None, cex=None,):
8983
    self.success = success
8984
    self.cex = cex
8985
 
8986
  def read(self, iprot):
8987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8989
      return
8990
    iprot.readStructBegin()
8991
    while True:
8992
      (fname, ftype, fid) = iprot.readFieldBegin()
8993
      if ftype == TType.STOP:
8994
        break
8995
      if fid == 0:
8996
        if ftype == TType.LIST:
8997
          self.success = []
8590 kshitij.so 8998
          (_etype70, _size67) = iprot.readListBegin()
8999
          for _i71 in xrange(_size67):
9000
            _elem72 = Item()
9001
            _elem72.read(iprot)
9002
            self.success.append(_elem72)
5944 mandeep.dh 9003
          iprot.readListEnd()
9004
        else:
9005
          iprot.skip(ftype)
9006
      elif fid == 1:
9007
        if ftype == TType.STRUCT:
9008
          self.cex = CatalogServiceException()
9009
          self.cex.read(iprot)
9010
        else:
9011
          iprot.skip(ftype)
9012
      else:
9013
        iprot.skip(ftype)
9014
      iprot.readFieldEnd()
9015
    iprot.readStructEnd()
9016
 
9017
  def write(self, oprot):
9018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9020
      return
9021
    oprot.writeStructBegin('getAllItemsByStatus_result')
9022
    if self.success is not None:
9023
      oprot.writeFieldBegin('success', TType.LIST, 0)
9024
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9025
      for iter73 in self.success:
9026
        iter73.write(oprot)
5944 mandeep.dh 9027
      oprot.writeListEnd()
9028
      oprot.writeFieldEnd()
9029
    if self.cex is not None:
9030
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9031
      self.cex.write(oprot)
9032
      oprot.writeFieldEnd()
9033
    oprot.writeFieldStop()
9034
    oprot.writeStructEnd()
9035
 
9036
  def validate(self):
9037
    return
9038
 
9039
 
9040
  def __repr__(self):
9041
    L = ['%s=%r' % (key, value)
9042
      for key, value in self.__dict__.iteritems()]
9043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9044
 
9045
  def __eq__(self, other):
9046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9047
 
9048
  def __ne__(self, other):
9049
    return not (self == other)
9050
 
9051
class markItemAsContentComplete_args:
9052
  """
9053
  Attributes:
9054
   - entityId
9055
   - category
9056
   - brand
9057
   - modelName
9058
   - modelNumber
9253 rajveer 9059
   - isAndroid
5944 mandeep.dh 9060
  """
9061
 
9062
  thrift_spec = (
9063
    None, # 0
9064
    (1, TType.I64, 'entityId', None, None, ), # 1
9065
    (2, TType.I64, 'category', None, None, ), # 2
9066
    (3, TType.STRING, 'brand', None, None, ), # 3
9067
    (4, TType.STRING, 'modelName', None, None, ), # 4
9068
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 9069
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 9070
  )
9071
 
9253 rajveer 9072
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 9073
    self.entityId = entityId
9074
    self.category = category
9075
    self.brand = brand
9076
    self.modelName = modelName
9077
    self.modelNumber = modelNumber
9253 rajveer 9078
    self.isAndroid = isAndroid
5944 mandeep.dh 9079
 
9080
  def read(self, iprot):
9081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9083
      return
9084
    iprot.readStructBegin()
9085
    while True:
9086
      (fname, ftype, fid) = iprot.readFieldBegin()
9087
      if ftype == TType.STOP:
9088
        break
9089
      if fid == 1:
9090
        if ftype == TType.I64:
9091
          self.entityId = iprot.readI64();
9092
        else:
9093
          iprot.skip(ftype)
9094
      elif fid == 2:
9095
        if ftype == TType.I64:
9096
          self.category = iprot.readI64();
9097
        else:
9098
          iprot.skip(ftype)
9099
      elif fid == 3:
9100
        if ftype == TType.STRING:
9101
          self.brand = iprot.readString();
9102
        else:
9103
          iprot.skip(ftype)
9104
      elif fid == 4:
9105
        if ftype == TType.STRING:
9106
          self.modelName = iprot.readString();
9107
        else:
9108
          iprot.skip(ftype)
9109
      elif fid == 5:
9110
        if ftype == TType.STRING:
9111
          self.modelNumber = iprot.readString();
9112
        else:
9113
          iprot.skip(ftype)
9253 rajveer 9114
      elif fid == 6:
9115
        if ftype == TType.BOOL:
9116
          self.isAndroid = iprot.readBool();
9117
        else:
9118
          iprot.skip(ftype)
5944 mandeep.dh 9119
      else:
9120
        iprot.skip(ftype)
9121
      iprot.readFieldEnd()
9122
    iprot.readStructEnd()
9123
 
9124
  def write(self, oprot):
9125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9127
      return
9128
    oprot.writeStructBegin('markItemAsContentComplete_args')
9129
    if self.entityId is not None:
9130
      oprot.writeFieldBegin('entityId', TType.I64, 1)
9131
      oprot.writeI64(self.entityId)
9132
      oprot.writeFieldEnd()
9133
    if self.category is not None:
9134
      oprot.writeFieldBegin('category', TType.I64, 2)
9135
      oprot.writeI64(self.category)
9136
      oprot.writeFieldEnd()
9137
    if self.brand is not None:
9138
      oprot.writeFieldBegin('brand', TType.STRING, 3)
9139
      oprot.writeString(self.brand)
9140
      oprot.writeFieldEnd()
9141
    if self.modelName is not None:
9142
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
9143
      oprot.writeString(self.modelName)
9144
      oprot.writeFieldEnd()
9145
    if self.modelNumber is not None:
9146
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
9147
      oprot.writeString(self.modelNumber)
9148
      oprot.writeFieldEnd()
9253 rajveer 9149
    if self.isAndroid is not None:
9150
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
9151
      oprot.writeBool(self.isAndroid)
9152
      oprot.writeFieldEnd()
5944 mandeep.dh 9153
    oprot.writeFieldStop()
9154
    oprot.writeStructEnd()
9155
 
9156
  def validate(self):
9157
    return
9158
 
9159
 
9160
  def __repr__(self):
9161
    L = ['%s=%r' % (key, value)
9162
      for key, value in self.__dict__.iteritems()]
9163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9164
 
9165
  def __eq__(self, other):
9166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9167
 
9168
  def __ne__(self, other):
9169
    return not (self == other)
9170
 
9171
class markItemAsContentComplete_result:
9172
  """
9173
  Attributes:
9174
   - success
9175
   - cex
9176
  """
9177
 
9178
  thrift_spec = (
9179
    (0, TType.BOOL, 'success', None, None, ), # 0
9180
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9181
  )
9182
 
9183
  def __init__(self, success=None, cex=None,):
9184
    self.success = success
9185
    self.cex = cex
9186
 
9187
  def read(self, iprot):
9188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9190
      return
9191
    iprot.readStructBegin()
9192
    while True:
9193
      (fname, ftype, fid) = iprot.readFieldBegin()
9194
      if ftype == TType.STOP:
9195
        break
9196
      if fid == 0:
9197
        if ftype == TType.BOOL:
9198
          self.success = iprot.readBool();
9199
        else:
9200
          iprot.skip(ftype)
9201
      elif fid == 1:
9202
        if ftype == TType.STRUCT:
9203
          self.cex = CatalogServiceException()
9204
          self.cex.read(iprot)
9205
        else:
9206
          iprot.skip(ftype)
9207
      else:
9208
        iprot.skip(ftype)
9209
      iprot.readFieldEnd()
9210
    iprot.readStructEnd()
9211
 
9212
  def write(self, oprot):
9213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9215
      return
9216
    oprot.writeStructBegin('markItemAsContentComplete_result')
9217
    if self.success is not None:
9218
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9219
      oprot.writeBool(self.success)
9220
      oprot.writeFieldEnd()
9221
    if self.cex is not None:
9222
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9223
      self.cex.write(oprot)
9224
      oprot.writeFieldEnd()
9225
    oprot.writeFieldStop()
9226
    oprot.writeStructEnd()
9227
 
9228
  def validate(self):
9229
    return
9230
 
9231
 
9232
  def __repr__(self):
9233
    L = ['%s=%r' % (key, value)
9234
      for key, value in self.__dict__.iteritems()]
9235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9236
 
9237
  def __eq__(self, other):
9238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9239
 
9240
  def __ne__(self, other):
9241
    return not (self == other)
9242
 
9243
class getAllItemsInRange_args:
9244
  """
9245
  Attributes:
9246
   - offset
9247
   - limit
9248
  """
9249
 
9250
  thrift_spec = (
9251
    None, # 0
9252
    (1, TType.I64, 'offset', None, None, ), # 1
9253
    (2, TType.I64, 'limit', None, None, ), # 2
9254
  )
9255
 
9256
  def __init__(self, offset=None, limit=None,):
9257
    self.offset = offset
9258
    self.limit = limit
9259
 
9260
  def read(self, iprot):
9261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9263
      return
9264
    iprot.readStructBegin()
9265
    while True:
9266
      (fname, ftype, fid) = iprot.readFieldBegin()
9267
      if ftype == TType.STOP:
9268
        break
9269
      if fid == 1:
9270
        if ftype == TType.I64:
9271
          self.offset = iprot.readI64();
9272
        else:
9273
          iprot.skip(ftype)
9274
      elif fid == 2:
9275
        if ftype == TType.I64:
9276
          self.limit = iprot.readI64();
9277
        else:
9278
          iprot.skip(ftype)
9279
      else:
9280
        iprot.skip(ftype)
9281
      iprot.readFieldEnd()
9282
    iprot.readStructEnd()
9283
 
9284
  def write(self, oprot):
9285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9287
      return
9288
    oprot.writeStructBegin('getAllItemsInRange_args')
9289
    if self.offset is not None:
9290
      oprot.writeFieldBegin('offset', TType.I64, 1)
9291
      oprot.writeI64(self.offset)
9292
      oprot.writeFieldEnd()
9293
    if self.limit is not None:
9294
      oprot.writeFieldBegin('limit', TType.I64, 2)
9295
      oprot.writeI64(self.limit)
9296
      oprot.writeFieldEnd()
9297
    oprot.writeFieldStop()
9298
    oprot.writeStructEnd()
9299
 
9300
  def validate(self):
9301
    return
9302
 
9303
 
9304
  def __repr__(self):
9305
    L = ['%s=%r' % (key, value)
9306
      for key, value in self.__dict__.iteritems()]
9307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9308
 
9309
  def __eq__(self, other):
9310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9311
 
9312
  def __ne__(self, other):
9313
    return not (self == other)
9314
 
9315
class getAllItemsInRange_result:
9316
  """
9317
  Attributes:
9318
   - success
9319
   - cex
9320
  """
9321
 
9322
  thrift_spec = (
9323
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9324
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9325
  )
9326
 
9327
  def __init__(self, success=None, cex=None,):
9328
    self.success = success
9329
    self.cex = cex
9330
 
9331
  def read(self, iprot):
9332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9334
      return
9335
    iprot.readStructBegin()
9336
    while True:
9337
      (fname, ftype, fid) = iprot.readFieldBegin()
9338
      if ftype == TType.STOP:
9339
        break
9340
      if fid == 0:
9341
        if ftype == TType.LIST:
9342
          self.success = []
8590 kshitij.so 9343
          (_etype77, _size74) = iprot.readListBegin()
9344
          for _i78 in xrange(_size74):
9345
            _elem79 = Item()
9346
            _elem79.read(iprot)
9347
            self.success.append(_elem79)
5944 mandeep.dh 9348
          iprot.readListEnd()
9349
        else:
9350
          iprot.skip(ftype)
9351
      elif fid == 1:
9352
        if ftype == TType.STRUCT:
9353
          self.cex = CatalogServiceException()
9354
          self.cex.read(iprot)
9355
        else:
9356
          iprot.skip(ftype)
9357
      else:
9358
        iprot.skip(ftype)
9359
      iprot.readFieldEnd()
9360
    iprot.readStructEnd()
9361
 
9362
  def write(self, oprot):
9363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9365
      return
9366
    oprot.writeStructBegin('getAllItemsInRange_result')
9367
    if self.success is not None:
9368
      oprot.writeFieldBegin('success', TType.LIST, 0)
9369
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9370
      for iter80 in self.success:
9371
        iter80.write(oprot)
5944 mandeep.dh 9372
      oprot.writeListEnd()
9373
      oprot.writeFieldEnd()
9374
    if self.cex is not None:
9375
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9376
      self.cex.write(oprot)
9377
      oprot.writeFieldEnd()
9378
    oprot.writeFieldStop()
9379
    oprot.writeStructEnd()
9380
 
9381
  def validate(self):
9382
    return
9383
 
9384
 
9385
  def __repr__(self):
9386
    L = ['%s=%r' % (key, value)
9387
      for key, value in self.__dict__.iteritems()]
9388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9389
 
9390
  def __eq__(self, other):
9391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9392
 
9393
  def __ne__(self, other):
9394
    return not (self == other)
9395
 
9396
class getAllItemsByStatusInRange_args:
9397
  """
9398
  Attributes:
9399
   - itemStatus
9400
   - offset
9401
   - limit
9402
  """
9403
 
9404
  thrift_spec = (
9405
    None, # 0
9406
    (1, TType.I32, 'itemStatus', None, None, ), # 1
9407
    (2, TType.I64, 'offset', None, None, ), # 2
9408
    (3, TType.I64, 'limit', None, None, ), # 3
9409
  )
9410
 
9411
  def __init__(self, itemStatus=None, offset=None, limit=None,):
9412
    self.itemStatus = itemStatus
9413
    self.offset = offset
9414
    self.limit = limit
9415
 
9416
  def read(self, iprot):
9417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9419
      return
9420
    iprot.readStructBegin()
9421
    while True:
9422
      (fname, ftype, fid) = iprot.readFieldBegin()
9423
      if ftype == TType.STOP:
9424
        break
9425
      if fid == 1:
9426
        if ftype == TType.I32:
9427
          self.itemStatus = iprot.readI32();
9428
        else:
9429
          iprot.skip(ftype)
9430
      elif fid == 2:
9431
        if ftype == TType.I64:
9432
          self.offset = iprot.readI64();
9433
        else:
9434
          iprot.skip(ftype)
9435
      elif fid == 3:
9436
        if ftype == TType.I64:
9437
          self.limit = iprot.readI64();
9438
        else:
9439
          iprot.skip(ftype)
9440
      else:
9441
        iprot.skip(ftype)
9442
      iprot.readFieldEnd()
9443
    iprot.readStructEnd()
9444
 
9445
  def write(self, oprot):
9446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9448
      return
9449
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
9450
    if self.itemStatus is not None:
9451
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
9452
      oprot.writeI32(self.itemStatus)
9453
      oprot.writeFieldEnd()
9454
    if self.offset is not None:
9455
      oprot.writeFieldBegin('offset', TType.I64, 2)
9456
      oprot.writeI64(self.offset)
9457
      oprot.writeFieldEnd()
9458
    if self.limit is not None:
9459
      oprot.writeFieldBegin('limit', TType.I64, 3)
9460
      oprot.writeI64(self.limit)
9461
      oprot.writeFieldEnd()
9462
    oprot.writeFieldStop()
9463
    oprot.writeStructEnd()
9464
 
9465
  def validate(self):
9466
    return
9467
 
9468
 
9469
  def __repr__(self):
9470
    L = ['%s=%r' % (key, value)
9471
      for key, value in self.__dict__.iteritems()]
9472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9473
 
9474
  def __eq__(self, other):
9475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9476
 
9477
  def __ne__(self, other):
9478
    return not (self == other)
9479
 
9480
class getAllItemsByStatusInRange_result:
9481
  """
9482
  Attributes:
9483
   - success
9484
   - cex
9485
  """
9486
 
9487
  thrift_spec = (
9488
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9489
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9490
  )
9491
 
9492
  def __init__(self, success=None, cex=None,):
9493
    self.success = success
9494
    self.cex = cex
9495
 
9496
  def read(self, iprot):
9497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9499
      return
9500
    iprot.readStructBegin()
9501
    while True:
9502
      (fname, ftype, fid) = iprot.readFieldBegin()
9503
      if ftype == TType.STOP:
9504
        break
9505
      if fid == 0:
9506
        if ftype == TType.LIST:
9507
          self.success = []
8590 kshitij.so 9508
          (_etype84, _size81) = iprot.readListBegin()
9509
          for _i85 in xrange(_size81):
9510
            _elem86 = Item()
9511
            _elem86.read(iprot)
9512
            self.success.append(_elem86)
5944 mandeep.dh 9513
          iprot.readListEnd()
9514
        else:
9515
          iprot.skip(ftype)
9516
      elif fid == 1:
9517
        if ftype == TType.STRUCT:
9518
          self.cex = CatalogServiceException()
9519
          self.cex.read(iprot)
9520
        else:
9521
          iprot.skip(ftype)
9522
      else:
9523
        iprot.skip(ftype)
9524
      iprot.readFieldEnd()
9525
    iprot.readStructEnd()
9526
 
9527
  def write(self, oprot):
9528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9530
      return
9531
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
9532
    if self.success is not None:
9533
      oprot.writeFieldBegin('success', TType.LIST, 0)
9534
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9535
      for iter87 in self.success:
9536
        iter87.write(oprot)
5944 mandeep.dh 9537
      oprot.writeListEnd()
9538
      oprot.writeFieldEnd()
9539
    if self.cex is not None:
9540
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9541
      self.cex.write(oprot)
9542
      oprot.writeFieldEnd()
9543
    oprot.writeFieldStop()
9544
    oprot.writeStructEnd()
9545
 
9546
  def validate(self):
9547
    return
9548
 
9549
 
9550
  def __repr__(self):
9551
    L = ['%s=%r' % (key, value)
9552
      for key, value in self.__dict__.iteritems()]
9553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9554
 
9555
  def __eq__(self, other):
9556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9557
 
9558
  def __ne__(self, other):
9559
    return not (self == other)
9560
 
9561
class getItemCountByStatus_args:
9562
  """
9563
  Attributes:
9564
   - useStatus
9565
   - itemStatus
9566
  """
9567
 
9568
  thrift_spec = (
9569
    None, # 0
9570
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
9571
    (2, TType.I32, 'itemStatus', None, None, ), # 2
9572
  )
9573
 
9574
  def __init__(self, useStatus=None, itemStatus=None,):
9575
    self.useStatus = useStatus
9576
    self.itemStatus = itemStatus
9577
 
9578
  def read(self, iprot):
9579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9581
      return
9582
    iprot.readStructBegin()
9583
    while True:
9584
      (fname, ftype, fid) = iprot.readFieldBegin()
9585
      if ftype == TType.STOP:
9586
        break
9587
      if fid == 1:
9588
        if ftype == TType.BOOL:
9589
          self.useStatus = iprot.readBool();
9590
        else:
9591
          iprot.skip(ftype)
9592
      elif fid == 2:
9593
        if ftype == TType.I32:
9594
          self.itemStatus = iprot.readI32();
9595
        else:
9596
          iprot.skip(ftype)
9597
      else:
9598
        iprot.skip(ftype)
9599
      iprot.readFieldEnd()
9600
    iprot.readStructEnd()
9601
 
9602
  def write(self, oprot):
9603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9605
      return
9606
    oprot.writeStructBegin('getItemCountByStatus_args')
9607
    if self.useStatus is not None:
9608
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
9609
      oprot.writeBool(self.useStatus)
9610
      oprot.writeFieldEnd()
9611
    if self.itemStatus is not None:
9612
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
9613
      oprot.writeI32(self.itemStatus)
9614
      oprot.writeFieldEnd()
9615
    oprot.writeFieldStop()
9616
    oprot.writeStructEnd()
9617
 
9618
  def validate(self):
9619
    return
9620
 
9621
 
9622
  def __repr__(self):
9623
    L = ['%s=%r' % (key, value)
9624
      for key, value in self.__dict__.iteritems()]
9625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9626
 
9627
  def __eq__(self, other):
9628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9629
 
9630
  def __ne__(self, other):
9631
    return not (self == other)
9632
 
9633
class getItemCountByStatus_result:
9634
  """
9635
  Attributes:
9636
   - success
9637
  """
9638
 
9639
  thrift_spec = (
9640
    (0, TType.I32, 'success', None, None, ), # 0
9641
  )
9642
 
9643
  def __init__(self, success=None,):
9644
    self.success = success
9645
 
9646
  def read(self, iprot):
9647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9649
      return
9650
    iprot.readStructBegin()
9651
    while True:
9652
      (fname, ftype, fid) = iprot.readFieldBegin()
9653
      if ftype == TType.STOP:
9654
        break
9655
      if fid == 0:
9656
        if ftype == TType.I32:
9657
          self.success = iprot.readI32();
9658
        else:
9659
          iprot.skip(ftype)
9660
      else:
9661
        iprot.skip(ftype)
9662
      iprot.readFieldEnd()
9663
    iprot.readStructEnd()
9664
 
9665
  def write(self, oprot):
9666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9668
      return
9669
    oprot.writeStructBegin('getItemCountByStatus_result')
9670
    if self.success is not None:
9671
      oprot.writeFieldBegin('success', TType.I32, 0)
9672
      oprot.writeI32(self.success)
9673
      oprot.writeFieldEnd()
9674
    oprot.writeFieldStop()
9675
    oprot.writeStructEnd()
9676
 
9677
  def validate(self):
9678
    return
9679
 
9680
 
9681
  def __repr__(self):
9682
    L = ['%s=%r' % (key, value)
9683
      for key, value in self.__dict__.iteritems()]
9684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9685
 
9686
  def __eq__(self, other):
9687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9688
 
9689
  def __ne__(self, other):
9690
    return not (self == other)
9691
 
9692
class getBestSellers_args:
9693
 
9694
  thrift_spec = (
9695
  )
9696
 
9697
  def read(self, iprot):
9698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9700
      return
9701
    iprot.readStructBegin()
9702
    while True:
9703
      (fname, ftype, fid) = iprot.readFieldBegin()
9704
      if ftype == TType.STOP:
9705
        break
9706
      else:
9707
        iprot.skip(ftype)
9708
      iprot.readFieldEnd()
9709
    iprot.readStructEnd()
9710
 
9711
  def write(self, oprot):
9712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9714
      return
9715
    oprot.writeStructBegin('getBestSellers_args')
9716
    oprot.writeFieldStop()
9717
    oprot.writeStructEnd()
9718
 
9719
  def validate(self):
9720
    return
9721
 
9722
 
9723
  def __repr__(self):
9724
    L = ['%s=%r' % (key, value)
9725
      for key, value in self.__dict__.iteritems()]
9726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9727
 
9728
  def __eq__(self, other):
9729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9730
 
9731
  def __ne__(self, other):
9732
    return not (self == other)
9733
 
9734
class getBestSellers_result:
9735
  """
9736
  Attributes:
9737
   - success
9738
   - isex
9739
  """
9740
 
9741
  thrift_spec = (
9742
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9743
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9744
  )
9745
 
9746
  def __init__(self, success=None, isex=None,):
9747
    self.success = success
9748
    self.isex = isex
9749
 
9750
  def read(self, iprot):
9751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9753
      return
9754
    iprot.readStructBegin()
9755
    while True:
9756
      (fname, ftype, fid) = iprot.readFieldBegin()
9757
      if ftype == TType.STOP:
9758
        break
9759
      if fid == 0:
9760
        if ftype == TType.LIST:
9761
          self.success = []
8590 kshitij.so 9762
          (_etype91, _size88) = iprot.readListBegin()
9763
          for _i92 in xrange(_size88):
9764
            _elem93 = Item()
9765
            _elem93.read(iprot)
9766
            self.success.append(_elem93)
5944 mandeep.dh 9767
          iprot.readListEnd()
9768
        else:
9769
          iprot.skip(ftype)
9770
      elif fid == 1:
9771
        if ftype == TType.STRUCT:
9772
          self.isex = CatalogServiceException()
9773
          self.isex.read(iprot)
9774
        else:
9775
          iprot.skip(ftype)
9776
      else:
9777
        iprot.skip(ftype)
9778
      iprot.readFieldEnd()
9779
    iprot.readStructEnd()
9780
 
9781
  def write(self, oprot):
9782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9784
      return
9785
    oprot.writeStructBegin('getBestSellers_result')
9786
    if self.success is not None:
9787
      oprot.writeFieldBegin('success', TType.LIST, 0)
9788
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9789
      for iter94 in self.success:
9790
        iter94.write(oprot)
5944 mandeep.dh 9791
      oprot.writeListEnd()
9792
      oprot.writeFieldEnd()
9793
    if self.isex is not None:
9794
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9795
      self.isex.write(oprot)
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 getBestSellersCatalogIds_args:
9816
  """
9817
  Attributes:
9818
   - beginIndex
9819
   - totalItems
9820
   - brand
9821
   - category
9822
  """
9823
 
9824
  thrift_spec = (
9825
    None, # 0
9826
    (1, TType.I64, 'beginIndex', None, None, ), # 1
9827
    (2, TType.I64, 'totalItems', None, None, ), # 2
9828
    (3, TType.STRING, 'brand', None, None, ), # 3
9829
    (4, TType.I64, 'category', None, None, ), # 4
9830
  )
9831
 
9832
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
9833
    self.beginIndex = beginIndex
9834
    self.totalItems = totalItems
9835
    self.brand = brand
9836
    self.category = category
9837
 
9838
  def read(self, iprot):
9839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9841
      return
9842
    iprot.readStructBegin()
9843
    while True:
9844
      (fname, ftype, fid) = iprot.readFieldBegin()
9845
      if ftype == TType.STOP:
9846
        break
9847
      if fid == 1:
9848
        if ftype == TType.I64:
9849
          self.beginIndex = iprot.readI64();
9850
        else:
9851
          iprot.skip(ftype)
9852
      elif fid == 2:
9853
        if ftype == TType.I64:
9854
          self.totalItems = iprot.readI64();
9855
        else:
9856
          iprot.skip(ftype)
9857
      elif fid == 3:
9858
        if ftype == TType.STRING:
9859
          self.brand = iprot.readString();
9860
        else:
9861
          iprot.skip(ftype)
9862
      elif fid == 4:
9863
        if ftype == TType.I64:
9864
          self.category = iprot.readI64();
9865
        else:
9866
          iprot.skip(ftype)
9867
      else:
9868
        iprot.skip(ftype)
9869
      iprot.readFieldEnd()
9870
    iprot.readStructEnd()
9871
 
9872
  def write(self, oprot):
9873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9875
      return
9876
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
9877
    if self.beginIndex is not None:
9878
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
9879
      oprot.writeI64(self.beginIndex)
9880
      oprot.writeFieldEnd()
9881
    if self.totalItems is not None:
9882
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
9883
      oprot.writeI64(self.totalItems)
9884
      oprot.writeFieldEnd()
9885
    if self.brand is not None:
9886
      oprot.writeFieldBegin('brand', TType.STRING, 3)
9887
      oprot.writeString(self.brand)
9888
      oprot.writeFieldEnd()
9889
    if self.category is not None:
9890
      oprot.writeFieldBegin('category', TType.I64, 4)
9891
      oprot.writeI64(self.category)
9892
      oprot.writeFieldEnd()
9893
    oprot.writeFieldStop()
9894
    oprot.writeStructEnd()
9895
 
9896
  def validate(self):
9897
    return
9898
 
9899
 
9900
  def __repr__(self):
9901
    L = ['%s=%r' % (key, value)
9902
      for key, value in self.__dict__.iteritems()]
9903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9904
 
9905
  def __eq__(self, other):
9906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9907
 
9908
  def __ne__(self, other):
9909
    return not (self == other)
9910
 
9911
class getBestSellersCatalogIds_result:
9912
  """
9913
  Attributes:
9914
   - success
9915
   - cex
9916
  """
9917
 
9918
  thrift_spec = (
9919
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9920
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9921
  )
9922
 
9923
  def __init__(self, success=None, cex=None,):
9924
    self.success = success
9925
    self.cex = cex
9926
 
9927
  def read(self, iprot):
9928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9930
      return
9931
    iprot.readStructBegin()
9932
    while True:
9933
      (fname, ftype, fid) = iprot.readFieldBegin()
9934
      if ftype == TType.STOP:
9935
        break
9936
      if fid == 0:
9937
        if ftype == TType.LIST:
9938
          self.success = []
8590 kshitij.so 9939
          (_etype98, _size95) = iprot.readListBegin()
9940
          for _i99 in xrange(_size95):
9941
            _elem100 = iprot.readI64();
9942
            self.success.append(_elem100)
5944 mandeep.dh 9943
          iprot.readListEnd()
9944
        else:
9945
          iprot.skip(ftype)
9946
      elif fid == 1:
9947
        if ftype == TType.STRUCT:
9948
          self.cex = CatalogServiceException()
9949
          self.cex.read(iprot)
9950
        else:
9951
          iprot.skip(ftype)
9952
      else:
9953
        iprot.skip(ftype)
9954
      iprot.readFieldEnd()
9955
    iprot.readStructEnd()
9956
 
9957
  def write(self, oprot):
9958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9960
      return
9961
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
9962
    if self.success is not None:
9963
      oprot.writeFieldBegin('success', TType.LIST, 0)
9964
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 9965
      for iter101 in self.success:
9966
        oprot.writeI64(iter101)
5944 mandeep.dh 9967
      oprot.writeListEnd()
9968
      oprot.writeFieldEnd()
9969
    if self.cex is not None:
9970
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9971
      self.cex.write(oprot)
9972
      oprot.writeFieldEnd()
9973
    oprot.writeFieldStop()
9974
    oprot.writeStructEnd()
9975
 
9976
  def validate(self):
9977
    return
9978
 
9979
 
9980
  def __repr__(self):
9981
    L = ['%s=%r' % (key, value)
9982
      for key, value in self.__dict__.iteritems()]
9983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9984
 
9985
  def __eq__(self, other):
9986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9987
 
9988
  def __ne__(self, other):
9989
    return not (self == other)
9990
 
9991
class getBestSellersCount_args:
9992
 
9993
  thrift_spec = (
9994
  )
9995
 
9996
  def read(self, iprot):
9997
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9998
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9999
      return
10000
    iprot.readStructBegin()
10001
    while True:
10002
      (fname, ftype, fid) = iprot.readFieldBegin()
10003
      if ftype == TType.STOP:
10004
        break
10005
      else:
10006
        iprot.skip(ftype)
10007
      iprot.readFieldEnd()
10008
    iprot.readStructEnd()
10009
 
10010
  def write(self, oprot):
10011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10013
      return
10014
    oprot.writeStructBegin('getBestSellersCount_args')
10015
    oprot.writeFieldStop()
10016
    oprot.writeStructEnd()
10017
 
10018
  def validate(self):
10019
    return
10020
 
10021
 
10022
  def __repr__(self):
10023
    L = ['%s=%r' % (key, value)
10024
      for key, value in self.__dict__.iteritems()]
10025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10026
 
10027
  def __eq__(self, other):
10028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10029
 
10030
  def __ne__(self, other):
10031
    return not (self == other)
10032
 
10033
class getBestSellersCount_result:
10034
  """
10035
  Attributes:
10036
   - success
10037
   - cex
10038
  """
10039
 
10040
  thrift_spec = (
10041
    (0, TType.I64, 'success', None, None, ), # 0
10042
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10043
  )
10044
 
10045
  def __init__(self, success=None, cex=None,):
10046
    self.success = success
10047
    self.cex = cex
10048
 
10049
  def read(self, iprot):
10050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10052
      return
10053
    iprot.readStructBegin()
10054
    while True:
10055
      (fname, ftype, fid) = iprot.readFieldBegin()
10056
      if ftype == TType.STOP:
10057
        break
10058
      if fid == 0:
10059
        if ftype == TType.I64:
10060
          self.success = iprot.readI64();
10061
        else:
10062
          iprot.skip(ftype)
10063
      elif fid == 1:
10064
        if ftype == TType.STRUCT:
10065
          self.cex = CatalogServiceException()
10066
          self.cex.read(iprot)
10067
        else:
10068
          iprot.skip(ftype)
10069
      else:
10070
        iprot.skip(ftype)
10071
      iprot.readFieldEnd()
10072
    iprot.readStructEnd()
10073
 
10074
  def write(self, oprot):
10075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10077
      return
10078
    oprot.writeStructBegin('getBestSellersCount_result')
10079
    if self.success is not None:
10080
      oprot.writeFieldBegin('success', TType.I64, 0)
10081
      oprot.writeI64(self.success)
10082
      oprot.writeFieldEnd()
10083
    if self.cex is not None:
10084
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10085
      self.cex.write(oprot)
10086
      oprot.writeFieldEnd()
10087
    oprot.writeFieldStop()
10088
    oprot.writeStructEnd()
10089
 
10090
  def validate(self):
10091
    return
10092
 
10093
 
10094
  def __repr__(self):
10095
    L = ['%s=%r' % (key, value)
10096
      for key, value in self.__dict__.iteritems()]
10097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10098
 
10099
  def __eq__(self, other):
10100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10101
 
10102
  def __ne__(self, other):
10103
    return not (self == other)
10104
 
10105
class getBestDeals_args:
10106
 
10107
  thrift_spec = (
10108
  )
10109
 
10110
  def read(self, iprot):
10111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10113
      return
10114
    iprot.readStructBegin()
10115
    while True:
10116
      (fname, ftype, fid) = iprot.readFieldBegin()
10117
      if ftype == TType.STOP:
10118
        break
10119
      else:
10120
        iprot.skip(ftype)
10121
      iprot.readFieldEnd()
10122
    iprot.readStructEnd()
10123
 
10124
  def write(self, oprot):
10125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10127
      return
10128
    oprot.writeStructBegin('getBestDeals_args')
10129
    oprot.writeFieldStop()
10130
    oprot.writeStructEnd()
10131
 
10132
  def validate(self):
10133
    return
10134
 
10135
 
10136
  def __repr__(self):
10137
    L = ['%s=%r' % (key, value)
10138
      for key, value in self.__dict__.iteritems()]
10139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10140
 
10141
  def __eq__(self, other):
10142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10143
 
10144
  def __ne__(self, other):
10145
    return not (self == other)
10146
 
10147
class getBestDeals_result:
10148
  """
10149
  Attributes:
10150
   - success
10151
   - isex
10152
  """
10153
 
10154
  thrift_spec = (
10155
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10156
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10157
  )
10158
 
10159
  def __init__(self, success=None, isex=None,):
10160
    self.success = success
10161
    self.isex = isex
10162
 
10163
  def read(self, iprot):
10164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10166
      return
10167
    iprot.readStructBegin()
10168
    while True:
10169
      (fname, ftype, fid) = iprot.readFieldBegin()
10170
      if ftype == TType.STOP:
10171
        break
10172
      if fid == 0:
10173
        if ftype == TType.LIST:
10174
          self.success = []
8590 kshitij.so 10175
          (_etype105, _size102) = iprot.readListBegin()
10176
          for _i106 in xrange(_size102):
10177
            _elem107 = Item()
10178
            _elem107.read(iprot)
10179
            self.success.append(_elem107)
5944 mandeep.dh 10180
          iprot.readListEnd()
10181
        else:
10182
          iprot.skip(ftype)
10183
      elif fid == 1:
10184
        if ftype == TType.STRUCT:
10185
          self.isex = CatalogServiceException()
10186
          self.isex.read(iprot)
10187
        else:
10188
          iprot.skip(ftype)
10189
      else:
10190
        iprot.skip(ftype)
10191
      iprot.readFieldEnd()
10192
    iprot.readStructEnd()
10193
 
10194
  def write(self, oprot):
10195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10197
      return
10198
    oprot.writeStructBegin('getBestDeals_result')
10199
    if self.success is not None:
10200
      oprot.writeFieldBegin('success', TType.LIST, 0)
10201
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10202
      for iter108 in self.success:
10203
        iter108.write(oprot)
5944 mandeep.dh 10204
      oprot.writeListEnd()
10205
      oprot.writeFieldEnd()
10206
    if self.isex is not None:
10207
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10208
      self.isex.write(oprot)
10209
      oprot.writeFieldEnd()
10210
    oprot.writeFieldStop()
10211
    oprot.writeStructEnd()
10212
 
10213
  def validate(self):
10214
    return
10215
 
10216
 
10217
  def __repr__(self):
10218
    L = ['%s=%r' % (key, value)
10219
      for key, value in self.__dict__.iteritems()]
10220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10221
 
10222
  def __eq__(self, other):
10223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10224
 
10225
  def __ne__(self, other):
10226
    return not (self == other)
10227
 
10228
class getBestDealsCatalogIds_args:
10229
  """
10230
  Attributes:
10231
   - beginIndex
10232
   - totalItems
10233
   - brand
10234
   - category
10235
  """
10236
 
10237
  thrift_spec = (
10238
    None, # 0
10239
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10240
    (2, TType.I64, 'totalItems', None, None, ), # 2
10241
    (3, TType.STRING, 'brand', None, None, ), # 3
10242
    (4, TType.I64, 'category', None, None, ), # 4
10243
  )
10244
 
10245
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
10246
    self.beginIndex = beginIndex
10247
    self.totalItems = totalItems
10248
    self.brand = brand
10249
    self.category = category
10250
 
10251
  def read(self, iprot):
10252
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10253
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10254
      return
10255
    iprot.readStructBegin()
10256
    while True:
10257
      (fname, ftype, fid) = iprot.readFieldBegin()
10258
      if ftype == TType.STOP:
10259
        break
10260
      if fid == 1:
10261
        if ftype == TType.I64:
10262
          self.beginIndex = iprot.readI64();
10263
        else:
10264
          iprot.skip(ftype)
10265
      elif fid == 2:
10266
        if ftype == TType.I64:
10267
          self.totalItems = iprot.readI64();
10268
        else:
10269
          iprot.skip(ftype)
10270
      elif fid == 3:
10271
        if ftype == TType.STRING:
10272
          self.brand = iprot.readString();
10273
        else:
10274
          iprot.skip(ftype)
10275
      elif fid == 4:
10276
        if ftype == TType.I64:
10277
          self.category = iprot.readI64();
10278
        else:
10279
          iprot.skip(ftype)
10280
      else:
10281
        iprot.skip(ftype)
10282
      iprot.readFieldEnd()
10283
    iprot.readStructEnd()
10284
 
10285
  def write(self, oprot):
10286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10288
      return
10289
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
10290
    if self.beginIndex is not None:
10291
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10292
      oprot.writeI64(self.beginIndex)
10293
      oprot.writeFieldEnd()
10294
    if self.totalItems is not None:
10295
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10296
      oprot.writeI64(self.totalItems)
10297
      oprot.writeFieldEnd()
10298
    if self.brand is not None:
10299
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10300
      oprot.writeString(self.brand)
10301
      oprot.writeFieldEnd()
10302
    if self.category is not None:
10303
      oprot.writeFieldBegin('category', TType.I64, 4)
10304
      oprot.writeI64(self.category)
10305
      oprot.writeFieldEnd()
10306
    oprot.writeFieldStop()
10307
    oprot.writeStructEnd()
10308
 
10309
  def validate(self):
10310
    return
10311
 
10312
 
10313
  def __repr__(self):
10314
    L = ['%s=%r' % (key, value)
10315
      for key, value in self.__dict__.iteritems()]
10316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10317
 
10318
  def __eq__(self, other):
10319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10320
 
10321
  def __ne__(self, other):
10322
    return not (self == other)
10323
 
10324
class getBestDealsCatalogIds_result:
10325
  """
10326
  Attributes:
10327
   - success
10328
   - cex
10329
  """
10330
 
10331
  thrift_spec = (
10332
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10333
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10334
  )
10335
 
10336
  def __init__(self, success=None, cex=None,):
10337
    self.success = success
10338
    self.cex = cex
10339
 
10340
  def read(self, iprot):
10341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10343
      return
10344
    iprot.readStructBegin()
10345
    while True:
10346
      (fname, ftype, fid) = iprot.readFieldBegin()
10347
      if ftype == TType.STOP:
10348
        break
10349
      if fid == 0:
10350
        if ftype == TType.LIST:
10351
          self.success = []
8590 kshitij.so 10352
          (_etype112, _size109) = iprot.readListBegin()
10353
          for _i113 in xrange(_size109):
10354
            _elem114 = iprot.readI64();
10355
            self.success.append(_elem114)
5944 mandeep.dh 10356
          iprot.readListEnd()
10357
        else:
10358
          iprot.skip(ftype)
10359
      elif fid == 1:
10360
        if ftype == TType.STRUCT:
10361
          self.cex = CatalogServiceException()
10362
          self.cex.read(iprot)
10363
        else:
10364
          iprot.skip(ftype)
10365
      else:
10366
        iprot.skip(ftype)
10367
      iprot.readFieldEnd()
10368
    iprot.readStructEnd()
10369
 
10370
  def write(self, oprot):
10371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10373
      return
10374
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
10375
    if self.success is not None:
10376
      oprot.writeFieldBegin('success', TType.LIST, 0)
10377
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10378
      for iter115 in self.success:
10379
        oprot.writeI64(iter115)
5944 mandeep.dh 10380
      oprot.writeListEnd()
10381
      oprot.writeFieldEnd()
10382
    if self.cex is not None:
10383
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10384
      self.cex.write(oprot)
10385
      oprot.writeFieldEnd()
10386
    oprot.writeFieldStop()
10387
    oprot.writeStructEnd()
10388
 
10389
  def validate(self):
10390
    return
10391
 
10392
 
10393
  def __repr__(self):
10394
    L = ['%s=%r' % (key, value)
10395
      for key, value in self.__dict__.iteritems()]
10396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10397
 
10398
  def __eq__(self, other):
10399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10400
 
10401
  def __ne__(self, other):
10402
    return not (self == other)
10403
 
10404
class getBestDealsCount_args:
10405
 
10406
  thrift_spec = (
10407
  )
10408
 
10409
  def read(self, iprot):
10410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10412
      return
10413
    iprot.readStructBegin()
10414
    while True:
10415
      (fname, ftype, fid) = iprot.readFieldBegin()
10416
      if ftype == TType.STOP:
10417
        break
10418
      else:
10419
        iprot.skip(ftype)
10420
      iprot.readFieldEnd()
10421
    iprot.readStructEnd()
10422
 
10423
  def write(self, oprot):
10424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10426
      return
10427
    oprot.writeStructBegin('getBestDealsCount_args')
10428
    oprot.writeFieldStop()
10429
    oprot.writeStructEnd()
10430
 
10431
  def validate(self):
10432
    return
10433
 
10434
 
10435
  def __repr__(self):
10436
    L = ['%s=%r' % (key, value)
10437
      for key, value in self.__dict__.iteritems()]
10438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10439
 
10440
  def __eq__(self, other):
10441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10442
 
10443
  def __ne__(self, other):
10444
    return not (self == other)
10445
 
10446
class getBestDealsCount_result:
10447
  """
10448
  Attributes:
10449
   - success
10450
   - cex
10451
  """
10452
 
10453
  thrift_spec = (
10454
    (0, TType.I64, 'success', None, None, ), # 0
10455
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10456
  )
10457
 
10458
  def __init__(self, success=None, cex=None,):
10459
    self.success = success
10460
    self.cex = cex
10461
 
10462
  def read(self, iprot):
10463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10465
      return
10466
    iprot.readStructBegin()
10467
    while True:
10468
      (fname, ftype, fid) = iprot.readFieldBegin()
10469
      if ftype == TType.STOP:
10470
        break
10471
      if fid == 0:
10472
        if ftype == TType.I64:
10473
          self.success = iprot.readI64();
10474
        else:
10475
          iprot.skip(ftype)
10476
      elif fid == 1:
10477
        if ftype == TType.STRUCT:
10478
          self.cex = CatalogServiceException()
10479
          self.cex.read(iprot)
10480
        else:
10481
          iprot.skip(ftype)
10482
      else:
10483
        iprot.skip(ftype)
10484
      iprot.readFieldEnd()
10485
    iprot.readStructEnd()
10486
 
10487
  def write(self, oprot):
10488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10490
      return
10491
    oprot.writeStructBegin('getBestDealsCount_result')
10492
    if self.success is not None:
10493
      oprot.writeFieldBegin('success', TType.I64, 0)
10494
      oprot.writeI64(self.success)
10495
      oprot.writeFieldEnd()
10496
    if self.cex is not None:
10497
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10498
      self.cex.write(oprot)
10499
      oprot.writeFieldEnd()
10500
    oprot.writeFieldStop()
10501
    oprot.writeStructEnd()
10502
 
10503
  def validate(self):
10504
    return
10505
 
10506
 
10507
  def __repr__(self):
10508
    L = ['%s=%r' % (key, value)
10509
      for key, value in self.__dict__.iteritems()]
10510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10511
 
10512
  def __eq__(self, other):
10513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10514
 
10515
  def __ne__(self, other):
10516
    return not (self == other)
10517
 
10518
class getComingSoon_args:
10519
 
10520
  thrift_spec = (
10521
  )
10522
 
10523
  def read(self, iprot):
10524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10526
      return
10527
    iprot.readStructBegin()
10528
    while True:
10529
      (fname, ftype, fid) = iprot.readFieldBegin()
10530
      if ftype == TType.STOP:
10531
        break
10532
      else:
10533
        iprot.skip(ftype)
10534
      iprot.readFieldEnd()
10535
    iprot.readStructEnd()
10536
 
10537
  def write(self, oprot):
10538
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10539
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10540
      return
10541
    oprot.writeStructBegin('getComingSoon_args')
10542
    oprot.writeFieldStop()
10543
    oprot.writeStructEnd()
10544
 
10545
  def validate(self):
10546
    return
10547
 
10548
 
10549
  def __repr__(self):
10550
    L = ['%s=%r' % (key, value)
10551
      for key, value in self.__dict__.iteritems()]
10552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10553
 
10554
  def __eq__(self, other):
10555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10556
 
10557
  def __ne__(self, other):
10558
    return not (self == other)
10559
 
10560
class getComingSoon_result:
10561
  """
10562
  Attributes:
10563
   - success
10564
   - isex
10565
  """
10566
 
10567
  thrift_spec = (
10568
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10569
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10570
  )
10571
 
10572
  def __init__(self, success=None, isex=None,):
10573
    self.success = success
10574
    self.isex = isex
10575
 
10576
  def read(self, iprot):
10577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10579
      return
10580
    iprot.readStructBegin()
10581
    while True:
10582
      (fname, ftype, fid) = iprot.readFieldBegin()
10583
      if ftype == TType.STOP:
10584
        break
10585
      if fid == 0:
10586
        if ftype == TType.LIST:
10587
          self.success = []
8590 kshitij.so 10588
          (_etype119, _size116) = iprot.readListBegin()
10589
          for _i120 in xrange(_size116):
10590
            _elem121 = Item()
10591
            _elem121.read(iprot)
10592
            self.success.append(_elem121)
5944 mandeep.dh 10593
          iprot.readListEnd()
10594
        else:
10595
          iprot.skip(ftype)
10596
      elif fid == 1:
10597
        if ftype == TType.STRUCT:
10598
          self.isex = CatalogServiceException()
10599
          self.isex.read(iprot)
10600
        else:
10601
          iprot.skip(ftype)
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('getComingSoon_result')
10612
    if self.success is not None:
10613
      oprot.writeFieldBegin('success', TType.LIST, 0)
10614
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10615
      for iter122 in self.success:
10616
        iter122.write(oprot)
5944 mandeep.dh 10617
      oprot.writeListEnd()
10618
      oprot.writeFieldEnd()
10619
    if self.isex is not None:
10620
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10621
      self.isex.write(oprot)
10622
      oprot.writeFieldEnd()
10623
    oprot.writeFieldStop()
10624
    oprot.writeStructEnd()
10625
 
10626
  def validate(self):
10627
    return
10628
 
10629
 
10630
  def __repr__(self):
10631
    L = ['%s=%r' % (key, value)
10632
      for key, value in self.__dict__.iteritems()]
10633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10634
 
10635
  def __eq__(self, other):
10636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10637
 
10638
  def __ne__(self, other):
10639
    return not (self == other)
10640
 
10641
class getComingSoonCatalogIds_args:
10642
  """
10643
  Attributes:
10644
   - beginIndex
10645
   - totalItems
10646
   - brand
10647
   - category
10648
  """
10649
 
10650
  thrift_spec = (
10651
    None, # 0
10652
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10653
    (2, TType.I64, 'totalItems', None, None, ), # 2
10654
    (3, TType.STRING, 'brand', None, None, ), # 3
10655
    (4, TType.I64, 'category', None, None, ), # 4
10656
  )
10657
 
10658
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
10659
    self.beginIndex = beginIndex
10660
    self.totalItems = totalItems
10661
    self.brand = brand
10662
    self.category = category
10663
 
10664
  def read(self, iprot):
10665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10667
      return
10668
    iprot.readStructBegin()
10669
    while True:
10670
      (fname, ftype, fid) = iprot.readFieldBegin()
10671
      if ftype == TType.STOP:
10672
        break
10673
      if fid == 1:
10674
        if ftype == TType.I64:
10675
          self.beginIndex = iprot.readI64();
10676
        else:
10677
          iprot.skip(ftype)
10678
      elif fid == 2:
10679
        if ftype == TType.I64:
10680
          self.totalItems = iprot.readI64();
10681
        else:
10682
          iprot.skip(ftype)
10683
      elif fid == 3:
10684
        if ftype == TType.STRING:
10685
          self.brand = iprot.readString();
10686
        else:
10687
          iprot.skip(ftype)
10688
      elif fid == 4:
10689
        if ftype == TType.I64:
10690
          self.category = iprot.readI64();
10691
        else:
10692
          iprot.skip(ftype)
10693
      else:
10694
        iprot.skip(ftype)
10695
      iprot.readFieldEnd()
10696
    iprot.readStructEnd()
10697
 
10698
  def write(self, oprot):
10699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10701
      return
10702
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
10703
    if self.beginIndex is not None:
10704
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10705
      oprot.writeI64(self.beginIndex)
10706
      oprot.writeFieldEnd()
10707
    if self.totalItems is not None:
10708
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10709
      oprot.writeI64(self.totalItems)
10710
      oprot.writeFieldEnd()
10711
    if self.brand is not None:
10712
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10713
      oprot.writeString(self.brand)
10714
      oprot.writeFieldEnd()
10715
    if self.category is not None:
10716
      oprot.writeFieldBegin('category', TType.I64, 4)
10717
      oprot.writeI64(self.category)
10718
      oprot.writeFieldEnd()
10719
    oprot.writeFieldStop()
10720
    oprot.writeStructEnd()
10721
 
10722
  def validate(self):
10723
    return
10724
 
10725
 
10726
  def __repr__(self):
10727
    L = ['%s=%r' % (key, value)
10728
      for key, value in self.__dict__.iteritems()]
10729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10730
 
10731
  def __eq__(self, other):
10732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10733
 
10734
  def __ne__(self, other):
10735
    return not (self == other)
10736
 
10737
class getComingSoonCatalogIds_result:
10738
  """
10739
  Attributes:
10740
   - success
10741
   - cex
10742
  """
10743
 
10744
  thrift_spec = (
10745
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10746
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10747
  )
10748
 
10749
  def __init__(self, success=None, cex=None,):
10750
    self.success = success
10751
    self.cex = cex
10752
 
10753
  def read(self, iprot):
10754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10756
      return
10757
    iprot.readStructBegin()
10758
    while True:
10759
      (fname, ftype, fid) = iprot.readFieldBegin()
10760
      if ftype == TType.STOP:
10761
        break
10762
      if fid == 0:
10763
        if ftype == TType.LIST:
10764
          self.success = []
8590 kshitij.so 10765
          (_etype126, _size123) = iprot.readListBegin()
10766
          for _i127 in xrange(_size123):
10767
            _elem128 = iprot.readI64();
10768
            self.success.append(_elem128)
5944 mandeep.dh 10769
          iprot.readListEnd()
10770
        else:
10771
          iprot.skip(ftype)
10772
      elif fid == 1:
10773
        if ftype == TType.STRUCT:
10774
          self.cex = CatalogServiceException()
10775
          self.cex.read(iprot)
10776
        else:
10777
          iprot.skip(ftype)
10778
      else:
10779
        iprot.skip(ftype)
10780
      iprot.readFieldEnd()
10781
    iprot.readStructEnd()
10782
 
10783
  def write(self, oprot):
10784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10786
      return
10787
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
10788
    if self.success is not None:
10789
      oprot.writeFieldBegin('success', TType.LIST, 0)
10790
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10791
      for iter129 in self.success:
10792
        oprot.writeI64(iter129)
5944 mandeep.dh 10793
      oprot.writeListEnd()
10794
      oprot.writeFieldEnd()
10795
    if self.cex is not None:
10796
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10797
      self.cex.write(oprot)
10798
      oprot.writeFieldEnd()
10799
    oprot.writeFieldStop()
10800
    oprot.writeStructEnd()
10801
 
10802
  def validate(self):
10803
    return
10804
 
10805
 
10806
  def __repr__(self):
10807
    L = ['%s=%r' % (key, value)
10808
      for key, value in self.__dict__.iteritems()]
10809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10810
 
10811
  def __eq__(self, other):
10812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10813
 
10814
  def __ne__(self, other):
10815
    return not (self == other)
10816
 
10817
class getComingSoonCount_args:
10818
 
10819
  thrift_spec = (
10820
  )
10821
 
10822
  def read(self, iprot):
10823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10825
      return
10826
    iprot.readStructBegin()
10827
    while True:
10828
      (fname, ftype, fid) = iprot.readFieldBegin()
10829
      if ftype == TType.STOP:
10830
        break
10831
      else:
10832
        iprot.skip(ftype)
10833
      iprot.readFieldEnd()
10834
    iprot.readStructEnd()
10835
 
10836
  def write(self, oprot):
10837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10839
      return
10840
    oprot.writeStructBegin('getComingSoonCount_args')
10841
    oprot.writeFieldStop()
10842
    oprot.writeStructEnd()
10843
 
10844
  def validate(self):
10845
    return
10846
 
10847
 
10848
  def __repr__(self):
10849
    L = ['%s=%r' % (key, value)
10850
      for key, value in self.__dict__.iteritems()]
10851
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10852
 
10853
  def __eq__(self, other):
10854
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10855
 
10856
  def __ne__(self, other):
10857
    return not (self == other)
10858
 
10859
class getComingSoonCount_result:
10860
  """
10861
  Attributes:
10862
   - success
10863
   - cex
10864
  """
10865
 
10866
  thrift_spec = (
10867
    (0, TType.I64, 'success', None, None, ), # 0
10868
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10869
  )
10870
 
10871
  def __init__(self, success=None, cex=None,):
10872
    self.success = success
10873
    self.cex = cex
10874
 
10875
  def read(self, iprot):
10876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10878
      return
10879
    iprot.readStructBegin()
10880
    while True:
10881
      (fname, ftype, fid) = iprot.readFieldBegin()
10882
      if ftype == TType.STOP:
10883
        break
10884
      if fid == 0:
10885
        if ftype == TType.I64:
10886
          self.success = iprot.readI64();
10887
        else:
10888
          iprot.skip(ftype)
10889
      elif fid == 1:
10890
        if ftype == TType.STRUCT:
10891
          self.cex = CatalogServiceException()
10892
          self.cex.read(iprot)
10893
        else:
10894
          iprot.skip(ftype)
10895
      else:
10896
        iprot.skip(ftype)
10897
      iprot.readFieldEnd()
10898
    iprot.readStructEnd()
10899
 
10900
  def write(self, oprot):
10901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10903
      return
10904
    oprot.writeStructBegin('getComingSoonCount_result')
10905
    if self.success is not None:
10906
      oprot.writeFieldBegin('success', TType.I64, 0)
10907
      oprot.writeI64(self.success)
10908
      oprot.writeFieldEnd()
10909
    if self.cex is not None:
10910
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10911
      self.cex.write(oprot)
10912
      oprot.writeFieldEnd()
10913
    oprot.writeFieldStop()
10914
    oprot.writeStructEnd()
10915
 
10916
  def validate(self):
10917
    return
10918
 
10919
 
10920
  def __repr__(self):
10921
    L = ['%s=%r' % (key, value)
10922
      for key, value in self.__dict__.iteritems()]
10923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10924
 
10925
  def __eq__(self, other):
10926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10927
 
10928
  def __ne__(self, other):
10929
    return not (self == other)
10930
 
10931
class getLatestArrivals_args:
10932
 
10933
  thrift_spec = (
10934
  )
10935
 
10936
  def read(self, iprot):
10937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10939
      return
10940
    iprot.readStructBegin()
10941
    while True:
10942
      (fname, ftype, fid) = iprot.readFieldBegin()
10943
      if ftype == TType.STOP:
10944
        break
10945
      else:
10946
        iprot.skip(ftype)
10947
      iprot.readFieldEnd()
10948
    iprot.readStructEnd()
10949
 
10950
  def write(self, oprot):
10951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10953
      return
10954
    oprot.writeStructBegin('getLatestArrivals_args')
10955
    oprot.writeFieldStop()
10956
    oprot.writeStructEnd()
10957
 
10958
  def validate(self):
10959
    return
10960
 
10961
 
10962
  def __repr__(self):
10963
    L = ['%s=%r' % (key, value)
10964
      for key, value in self.__dict__.iteritems()]
10965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10966
 
10967
  def __eq__(self, other):
10968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10969
 
10970
  def __ne__(self, other):
10971
    return not (self == other)
10972
 
10973
class getLatestArrivals_result:
10974
  """
10975
  Attributes:
10976
   - success
10977
   - isex
10978
  """
10979
 
10980
  thrift_spec = (
10981
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10982
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10983
  )
10984
 
10985
  def __init__(self, success=None, isex=None,):
10986
    self.success = success
10987
    self.isex = isex
10988
 
10989
  def read(self, iprot):
10990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10992
      return
10993
    iprot.readStructBegin()
10994
    while True:
10995
      (fname, ftype, fid) = iprot.readFieldBegin()
10996
      if ftype == TType.STOP:
10997
        break
10998
      if fid == 0:
10999
        if ftype == TType.LIST:
11000
          self.success = []
8590 kshitij.so 11001
          (_etype133, _size130) = iprot.readListBegin()
11002
          for _i134 in xrange(_size130):
11003
            _elem135 = Item()
11004
            _elem135.read(iprot)
11005
            self.success.append(_elem135)
5944 mandeep.dh 11006
          iprot.readListEnd()
11007
        else:
11008
          iprot.skip(ftype)
11009
      elif fid == 1:
11010
        if ftype == TType.STRUCT:
11011
          self.isex = CatalogServiceException()
11012
          self.isex.read(iprot)
11013
        else:
11014
          iprot.skip(ftype)
11015
      else:
11016
        iprot.skip(ftype)
11017
      iprot.readFieldEnd()
11018
    iprot.readStructEnd()
11019
 
11020
  def write(self, oprot):
11021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11023
      return
11024
    oprot.writeStructBegin('getLatestArrivals_result')
11025
    if self.success is not None:
11026
      oprot.writeFieldBegin('success', TType.LIST, 0)
11027
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11028
      for iter136 in self.success:
11029
        iter136.write(oprot)
5944 mandeep.dh 11030
      oprot.writeListEnd()
11031
      oprot.writeFieldEnd()
11032
    if self.isex is not None:
11033
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11034
      self.isex.write(oprot)
11035
      oprot.writeFieldEnd()
11036
    oprot.writeFieldStop()
11037
    oprot.writeStructEnd()
11038
 
11039
  def validate(self):
11040
    return
11041
 
11042
 
11043
  def __repr__(self):
11044
    L = ['%s=%r' % (key, value)
11045
      for key, value in self.__dict__.iteritems()]
11046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11047
 
11048
  def __eq__(self, other):
11049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11050
 
11051
  def __ne__(self, other):
11052
    return not (self == other)
11053
 
11054
class getLatestArrivalsCatalogIds_args:
11055
  """
11056
  Attributes:
11057
   - beginIndex
11058
   - totalItems
11059
   - brand
11060
   - categories
11061
  """
11062
 
11063
  thrift_spec = (
11064
    None, # 0
11065
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11066
    (2, TType.I64, 'totalItems', None, None, ), # 2
11067
    (3, TType.STRING, 'brand', None, None, ), # 3
11068
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
11069
  )
11070
 
11071
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
11072
    self.beginIndex = beginIndex
11073
    self.totalItems = totalItems
11074
    self.brand = brand
11075
    self.categories = categories
11076
 
11077
  def read(self, iprot):
11078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11080
      return
11081
    iprot.readStructBegin()
11082
    while True:
11083
      (fname, ftype, fid) = iprot.readFieldBegin()
11084
      if ftype == TType.STOP:
11085
        break
11086
      if fid == 1:
11087
        if ftype == TType.I64:
11088
          self.beginIndex = iprot.readI64();
11089
        else:
11090
          iprot.skip(ftype)
11091
      elif fid == 2:
11092
        if ftype == TType.I64:
11093
          self.totalItems = iprot.readI64();
11094
        else:
11095
          iprot.skip(ftype)
11096
      elif fid == 3:
11097
        if ftype == TType.STRING:
11098
          self.brand = iprot.readString();
11099
        else:
11100
          iprot.skip(ftype)
11101
      elif fid == 4:
11102
        if ftype == TType.LIST:
11103
          self.categories = []
8590 kshitij.so 11104
          (_etype140, _size137) = iprot.readListBegin()
11105
          for _i141 in xrange(_size137):
11106
            _elem142 = iprot.readI64();
11107
            self.categories.append(_elem142)
5944 mandeep.dh 11108
          iprot.readListEnd()
11109
        else:
11110
          iprot.skip(ftype)
11111
      else:
11112
        iprot.skip(ftype)
11113
      iprot.readFieldEnd()
11114
    iprot.readStructEnd()
11115
 
11116
  def write(self, oprot):
11117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11119
      return
11120
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
11121
    if self.beginIndex is not None:
11122
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11123
      oprot.writeI64(self.beginIndex)
11124
      oprot.writeFieldEnd()
11125
    if self.totalItems is not None:
11126
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11127
      oprot.writeI64(self.totalItems)
11128
      oprot.writeFieldEnd()
11129
    if self.brand is not None:
11130
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11131
      oprot.writeString(self.brand)
11132
      oprot.writeFieldEnd()
11133
    if self.categories is not None:
11134
      oprot.writeFieldBegin('categories', TType.LIST, 4)
11135
      oprot.writeListBegin(TType.I64, len(self.categories))
8590 kshitij.so 11136
      for iter143 in self.categories:
11137
        oprot.writeI64(iter143)
5944 mandeep.dh 11138
      oprot.writeListEnd()
11139
      oprot.writeFieldEnd()
11140
    oprot.writeFieldStop()
11141
    oprot.writeStructEnd()
11142
 
11143
  def validate(self):
11144
    return
11145
 
11146
 
11147
  def __repr__(self):
11148
    L = ['%s=%r' % (key, value)
11149
      for key, value in self.__dict__.iteritems()]
11150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11151
 
11152
  def __eq__(self, other):
11153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11154
 
11155
  def __ne__(self, other):
11156
    return not (self == other)
11157
 
11158
class getLatestArrivalsCatalogIds_result:
11159
  """
11160
  Attributes:
11161
   - success
11162
   - cex
11163
  """
11164
 
11165
  thrift_spec = (
11166
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11167
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11168
  )
11169
 
11170
  def __init__(self, success=None, cex=None,):
11171
    self.success = success
11172
    self.cex = cex
11173
 
11174
  def read(self, iprot):
11175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11177
      return
11178
    iprot.readStructBegin()
11179
    while True:
11180
      (fname, ftype, fid) = iprot.readFieldBegin()
11181
      if ftype == TType.STOP:
11182
        break
11183
      if fid == 0:
11184
        if ftype == TType.LIST:
11185
          self.success = []
8590 kshitij.so 11186
          (_etype147, _size144) = iprot.readListBegin()
11187
          for _i148 in xrange(_size144):
11188
            _elem149 = iprot.readI64();
11189
            self.success.append(_elem149)
5944 mandeep.dh 11190
          iprot.readListEnd()
11191
        else:
11192
          iprot.skip(ftype)
11193
      elif fid == 1:
11194
        if ftype == TType.STRUCT:
11195
          self.cex = CatalogServiceException()
11196
          self.cex.read(iprot)
11197
        else:
11198
          iprot.skip(ftype)
11199
      else:
11200
        iprot.skip(ftype)
11201
      iprot.readFieldEnd()
11202
    iprot.readStructEnd()
11203
 
11204
  def write(self, oprot):
11205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11207
      return
11208
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
11209
    if self.success is not None:
11210
      oprot.writeFieldBegin('success', TType.LIST, 0)
11211
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 11212
      for iter150 in self.success:
11213
        oprot.writeI64(iter150)
5944 mandeep.dh 11214
      oprot.writeListEnd()
11215
      oprot.writeFieldEnd()
11216
    if self.cex is not None:
11217
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11218
      self.cex.write(oprot)
11219
      oprot.writeFieldEnd()
11220
    oprot.writeFieldStop()
11221
    oprot.writeStructEnd()
11222
 
11223
  def validate(self):
11224
    return
11225
 
11226
 
11227
  def __repr__(self):
11228
    L = ['%s=%r' % (key, value)
11229
      for key, value in self.__dict__.iteritems()]
11230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11231
 
11232
  def __eq__(self, other):
11233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11234
 
11235
  def __ne__(self, other):
11236
    return not (self == other)
11237
 
11238
class getLatestArrivalsCount_args:
11239
 
11240
  thrift_spec = (
11241
  )
11242
 
11243
  def read(self, iprot):
11244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11246
      return
11247
    iprot.readStructBegin()
11248
    while True:
11249
      (fname, ftype, fid) = iprot.readFieldBegin()
11250
      if ftype == TType.STOP:
11251
        break
11252
      else:
11253
        iprot.skip(ftype)
11254
      iprot.readFieldEnd()
11255
    iprot.readStructEnd()
11256
 
11257
  def write(self, oprot):
11258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11260
      return
11261
    oprot.writeStructBegin('getLatestArrivalsCount_args')
11262
    oprot.writeFieldStop()
11263
    oprot.writeStructEnd()
11264
 
11265
  def validate(self):
11266
    return
11267
 
11268
 
11269
  def __repr__(self):
11270
    L = ['%s=%r' % (key, value)
11271
      for key, value in self.__dict__.iteritems()]
11272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11273
 
11274
  def __eq__(self, other):
11275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11276
 
11277
  def __ne__(self, other):
11278
    return not (self == other)
11279
 
11280
class getLatestArrivalsCount_result:
11281
  """
11282
  Attributes:
11283
   - success
11284
   - cex
11285
  """
11286
 
11287
  thrift_spec = (
11288
    (0, TType.I64, 'success', None, None, ), # 0
11289
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11290
  )
11291
 
11292
  def __init__(self, success=None, cex=None,):
11293
    self.success = success
11294
    self.cex = cex
11295
 
11296
  def read(self, iprot):
11297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11299
      return
11300
    iprot.readStructBegin()
11301
    while True:
11302
      (fname, ftype, fid) = iprot.readFieldBegin()
11303
      if ftype == TType.STOP:
11304
        break
11305
      if fid == 0:
11306
        if ftype == TType.I64:
11307
          self.success = iprot.readI64();
11308
        else:
11309
          iprot.skip(ftype)
11310
      elif fid == 1:
11311
        if ftype == TType.STRUCT:
11312
          self.cex = CatalogServiceException()
11313
          self.cex.read(iprot)
11314
        else:
11315
          iprot.skip(ftype)
11316
      else:
11317
        iprot.skip(ftype)
11318
      iprot.readFieldEnd()
11319
    iprot.readStructEnd()
11320
 
11321
  def write(self, oprot):
11322
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11323
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11324
      return
11325
    oprot.writeStructBegin('getLatestArrivalsCount_result')
11326
    if self.success is not None:
11327
      oprot.writeFieldBegin('success', TType.I64, 0)
11328
      oprot.writeI64(self.success)
11329
      oprot.writeFieldEnd()
11330
    if self.cex is not None:
11331
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11332
      self.cex.write(oprot)
11333
      oprot.writeFieldEnd()
11334
    oprot.writeFieldStop()
11335
    oprot.writeStructEnd()
11336
 
11337
  def validate(self):
11338
    return
11339
 
11340
 
11341
  def __repr__(self):
11342
    L = ['%s=%r' % (key, value)
11343
      for key, value in self.__dict__.iteritems()]
11344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11345
 
11346
  def __eq__(self, other):
11347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11348
 
11349
  def __ne__(self, other):
11350
    return not (self == other)
11351
 
11352
class generateNewEntityID_args:
11353
 
11354
  thrift_spec = (
11355
  )
11356
 
11357
  def read(self, iprot):
11358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11360
      return
11361
    iprot.readStructBegin()
11362
    while True:
11363
      (fname, ftype, fid) = iprot.readFieldBegin()
11364
      if ftype == TType.STOP:
11365
        break
11366
      else:
11367
        iprot.skip(ftype)
11368
      iprot.readFieldEnd()
11369
    iprot.readStructEnd()
11370
 
11371
  def write(self, oprot):
11372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11374
      return
11375
    oprot.writeStructBegin('generateNewEntityID_args')
11376
    oprot.writeFieldStop()
11377
    oprot.writeStructEnd()
11378
 
11379
  def validate(self):
11380
    return
11381
 
11382
 
11383
  def __repr__(self):
11384
    L = ['%s=%r' % (key, value)
11385
      for key, value in self.__dict__.iteritems()]
11386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11387
 
11388
  def __eq__(self, other):
11389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11390
 
11391
  def __ne__(self, other):
11392
    return not (self == other)
11393
 
11394
class generateNewEntityID_result:
11395
  """
11396
  Attributes:
11397
   - success
11398
  """
11399
 
11400
  thrift_spec = (
11401
    (0, TType.I64, 'success', None, None, ), # 0
11402
  )
11403
 
11404
  def __init__(self, success=None,):
11405
    self.success = success
11406
 
11407
  def read(self, iprot):
11408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11410
      return
11411
    iprot.readStructBegin()
11412
    while True:
11413
      (fname, ftype, fid) = iprot.readFieldBegin()
11414
      if ftype == TType.STOP:
11415
        break
11416
      if fid == 0:
11417
        if ftype == TType.I64:
11418
          self.success = iprot.readI64();
11419
        else:
11420
          iprot.skip(ftype)
11421
      else:
11422
        iprot.skip(ftype)
11423
      iprot.readFieldEnd()
11424
    iprot.readStructEnd()
11425
 
11426
  def write(self, oprot):
11427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11429
      return
11430
    oprot.writeStructBegin('generateNewEntityID_result')
11431
    if self.success is not None:
11432
      oprot.writeFieldBegin('success', TType.I64, 0)
11433
      oprot.writeI64(self.success)
11434
      oprot.writeFieldEnd()
11435
    oprot.writeFieldStop()
11436
    oprot.writeStructEnd()
11437
 
11438
  def validate(self):
11439
    return
11440
 
11441
 
11442
  def __repr__(self):
11443
    L = ['%s=%r' % (key, value)
11444
      for key, value in self.__dict__.iteritems()]
11445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11446
 
11447
  def __eq__(self, other):
11448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11449
 
11450
  def __ne__(self, other):
11451
    return not (self == other)
11452
 
11453
class addCategory_args:
11454
  """
11455
  Attributes:
11456
   - category
11457
  """
11458
 
11459
  thrift_spec = (
11460
    None, # 0
11461
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
11462
  )
11463
 
11464
  def __init__(self, category=None,):
11465
    self.category = category
11466
 
11467
  def read(self, iprot):
11468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11470
      return
11471
    iprot.readStructBegin()
11472
    while True:
11473
      (fname, ftype, fid) = iprot.readFieldBegin()
11474
      if ftype == TType.STOP:
11475
        break
11476
      if fid == 1:
11477
        if ftype == TType.STRUCT:
11478
          self.category = Category()
11479
          self.category.read(iprot)
11480
        else:
11481
          iprot.skip(ftype)
11482
      else:
11483
        iprot.skip(ftype)
11484
      iprot.readFieldEnd()
11485
    iprot.readStructEnd()
11486
 
11487
  def write(self, oprot):
11488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11490
      return
11491
    oprot.writeStructBegin('addCategory_args')
11492
    if self.category is not None:
11493
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
11494
      self.category.write(oprot)
11495
      oprot.writeFieldEnd()
11496
    oprot.writeFieldStop()
11497
    oprot.writeStructEnd()
11498
 
11499
  def validate(self):
11500
    return
11501
 
11502
 
11503
  def __repr__(self):
11504
    L = ['%s=%r' % (key, value)
11505
      for key, value in self.__dict__.iteritems()]
11506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11507
 
11508
  def __eq__(self, other):
11509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11510
 
11511
  def __ne__(self, other):
11512
    return not (self == other)
11513
 
11514
class addCategory_result:
11515
  """
11516
  Attributes:
11517
   - success
11518
  """
11519
 
11520
  thrift_spec = (
11521
    (0, TType.BOOL, 'success', None, None, ), # 0
11522
  )
11523
 
11524
  def __init__(self, success=None,):
11525
    self.success = success
11526
 
11527
  def read(self, iprot):
11528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11530
      return
11531
    iprot.readStructBegin()
11532
    while True:
11533
      (fname, ftype, fid) = iprot.readFieldBegin()
11534
      if ftype == TType.STOP:
11535
        break
11536
      if fid == 0:
11537
        if ftype == TType.BOOL:
11538
          self.success = iprot.readBool();
11539
        else:
11540
          iprot.skip(ftype)
11541
      else:
11542
        iprot.skip(ftype)
11543
      iprot.readFieldEnd()
11544
    iprot.readStructEnd()
11545
 
11546
  def write(self, oprot):
11547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11549
      return
11550
    oprot.writeStructBegin('addCategory_result')
11551
    if self.success is not None:
11552
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11553
      oprot.writeBool(self.success)
11554
      oprot.writeFieldEnd()
11555
    oprot.writeFieldStop()
11556
    oprot.writeStructEnd()
11557
 
11558
  def validate(self):
11559
    return
11560
 
11561
 
11562
  def __repr__(self):
11563
    L = ['%s=%r' % (key, value)
11564
      for key, value in self.__dict__.iteritems()]
11565
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11566
 
11567
  def __eq__(self, other):
11568
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11569
 
11570
  def __ne__(self, other):
11571
    return not (self == other)
11572
 
11573
class getCategory_args:
11574
  """
11575
  Attributes:
11576
   - id
11577
  """
11578
 
11579
  thrift_spec = (
11580
    None, # 0
11581
    (1, TType.I64, 'id', None, None, ), # 1
11582
  )
11583
 
11584
  def __init__(self, id=None,):
11585
    self.id = id
11586
 
11587
  def read(self, iprot):
11588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11590
      return
11591
    iprot.readStructBegin()
11592
    while True:
11593
      (fname, ftype, fid) = iprot.readFieldBegin()
11594
      if ftype == TType.STOP:
11595
        break
11596
      if fid == 1:
11597
        if ftype == TType.I64:
11598
          self.id = iprot.readI64();
11599
        else:
11600
          iprot.skip(ftype)
11601
      else:
11602
        iprot.skip(ftype)
11603
      iprot.readFieldEnd()
11604
    iprot.readStructEnd()
11605
 
11606
  def write(self, oprot):
11607
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11608
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11609
      return
11610
    oprot.writeStructBegin('getCategory_args')
11611
    if self.id is not None:
11612
      oprot.writeFieldBegin('id', TType.I64, 1)
11613
      oprot.writeI64(self.id)
11614
      oprot.writeFieldEnd()
11615
    oprot.writeFieldStop()
11616
    oprot.writeStructEnd()
11617
 
11618
  def validate(self):
11619
    return
11620
 
11621
 
11622
  def __repr__(self):
11623
    L = ['%s=%r' % (key, value)
11624
      for key, value in self.__dict__.iteritems()]
11625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11626
 
11627
  def __eq__(self, other):
11628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11629
 
11630
  def __ne__(self, other):
11631
    return not (self == other)
11632
 
11633
class getCategory_result:
11634
  """
11635
  Attributes:
11636
   - success
11637
  """
11638
 
11639
  thrift_spec = (
11640
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
11641
  )
11642
 
11643
  def __init__(self, success=None,):
11644
    self.success = success
11645
 
11646
  def read(self, iprot):
11647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11649
      return
11650
    iprot.readStructBegin()
11651
    while True:
11652
      (fname, ftype, fid) = iprot.readFieldBegin()
11653
      if ftype == TType.STOP:
11654
        break
11655
      if fid == 0:
11656
        if ftype == TType.STRUCT:
11657
          self.success = Category()
11658
          self.success.read(iprot)
11659
        else:
11660
          iprot.skip(ftype)
11661
      else:
11662
        iprot.skip(ftype)
11663
      iprot.readFieldEnd()
11664
    iprot.readStructEnd()
11665
 
11666
  def write(self, oprot):
11667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11669
      return
11670
    oprot.writeStructBegin('getCategory_result')
11671
    if self.success is not None:
11672
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11673
      self.success.write(oprot)
11674
      oprot.writeFieldEnd()
11675
    oprot.writeFieldStop()
11676
    oprot.writeStructEnd()
11677
 
11678
  def validate(self):
11679
    return
11680
 
11681
 
11682
  def __repr__(self):
11683
    L = ['%s=%r' % (key, value)
11684
      for key, value in self.__dict__.iteritems()]
11685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11686
 
11687
  def __eq__(self, other):
11688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11689
 
11690
  def __ne__(self, other):
11691
    return not (self == other)
11692
 
11693
class getAllCategories_args:
11694
 
11695
  thrift_spec = (
11696
  )
11697
 
11698
  def read(self, iprot):
11699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11701
      return
11702
    iprot.readStructBegin()
11703
    while True:
11704
      (fname, ftype, fid) = iprot.readFieldBegin()
11705
      if ftype == TType.STOP:
11706
        break
11707
      else:
11708
        iprot.skip(ftype)
11709
      iprot.readFieldEnd()
11710
    iprot.readStructEnd()
11711
 
11712
  def write(self, oprot):
11713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11715
      return
11716
    oprot.writeStructBegin('getAllCategories_args')
11717
    oprot.writeFieldStop()
11718
    oprot.writeStructEnd()
11719
 
11720
  def validate(self):
11721
    return
11722
 
11723
 
11724
  def __repr__(self):
11725
    L = ['%s=%r' % (key, value)
11726
      for key, value in self.__dict__.iteritems()]
11727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11728
 
11729
  def __eq__(self, other):
11730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11731
 
11732
  def __ne__(self, other):
11733
    return not (self == other)
11734
 
11735
class getAllCategories_result:
11736
  """
11737
  Attributes:
11738
   - success
11739
  """
11740
 
11741
  thrift_spec = (
11742
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
11743
  )
11744
 
11745
  def __init__(self, success=None,):
11746
    self.success = success
11747
 
11748
  def read(self, iprot):
11749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11751
      return
11752
    iprot.readStructBegin()
11753
    while True:
11754
      (fname, ftype, fid) = iprot.readFieldBegin()
11755
      if ftype == TType.STOP:
11756
        break
11757
      if fid == 0:
11758
        if ftype == TType.LIST:
11759
          self.success = []
8590 kshitij.so 11760
          (_etype154, _size151) = iprot.readListBegin()
11761
          for _i155 in xrange(_size151):
11762
            _elem156 = Category()
11763
            _elem156.read(iprot)
11764
            self.success.append(_elem156)
5944 mandeep.dh 11765
          iprot.readListEnd()
11766
        else:
11767
          iprot.skip(ftype)
11768
      else:
11769
        iprot.skip(ftype)
11770
      iprot.readFieldEnd()
11771
    iprot.readStructEnd()
11772
 
11773
  def write(self, oprot):
11774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11776
      return
11777
    oprot.writeStructBegin('getAllCategories_result')
11778
    if self.success is not None:
11779
      oprot.writeFieldBegin('success', TType.LIST, 0)
11780
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11781
      for iter157 in self.success:
11782
        iter157.write(oprot)
5944 mandeep.dh 11783
      oprot.writeListEnd()
11784
      oprot.writeFieldEnd()
11785
    oprot.writeFieldStop()
11786
    oprot.writeStructEnd()
11787
 
11788
  def validate(self):
11789
    return
11790
 
11791
 
11792
  def __repr__(self):
11793
    L = ['%s=%r' % (key, value)
11794
      for key, value in self.__dict__.iteritems()]
11795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11796
 
11797
  def __eq__(self, other):
11798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11799
 
11800
  def __ne__(self, other):
11801
    return not (self == other)
11802
 
11803
class getAllSimilarItems_args:
11804
  """
11805
  Attributes:
11806
   - itemId
11807
  """
11808
 
11809
  thrift_spec = (
11810
    None, # 0
11811
    (1, TType.I64, 'itemId', None, None, ), # 1
11812
  )
11813
 
11814
  def __init__(self, itemId=None,):
11815
    self.itemId = itemId
11816
 
11817
  def read(self, iprot):
11818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11820
      return
11821
    iprot.readStructBegin()
11822
    while True:
11823
      (fname, ftype, fid) = iprot.readFieldBegin()
11824
      if ftype == TType.STOP:
11825
        break
11826
      if fid == 1:
11827
        if ftype == TType.I64:
11828
          self.itemId = iprot.readI64();
11829
        else:
11830
          iprot.skip(ftype)
11831
      else:
11832
        iprot.skip(ftype)
11833
      iprot.readFieldEnd()
11834
    iprot.readStructEnd()
11835
 
11836
  def write(self, oprot):
11837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11839
      return
11840
    oprot.writeStructBegin('getAllSimilarItems_args')
11841
    if self.itemId is not None:
11842
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11843
      oprot.writeI64(self.itemId)
11844
      oprot.writeFieldEnd()
11845
    oprot.writeFieldStop()
11846
    oprot.writeStructEnd()
11847
 
11848
  def validate(self):
11849
    return
11850
 
11851
 
11852
  def __repr__(self):
11853
    L = ['%s=%r' % (key, value)
11854
      for key, value in self.__dict__.iteritems()]
11855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11856
 
11857
  def __eq__(self, other):
11858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11859
 
11860
  def __ne__(self, other):
11861
    return not (self == other)
11862
 
11863
class getAllSimilarItems_result:
11864
  """
11865
  Attributes:
11866
   - success
11867
  """
11868
 
11869
  thrift_spec = (
11870
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11871
  )
11872
 
11873
  def __init__(self, success=None,):
11874
    self.success = success
11875
 
11876
  def read(self, iprot):
11877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11879
      return
11880
    iprot.readStructBegin()
11881
    while True:
11882
      (fname, ftype, fid) = iprot.readFieldBegin()
11883
      if ftype == TType.STOP:
11884
        break
11885
      if fid == 0:
11886
        if ftype == TType.LIST:
11887
          self.success = []
8590 kshitij.so 11888
          (_etype161, _size158) = iprot.readListBegin()
11889
          for _i162 in xrange(_size158):
11890
            _elem163 = Item()
11891
            _elem163.read(iprot)
11892
            self.success.append(_elem163)
5944 mandeep.dh 11893
          iprot.readListEnd()
11894
        else:
11895
          iprot.skip(ftype)
11896
      else:
11897
        iprot.skip(ftype)
11898
      iprot.readFieldEnd()
11899
    iprot.readStructEnd()
11900
 
11901
  def write(self, oprot):
11902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11904
      return
11905
    oprot.writeStructBegin('getAllSimilarItems_result')
11906
    if self.success is not None:
11907
      oprot.writeFieldBegin('success', TType.LIST, 0)
11908
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11909
      for iter164 in self.success:
11910
        iter164.write(oprot)
5944 mandeep.dh 11911
      oprot.writeListEnd()
11912
      oprot.writeFieldEnd()
11913
    oprot.writeFieldStop()
11914
    oprot.writeStructEnd()
11915
 
11916
  def validate(self):
11917
    return
11918
 
11919
 
11920
  def __repr__(self):
11921
    L = ['%s=%r' % (key, value)
11922
      for key, value in self.__dict__.iteritems()]
11923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11924
 
11925
  def __eq__(self, other):
11926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11927
 
11928
  def __ne__(self, other):
11929
    return not (self == other)
11930
 
11931
class addSimilarItem_args:
11932
  """
11933
  Attributes:
11934
   - itemId
11935
   - catalogItemId
11936
  """
11937
 
11938
  thrift_spec = (
11939
    None, # 0
11940
    (1, TType.I64, 'itemId', None, None, ), # 1
11941
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
11942
  )
11943
 
11944
  def __init__(self, itemId=None, catalogItemId=None,):
11945
    self.itemId = itemId
11946
    self.catalogItemId = catalogItemId
11947
 
11948
  def read(self, iprot):
11949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11951
      return
11952
    iprot.readStructBegin()
11953
    while True:
11954
      (fname, ftype, fid) = iprot.readFieldBegin()
11955
      if ftype == TType.STOP:
11956
        break
11957
      if fid == 1:
11958
        if ftype == TType.I64:
11959
          self.itemId = iprot.readI64();
11960
        else:
11961
          iprot.skip(ftype)
11962
      elif fid == 2:
11963
        if ftype == TType.I64:
11964
          self.catalogItemId = iprot.readI64();
11965
        else:
11966
          iprot.skip(ftype)
11967
      else:
11968
        iprot.skip(ftype)
11969
      iprot.readFieldEnd()
11970
    iprot.readStructEnd()
11971
 
11972
  def write(self, oprot):
11973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11975
      return
11976
    oprot.writeStructBegin('addSimilarItem_args')
11977
    if self.itemId is not None:
11978
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11979
      oprot.writeI64(self.itemId)
11980
      oprot.writeFieldEnd()
11981
    if self.catalogItemId is not None:
11982
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
11983
      oprot.writeI64(self.catalogItemId)
11984
      oprot.writeFieldEnd()
11985
    oprot.writeFieldStop()
11986
    oprot.writeStructEnd()
11987
 
11988
  def validate(self):
11989
    return
11990
 
11991
 
11992
  def __repr__(self):
11993
    L = ['%s=%r' % (key, value)
11994
      for key, value in self.__dict__.iteritems()]
11995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11996
 
11997
  def __eq__(self, other):
11998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11999
 
12000
  def __ne__(self, other):
12001
    return not (self == other)
12002
 
12003
class addSimilarItem_result:
12004
  """
12005
  Attributes:
12006
   - success
12007
   - cex
12008
  """
12009
 
12010
  thrift_spec = (
12011
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
12012
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12013
  )
12014
 
12015
  def __init__(self, success=None, cex=None,):
12016
    self.success = success
12017
    self.cex = cex
12018
 
12019
  def read(self, iprot):
12020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12022
      return
12023
    iprot.readStructBegin()
12024
    while True:
12025
      (fname, ftype, fid) = iprot.readFieldBegin()
12026
      if ftype == TType.STOP:
12027
        break
12028
      if fid == 0:
12029
        if ftype == TType.STRUCT:
12030
          self.success = Item()
12031
          self.success.read(iprot)
12032
        else:
12033
          iprot.skip(ftype)
12034
      elif fid == 1:
12035
        if ftype == TType.STRUCT:
12036
          self.cex = CatalogServiceException()
12037
          self.cex.read(iprot)
12038
        else:
12039
          iprot.skip(ftype)
12040
      else:
12041
        iprot.skip(ftype)
12042
      iprot.readFieldEnd()
12043
    iprot.readStructEnd()
12044
 
12045
  def write(self, oprot):
12046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12048
      return
12049
    oprot.writeStructBegin('addSimilarItem_result')
12050
    if self.success is not None:
12051
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12052
      self.success.write(oprot)
12053
      oprot.writeFieldEnd()
12054
    if self.cex is not None:
12055
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12056
      self.cex.write(oprot)
12057
      oprot.writeFieldEnd()
12058
    oprot.writeFieldStop()
12059
    oprot.writeStructEnd()
12060
 
12061
  def validate(self):
12062
    return
12063
 
12064
 
12065
  def __repr__(self):
12066
    L = ['%s=%r' % (key, value)
12067
      for key, value in self.__dict__.iteritems()]
12068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12069
 
12070
  def __eq__(self, other):
12071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12072
 
12073
  def __ne__(self, other):
12074
    return not (self == other)
12075
 
6512 kshitij.so 12076
class addTag_args:
12077
  """
12078
  Attributes:
12079
   - displayName
12080
   - itemId
12081
  """
12082
 
12083
  thrift_spec = (
12084
    None, # 0
12085
    (1, TType.STRING, 'displayName', None, None, ), # 1
12086
    (2, TType.I64, 'itemId', None, None, ), # 2
12087
  )
12088
 
12089
  def __init__(self, displayName=None, itemId=None,):
12090
    self.displayName = displayName
12091
    self.itemId = itemId
12092
 
12093
  def read(self, iprot):
12094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12096
      return
12097
    iprot.readStructBegin()
12098
    while True:
12099
      (fname, ftype, fid) = iprot.readFieldBegin()
12100
      if ftype == TType.STOP:
12101
        break
12102
      if fid == 1:
12103
        if ftype == TType.STRING:
12104
          self.displayName = iprot.readString();
12105
        else:
12106
          iprot.skip(ftype)
12107
      elif fid == 2:
12108
        if ftype == TType.I64:
12109
          self.itemId = iprot.readI64();
12110
        else:
12111
          iprot.skip(ftype)
12112
      else:
12113
        iprot.skip(ftype)
12114
      iprot.readFieldEnd()
12115
    iprot.readStructEnd()
12116
 
12117
  def write(self, oprot):
12118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12120
      return
12121
    oprot.writeStructBegin('addTag_args')
12122
    if self.displayName is not None:
12123
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12124
      oprot.writeString(self.displayName)
12125
      oprot.writeFieldEnd()
12126
    if self.itemId is not None:
12127
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12128
      oprot.writeI64(self.itemId)
12129
      oprot.writeFieldEnd()
12130
    oprot.writeFieldStop()
12131
    oprot.writeStructEnd()
12132
 
12133
  def validate(self):
12134
    return
12135
 
12136
 
12137
  def __repr__(self):
12138
    L = ['%s=%r' % (key, value)
12139
      for key, value in self.__dict__.iteritems()]
12140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12141
 
12142
  def __eq__(self, other):
12143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12144
 
12145
  def __ne__(self, other):
12146
    return not (self == other)
12147
 
12148
class addTag_result:
12149
  """
12150
  Attributes:
12151
   - success
12152
  """
12153
 
12154
  thrift_spec = (
12155
    (0, TType.BOOL, 'success', None, None, ), # 0
12156
  )
12157
 
12158
  def __init__(self, success=None,):
12159
    self.success = success
12160
 
12161
  def read(self, iprot):
12162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12164
      return
12165
    iprot.readStructBegin()
12166
    while True:
12167
      (fname, ftype, fid) = iprot.readFieldBegin()
12168
      if ftype == TType.STOP:
12169
        break
12170
      if fid == 0:
12171
        if ftype == TType.BOOL:
12172
          self.success = iprot.readBool();
12173
        else:
12174
          iprot.skip(ftype)
12175
      else:
12176
        iprot.skip(ftype)
12177
      iprot.readFieldEnd()
12178
    iprot.readStructEnd()
12179
 
12180
  def write(self, oprot):
12181
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12182
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12183
      return
12184
    oprot.writeStructBegin('addTag_result')
12185
    if self.success is not None:
12186
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12187
      oprot.writeBool(self.success)
12188
      oprot.writeFieldEnd()
12189
    oprot.writeFieldStop()
12190
    oprot.writeStructEnd()
12191
 
12192
  def validate(self):
12193
    return
12194
 
12195
 
12196
  def __repr__(self):
12197
    L = ['%s=%r' % (key, value)
12198
      for key, value in self.__dict__.iteritems()]
12199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12200
 
12201
  def __eq__(self, other):
12202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12203
 
12204
  def __ne__(self, other):
12205
    return not (self == other)
12206
 
12207
class deleteEntityTag_args:
12208
  """
12209
  Attributes:
12210
   - displayName
12211
   - itemId
12212
  """
12213
 
12214
  thrift_spec = (
12215
    None, # 0
12216
    (1, TType.STRING, 'displayName', None, None, ), # 1
12217
    (2, TType.I64, 'itemId', None, None, ), # 2
12218
  )
12219
 
12220
  def __init__(self, displayName=None, itemId=None,):
12221
    self.displayName = displayName
12222
    self.itemId = itemId
12223
 
12224
  def read(self, iprot):
12225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12227
      return
12228
    iprot.readStructBegin()
12229
    while True:
12230
      (fname, ftype, fid) = iprot.readFieldBegin()
12231
      if ftype == TType.STOP:
12232
        break
12233
      if fid == 1:
12234
        if ftype == TType.STRING:
12235
          self.displayName = iprot.readString();
12236
        else:
12237
          iprot.skip(ftype)
12238
      elif fid == 2:
12239
        if ftype == TType.I64:
12240
          self.itemId = iprot.readI64();
12241
        else:
12242
          iprot.skip(ftype)
12243
      else:
12244
        iprot.skip(ftype)
12245
      iprot.readFieldEnd()
12246
    iprot.readStructEnd()
12247
 
12248
  def write(self, oprot):
12249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12251
      return
12252
    oprot.writeStructBegin('deleteEntityTag_args')
12253
    if self.displayName is not None:
12254
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12255
      oprot.writeString(self.displayName)
12256
      oprot.writeFieldEnd()
12257
    if self.itemId is not None:
12258
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12259
      oprot.writeI64(self.itemId)
12260
      oprot.writeFieldEnd()
12261
    oprot.writeFieldStop()
12262
    oprot.writeStructEnd()
12263
 
12264
  def validate(self):
12265
    return
12266
 
12267
 
12268
  def __repr__(self):
12269
    L = ['%s=%r' % (key, value)
12270
      for key, value in self.__dict__.iteritems()]
12271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12272
 
12273
  def __eq__(self, other):
12274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12275
 
12276
  def __ne__(self, other):
12277
    return not (self == other)
12278
 
12279
class deleteEntityTag_result:
12280
  """
12281
  Attributes:
12282
   - success
12283
  """
12284
 
12285
  thrift_spec = (
12286
    (0, TType.BOOL, 'success', None, None, ), # 0
12287
  )
12288
 
12289
  def __init__(self, success=None,):
12290
    self.success = success
12291
 
12292
  def read(self, iprot):
12293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12295
      return
12296
    iprot.readStructBegin()
12297
    while True:
12298
      (fname, ftype, fid) = iprot.readFieldBegin()
12299
      if ftype == TType.STOP:
12300
        break
12301
      if fid == 0:
12302
        if ftype == TType.BOOL:
12303
          self.success = iprot.readBool();
12304
        else:
12305
          iprot.skip(ftype)
12306
      else:
12307
        iprot.skip(ftype)
12308
      iprot.readFieldEnd()
12309
    iprot.readStructEnd()
12310
 
12311
  def write(self, oprot):
12312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12314
      return
12315
    oprot.writeStructBegin('deleteEntityTag_result')
12316
    if self.success is not None:
12317
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12318
      oprot.writeBool(self.success)
12319
      oprot.writeFieldEnd()
12320
    oprot.writeFieldStop()
12321
    oprot.writeStructEnd()
12322
 
12323
  def validate(self):
12324
    return
12325
 
12326
 
12327
  def __repr__(self):
12328
    L = ['%s=%r' % (key, value)
12329
      for key, value in self.__dict__.iteritems()]
12330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12331
 
12332
  def __eq__(self, other):
12333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12334
 
12335
  def __ne__(self, other):
12336
    return not (self == other)
12337
 
12338
class deleteTag_args:
12339
  """
12340
  Attributes:
12341
   - displayName
12342
  """
12343
 
12344
  thrift_spec = (
12345
    None, # 0
12346
    (1, TType.STRING, 'displayName', None, None, ), # 1
12347
  )
12348
 
12349
  def __init__(self, displayName=None,):
12350
    self.displayName = displayName
12351
 
12352
  def read(self, iprot):
12353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12355
      return
12356
    iprot.readStructBegin()
12357
    while True:
12358
      (fname, ftype, fid) = iprot.readFieldBegin()
12359
      if ftype == TType.STOP:
12360
        break
12361
      if fid == 1:
12362
        if ftype == TType.STRING:
12363
          self.displayName = iprot.readString();
12364
        else:
12365
          iprot.skip(ftype)
12366
      else:
12367
        iprot.skip(ftype)
12368
      iprot.readFieldEnd()
12369
    iprot.readStructEnd()
12370
 
12371
  def write(self, oprot):
12372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12374
      return
12375
    oprot.writeStructBegin('deleteTag_args')
12376
    if self.displayName is not None:
12377
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12378
      oprot.writeString(self.displayName)
12379
      oprot.writeFieldEnd()
12380
    oprot.writeFieldStop()
12381
    oprot.writeStructEnd()
12382
 
12383
  def validate(self):
12384
    return
12385
 
12386
 
12387
  def __repr__(self):
12388
    L = ['%s=%r' % (key, value)
12389
      for key, value in self.__dict__.iteritems()]
12390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12391
 
12392
  def __eq__(self, other):
12393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12394
 
12395
  def __ne__(self, other):
12396
    return not (self == other)
12397
 
12398
class deleteTag_result:
12399
  """
12400
  Attributes:
12401
   - success
12402
  """
12403
 
12404
  thrift_spec = (
12405
    (0, TType.BOOL, 'success', None, None, ), # 0
12406
  )
12407
 
12408
  def __init__(self, success=None,):
12409
    self.success = success
12410
 
12411
  def read(self, iprot):
12412
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12413
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12414
      return
12415
    iprot.readStructBegin()
12416
    while True:
12417
      (fname, ftype, fid) = iprot.readFieldBegin()
12418
      if ftype == TType.STOP:
12419
        break
12420
      if fid == 0:
12421
        if ftype == TType.BOOL:
12422
          self.success = iprot.readBool();
12423
        else:
12424
          iprot.skip(ftype)
12425
      else:
12426
        iprot.skip(ftype)
12427
      iprot.readFieldEnd()
12428
    iprot.readStructEnd()
12429
 
12430
  def write(self, oprot):
12431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12433
      return
12434
    oprot.writeStructBegin('deleteTag_result')
12435
    if self.success is not None:
12436
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12437
      oprot.writeBool(self.success)
12438
      oprot.writeFieldEnd()
12439
    oprot.writeFieldStop()
12440
    oprot.writeStructEnd()
12441
 
12442
  def validate(self):
12443
    return
12444
 
12445
 
12446
  def __repr__(self):
12447
    L = ['%s=%r' % (key, value)
12448
      for key, value in self.__dict__.iteritems()]
12449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12450
 
12451
  def __eq__(self, other):
12452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12453
 
12454
  def __ne__(self, other):
12455
    return not (self == other)
12456
 
12457
class getAllTags_args:
12458
 
12459
  thrift_spec = (
12460
  )
12461
 
12462
  def read(self, iprot):
12463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12465
      return
12466
    iprot.readStructBegin()
12467
    while True:
12468
      (fname, ftype, fid) = iprot.readFieldBegin()
12469
      if ftype == TType.STOP:
12470
        break
12471
      else:
12472
        iprot.skip(ftype)
12473
      iprot.readFieldEnd()
12474
    iprot.readStructEnd()
12475
 
12476
  def write(self, oprot):
12477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12479
      return
12480
    oprot.writeStructBegin('getAllTags_args')
12481
    oprot.writeFieldStop()
12482
    oprot.writeStructEnd()
12483
 
12484
  def validate(self):
12485
    return
12486
 
12487
 
12488
  def __repr__(self):
12489
    L = ['%s=%r' % (key, value)
12490
      for key, value in self.__dict__.iteritems()]
12491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12492
 
12493
  def __eq__(self, other):
12494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12495
 
12496
  def __ne__(self, other):
12497
    return not (self == other)
12498
 
12499
class getAllTags_result:
12500
  """
12501
  Attributes:
12502
   - success
12503
  """
12504
 
12505
  thrift_spec = (
12506
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12507
  )
12508
 
12509
  def __init__(self, success=None,):
12510
    self.success = success
12511
 
12512
  def read(self, iprot):
12513
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12514
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12515
      return
12516
    iprot.readStructBegin()
12517
    while True:
12518
      (fname, ftype, fid) = iprot.readFieldBegin()
12519
      if ftype == TType.STOP:
12520
        break
12521
      if fid == 0:
12522
        if ftype == TType.LIST:
12523
          self.success = []
8590 kshitij.so 12524
          (_etype168, _size165) = iprot.readListBegin()
12525
          for _i169 in xrange(_size165):
12526
            _elem170 = iprot.readString();
12527
            self.success.append(_elem170)
6512 kshitij.so 12528
          iprot.readListEnd()
12529
        else:
12530
          iprot.skip(ftype)
12531
      else:
12532
        iprot.skip(ftype)
12533
      iprot.readFieldEnd()
12534
    iprot.readStructEnd()
12535
 
12536
  def write(self, oprot):
12537
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12538
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12539
      return
12540
    oprot.writeStructBegin('getAllTags_result')
12541
    if self.success is not None:
12542
      oprot.writeFieldBegin('success', TType.LIST, 0)
12543
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 12544
      for iter171 in self.success:
12545
        oprot.writeString(iter171)
6512 kshitij.so 12546
      oprot.writeListEnd()
12547
      oprot.writeFieldEnd()
12548
    oprot.writeFieldStop()
12549
    oprot.writeStructEnd()
12550
 
12551
  def validate(self):
12552
    return
12553
 
12554
 
12555
  def __repr__(self):
12556
    L = ['%s=%r' % (key, value)
12557
      for key, value in self.__dict__.iteritems()]
12558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12559
 
12560
  def __eq__(self, other):
12561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12562
 
12563
  def __ne__(self, other):
12564
    return not (self == other)
12565
 
12566
class getAllEntitiesByTagName_args:
12567
  """
12568
  Attributes:
12569
   - displayName
12570
  """
12571
 
12572
  thrift_spec = (
12573
    None, # 0
12574
    (1, TType.STRING, 'displayName', None, None, ), # 1
12575
  )
12576
 
12577
  def __init__(self, displayName=None,):
12578
    self.displayName = displayName
12579
 
12580
  def read(self, iprot):
12581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12583
      return
12584
    iprot.readStructBegin()
12585
    while True:
12586
      (fname, ftype, fid) = iprot.readFieldBegin()
12587
      if ftype == TType.STOP:
12588
        break
12589
      if fid == 1:
12590
        if ftype == TType.STRING:
12591
          self.displayName = iprot.readString();
12592
        else:
12593
          iprot.skip(ftype)
12594
      else:
12595
        iprot.skip(ftype)
12596
      iprot.readFieldEnd()
12597
    iprot.readStructEnd()
12598
 
12599
  def write(self, oprot):
12600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12602
      return
12603
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
12604
    if self.displayName is not None:
12605
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12606
      oprot.writeString(self.displayName)
12607
      oprot.writeFieldEnd()
12608
    oprot.writeFieldStop()
12609
    oprot.writeStructEnd()
12610
 
12611
  def validate(self):
12612
    return
12613
 
12614
 
12615
  def __repr__(self):
12616
    L = ['%s=%r' % (key, value)
12617
      for key, value in self.__dict__.iteritems()]
12618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12619
 
12620
  def __eq__(self, other):
12621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12622
 
12623
  def __ne__(self, other):
12624
    return not (self == other)
12625
 
12626
class getAllEntitiesByTagName_result:
12627
  """
12628
  Attributes:
12629
   - success
12630
  """
12631
 
12632
  thrift_spec = (
12633
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12634
  )
12635
 
12636
  def __init__(self, success=None,):
12637
    self.success = success
12638
 
12639
  def read(self, iprot):
12640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12642
      return
12643
    iprot.readStructBegin()
12644
    while True:
12645
      (fname, ftype, fid) = iprot.readFieldBegin()
12646
      if ftype == TType.STOP:
12647
        break
12648
      if fid == 0:
12649
        if ftype == TType.LIST:
12650
          self.success = []
8590 kshitij.so 12651
          (_etype175, _size172) = iprot.readListBegin()
12652
          for _i176 in xrange(_size172):
12653
            _elem177 = iprot.readI64();
12654
            self.success.append(_elem177)
6512 kshitij.so 12655
          iprot.readListEnd()
12656
        else:
12657
          iprot.skip(ftype)
12658
      else:
12659
        iprot.skip(ftype)
12660
      iprot.readFieldEnd()
12661
    iprot.readStructEnd()
12662
 
12663
  def write(self, oprot):
12664
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12665
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12666
      return
12667
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
12668
    if self.success is not None:
12669
      oprot.writeFieldBegin('success', TType.LIST, 0)
12670
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 12671
      for iter178 in self.success:
12672
        oprot.writeI64(iter178)
6512 kshitij.so 12673
      oprot.writeListEnd()
12674
      oprot.writeFieldEnd()
12675
    oprot.writeFieldStop()
12676
    oprot.writeStructEnd()
12677
 
12678
  def validate(self):
12679
    return
12680
 
12681
 
12682
  def __repr__(self):
12683
    L = ['%s=%r' % (key, value)
12684
      for key, value in self.__dict__.iteritems()]
12685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12686
 
12687
  def __eq__(self, other):
12688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12689
 
12690
  def __ne__(self, other):
12691
    return not (self == other)
12692
 
6845 amit.gupta 12693
class getAllEntityTags_args:
12694
 
12695
  thrift_spec = (
12696
  )
12697
 
12698
  def read(self, iprot):
12699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12701
      return
12702
    iprot.readStructBegin()
12703
    while True:
12704
      (fname, ftype, fid) = iprot.readFieldBegin()
12705
      if ftype == TType.STOP:
12706
        break
12707
      else:
12708
        iprot.skip(ftype)
12709
      iprot.readFieldEnd()
12710
    iprot.readStructEnd()
12711
 
12712
  def write(self, oprot):
12713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12715
      return
12716
    oprot.writeStructBegin('getAllEntityTags_args')
12717
    oprot.writeFieldStop()
12718
    oprot.writeStructEnd()
12719
 
12720
  def validate(self):
12721
    return
12722
 
12723
 
12724
  def __repr__(self):
12725
    L = ['%s=%r' % (key, value)
12726
      for key, value in self.__dict__.iteritems()]
12727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12728
 
12729
  def __eq__(self, other):
12730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12731
 
12732
  def __ne__(self, other):
12733
    return not (self == other)
12734
 
12735
class getAllEntityTags_result:
12736
  """
12737
  Attributes:
12738
   - success
12739
  """
12740
 
12741
  thrift_spec = (
12742
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
12743
  )
12744
 
12745
  def __init__(self, success=None,):
12746
    self.success = success
12747
 
12748
  def read(self, iprot):
12749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12751
      return
12752
    iprot.readStructBegin()
12753
    while True:
12754
      (fname, ftype, fid) = iprot.readFieldBegin()
12755
      if ftype == TType.STOP:
12756
        break
12757
      if fid == 0:
12758
        if ftype == TType.MAP:
12759
          self.success = {}
8590 kshitij.so 12760
          (_ktype180, _vtype181, _size179 ) = iprot.readMapBegin() 
12761
          for _i183 in xrange(_size179):
12762
            _key184 = iprot.readI64();
12763
            _val185 = []
12764
            (_etype189, _size186) = iprot.readListBegin()
12765
            for _i190 in xrange(_size186):
12766
              _elem191 = iprot.readString();
12767
              _val185.append(_elem191)
6845 amit.gupta 12768
            iprot.readListEnd()
8590 kshitij.so 12769
            self.success[_key184] = _val185
6845 amit.gupta 12770
          iprot.readMapEnd()
12771
        else:
12772
          iprot.skip(ftype)
12773
      else:
12774
        iprot.skip(ftype)
12775
      iprot.readFieldEnd()
12776
    iprot.readStructEnd()
12777
 
12778
  def write(self, oprot):
12779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12781
      return
12782
    oprot.writeStructBegin('getAllEntityTags_result')
12783
    if self.success is not None:
12784
      oprot.writeFieldBegin('success', TType.MAP, 0)
12785
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
8590 kshitij.so 12786
      for kiter192,viter193 in self.success.items():
12787
        oprot.writeI64(kiter192)
12788
        oprot.writeListBegin(TType.STRING, len(viter193))
12789
        for iter194 in viter193:
12790
          oprot.writeString(iter194)
6845 amit.gupta 12791
        oprot.writeListEnd()
12792
      oprot.writeMapEnd()
12793
      oprot.writeFieldEnd()
12794
    oprot.writeFieldStop()
12795
    oprot.writeStructEnd()
12796
 
12797
  def validate(self):
12798
    return
12799
 
12800
 
12801
  def __repr__(self):
12802
    L = ['%s=%r' % (key, value)
12803
      for key, value in self.__dict__.iteritems()]
12804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12805
 
12806
  def __eq__(self, other):
12807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12808
 
12809
  def __ne__(self, other):
12810
    return not (self == other)
12811
 
6850 kshitij.so 12812
class addBanner_args:
12813
  """
12814
  Attributes:
8590 kshitij.so 12815
   - bannerCongregate
6850 kshitij.so 12816
  """
12817
 
12818
  thrift_spec = (
12819
    None, # 0
8590 kshitij.so 12820
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 12821
  )
12822
 
8590 kshitij.so 12823
  def __init__(self, bannerCongregate=None,):
12824
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 12825
 
12826
  def read(self, iprot):
12827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12829
      return
12830
    iprot.readStructBegin()
12831
    while True:
12832
      (fname, ftype, fid) = iprot.readFieldBegin()
12833
      if ftype == TType.STOP:
12834
        break
12835
      if fid == 1:
8579 kshitij.so 12836
        if ftype == TType.STRUCT:
8590 kshitij.so 12837
          self.bannerCongregate = BannerCongregate()
12838
          self.bannerCongregate.read(iprot)
6850 kshitij.so 12839
        else:
12840
          iprot.skip(ftype)
8579 kshitij.so 12841
      else:
12842
        iprot.skip(ftype)
12843
      iprot.readFieldEnd()
12844
    iprot.readStructEnd()
12845
 
12846
  def write(self, oprot):
12847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12849
      return
12850
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 12851
    if self.bannerCongregate is not None:
12852
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
12853
      self.bannerCongregate.write(oprot)
8579 kshitij.so 12854
      oprot.writeFieldEnd()
12855
    oprot.writeFieldStop()
12856
    oprot.writeStructEnd()
12857
 
12858
  def validate(self):
12859
    return
12860
 
12861
 
12862
  def __repr__(self):
12863
    L = ['%s=%r' % (key, value)
12864
      for key, value in self.__dict__.iteritems()]
12865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12866
 
12867
  def __eq__(self, other):
12868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12869
 
12870
  def __ne__(self, other):
12871
    return not (self == other)
12872
 
12873
class addBanner_result:
12874
 
12875
  thrift_spec = (
12876
  )
12877
 
12878
  def read(self, iprot):
12879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12881
      return
12882
    iprot.readStructBegin()
12883
    while True:
12884
      (fname, ftype, fid) = iprot.readFieldBegin()
12885
      if ftype == TType.STOP:
12886
        break
12887
      else:
12888
        iprot.skip(ftype)
12889
      iprot.readFieldEnd()
12890
    iprot.readStructEnd()
12891
 
12892
  def write(self, oprot):
12893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12895
      return
12896
    oprot.writeStructBegin('addBanner_result')
12897
    oprot.writeFieldStop()
12898
    oprot.writeStructEnd()
12899
 
12900
  def validate(self):
12901
    return
12902
 
12903
 
12904
  def __repr__(self):
12905
    L = ['%s=%r' % (key, value)
12906
      for key, value in self.__dict__.iteritems()]
12907
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12908
 
12909
  def __eq__(self, other):
12910
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12911
 
12912
  def __ne__(self, other):
12913
    return not (self == other)
12914
 
12915
class updateBanner_args:
12916
  """
12917
  Attributes:
12918
   - banner
12919
  """
12920
 
12921
  thrift_spec = (
12922
    None, # 0
12923
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
12924
  )
12925
 
12926
  def __init__(self, banner=None,):
12927
    self.banner = banner
12928
 
12929
  def read(self, iprot):
12930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12932
      return
12933
    iprot.readStructBegin()
12934
    while True:
12935
      (fname, ftype, fid) = iprot.readFieldBegin()
12936
      if ftype == TType.STOP:
12937
        break
12938
      if fid == 1:
12939
        if ftype == TType.STRUCT:
12940
          self.banner = Banner()
12941
          self.banner.read(iprot)
6850 kshitij.so 12942
        else:
12943
          iprot.skip(ftype)
12944
      else:
12945
        iprot.skip(ftype)
12946
      iprot.readFieldEnd()
12947
    iprot.readStructEnd()
12948
 
12949
  def write(self, oprot):
12950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12952
      return
8579 kshitij.so 12953
    oprot.writeStructBegin('updateBanner_args')
12954
    if self.banner is not None:
12955
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
12956
      self.banner.write(oprot)
6850 kshitij.so 12957
      oprot.writeFieldEnd()
12958
    oprot.writeFieldStop()
12959
    oprot.writeStructEnd()
12960
 
12961
  def validate(self):
12962
    return
12963
 
12964
 
12965
  def __repr__(self):
12966
    L = ['%s=%r' % (key, value)
12967
      for key, value in self.__dict__.iteritems()]
12968
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12969
 
12970
  def __eq__(self, other):
12971
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12972
 
12973
  def __ne__(self, other):
12974
    return not (self == other)
12975
 
8579 kshitij.so 12976
class updateBanner_result:
6850 kshitij.so 12977
  """
12978
  Attributes:
12979
   - success
12980
  """
12981
 
12982
  thrift_spec = (
12983
    (0, TType.BOOL, 'success', None, None, ), # 0
12984
  )
12985
 
12986
  def __init__(self, success=None,):
12987
    self.success = success
12988
 
12989
  def read(self, iprot):
12990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12992
      return
12993
    iprot.readStructBegin()
12994
    while True:
12995
      (fname, ftype, fid) = iprot.readFieldBegin()
12996
      if ftype == TType.STOP:
12997
        break
12998
      if fid == 0:
12999
        if ftype == TType.BOOL:
13000
          self.success = iprot.readBool();
13001
        else:
13002
          iprot.skip(ftype)
13003
      else:
13004
        iprot.skip(ftype)
13005
      iprot.readFieldEnd()
13006
    iprot.readStructEnd()
13007
 
13008
  def write(self, oprot):
13009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13011
      return
8579 kshitij.so 13012
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 13013
    if self.success is not None:
13014
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13015
      oprot.writeBool(self.success)
13016
      oprot.writeFieldEnd()
13017
    oprot.writeFieldStop()
13018
    oprot.writeStructEnd()
13019
 
13020
  def validate(self):
13021
    return
13022
 
13023
 
13024
  def __repr__(self):
13025
    L = ['%s=%r' % (key, value)
13026
      for key, value in self.__dict__.iteritems()]
13027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13028
 
13029
  def __eq__(self, other):
13030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13031
 
13032
  def __ne__(self, other):
13033
    return not (self == other)
13034
 
13035
class getAllBanners_args:
13036
 
13037
  thrift_spec = (
13038
  )
13039
 
13040
  def read(self, iprot):
13041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13043
      return
13044
    iprot.readStructBegin()
13045
    while True:
13046
      (fname, ftype, fid) = iprot.readFieldBegin()
13047
      if ftype == TType.STOP:
13048
        break
13049
      else:
13050
        iprot.skip(ftype)
13051
      iprot.readFieldEnd()
13052
    iprot.readStructEnd()
13053
 
13054
  def write(self, oprot):
13055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13057
      return
13058
    oprot.writeStructBegin('getAllBanners_args')
13059
    oprot.writeFieldStop()
13060
    oprot.writeStructEnd()
13061
 
13062
  def validate(self):
13063
    return
13064
 
13065
 
13066
  def __repr__(self):
13067
    L = ['%s=%r' % (key, value)
13068
      for key, value in self.__dict__.iteritems()]
13069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13070
 
13071
  def __eq__(self, other):
13072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13073
 
13074
  def __ne__(self, other):
13075
    return not (self == other)
13076
 
13077
class getAllBanners_result:
13078
  """
13079
  Attributes:
13080
   - success
13081
  """
13082
 
13083
  thrift_spec = (
8579 kshitij.so 13084
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 13085
  )
13086
 
13087
  def __init__(self, success=None,):
13088
    self.success = success
13089
 
13090
  def read(self, iprot):
13091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13093
      return
13094
    iprot.readStructBegin()
13095
    while True:
13096
      (fname, ftype, fid) = iprot.readFieldBegin()
13097
      if ftype == TType.STOP:
13098
        break
13099
      if fid == 0:
13100
        if ftype == TType.LIST:
13101
          self.success = []
8590 kshitij.so 13102
          (_etype198, _size195) = iprot.readListBegin()
13103
          for _i199 in xrange(_size195):
13104
            _elem200 = Banner()
13105
            _elem200.read(iprot)
13106
            self.success.append(_elem200)
6850 kshitij.so 13107
          iprot.readListEnd()
13108
        else:
13109
          iprot.skip(ftype)
13110
      else:
13111
        iprot.skip(ftype)
13112
      iprot.readFieldEnd()
13113
    iprot.readStructEnd()
13114
 
13115
  def write(self, oprot):
13116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13118
      return
13119
    oprot.writeStructBegin('getAllBanners_result')
13120
    if self.success is not None:
13121
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 13122
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 13123
      for iter201 in self.success:
13124
        iter201.write(oprot)
6850 kshitij.so 13125
      oprot.writeListEnd()
13126
      oprot.writeFieldEnd()
13127
    oprot.writeFieldStop()
13128
    oprot.writeStructEnd()
13129
 
13130
  def validate(self):
13131
    return
13132
 
13133
 
13134
  def __repr__(self):
13135
    L = ['%s=%r' % (key, value)
13136
      for key, value in self.__dict__.iteritems()]
13137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13138
 
13139
  def __eq__(self, other):
13140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13141
 
13142
  def __ne__(self, other):
13143
    return not (self == other)
13144
 
13145
class deleteBanner_args:
13146
  """
13147
  Attributes:
13148
   - bannerName
9155 kshitij.so 13149
   - bannerType
6850 kshitij.so 13150
  """
13151
 
13152
  thrift_spec = (
13153
    None, # 0
13154
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13155
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 13156
  )
13157
 
9155 kshitij.so 13158
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 13159
    self.bannerName = bannerName
9155 kshitij.so 13160
    self.bannerType = bannerType
6850 kshitij.so 13161
 
13162
  def read(self, iprot):
13163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13165
      return
13166
    iprot.readStructBegin()
13167
    while True:
13168
      (fname, ftype, fid) = iprot.readFieldBegin()
13169
      if ftype == TType.STOP:
13170
        break
13171
      if fid == 1:
13172
        if ftype == TType.STRING:
13173
          self.bannerName = iprot.readString();
13174
        else:
13175
          iprot.skip(ftype)
9155 kshitij.so 13176
      elif fid == 2:
13177
        if ftype == TType.I32:
13178
          self.bannerType = iprot.readI32();
13179
        else:
13180
          iprot.skip(ftype)
6850 kshitij.so 13181
      else:
13182
        iprot.skip(ftype)
13183
      iprot.readFieldEnd()
13184
    iprot.readStructEnd()
13185
 
13186
  def write(self, oprot):
13187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13189
      return
13190
    oprot.writeStructBegin('deleteBanner_args')
13191
    if self.bannerName is not None:
13192
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13193
      oprot.writeString(self.bannerName)
13194
      oprot.writeFieldEnd()
9155 kshitij.so 13195
    if self.bannerType is not None:
13196
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13197
      oprot.writeI32(self.bannerType)
13198
      oprot.writeFieldEnd()
6850 kshitij.so 13199
    oprot.writeFieldStop()
13200
    oprot.writeStructEnd()
13201
 
13202
  def validate(self):
13203
    return
13204
 
13205
 
13206
  def __repr__(self):
13207
    L = ['%s=%r' % (key, value)
13208
      for key, value in self.__dict__.iteritems()]
13209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13210
 
13211
  def __eq__(self, other):
13212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13213
 
13214
  def __ne__(self, other):
13215
    return not (self == other)
13216
 
13217
class deleteBanner_result:
13218
  """
13219
  Attributes:
13220
   - success
13221
  """
13222
 
13223
  thrift_spec = (
13224
    (0, TType.BOOL, 'success', None, None, ), # 0
13225
  )
13226
 
13227
  def __init__(self, success=None,):
13228
    self.success = success
13229
 
13230
  def read(self, iprot):
13231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13233
      return
13234
    iprot.readStructBegin()
13235
    while True:
13236
      (fname, ftype, fid) = iprot.readFieldBegin()
13237
      if ftype == TType.STOP:
13238
        break
13239
      if fid == 0:
13240
        if ftype == TType.BOOL:
13241
          self.success = iprot.readBool();
13242
        else:
13243
          iprot.skip(ftype)
13244
      else:
13245
        iprot.skip(ftype)
13246
      iprot.readFieldEnd()
13247
    iprot.readStructEnd()
13248
 
13249
  def write(self, oprot):
13250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13252
      return
13253
    oprot.writeStructBegin('deleteBanner_result')
13254
    if self.success is not None:
13255
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13256
      oprot.writeBool(self.success)
13257
      oprot.writeFieldEnd()
13258
    oprot.writeFieldStop()
13259
    oprot.writeStructEnd()
13260
 
13261
  def validate(self):
13262
    return
13263
 
13264
 
13265
  def __repr__(self):
13266
    L = ['%s=%r' % (key, value)
13267
      for key, value in self.__dict__.iteritems()]
13268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13269
 
13270
  def __eq__(self, other):
13271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13272
 
13273
  def __ne__(self, other):
13274
    return not (self == other)
13275
 
13276
class getBannerDetails_args:
13277
  """
13278
  Attributes:
13279
   - bannerName
9155 kshitij.so 13280
   - bannerType
6850 kshitij.so 13281
  """
13282
 
13283
  thrift_spec = (
13284
    None, # 0
13285
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13286
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 13287
  )
13288
 
9155 kshitij.so 13289
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 13290
    self.bannerName = bannerName
9155 kshitij.so 13291
    self.bannerType = bannerType
6850 kshitij.so 13292
 
13293
  def read(self, iprot):
13294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13296
      return
13297
    iprot.readStructBegin()
13298
    while True:
13299
      (fname, ftype, fid) = iprot.readFieldBegin()
13300
      if ftype == TType.STOP:
13301
        break
13302
      if fid == 1:
13303
        if ftype == TType.STRING:
13304
          self.bannerName = iprot.readString();
13305
        else:
13306
          iprot.skip(ftype)
9155 kshitij.so 13307
      elif fid == 2:
13308
        if ftype == TType.I32:
13309
          self.bannerType = iprot.readI32();
13310
        else:
13311
          iprot.skip(ftype)
6850 kshitij.so 13312
      else:
13313
        iprot.skip(ftype)
13314
      iprot.readFieldEnd()
13315
    iprot.readStructEnd()
13316
 
13317
  def write(self, oprot):
13318
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13319
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13320
      return
13321
    oprot.writeStructBegin('getBannerDetails_args')
13322
    if self.bannerName is not None:
13323
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13324
      oprot.writeString(self.bannerName)
13325
      oprot.writeFieldEnd()
9155 kshitij.so 13326
    if self.bannerType is not None:
13327
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13328
      oprot.writeI32(self.bannerType)
13329
      oprot.writeFieldEnd()
6850 kshitij.so 13330
    oprot.writeFieldStop()
13331
    oprot.writeStructEnd()
13332
 
13333
  def validate(self):
13334
    return
13335
 
13336
 
13337
  def __repr__(self):
13338
    L = ['%s=%r' % (key, value)
13339
      for key, value in self.__dict__.iteritems()]
13340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13341
 
13342
  def __eq__(self, other):
13343
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13344
 
13345
  def __ne__(self, other):
13346
    return not (self == other)
13347
 
13348
class getBannerDetails_result:
13349
  """
13350
  Attributes:
13351
   - success
13352
  """
13353
 
13354
  thrift_spec = (
13355
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
13356
  )
13357
 
13358
  def __init__(self, success=None,):
13359
    self.success = success
13360
 
13361
  def read(self, iprot):
13362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13364
      return
13365
    iprot.readStructBegin()
13366
    while True:
13367
      (fname, ftype, fid) = iprot.readFieldBegin()
13368
      if ftype == TType.STOP:
13369
        break
13370
      if fid == 0:
13371
        if ftype == TType.STRUCT:
13372
          self.success = Banner()
13373
          self.success.read(iprot)
13374
        else:
13375
          iprot.skip(ftype)
13376
      else:
13377
        iprot.skip(ftype)
13378
      iprot.readFieldEnd()
13379
    iprot.readStructEnd()
13380
 
13381
  def write(self, oprot):
13382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13384
      return
13385
    oprot.writeStructBegin('getBannerDetails_result')
13386
    if self.success is not None:
13387
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13388
      self.success.write(oprot)
13389
      oprot.writeFieldEnd()
13390
    oprot.writeFieldStop()
13391
    oprot.writeStructEnd()
13392
 
13393
  def validate(self):
13394
    return
13395
 
13396
 
13397
  def __repr__(self):
13398
    L = ['%s=%r' % (key, value)
13399
      for key, value in self.__dict__.iteritems()]
13400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13401
 
13402
  def __eq__(self, other):
13403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13404
 
13405
  def __ne__(self, other):
13406
    return not (self == other)
13407
 
13408
class getActiveBanners_args:
13409
 
13410
  thrift_spec = (
13411
  )
13412
 
13413
  def read(self, iprot):
13414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13416
      return
13417
    iprot.readStructBegin()
13418
    while True:
13419
      (fname, ftype, fid) = iprot.readFieldBegin()
13420
      if ftype == TType.STOP:
13421
        break
13422
      else:
13423
        iprot.skip(ftype)
13424
      iprot.readFieldEnd()
13425
    iprot.readStructEnd()
13426
 
13427
  def write(self, oprot):
13428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13430
      return
13431
    oprot.writeStructBegin('getActiveBanners_args')
13432
    oprot.writeFieldStop()
13433
    oprot.writeStructEnd()
13434
 
13435
  def validate(self):
13436
    return
13437
 
13438
 
13439
  def __repr__(self):
13440
    L = ['%s=%r' % (key, value)
13441
      for key, value in self.__dict__.iteritems()]
13442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13443
 
13444
  def __eq__(self, other):
13445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13446
 
13447
  def __ne__(self, other):
13448
    return not (self == other)
13449
 
13450
class getActiveBanners_result:
13451
  """
13452
  Attributes:
13453
   - success
13454
  """
13455
 
13456
  thrift_spec = (
8579 kshitij.so 13457
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 13458
  )
13459
 
13460
  def __init__(self, success=None,):
13461
    self.success = success
13462
 
13463
  def read(self, iprot):
13464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13466
      return
13467
    iprot.readStructBegin()
13468
    while True:
13469
      (fname, ftype, fid) = iprot.readFieldBegin()
13470
      if ftype == TType.STOP:
13471
        break
13472
      if fid == 0:
8579 kshitij.so 13473
        if ftype == TType.MAP:
13474
          self.success = {}
8590 kshitij.so 13475
          (_ktype203, _vtype204, _size202 ) = iprot.readMapBegin() 
13476
          for _i206 in xrange(_size202):
13477
            _key207 = iprot.readString();
13478
            _val208 = []
13479
            (_etype212, _size209) = iprot.readListBegin()
13480
            for _i213 in xrange(_size209):
13481
              _elem214 = Banner()
13482
              _elem214.read(iprot)
13483
              _val208.append(_elem214)
8579 kshitij.so 13484
            iprot.readListEnd()
8590 kshitij.so 13485
            self.success[_key207] = _val208
8579 kshitij.so 13486
          iprot.readMapEnd()
6850 kshitij.so 13487
        else:
13488
          iprot.skip(ftype)
13489
      else:
13490
        iprot.skip(ftype)
13491
      iprot.readFieldEnd()
13492
    iprot.readStructEnd()
13493
 
13494
  def write(self, oprot):
13495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13497
      return
13498
    oprot.writeStructBegin('getActiveBanners_result')
13499
    if self.success is not None:
8579 kshitij.so 13500
      oprot.writeFieldBegin('success', TType.MAP, 0)
13501
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
8590 kshitij.so 13502
      for kiter215,viter216 in self.success.items():
13503
        oprot.writeString(kiter215)
13504
        oprot.writeListBegin(TType.STRUCT, len(viter216))
13505
        for iter217 in viter216:
13506
          iter217.write(oprot)
8579 kshitij.so 13507
        oprot.writeListEnd()
13508
      oprot.writeMapEnd()
6850 kshitij.so 13509
      oprot.writeFieldEnd()
13510
    oprot.writeFieldStop()
13511
    oprot.writeStructEnd()
13512
 
13513
  def validate(self):
13514
    return
13515
 
13516
 
13517
  def __repr__(self):
13518
    L = ['%s=%r' % (key, value)
13519
      for key, value in self.__dict__.iteritems()]
13520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13521
 
13522
  def __eq__(self, other):
13523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13524
 
13525
  def __ne__(self, other):
13526
    return not (self == other)
13527
 
6849 kshitij.so 13528
class addBannerMap_args:
13529
  """
13530
  Attributes:
8579 kshitij.so 13531
   - bannerMaps
6849 kshitij.so 13532
  """
13533
 
13534
  thrift_spec = (
13535
    None, # 0
8579 kshitij.so 13536
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 13537
  )
13538
 
8579 kshitij.so 13539
  def __init__(self, bannerMaps=None,):
13540
    self.bannerMaps = bannerMaps
6849 kshitij.so 13541
 
13542
  def read(self, iprot):
13543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13545
      return
13546
    iprot.readStructBegin()
13547
    while True:
13548
      (fname, ftype, fid) = iprot.readFieldBegin()
13549
      if ftype == TType.STOP:
13550
        break
13551
      if fid == 1:
8579 kshitij.so 13552
        if ftype == TType.LIST:
13553
          self.bannerMaps = []
8590 kshitij.so 13554
          (_etype221, _size218) = iprot.readListBegin()
13555
          for _i222 in xrange(_size218):
13556
            _elem223 = BannerMap()
13557
            _elem223.read(iprot)
13558
            self.bannerMaps.append(_elem223)
8579 kshitij.so 13559
          iprot.readListEnd()
6849 kshitij.so 13560
        else:
13561
          iprot.skip(ftype)
8579 kshitij.so 13562
      else:
13563
        iprot.skip(ftype)
13564
      iprot.readFieldEnd()
13565
    iprot.readStructEnd()
13566
 
13567
  def write(self, oprot):
13568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13570
      return
13571
    oprot.writeStructBegin('addBannerMap_args')
13572
    if self.bannerMaps is not None:
13573
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
13574
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
8590 kshitij.so 13575
      for iter224 in self.bannerMaps:
13576
        iter224.write(oprot)
8579 kshitij.so 13577
      oprot.writeListEnd()
13578
      oprot.writeFieldEnd()
13579
    oprot.writeFieldStop()
13580
    oprot.writeStructEnd()
13581
 
13582
  def validate(self):
13583
    return
13584
 
13585
 
13586
  def __repr__(self):
13587
    L = ['%s=%r' % (key, value)
13588
      for key, value in self.__dict__.iteritems()]
13589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13590
 
13591
  def __eq__(self, other):
13592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13593
 
13594
  def __ne__(self, other):
13595
    return not (self == other)
13596
 
13597
class addBannerMap_result:
13598
  """
13599
  Attributes:
13600
   - success
13601
  """
13602
 
13603
  thrift_spec = (
13604
    (0, TType.BOOL, 'success', None, None, ), # 0
13605
  )
13606
 
13607
  def __init__(self, success=None,):
13608
    self.success = success
13609
 
13610
  def read(self, iprot):
13611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13613
      return
13614
    iprot.readStructBegin()
13615
    while True:
13616
      (fname, ftype, fid) = iprot.readFieldBegin()
13617
      if ftype == TType.STOP:
13618
        break
13619
      if fid == 0:
13620
        if ftype == TType.BOOL:
13621
          self.success = iprot.readBool();
6849 kshitij.so 13622
        else:
13623
          iprot.skip(ftype)
8579 kshitij.so 13624
      else:
13625
        iprot.skip(ftype)
13626
      iprot.readFieldEnd()
13627
    iprot.readStructEnd()
13628
 
13629
  def write(self, oprot):
13630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13632
      return
13633
    oprot.writeStructBegin('addBannerMap_result')
13634
    if self.success is not None:
13635
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13636
      oprot.writeBool(self.success)
13637
      oprot.writeFieldEnd()
13638
    oprot.writeFieldStop()
13639
    oprot.writeStructEnd()
13640
 
13641
  def validate(self):
13642
    return
13643
 
13644
 
13645
  def __repr__(self):
13646
    L = ['%s=%r' % (key, value)
13647
      for key, value in self.__dict__.iteritems()]
13648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13649
 
13650
  def __eq__(self, other):
13651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13652
 
13653
  def __ne__(self, other):
13654
    return not (self == other)
13655
 
13656
class updateBannerMap_args:
13657
  """
13658
  Attributes:
13659
   - bannerMap
13660
  """
13661
 
13662
  thrift_spec = (
13663
    None, # 0
13664
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
13665
  )
13666
 
13667
  def __init__(self, bannerMap=None,):
13668
    self.bannerMap = bannerMap
13669
 
13670
  def read(self, iprot):
13671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13673
      return
13674
    iprot.readStructBegin()
13675
    while True:
13676
      (fname, ftype, fid) = iprot.readFieldBegin()
13677
      if ftype == TType.STOP:
13678
        break
13679
      if fid == 1:
13680
        if ftype == TType.STRUCT:
13681
          self.bannerMap = BannerMap()
13682
          self.bannerMap.read(iprot)
6849 kshitij.so 13683
        else:
13684
          iprot.skip(ftype)
13685
      else:
13686
        iprot.skip(ftype)
13687
      iprot.readFieldEnd()
13688
    iprot.readStructEnd()
13689
 
13690
  def write(self, oprot):
13691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13693
      return
8579 kshitij.so 13694
    oprot.writeStructBegin('updateBannerMap_args')
13695
    if self.bannerMap is not None:
13696
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
13697
      self.bannerMap.write(oprot)
6849 kshitij.so 13698
      oprot.writeFieldEnd()
13699
    oprot.writeFieldStop()
13700
    oprot.writeStructEnd()
13701
 
13702
  def validate(self):
13703
    return
13704
 
13705
 
13706
  def __repr__(self):
13707
    L = ['%s=%r' % (key, value)
13708
      for key, value in self.__dict__.iteritems()]
13709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13710
 
13711
  def __eq__(self, other):
13712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13713
 
13714
  def __ne__(self, other):
13715
    return not (self == other)
13716
 
8579 kshitij.so 13717
class updateBannerMap_result:
6849 kshitij.so 13718
  """
13719
  Attributes:
13720
   - success
13721
  """
13722
 
13723
  thrift_spec = (
13724
    (0, TType.BOOL, 'success', None, None, ), # 0
13725
  )
13726
 
13727
  def __init__(self, success=None,):
13728
    self.success = success
13729
 
13730
  def read(self, iprot):
13731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13733
      return
13734
    iprot.readStructBegin()
13735
    while True:
13736
      (fname, ftype, fid) = iprot.readFieldBegin()
13737
      if ftype == TType.STOP:
13738
        break
13739
      if fid == 0:
13740
        if ftype == TType.BOOL:
13741
          self.success = iprot.readBool();
13742
        else:
13743
          iprot.skip(ftype)
13744
      else:
13745
        iprot.skip(ftype)
13746
      iprot.readFieldEnd()
13747
    iprot.readStructEnd()
13748
 
13749
  def write(self, oprot):
13750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13752
      return
8579 kshitij.so 13753
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 13754
    if self.success is not None:
13755
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13756
      oprot.writeBool(self.success)
13757
      oprot.writeFieldEnd()
13758
    oprot.writeFieldStop()
13759
    oprot.writeStructEnd()
13760
 
13761
  def validate(self):
13762
    return
13763
 
13764
 
13765
  def __repr__(self):
13766
    L = ['%s=%r' % (key, value)
13767
      for key, value in self.__dict__.iteritems()]
13768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13769
 
13770
  def __eq__(self, other):
13771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13772
 
13773
  def __ne__(self, other):
13774
    return not (self == other)
13775
 
13776
class deleteBannerMap_args:
13777
  """
13778
  Attributes:
13779
   - bannerName
13780
  """
13781
 
13782
  thrift_spec = (
13783
    None, # 0
13784
    (1, TType.STRING, 'bannerName', None, None, ), # 1
13785
  )
13786
 
13787
  def __init__(self, bannerName=None,):
13788
    self.bannerName = bannerName
13789
 
13790
  def read(self, iprot):
13791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13793
      return
13794
    iprot.readStructBegin()
13795
    while True:
13796
      (fname, ftype, fid) = iprot.readFieldBegin()
13797
      if ftype == TType.STOP:
13798
        break
13799
      if fid == 1:
13800
        if ftype == TType.STRING:
13801
          self.bannerName = iprot.readString();
13802
        else:
13803
          iprot.skip(ftype)
13804
      else:
13805
        iprot.skip(ftype)
13806
      iprot.readFieldEnd()
13807
    iprot.readStructEnd()
13808
 
13809
  def write(self, oprot):
13810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13812
      return
13813
    oprot.writeStructBegin('deleteBannerMap_args')
13814
    if self.bannerName is not None:
13815
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13816
      oprot.writeString(self.bannerName)
13817
      oprot.writeFieldEnd()
13818
    oprot.writeFieldStop()
13819
    oprot.writeStructEnd()
13820
 
13821
  def validate(self):
13822
    return
13823
 
13824
 
13825
  def __repr__(self):
13826
    L = ['%s=%r' % (key, value)
13827
      for key, value in self.__dict__.iteritems()]
13828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13829
 
13830
  def __eq__(self, other):
13831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13832
 
13833
  def __ne__(self, other):
13834
    return not (self == other)
13835
 
13836
class deleteBannerMap_result:
13837
  """
13838
  Attributes:
13839
   - success
13840
  """
13841
 
13842
  thrift_spec = (
13843
    (0, TType.BOOL, 'success', None, None, ), # 0
13844
  )
13845
 
13846
  def __init__(self, success=None,):
13847
    self.success = success
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 == 0:
13859
        if ftype == TType.BOOL:
13860
          self.success = iprot.readBool();
13861
        else:
13862
          iprot.skip(ftype)
13863
      else:
13864
        iprot.skip(ftype)
13865
      iprot.readFieldEnd()
13866
    iprot.readStructEnd()
13867
 
13868
  def write(self, oprot):
13869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13871
      return
13872
    oprot.writeStructBegin('deleteBannerMap_result')
13873
    if self.success is not None:
13874
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13875
      oprot.writeBool(self.success)
13876
      oprot.writeFieldEnd()
13877
    oprot.writeFieldStop()
13878
    oprot.writeStructEnd()
13879
 
13880
  def validate(self):
13881
    return
13882
 
13883
 
13884
  def __repr__(self):
13885
    L = ['%s=%r' % (key, value)
13886
      for key, value in self.__dict__.iteritems()]
13887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13888
 
13889
  def __eq__(self, other):
13890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13891
 
13892
  def __ne__(self, other):
13893
    return not (self == other)
13894
 
13895
class getBannerMapDetails_args:
13896
  """
13897
  Attributes:
13898
   - bannerName
9155 kshitij.so 13899
   - bannerType
6849 kshitij.so 13900
  """
13901
 
13902
  thrift_spec = (
13903
    None, # 0
13904
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13905
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 13906
  )
13907
 
9155 kshitij.so 13908
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 13909
    self.bannerName = bannerName
9155 kshitij.so 13910
    self.bannerType = bannerType
6849 kshitij.so 13911
 
13912
  def read(self, iprot):
13913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13915
      return
13916
    iprot.readStructBegin()
13917
    while True:
13918
      (fname, ftype, fid) = iprot.readFieldBegin()
13919
      if ftype == TType.STOP:
13920
        break
13921
      if fid == 1:
13922
        if ftype == TType.STRING:
13923
          self.bannerName = iprot.readString();
13924
        else:
13925
          iprot.skip(ftype)
9155 kshitij.so 13926
      elif fid == 2:
13927
        if ftype == TType.I32:
13928
          self.bannerType = iprot.readI32();
13929
        else:
13930
          iprot.skip(ftype)
6849 kshitij.so 13931
      else:
13932
        iprot.skip(ftype)
13933
      iprot.readFieldEnd()
13934
    iprot.readStructEnd()
13935
 
13936
  def write(self, oprot):
13937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13939
      return
13940
    oprot.writeStructBegin('getBannerMapDetails_args')
13941
    if self.bannerName is not None:
13942
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13943
      oprot.writeString(self.bannerName)
13944
      oprot.writeFieldEnd()
9155 kshitij.so 13945
    if self.bannerType is not None:
13946
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13947
      oprot.writeI32(self.bannerType)
13948
      oprot.writeFieldEnd()
6849 kshitij.so 13949
    oprot.writeFieldStop()
13950
    oprot.writeStructEnd()
13951
 
13952
  def validate(self):
13953
    return
13954
 
13955
 
13956
  def __repr__(self):
13957
    L = ['%s=%r' % (key, value)
13958
      for key, value in self.__dict__.iteritems()]
13959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13960
 
13961
  def __eq__(self, other):
13962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13963
 
13964
  def __ne__(self, other):
13965
    return not (self == other)
13966
 
13967
class getBannerMapDetails_result:
13968
  """
13969
  Attributes:
13970
   - success
13971
  """
13972
 
13973
  thrift_spec = (
13974
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
13975
  )
13976
 
13977
  def __init__(self, success=None,):
13978
    self.success = success
13979
 
13980
  def read(self, iprot):
13981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13983
      return
13984
    iprot.readStructBegin()
13985
    while True:
13986
      (fname, ftype, fid) = iprot.readFieldBegin()
13987
      if ftype == TType.STOP:
13988
        break
13989
      if fid == 0:
13990
        if ftype == TType.LIST:
13991
          self.success = []
8590 kshitij.so 13992
          (_etype228, _size225) = iprot.readListBegin()
13993
          for _i229 in xrange(_size225):
13994
            _elem230 = BannerMap()
13995
            _elem230.read(iprot)
13996
            self.success.append(_elem230)
6849 kshitij.so 13997
          iprot.readListEnd()
13998
        else:
13999
          iprot.skip(ftype)
14000
      else:
14001
        iprot.skip(ftype)
14002
      iprot.readFieldEnd()
14003
    iprot.readStructEnd()
14004
 
14005
  def write(self, oprot):
14006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14008
      return
14009
    oprot.writeStructBegin('getBannerMapDetails_result')
14010
    if self.success is not None:
14011
      oprot.writeFieldBegin('success', TType.LIST, 0)
14012
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14013
      for iter231 in self.success:
14014
        iter231.write(oprot)
6849 kshitij.so 14015
      oprot.writeListEnd()
14016
      oprot.writeFieldEnd()
14017
    oprot.writeFieldStop()
14018
    oprot.writeStructEnd()
14019
 
14020
  def validate(self):
14021
    return
14022
 
14023
 
14024
  def __repr__(self):
14025
    L = ['%s=%r' % (key, value)
14026
      for key, value in self.__dict__.iteritems()]
14027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14028
 
14029
  def __eq__(self, other):
14030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14031
 
14032
  def __ne__(self, other):
14033
    return not (self == other)
14034
 
8579 kshitij.so 14035
class addBannerUri_args:
14036
  """
14037
  Attributes:
14038
   - bannerUriMappings
14039
  """
14040
 
14041
  thrift_spec = (
14042
    None, # 0
14043
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
14044
  )
14045
 
14046
  def __init__(self, bannerUriMappings=None,):
14047
    self.bannerUriMappings = bannerUriMappings
14048
 
14049
  def read(self, iprot):
14050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14052
      return
14053
    iprot.readStructBegin()
14054
    while True:
14055
      (fname, ftype, fid) = iprot.readFieldBegin()
14056
      if ftype == TType.STOP:
14057
        break
14058
      if fid == 1:
14059
        if ftype == TType.LIST:
14060
          self.bannerUriMappings = []
8590 kshitij.so 14061
          (_etype235, _size232) = iprot.readListBegin()
14062
          for _i236 in xrange(_size232):
14063
            _elem237 = BannerUriMapping()
14064
            _elem237.read(iprot)
14065
            self.bannerUriMappings.append(_elem237)
8579 kshitij.so 14066
          iprot.readListEnd()
14067
        else:
14068
          iprot.skip(ftype)
14069
      else:
14070
        iprot.skip(ftype)
14071
      iprot.readFieldEnd()
14072
    iprot.readStructEnd()
14073
 
14074
  def write(self, oprot):
14075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14077
      return
14078
    oprot.writeStructBegin('addBannerUri_args')
14079
    if self.bannerUriMappings is not None:
14080
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
14081
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
8590 kshitij.so 14082
      for iter238 in self.bannerUriMappings:
14083
        iter238.write(oprot)
8579 kshitij.so 14084
      oprot.writeListEnd()
14085
      oprot.writeFieldEnd()
14086
    oprot.writeFieldStop()
14087
    oprot.writeStructEnd()
14088
 
14089
  def validate(self):
14090
    return
14091
 
14092
 
14093
  def __repr__(self):
14094
    L = ['%s=%r' % (key, value)
14095
      for key, value in self.__dict__.iteritems()]
14096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14097
 
14098
  def __eq__(self, other):
14099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14100
 
14101
  def __ne__(self, other):
14102
    return not (self == other)
14103
 
14104
class addBannerUri_result:
14105
 
14106
  thrift_spec = (
14107
  )
14108
 
14109
  def read(self, iprot):
14110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14112
      return
14113
    iprot.readStructBegin()
14114
    while True:
14115
      (fname, ftype, fid) = iprot.readFieldBegin()
14116
      if ftype == TType.STOP:
14117
        break
14118
      else:
14119
        iprot.skip(ftype)
14120
      iprot.readFieldEnd()
14121
    iprot.readStructEnd()
14122
 
14123
  def write(self, oprot):
14124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14126
      return
14127
    oprot.writeStructBegin('addBannerUri_result')
14128
    oprot.writeFieldStop()
14129
    oprot.writeStructEnd()
14130
 
14131
  def validate(self):
14132
    return
14133
 
14134
 
14135
  def __repr__(self):
14136
    L = ['%s=%r' % (key, value)
14137
      for key, value in self.__dict__.iteritems()]
14138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14139
 
14140
  def __eq__(self, other):
14141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14142
 
14143
  def __ne__(self, other):
14144
    return not (self == other)
14145
 
14146
class getUriMapping_args:
14147
  """
14148
  Attributes:
14149
   - bannerName
9155 kshitij.so 14150
   - bannerType
8579 kshitij.so 14151
  """
14152
 
14153
  thrift_spec = (
14154
    None, # 0
14155
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 14156
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 14157
  )
14158
 
9155 kshitij.so 14159
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 14160
    self.bannerName = bannerName
9155 kshitij.so 14161
    self.bannerType = bannerType
8579 kshitij.so 14162
 
14163
  def read(self, iprot):
14164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14166
      return
14167
    iprot.readStructBegin()
14168
    while True:
14169
      (fname, ftype, fid) = iprot.readFieldBegin()
14170
      if ftype == TType.STOP:
14171
        break
14172
      if fid == 1:
14173
        if ftype == TType.STRING:
14174
          self.bannerName = iprot.readString();
14175
        else:
14176
          iprot.skip(ftype)
9155 kshitij.so 14177
      elif fid == 2:
14178
        if ftype == TType.I32:
14179
          self.bannerType = iprot.readI32();
14180
        else:
14181
          iprot.skip(ftype)
8579 kshitij.so 14182
      else:
14183
        iprot.skip(ftype)
14184
      iprot.readFieldEnd()
14185
    iprot.readStructEnd()
14186
 
14187
  def write(self, oprot):
14188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14190
      return
14191
    oprot.writeStructBegin('getUriMapping_args')
14192
    if self.bannerName is not None:
14193
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14194
      oprot.writeString(self.bannerName)
14195
      oprot.writeFieldEnd()
9155 kshitij.so 14196
    if self.bannerType is not None:
14197
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
14198
      oprot.writeI32(self.bannerType)
14199
      oprot.writeFieldEnd()
8579 kshitij.so 14200
    oprot.writeFieldStop()
14201
    oprot.writeStructEnd()
14202
 
14203
  def validate(self):
14204
    return
14205
 
14206
 
14207
  def __repr__(self):
14208
    L = ['%s=%r' % (key, value)
14209
      for key, value in self.__dict__.iteritems()]
14210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14211
 
14212
  def __eq__(self, other):
14213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14214
 
14215
  def __ne__(self, other):
14216
    return not (self == other)
14217
 
14218
class getUriMapping_result:
14219
  """
14220
  Attributes:
14221
   - success
14222
  """
14223
 
14224
  thrift_spec = (
14225
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
14226
  )
14227
 
14228
  def __init__(self, success=None,):
14229
    self.success = success
14230
 
14231
  def read(self, iprot):
14232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14234
      return
14235
    iprot.readStructBegin()
14236
    while True:
14237
      (fname, ftype, fid) = iprot.readFieldBegin()
14238
      if ftype == TType.STOP:
14239
        break
14240
      if fid == 0:
14241
        if ftype == TType.LIST:
14242
          self.success = []
8590 kshitij.so 14243
          (_etype242, _size239) = iprot.readListBegin()
14244
          for _i243 in xrange(_size239):
14245
            _elem244 = BannerUriMapping()
14246
            _elem244.read(iprot)
14247
            self.success.append(_elem244)
8579 kshitij.so 14248
          iprot.readListEnd()
14249
        else:
14250
          iprot.skip(ftype)
14251
      else:
14252
        iprot.skip(ftype)
14253
      iprot.readFieldEnd()
14254
    iprot.readStructEnd()
14255
 
14256
  def write(self, oprot):
14257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14259
      return
14260
    oprot.writeStructBegin('getUriMapping_result')
14261
    if self.success is not None:
14262
      oprot.writeFieldBegin('success', TType.LIST, 0)
14263
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14264
      for iter245 in self.success:
14265
        iter245.write(oprot)
8579 kshitij.so 14266
      oprot.writeListEnd()
14267
      oprot.writeFieldEnd()
14268
    oprot.writeFieldStop()
14269
    oprot.writeStructEnd()
14270
 
14271
  def validate(self):
14272
    return
14273
 
14274
 
14275
  def __repr__(self):
14276
    L = ['%s=%r' % (key, value)
14277
      for key, value in self.__dict__.iteritems()]
14278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14279
 
14280
  def __eq__(self, other):
14281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14282
 
14283
  def __ne__(self, other):
14284
    return not (self == other)
14285
 
14286
class addCampaign_args:
14287
  """
14288
  Attributes:
14289
   - campaign
14290
  """
14291
 
14292
  thrift_spec = (
14293
    None, # 0
14294
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
14295
  )
14296
 
14297
  def __init__(self, campaign=None,):
14298
    self.campaign = campaign
14299
 
14300
  def read(self, iprot):
14301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14303
      return
14304
    iprot.readStructBegin()
14305
    while True:
14306
      (fname, ftype, fid) = iprot.readFieldBegin()
14307
      if ftype == TType.STOP:
14308
        break
14309
      if fid == 1:
14310
        if ftype == TType.STRUCT:
14311
          self.campaign = Campaign()
14312
          self.campaign.read(iprot)
14313
        else:
14314
          iprot.skip(ftype)
14315
      else:
14316
        iprot.skip(ftype)
14317
      iprot.readFieldEnd()
14318
    iprot.readStructEnd()
14319
 
14320
  def write(self, oprot):
14321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14323
      return
14324
    oprot.writeStructBegin('addCampaign_args')
14325
    if self.campaign is not None:
14326
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
14327
      self.campaign.write(oprot)
14328
      oprot.writeFieldEnd()
14329
    oprot.writeFieldStop()
14330
    oprot.writeStructEnd()
14331
 
14332
  def validate(self):
14333
    return
14334
 
14335
 
14336
  def __repr__(self):
14337
    L = ['%s=%r' % (key, value)
14338
      for key, value in self.__dict__.iteritems()]
14339
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14340
 
14341
  def __eq__(self, other):
14342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14343
 
14344
  def __ne__(self, other):
14345
    return not (self == other)
14346
 
14347
class addCampaign_result:
14348
 
14349
  thrift_spec = (
14350
  )
14351
 
14352
  def read(self, iprot):
14353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14355
      return
14356
    iprot.readStructBegin()
14357
    while True:
14358
      (fname, ftype, fid) = iprot.readFieldBegin()
14359
      if ftype == TType.STOP:
14360
        break
14361
      else:
14362
        iprot.skip(ftype)
14363
      iprot.readFieldEnd()
14364
    iprot.readStructEnd()
14365
 
14366
  def write(self, oprot):
14367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14369
      return
14370
    oprot.writeStructBegin('addCampaign_result')
14371
    oprot.writeFieldStop()
14372
    oprot.writeStructEnd()
14373
 
14374
  def validate(self):
14375
    return
14376
 
14377
 
14378
  def __repr__(self):
14379
    L = ['%s=%r' % (key, value)
14380
      for key, value in self.__dict__.iteritems()]
14381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14382
 
14383
  def __eq__(self, other):
14384
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14385
 
14386
  def __ne__(self, other):
14387
    return not (self == other)
14388
 
14389
class getCampaigns_args:
14390
  """
14391
  Attributes:
14392
   - campaignName
14393
  """
14394
 
14395
  thrift_spec = (
14396
    None, # 0
14397
    (1, TType.STRING, 'campaignName', None, None, ), # 1
14398
  )
14399
 
14400
  def __init__(self, campaignName=None,):
14401
    self.campaignName = campaignName
14402
 
14403
  def read(self, iprot):
14404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14406
      return
14407
    iprot.readStructBegin()
14408
    while True:
14409
      (fname, ftype, fid) = iprot.readFieldBegin()
14410
      if ftype == TType.STOP:
14411
        break
14412
      if fid == 1:
14413
        if ftype == TType.STRING:
14414
          self.campaignName = iprot.readString();
14415
        else:
14416
          iprot.skip(ftype)
14417
      else:
14418
        iprot.skip(ftype)
14419
      iprot.readFieldEnd()
14420
    iprot.readStructEnd()
14421
 
14422
  def write(self, oprot):
14423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14425
      return
14426
    oprot.writeStructBegin('getCampaigns_args')
14427
    if self.campaignName is not None:
14428
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
14429
      oprot.writeString(self.campaignName)
14430
      oprot.writeFieldEnd()
14431
    oprot.writeFieldStop()
14432
    oprot.writeStructEnd()
14433
 
14434
  def validate(self):
14435
    return
14436
 
14437
 
14438
  def __repr__(self):
14439
    L = ['%s=%r' % (key, value)
14440
      for key, value in self.__dict__.iteritems()]
14441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14442
 
14443
  def __eq__(self, other):
14444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14445
 
14446
  def __ne__(self, other):
14447
    return not (self == other)
14448
 
14449
class getCampaigns_result:
14450
  """
14451
  Attributes:
14452
   - success
14453
  """
14454
 
14455
  thrift_spec = (
14456
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
14457
  )
14458
 
14459
  def __init__(self, success=None,):
14460
    self.success = success
14461
 
14462
  def read(self, iprot):
14463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14465
      return
14466
    iprot.readStructBegin()
14467
    while True:
14468
      (fname, ftype, fid) = iprot.readFieldBegin()
14469
      if ftype == TType.STOP:
14470
        break
14471
      if fid == 0:
14472
        if ftype == TType.LIST:
14473
          self.success = []
8590 kshitij.so 14474
          (_etype249, _size246) = iprot.readListBegin()
14475
          for _i250 in xrange(_size246):
14476
            _elem251 = Campaign()
14477
            _elem251.read(iprot)
14478
            self.success.append(_elem251)
8579 kshitij.so 14479
          iprot.readListEnd()
14480
        else:
14481
          iprot.skip(ftype)
14482
      else:
14483
        iprot.skip(ftype)
14484
      iprot.readFieldEnd()
14485
    iprot.readStructEnd()
14486
 
14487
  def write(self, oprot):
14488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14490
      return
14491
    oprot.writeStructBegin('getCampaigns_result')
14492
    if self.success is not None:
14493
      oprot.writeFieldBegin('success', TType.LIST, 0)
14494
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14495
      for iter252 in self.success:
14496
        iter252.write(oprot)
8579 kshitij.so 14497
      oprot.writeListEnd()
14498
      oprot.writeFieldEnd()
14499
    oprot.writeFieldStop()
14500
    oprot.writeStructEnd()
14501
 
14502
  def validate(self):
14503
    return
14504
 
14505
 
14506
  def __repr__(self):
14507
    L = ['%s=%r' % (key, value)
14508
      for key, value in self.__dict__.iteritems()]
14509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14510
 
14511
  def __eq__(self, other):
14512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14513
 
14514
  def __ne__(self, other):
14515
    return not (self == other)
14516
 
14517
class deleteCampaign_args:
14518
  """
14519
  Attributes:
14520
   - campaignId
14521
  """
14522
 
14523
  thrift_spec = (
14524
    None, # 0
14525
    (1, TType.I64, 'campaignId', None, None, ), # 1
14526
  )
14527
 
14528
  def __init__(self, campaignId=None,):
14529
    self.campaignId = campaignId
14530
 
14531
  def read(self, iprot):
14532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14534
      return
14535
    iprot.readStructBegin()
14536
    while True:
14537
      (fname, ftype, fid) = iprot.readFieldBegin()
14538
      if ftype == TType.STOP:
14539
        break
14540
      if fid == 1:
14541
        if ftype == TType.I64:
14542
          self.campaignId = iprot.readI64();
14543
        else:
14544
          iprot.skip(ftype)
14545
      else:
14546
        iprot.skip(ftype)
14547
      iprot.readFieldEnd()
14548
    iprot.readStructEnd()
14549
 
14550
  def write(self, oprot):
14551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14553
      return
14554
    oprot.writeStructBegin('deleteCampaign_args')
14555
    if self.campaignId is not None:
14556
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
14557
      oprot.writeI64(self.campaignId)
14558
      oprot.writeFieldEnd()
14559
    oprot.writeFieldStop()
14560
    oprot.writeStructEnd()
14561
 
14562
  def validate(self):
14563
    return
14564
 
14565
 
14566
  def __repr__(self):
14567
    L = ['%s=%r' % (key, value)
14568
      for key, value in self.__dict__.iteritems()]
14569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14570
 
14571
  def __eq__(self, other):
14572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14573
 
14574
  def __ne__(self, other):
14575
    return not (self == other)
14576
 
14577
class deleteCampaign_result:
14578
 
14579
  thrift_spec = (
14580
  )
14581
 
14582
  def read(self, iprot):
14583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14585
      return
14586
    iprot.readStructBegin()
14587
    while True:
14588
      (fname, ftype, fid) = iprot.readFieldBegin()
14589
      if ftype == TType.STOP:
14590
        break
14591
      else:
14592
        iprot.skip(ftype)
14593
      iprot.readFieldEnd()
14594
    iprot.readStructEnd()
14595
 
14596
  def write(self, oprot):
14597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14599
      return
14600
    oprot.writeStructBegin('deleteCampaign_result')
14601
    oprot.writeFieldStop()
14602
    oprot.writeStructEnd()
14603
 
14604
  def validate(self):
14605
    return
14606
 
14607
 
14608
  def __repr__(self):
14609
    L = ['%s=%r' % (key, value)
14610
      for key, value in self.__dict__.iteritems()]
14611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14612
 
14613
  def __eq__(self, other):
14614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14615
 
14616
  def __ne__(self, other):
14617
    return not (self == other)
14618
 
14619
class getAllCampaigns_args:
14620
 
14621
  thrift_spec = (
14622
  )
14623
 
14624
  def read(self, iprot):
14625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14627
      return
14628
    iprot.readStructBegin()
14629
    while True:
14630
      (fname, ftype, fid) = iprot.readFieldBegin()
14631
      if ftype == TType.STOP:
14632
        break
14633
      else:
14634
        iprot.skip(ftype)
14635
      iprot.readFieldEnd()
14636
    iprot.readStructEnd()
14637
 
14638
  def write(self, oprot):
14639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14641
      return
14642
    oprot.writeStructBegin('getAllCampaigns_args')
14643
    oprot.writeFieldStop()
14644
    oprot.writeStructEnd()
14645
 
14646
  def validate(self):
14647
    return
14648
 
14649
 
14650
  def __repr__(self):
14651
    L = ['%s=%r' % (key, value)
14652
      for key, value in self.__dict__.iteritems()]
14653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14654
 
14655
  def __eq__(self, other):
14656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14657
 
14658
  def __ne__(self, other):
14659
    return not (self == other)
14660
 
14661
class getAllCampaigns_result:
14662
  """
14663
  Attributes:
14664
   - success
14665
  """
14666
 
14667
  thrift_spec = (
14668
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14669
  )
14670
 
14671
  def __init__(self, success=None,):
14672
    self.success = success
14673
 
14674
  def read(self, iprot):
14675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14677
      return
14678
    iprot.readStructBegin()
14679
    while True:
14680
      (fname, ftype, fid) = iprot.readFieldBegin()
14681
      if ftype == TType.STOP:
14682
        break
14683
      if fid == 0:
14684
        if ftype == TType.LIST:
14685
          self.success = []
8590 kshitij.so 14686
          (_etype256, _size253) = iprot.readListBegin()
14687
          for _i257 in xrange(_size253):
14688
            _elem258 = iprot.readString();
14689
            self.success.append(_elem258)
8579 kshitij.so 14690
          iprot.readListEnd()
14691
        else:
14692
          iprot.skip(ftype)
14693
      else:
14694
        iprot.skip(ftype)
14695
      iprot.readFieldEnd()
14696
    iprot.readStructEnd()
14697
 
14698
  def write(self, oprot):
14699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14701
      return
14702
    oprot.writeStructBegin('getAllCampaigns_result')
14703
    if self.success is not None:
14704
      oprot.writeFieldBegin('success', TType.LIST, 0)
14705
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 14706
      for iter259 in self.success:
14707
        oprot.writeString(iter259)
8579 kshitij.so 14708
      oprot.writeListEnd()
14709
      oprot.writeFieldEnd()
14710
    oprot.writeFieldStop()
14711
    oprot.writeStructEnd()
14712
 
14713
  def validate(self):
14714
    return
14715
 
14716
 
14717
  def __repr__(self):
14718
    L = ['%s=%r' % (key, value)
14719
      for key, value in self.__dict__.iteritems()]
14720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14721
 
14722
  def __eq__(self, other):
14723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14724
 
14725
  def __ne__(self, other):
14726
    return not (self == other)
14727
 
9155 kshitij.so 14728
class getActiveBannersForMobileSite_args:
14729
 
14730
  thrift_spec = (
14731
  )
14732
 
14733
  def read(self, iprot):
14734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14736
      return
14737
    iprot.readStructBegin()
14738
    while True:
14739
      (fname, ftype, fid) = iprot.readFieldBegin()
14740
      if ftype == TType.STOP:
14741
        break
14742
      else:
14743
        iprot.skip(ftype)
14744
      iprot.readFieldEnd()
14745
    iprot.readStructEnd()
14746
 
14747
  def write(self, oprot):
14748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14750
      return
14751
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
14752
    oprot.writeFieldStop()
14753
    oprot.writeStructEnd()
14754
 
14755
  def validate(self):
14756
    return
14757
 
14758
 
14759
  def __repr__(self):
14760
    L = ['%s=%r' % (key, value)
14761
      for key, value in self.__dict__.iteritems()]
14762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14763
 
14764
  def __eq__(self, other):
14765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14766
 
14767
  def __ne__(self, other):
14768
    return not (self == other)
14769
 
14770
class getActiveBannersForMobileSite_result:
14771
  """
14772
  Attributes:
14773
   - success
14774
  """
14775
 
14776
  thrift_spec = (
14777
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
14778
  )
14779
 
14780
  def __init__(self, success=None,):
14781
    self.success = success
14782
 
14783
  def read(self, iprot):
14784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14786
      return
14787
    iprot.readStructBegin()
14788
    while True:
14789
      (fname, ftype, fid) = iprot.readFieldBegin()
14790
      if ftype == TType.STOP:
14791
        break
14792
      if fid == 0:
14793
        if ftype == TType.MAP:
14794
          self.success = {}
14795
          (_ktype261, _vtype262, _size260 ) = iprot.readMapBegin() 
14796
          for _i264 in xrange(_size260):
14797
            _key265 = iprot.readString();
14798
            _val266 = []
14799
            (_etype270, _size267) = iprot.readListBegin()
14800
            for _i271 in xrange(_size267):
14801
              _elem272 = Banner()
14802
              _elem272.read(iprot)
14803
              _val266.append(_elem272)
14804
            iprot.readListEnd()
14805
            self.success[_key265] = _val266
14806
          iprot.readMapEnd()
14807
        else:
14808
          iprot.skip(ftype)
14809
      else:
14810
        iprot.skip(ftype)
14811
      iprot.readFieldEnd()
14812
    iprot.readStructEnd()
14813
 
14814
  def write(self, oprot):
14815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14817
      return
14818
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
14819
    if self.success is not None:
14820
      oprot.writeFieldBegin('success', TType.MAP, 0)
14821
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
14822
      for kiter273,viter274 in self.success.items():
14823
        oprot.writeString(kiter273)
14824
        oprot.writeListBegin(TType.STRUCT, len(viter274))
14825
        for iter275 in viter274:
14826
          iter275.write(oprot)
14827
        oprot.writeListEnd()
14828
      oprot.writeMapEnd()
14829
      oprot.writeFieldEnd()
14830
    oprot.writeFieldStop()
14831
    oprot.writeStructEnd()
14832
 
14833
  def validate(self):
14834
    return
14835
 
14836
 
14837
  def __repr__(self):
14838
    L = ['%s=%r' % (key, value)
14839
      for key, value in self.__dict__.iteritems()]
14840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14841
 
14842
  def __eq__(self, other):
14843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14844
 
14845
  def __ne__(self, other):
14846
    return not (self == other)
14847
 
5944 mandeep.dh 14848
class deleteSimilarItem_args:
14849
  """
14850
  Attributes:
14851
   - itemId
14852
   - catalogItemId
14853
  """
14854
 
14855
  thrift_spec = (
14856
    None, # 0
14857
    (1, TType.I64, 'itemId', None, None, ), # 1
14858
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
14859
  )
14860
 
14861
  def __init__(self, itemId=None, catalogItemId=None,):
14862
    self.itemId = itemId
14863
    self.catalogItemId = catalogItemId
14864
 
14865
  def read(self, iprot):
14866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14868
      return
14869
    iprot.readStructBegin()
14870
    while True:
14871
      (fname, ftype, fid) = iprot.readFieldBegin()
14872
      if ftype == TType.STOP:
14873
        break
14874
      if fid == 1:
14875
        if ftype == TType.I64:
14876
          self.itemId = iprot.readI64();
14877
        else:
14878
          iprot.skip(ftype)
14879
      elif fid == 2:
14880
        if ftype == TType.I64:
14881
          self.catalogItemId = iprot.readI64();
14882
        else:
14883
          iprot.skip(ftype)
14884
      else:
14885
        iprot.skip(ftype)
14886
      iprot.readFieldEnd()
14887
    iprot.readStructEnd()
14888
 
14889
  def write(self, oprot):
14890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14892
      return
14893
    oprot.writeStructBegin('deleteSimilarItem_args')
14894
    if self.itemId is not None:
14895
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14896
      oprot.writeI64(self.itemId)
14897
      oprot.writeFieldEnd()
14898
    if self.catalogItemId is not None:
14899
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
14900
      oprot.writeI64(self.catalogItemId)
14901
      oprot.writeFieldEnd()
14902
    oprot.writeFieldStop()
14903
    oprot.writeStructEnd()
14904
 
14905
  def validate(self):
14906
    return
14907
 
14908
 
14909
  def __repr__(self):
14910
    L = ['%s=%r' % (key, value)
14911
      for key, value in self.__dict__.iteritems()]
14912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14913
 
14914
  def __eq__(self, other):
14915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14916
 
14917
  def __ne__(self, other):
14918
    return not (self == other)
14919
 
14920
class deleteSimilarItem_result:
14921
  """
14922
  Attributes:
14923
   - success
14924
   - cex
14925
  """
14926
 
14927
  thrift_spec = (
14928
    (0, TType.BOOL, 'success', None, None, ), # 0
14929
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
14930
  )
14931
 
14932
  def __init__(self, success=None, cex=None,):
14933
    self.success = success
14934
    self.cex = cex
14935
 
14936
  def read(self, iprot):
14937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14939
      return
14940
    iprot.readStructBegin()
14941
    while True:
14942
      (fname, ftype, fid) = iprot.readFieldBegin()
14943
      if ftype == TType.STOP:
14944
        break
14945
      if fid == 0:
14946
        if ftype == TType.BOOL:
14947
          self.success = iprot.readBool();
14948
        else:
14949
          iprot.skip(ftype)
14950
      elif fid == 1:
14951
        if ftype == TType.STRUCT:
14952
          self.cex = CatalogServiceException()
14953
          self.cex.read(iprot)
14954
        else:
14955
          iprot.skip(ftype)
14956
      else:
14957
        iprot.skip(ftype)
14958
      iprot.readFieldEnd()
14959
    iprot.readStructEnd()
14960
 
14961
  def write(self, oprot):
14962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14964
      return
14965
    oprot.writeStructBegin('deleteSimilarItem_result')
14966
    if self.success is not None:
14967
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14968
      oprot.writeBool(self.success)
14969
      oprot.writeFieldEnd()
14970
    if self.cex is not None:
14971
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14972
      self.cex.write(oprot)
14973
      oprot.writeFieldEnd()
14974
    oprot.writeFieldStop()
14975
    oprot.writeStructEnd()
14976
 
14977
  def validate(self):
14978
    return
14979
 
14980
 
14981
  def __repr__(self):
14982
    L = ['%s=%r' % (key, value)
14983
      for key, value in self.__dict__.iteritems()]
14984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14985
 
14986
  def __eq__(self, other):
14987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14988
 
14989
  def __ne__(self, other):
14990
    return not (self == other)
14991
 
14992
class checkSimilarItem_args:
14993
  """
14994
  Attributes:
14995
   - brand
14996
   - modelNumber
14997
   - modelName
14998
   - color
14999
  """
15000
 
15001
  thrift_spec = (
15002
    None, # 0
15003
    (1, TType.STRING, 'brand', None, None, ), # 1
15004
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
15005
    (3, TType.STRING, 'modelName', None, None, ), # 3
15006
    (4, TType.STRING, 'color', None, None, ), # 4
15007
  )
15008
 
15009
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
15010
    self.brand = brand
15011
    self.modelNumber = modelNumber
15012
    self.modelName = modelName
15013
    self.color = color
15014
 
15015
  def read(self, iprot):
15016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15018
      return
15019
    iprot.readStructBegin()
15020
    while True:
15021
      (fname, ftype, fid) = iprot.readFieldBegin()
15022
      if ftype == TType.STOP:
15023
        break
15024
      if fid == 1:
15025
        if ftype == TType.STRING:
15026
          self.brand = iprot.readString();
15027
        else:
15028
          iprot.skip(ftype)
15029
      elif fid == 2:
15030
        if ftype == TType.STRING:
15031
          self.modelNumber = iprot.readString();
15032
        else:
15033
          iprot.skip(ftype)
15034
      elif fid == 3:
15035
        if ftype == TType.STRING:
15036
          self.modelName = iprot.readString();
15037
        else:
15038
          iprot.skip(ftype)
15039
      elif fid == 4:
15040
        if ftype == TType.STRING:
15041
          self.color = iprot.readString();
15042
        else:
15043
          iprot.skip(ftype)
15044
      else:
15045
        iprot.skip(ftype)
15046
      iprot.readFieldEnd()
15047
    iprot.readStructEnd()
15048
 
15049
  def write(self, oprot):
15050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15052
      return
15053
    oprot.writeStructBegin('checkSimilarItem_args')
15054
    if self.brand is not None:
15055
      oprot.writeFieldBegin('brand', TType.STRING, 1)
15056
      oprot.writeString(self.brand)
15057
      oprot.writeFieldEnd()
15058
    if self.modelNumber is not None:
15059
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
15060
      oprot.writeString(self.modelNumber)
15061
      oprot.writeFieldEnd()
15062
    if self.modelName is not None:
15063
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
15064
      oprot.writeString(self.modelName)
15065
      oprot.writeFieldEnd()
15066
    if self.color is not None:
15067
      oprot.writeFieldBegin('color', TType.STRING, 4)
15068
      oprot.writeString(self.color)
15069
      oprot.writeFieldEnd()
15070
    oprot.writeFieldStop()
15071
    oprot.writeStructEnd()
15072
 
15073
  def validate(self):
15074
    return
15075
 
15076
 
15077
  def __repr__(self):
15078
    L = ['%s=%r' % (key, value)
15079
      for key, value in self.__dict__.iteritems()]
15080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15081
 
15082
  def __eq__(self, other):
15083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15084
 
15085
  def __ne__(self, other):
15086
    return not (self == other)
15087
 
15088
class checkSimilarItem_result:
15089
  """
15090
  Attributes:
15091
   - success
15092
  """
15093
 
15094
  thrift_spec = (
15095
    (0, TType.I64, 'success', None, None, ), # 0
15096
  )
15097
 
15098
  def __init__(self, success=None,):
15099
    self.success = success
15100
 
15101
  def read(self, iprot):
15102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15104
      return
15105
    iprot.readStructBegin()
15106
    while True:
15107
      (fname, ftype, fid) = iprot.readFieldBegin()
15108
      if ftype == TType.STOP:
15109
        break
15110
      if fid == 0:
15111
        if ftype == TType.I64:
15112
          self.success = iprot.readI64();
15113
        else:
15114
          iprot.skip(ftype)
15115
      else:
15116
        iprot.skip(ftype)
15117
      iprot.readFieldEnd()
15118
    iprot.readStructEnd()
15119
 
15120
  def write(self, oprot):
15121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15123
      return
15124
    oprot.writeStructBegin('checkSimilarItem_result')
15125
    if self.success is not None:
15126
      oprot.writeFieldBegin('success', TType.I64, 0)
15127
      oprot.writeI64(self.success)
15128
      oprot.writeFieldEnd()
15129
    oprot.writeFieldStop()
15130
    oprot.writeStructEnd()
15131
 
15132
  def validate(self):
15133
    return
15134
 
15135
 
15136
  def __repr__(self):
15137
    L = ['%s=%r' % (key, value)
15138
      for key, value in self.__dict__.iteritems()]
15139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15140
 
15141
  def __eq__(self, other):
15142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15143
 
15144
  def __ne__(self, other):
15145
    return not (self == other)
15146
 
15147
class validateRiskyStatus_args:
15148
  """
15149
  Attributes:
15150
   - itemId
15151
  """
15152
 
15153
  thrift_spec = (
15154
    None, # 0
15155
    (1, TType.I64, 'itemId', None, None, ), # 1
15156
  )
15157
 
15158
  def __init__(self, itemId=None,):
15159
    self.itemId = itemId
15160
 
15161
  def read(self, iprot):
15162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15164
      return
15165
    iprot.readStructBegin()
15166
    while True:
15167
      (fname, ftype, fid) = iprot.readFieldBegin()
15168
      if ftype == TType.STOP:
15169
        break
15170
      if fid == 1:
15171
        if ftype == TType.I64:
15172
          self.itemId = iprot.readI64();
15173
        else:
15174
          iprot.skip(ftype)
15175
      else:
15176
        iprot.skip(ftype)
15177
      iprot.readFieldEnd()
15178
    iprot.readStructEnd()
15179
 
15180
  def write(self, oprot):
15181
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15182
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15183
      return
15184
    oprot.writeStructBegin('validateRiskyStatus_args')
15185
    if self.itemId is not None:
15186
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15187
      oprot.writeI64(self.itemId)
15188
      oprot.writeFieldEnd()
15189
    oprot.writeFieldStop()
15190
    oprot.writeStructEnd()
15191
 
15192
  def validate(self):
15193
    return
15194
 
15195
 
15196
  def __repr__(self):
15197
    L = ['%s=%r' % (key, value)
15198
      for key, value in self.__dict__.iteritems()]
15199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15200
 
15201
  def __eq__(self, other):
15202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15203
 
15204
  def __ne__(self, other):
15205
    return not (self == other)
15206
 
15207
class validateRiskyStatus_result:
15208
 
15209
  thrift_spec = (
15210
  )
15211
 
15212
  def read(self, iprot):
15213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15215
      return
15216
    iprot.readStructBegin()
15217
    while True:
15218
      (fname, ftype, fid) = iprot.readFieldBegin()
15219
      if ftype == TType.STOP:
15220
        break
15221
      else:
15222
        iprot.skip(ftype)
15223
      iprot.readFieldEnd()
15224
    iprot.readStructEnd()
15225
 
15226
  def write(self, oprot):
15227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15229
      return
15230
    oprot.writeStructBegin('validateRiskyStatus_result')
15231
    oprot.writeFieldStop()
15232
    oprot.writeStructEnd()
15233
 
15234
  def validate(self):
15235
    return
15236
 
15237
 
15238
  def __repr__(self):
15239
    L = ['%s=%r' % (key, value)
15240
      for key, value in self.__dict__.iteritems()]
15241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15242
 
15243
  def __eq__(self, other):
15244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15245
 
15246
  def __ne__(self, other):
15247
    return not (self == other)
15248
 
15249
class changeItemRiskyFlag_args:
15250
  """
15251
  Attributes:
15252
   - itemId
15253
   - risky
15254
  """
15255
 
15256
  thrift_spec = (
15257
    None, # 0
15258
    (1, TType.I64, 'itemId', None, None, ), # 1
15259
    (2, TType.BOOL, 'risky', None, None, ), # 2
15260
  )
15261
 
15262
  def __init__(self, itemId=None, risky=None,):
15263
    self.itemId = itemId
15264
    self.risky = risky
15265
 
15266
  def read(self, iprot):
15267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15269
      return
15270
    iprot.readStructBegin()
15271
    while True:
15272
      (fname, ftype, fid) = iprot.readFieldBegin()
15273
      if ftype == TType.STOP:
15274
        break
15275
      if fid == 1:
15276
        if ftype == TType.I64:
15277
          self.itemId = iprot.readI64();
15278
        else:
15279
          iprot.skip(ftype)
15280
      elif fid == 2:
15281
        if ftype == TType.BOOL:
15282
          self.risky = iprot.readBool();
15283
        else:
15284
          iprot.skip(ftype)
15285
      else:
15286
        iprot.skip(ftype)
15287
      iprot.readFieldEnd()
15288
    iprot.readStructEnd()
15289
 
15290
  def write(self, oprot):
15291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15293
      return
15294
    oprot.writeStructBegin('changeItemRiskyFlag_args')
15295
    if self.itemId is not None:
15296
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15297
      oprot.writeI64(self.itemId)
15298
      oprot.writeFieldEnd()
15299
    if self.risky is not None:
15300
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
15301
      oprot.writeBool(self.risky)
15302
      oprot.writeFieldEnd()
15303
    oprot.writeFieldStop()
15304
    oprot.writeStructEnd()
15305
 
15306
  def validate(self):
15307
    return
15308
 
15309
 
15310
  def __repr__(self):
15311
    L = ['%s=%r' % (key, value)
15312
      for key, value in self.__dict__.iteritems()]
15313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15314
 
15315
  def __eq__(self, other):
15316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15317
 
15318
  def __ne__(self, other):
15319
    return not (self == other)
15320
 
15321
class changeItemRiskyFlag_result:
15322
 
15323
  thrift_spec = (
15324
  )
15325
 
15326
  def read(self, iprot):
15327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15329
      return
15330
    iprot.readStructBegin()
15331
    while True:
15332
      (fname, ftype, fid) = iprot.readFieldBegin()
15333
      if ftype == TType.STOP:
15334
        break
15335
      else:
15336
        iprot.skip(ftype)
15337
      iprot.readFieldEnd()
15338
    iprot.readStructEnd()
15339
 
15340
  def write(self, oprot):
15341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15343
      return
15344
    oprot.writeStructBegin('changeItemRiskyFlag_result')
15345
    oprot.writeFieldStop()
15346
    oprot.writeStructEnd()
15347
 
15348
  def validate(self):
15349
    return
15350
 
15351
 
15352
  def __repr__(self):
15353
    L = ['%s=%r' % (key, value)
15354
      for key, value in self.__dict__.iteritems()]
15355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15356
 
15357
  def __eq__(self, other):
15358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15359
 
15360
  def __ne__(self, other):
15361
    return not (self == other)
15362
 
15363
class getItemsByRiskyFlag_args:
15364
 
15365
  thrift_spec = (
15366
  )
15367
 
15368
  def read(self, iprot):
15369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15371
      return
15372
    iprot.readStructBegin()
15373
    while True:
15374
      (fname, ftype, fid) = iprot.readFieldBegin()
15375
      if ftype == TType.STOP:
15376
        break
15377
      else:
15378
        iprot.skip(ftype)
15379
      iprot.readFieldEnd()
15380
    iprot.readStructEnd()
15381
 
15382
  def write(self, oprot):
15383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15385
      return
15386
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
15387
    oprot.writeFieldStop()
15388
    oprot.writeStructEnd()
15389
 
15390
  def validate(self):
15391
    return
15392
 
15393
 
15394
  def __repr__(self):
15395
    L = ['%s=%r' % (key, value)
15396
      for key, value in self.__dict__.iteritems()]
15397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15398
 
15399
  def __eq__(self, other):
15400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15401
 
15402
  def __ne__(self, other):
15403
    return not (self == other)
15404
 
15405
class getItemsByRiskyFlag_result:
15406
  """
15407
  Attributes:
15408
   - success
15409
  """
15410
 
15411
  thrift_spec = (
15412
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
15413
  )
15414
 
15415
  def __init__(self, success=None,):
15416
    self.success = success
15417
 
15418
  def read(self, iprot):
15419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15421
      return
15422
    iprot.readStructBegin()
15423
    while True:
15424
      (fname, ftype, fid) = iprot.readFieldBegin()
15425
      if ftype == TType.STOP:
15426
        break
15427
      if fid == 0:
15428
        if ftype == TType.LIST:
15429
          self.success = []
9155 kshitij.so 15430
          (_etype279, _size276) = iprot.readListBegin()
15431
          for _i280 in xrange(_size276):
15432
            _elem281 = Item()
15433
            _elem281.read(iprot)
15434
            self.success.append(_elem281)
5944 mandeep.dh 15435
          iprot.readListEnd()
15436
        else:
15437
          iprot.skip(ftype)
15438
      else:
15439
        iprot.skip(ftype)
15440
      iprot.readFieldEnd()
15441
    iprot.readStructEnd()
15442
 
15443
  def write(self, oprot):
15444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15446
      return
15447
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
15448
    if self.success is not None:
15449
      oprot.writeFieldBegin('success', TType.LIST, 0)
15450
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 15451
      for iter282 in self.success:
15452
        iter282.write(oprot)
5944 mandeep.dh 15453
      oprot.writeListEnd()
15454
      oprot.writeFieldEnd()
15455
    oprot.writeFieldStop()
15456
    oprot.writeStructEnd()
15457
 
15458
  def validate(self):
15459
    return
15460
 
15461
 
15462
  def __repr__(self):
15463
    L = ['%s=%r' % (key, value)
15464
      for key, value in self.__dict__.iteritems()]
15465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15466
 
15467
  def __eq__(self, other):
15468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15469
 
15470
  def __ne__(self, other):
15471
    return not (self == other)
15472
 
15473
class getItemsForMasterSheet_args:
15474
  """
15475
  Attributes:
15476
   - category
15477
   - brand
15478
  """
15479
 
15480
  thrift_spec = (
15481
    None, # 0
15482
    (1, TType.STRING, 'category', None, None, ), # 1
15483
    (2, TType.STRING, 'brand', None, None, ), # 2
15484
  )
15485
 
15486
  def __init__(self, category=None, brand=None,):
15487
    self.category = category
15488
    self.brand = brand
15489
 
15490
  def read(self, iprot):
15491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15493
      return
15494
    iprot.readStructBegin()
15495
    while True:
15496
      (fname, ftype, fid) = iprot.readFieldBegin()
15497
      if ftype == TType.STOP:
15498
        break
15499
      if fid == 1:
15500
        if ftype == TType.STRING:
15501
          self.category = iprot.readString();
15502
        else:
15503
          iprot.skip(ftype)
15504
      elif fid == 2:
15505
        if ftype == TType.STRING:
15506
          self.brand = iprot.readString();
15507
        else:
15508
          iprot.skip(ftype)
15509
      else:
15510
        iprot.skip(ftype)
15511
      iprot.readFieldEnd()
15512
    iprot.readStructEnd()
15513
 
15514
  def write(self, oprot):
15515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15517
      return
15518
    oprot.writeStructBegin('getItemsForMasterSheet_args')
15519
    if self.category is not None:
15520
      oprot.writeFieldBegin('category', TType.STRING, 1)
15521
      oprot.writeString(self.category)
15522
      oprot.writeFieldEnd()
15523
    if self.brand is not None:
15524
      oprot.writeFieldBegin('brand', TType.STRING, 2)
15525
      oprot.writeString(self.brand)
15526
      oprot.writeFieldEnd()
15527
    oprot.writeFieldStop()
15528
    oprot.writeStructEnd()
15529
 
15530
  def validate(self):
15531
    return
15532
 
15533
 
15534
  def __repr__(self):
15535
    L = ['%s=%r' % (key, value)
15536
      for key, value in self.__dict__.iteritems()]
15537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15538
 
15539
  def __eq__(self, other):
15540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15541
 
15542
  def __ne__(self, other):
15543
    return not (self == other)
15544
 
15545
class getItemsForMasterSheet_result:
15546
  """
15547
  Attributes:
15548
   - success
15549
  """
15550
 
15551
  thrift_spec = (
15552
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
15553
  )
15554
 
15555
  def __init__(self, success=None,):
15556
    self.success = success
15557
 
15558
  def read(self, iprot):
15559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15561
      return
15562
    iprot.readStructBegin()
15563
    while True:
15564
      (fname, ftype, fid) = iprot.readFieldBegin()
15565
      if ftype == TType.STOP:
15566
        break
15567
      if fid == 0:
15568
        if ftype == TType.LIST:
15569
          self.success = []
9155 kshitij.so 15570
          (_etype286, _size283) = iprot.readListBegin()
15571
          for _i287 in xrange(_size283):
15572
            _elem288 = Item()
15573
            _elem288.read(iprot)
15574
            self.success.append(_elem288)
5944 mandeep.dh 15575
          iprot.readListEnd()
15576
        else:
15577
          iprot.skip(ftype)
15578
      else:
15579
        iprot.skip(ftype)
15580
      iprot.readFieldEnd()
15581
    iprot.readStructEnd()
15582
 
15583
  def write(self, oprot):
15584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15586
      return
15587
    oprot.writeStructBegin('getItemsForMasterSheet_result')
15588
    if self.success is not None:
15589
      oprot.writeFieldBegin('success', TType.LIST, 0)
15590
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 15591
      for iter289 in self.success:
15592
        iter289.write(oprot)
5944 mandeep.dh 15593
      oprot.writeListEnd()
15594
      oprot.writeFieldEnd()
15595
    oprot.writeFieldStop()
15596
    oprot.writeStructEnd()
15597
 
15598
  def validate(self):
15599
    return
15600
 
15601
 
15602
  def __repr__(self):
15603
    L = ['%s=%r' % (key, value)
15604
      for key, value in self.__dict__.iteritems()]
15605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15606
 
15607
  def __eq__(self, other):
15608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15609
 
15610
  def __ne__(self, other):
15611
    return not (self == other)
15612
 
15613
class getSimilarItemsCatalogIds_args:
15614
  """
15615
  Attributes:
15616
   - beginIndex
15617
   - totalItems
15618
   - itemId
15619
  """
15620
 
15621
  thrift_spec = (
15622
    None, # 0
15623
    (1, TType.I64, 'beginIndex', None, None, ), # 1
15624
    (2, TType.I64, 'totalItems', None, None, ), # 2
15625
    (3, TType.I64, 'itemId', None, None, ), # 3
15626
  )
15627
 
15628
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
15629
    self.beginIndex = beginIndex
15630
    self.totalItems = totalItems
15631
    self.itemId = itemId
15632
 
15633
  def read(self, iprot):
15634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15636
      return
15637
    iprot.readStructBegin()
15638
    while True:
15639
      (fname, ftype, fid) = iprot.readFieldBegin()
15640
      if ftype == TType.STOP:
15641
        break
15642
      if fid == 1:
15643
        if ftype == TType.I64:
15644
          self.beginIndex = iprot.readI64();
15645
        else:
15646
          iprot.skip(ftype)
15647
      elif fid == 2:
15648
        if ftype == TType.I64:
15649
          self.totalItems = iprot.readI64();
15650
        else:
15651
          iprot.skip(ftype)
15652
      elif fid == 3:
15653
        if ftype == TType.I64:
15654
          self.itemId = iprot.readI64();
15655
        else:
15656
          iprot.skip(ftype)
15657
      else:
15658
        iprot.skip(ftype)
15659
      iprot.readFieldEnd()
15660
    iprot.readStructEnd()
15661
 
15662
  def write(self, oprot):
15663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15665
      return
15666
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
15667
    if self.beginIndex is not None:
15668
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
15669
      oprot.writeI64(self.beginIndex)
15670
      oprot.writeFieldEnd()
15671
    if self.totalItems is not None:
15672
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
15673
      oprot.writeI64(self.totalItems)
15674
      oprot.writeFieldEnd()
15675
    if self.itemId is not None:
15676
      oprot.writeFieldBegin('itemId', TType.I64, 3)
15677
      oprot.writeI64(self.itemId)
15678
      oprot.writeFieldEnd()
15679
    oprot.writeFieldStop()
15680
    oprot.writeStructEnd()
15681
 
15682
  def validate(self):
15683
    return
15684
 
15685
 
15686
  def __repr__(self):
15687
    L = ['%s=%r' % (key, value)
15688
      for key, value in self.__dict__.iteritems()]
15689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15690
 
15691
  def __eq__(self, other):
15692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15693
 
15694
  def __ne__(self, other):
15695
    return not (self == other)
15696
 
15697
class getSimilarItemsCatalogIds_result:
15698
  """
15699
  Attributes:
15700
   - success
15701
  """
15702
 
15703
  thrift_spec = (
15704
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
15705
  )
15706
 
15707
  def __init__(self, success=None,):
15708
    self.success = success
15709
 
15710
  def read(self, iprot):
15711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15713
      return
15714
    iprot.readStructBegin()
15715
    while True:
15716
      (fname, ftype, fid) = iprot.readFieldBegin()
15717
      if ftype == TType.STOP:
15718
        break
15719
      if fid == 0:
15720
        if ftype == TType.LIST:
15721
          self.success = []
9155 kshitij.so 15722
          (_etype293, _size290) = iprot.readListBegin()
15723
          for _i294 in xrange(_size290):
15724
            _elem295 = iprot.readI64();
15725
            self.success.append(_elem295)
5944 mandeep.dh 15726
          iprot.readListEnd()
15727
        else:
15728
          iprot.skip(ftype)
15729
      else:
15730
        iprot.skip(ftype)
15731
      iprot.readFieldEnd()
15732
    iprot.readStructEnd()
15733
 
15734
  def write(self, oprot):
15735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15737
      return
15738
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
15739
    if self.success is not None:
15740
      oprot.writeFieldBegin('success', TType.LIST, 0)
15741
      oprot.writeListBegin(TType.I64, len(self.success))
9155 kshitij.so 15742
      for iter296 in self.success:
15743
        oprot.writeI64(iter296)
5944 mandeep.dh 15744
      oprot.writeListEnd()
15745
      oprot.writeFieldEnd()
15746
    oprot.writeFieldStop()
15747
    oprot.writeStructEnd()
15748
 
15749
  def validate(self):
15750
    return
15751
 
15752
 
15753
  def __repr__(self):
15754
    L = ['%s=%r' % (key, value)
15755
      for key, value in self.__dict__.iteritems()]
15756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15757
 
15758
  def __eq__(self, other):
15759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15760
 
15761
  def __ne__(self, other):
15762
    return not (self == other)
15763
 
15764
class addProductNotification_args:
15765
  """
15766
  Attributes:
15767
   - itemId
15768
   - email
15769
  """
15770
 
15771
  thrift_spec = None
15772
  def __init__(self, itemId=None, email=None,):
15773
    self.itemId = itemId
15774
    self.email = email
15775
 
15776
  def read(self, iprot):
15777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15779
      return
15780
    iprot.readStructBegin()
15781
    while True:
15782
      (fname, ftype, fid) = iprot.readFieldBegin()
15783
      if ftype == TType.STOP:
15784
        break
15785
      if fid == -1:
15786
        if ftype == TType.I64:
15787
          self.itemId = iprot.readI64();
15788
        else:
15789
          iprot.skip(ftype)
15790
      elif fid == -2:
15791
        if ftype == TType.STRING:
15792
          self.email = iprot.readString();
15793
        else:
15794
          iprot.skip(ftype)
15795
      else:
15796
        iprot.skip(ftype)
15797
      iprot.readFieldEnd()
15798
    iprot.readStructEnd()
15799
 
15800
  def write(self, oprot):
15801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15803
      return
15804
    oprot.writeStructBegin('addProductNotification_args')
15805
    if self.email is not None:
15806
      oprot.writeFieldBegin('email', TType.STRING, -2)
15807
      oprot.writeString(self.email)
15808
      oprot.writeFieldEnd()
15809
    if self.itemId is not None:
15810
      oprot.writeFieldBegin('itemId', TType.I64, -1)
15811
      oprot.writeI64(self.itemId)
15812
      oprot.writeFieldEnd()
15813
    oprot.writeFieldStop()
15814
    oprot.writeStructEnd()
15815
 
15816
  def validate(self):
15817
    return
15818
 
15819
 
15820
  def __repr__(self):
15821
    L = ['%s=%r' % (key, value)
15822
      for key, value in self.__dict__.iteritems()]
15823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15824
 
15825
  def __eq__(self, other):
15826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15827
 
15828
  def __ne__(self, other):
15829
    return not (self == other)
15830
 
15831
class addProductNotification_result:
15832
  """
15833
  Attributes:
15834
   - success
15835
  """
15836
 
15837
  thrift_spec = (
15838
    (0, TType.BOOL, 'success', None, None, ), # 0
15839
  )
15840
 
15841
  def __init__(self, success=None,):
15842
    self.success = success
15843
 
15844
  def read(self, iprot):
15845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15847
      return
15848
    iprot.readStructBegin()
15849
    while True:
15850
      (fname, ftype, fid) = iprot.readFieldBegin()
15851
      if ftype == TType.STOP:
15852
        break
15853
      if fid == 0:
15854
        if ftype == TType.BOOL:
15855
          self.success = iprot.readBool();
15856
        else:
15857
          iprot.skip(ftype)
15858
      else:
15859
        iprot.skip(ftype)
15860
      iprot.readFieldEnd()
15861
    iprot.readStructEnd()
15862
 
15863
  def write(self, oprot):
15864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15866
      return
15867
    oprot.writeStructBegin('addProductNotification_result')
15868
    if self.success is not None:
15869
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15870
      oprot.writeBool(self.success)
15871
      oprot.writeFieldEnd()
15872
    oprot.writeFieldStop()
15873
    oprot.writeStructEnd()
15874
 
15875
  def validate(self):
15876
    return
15877
 
15878
 
15879
  def __repr__(self):
15880
    L = ['%s=%r' % (key, value)
15881
      for key, value in self.__dict__.iteritems()]
15882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15883
 
15884
  def __eq__(self, other):
15885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15886
 
15887
  def __ne__(self, other):
15888
    return not (self == other)
15889
 
15890
class sendProductNotifications_args:
15891
 
15892
  thrift_spec = (
15893
  )
15894
 
15895
  def read(self, iprot):
15896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15898
      return
15899
    iprot.readStructBegin()
15900
    while True:
15901
      (fname, ftype, fid) = iprot.readFieldBegin()
15902
      if ftype == TType.STOP:
15903
        break
15904
      else:
15905
        iprot.skip(ftype)
15906
      iprot.readFieldEnd()
15907
    iprot.readStructEnd()
15908
 
15909
  def write(self, oprot):
15910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15912
      return
15913
    oprot.writeStructBegin('sendProductNotifications_args')
15914
    oprot.writeFieldStop()
15915
    oprot.writeStructEnd()
15916
 
15917
  def validate(self):
15918
    return
15919
 
15920
 
15921
  def __repr__(self):
15922
    L = ['%s=%r' % (key, value)
15923
      for key, value in self.__dict__.iteritems()]
15924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15925
 
15926
  def __eq__(self, other):
15927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15928
 
15929
  def __ne__(self, other):
15930
    return not (self == other)
15931
 
15932
class sendProductNotifications_result:
15933
  """
15934
  Attributes:
15935
   - success
15936
  """
15937
 
15938
  thrift_spec = (
15939
    (0, TType.BOOL, 'success', None, None, ), # 0
15940
  )
15941
 
15942
  def __init__(self, success=None,):
15943
    self.success = success
15944
 
15945
  def read(self, iprot):
15946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15948
      return
15949
    iprot.readStructBegin()
15950
    while True:
15951
      (fname, ftype, fid) = iprot.readFieldBegin()
15952
      if ftype == TType.STOP:
15953
        break
15954
      if fid == 0:
15955
        if ftype == TType.BOOL:
15956
          self.success = iprot.readBool();
15957
        else:
15958
          iprot.skip(ftype)
15959
      else:
15960
        iprot.skip(ftype)
15961
      iprot.readFieldEnd()
15962
    iprot.readStructEnd()
15963
 
15964
  def write(self, oprot):
15965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15967
      return
15968
    oprot.writeStructBegin('sendProductNotifications_result')
15969
    if self.success is not None:
15970
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15971
      oprot.writeBool(self.success)
15972
      oprot.writeFieldEnd()
15973
    oprot.writeFieldStop()
15974
    oprot.writeStructEnd()
15975
 
15976
  def validate(self):
15977
    return
15978
 
15979
 
15980
  def __repr__(self):
15981
    L = ['%s=%r' % (key, value)
15982
      for key, value in self.__dict__.iteritems()]
15983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15984
 
15985
  def __eq__(self, other):
15986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15987
 
15988
  def __ne__(self, other):
15989
    return not (self == other)
15990
 
15991
class getAllBrandsByCategory_args:
15992
  """
15993
  Attributes:
15994
   - categoryId
15995
  """
15996
 
15997
  thrift_spec = (
15998
    None, # 0
15999
    (1, TType.I64, 'categoryId', None, None, ), # 1
16000
  )
16001
 
16002
  def __init__(self, categoryId=None,):
16003
    self.categoryId = categoryId
16004
 
16005
  def read(self, iprot):
16006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16008
      return
16009
    iprot.readStructBegin()
16010
    while True:
16011
      (fname, ftype, fid) = iprot.readFieldBegin()
16012
      if ftype == TType.STOP:
16013
        break
16014
      if fid == 1:
16015
        if ftype == TType.I64:
16016
          self.categoryId = iprot.readI64();
16017
        else:
16018
          iprot.skip(ftype)
16019
      else:
16020
        iprot.skip(ftype)
16021
      iprot.readFieldEnd()
16022
    iprot.readStructEnd()
16023
 
16024
  def write(self, oprot):
16025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16027
      return
16028
    oprot.writeStructBegin('getAllBrandsByCategory_args')
16029
    if self.categoryId is not None:
16030
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
16031
      oprot.writeI64(self.categoryId)
16032
      oprot.writeFieldEnd()
16033
    oprot.writeFieldStop()
16034
    oprot.writeStructEnd()
16035
 
16036
  def validate(self):
16037
    return
16038
 
16039
 
16040
  def __repr__(self):
16041
    L = ['%s=%r' % (key, value)
16042
      for key, value in self.__dict__.iteritems()]
16043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16044
 
16045
  def __eq__(self, other):
16046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16047
 
16048
  def __ne__(self, other):
16049
    return not (self == other)
16050
 
16051
class getAllBrandsByCategory_result:
16052
  """
16053
  Attributes:
16054
   - success
16055
  """
16056
 
16057
  thrift_spec = (
16058
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16059
  )
16060
 
16061
  def __init__(self, success=None,):
16062
    self.success = success
16063
 
16064
  def read(self, iprot):
16065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16067
      return
16068
    iprot.readStructBegin()
16069
    while True:
16070
      (fname, ftype, fid) = iprot.readFieldBegin()
16071
      if ftype == TType.STOP:
16072
        break
16073
      if fid == 0:
16074
        if ftype == TType.LIST:
16075
          self.success = []
9155 kshitij.so 16076
          (_etype300, _size297) = iprot.readListBegin()
16077
          for _i301 in xrange(_size297):
16078
            _elem302 = iprot.readString();
16079
            self.success.append(_elem302)
5944 mandeep.dh 16080
          iprot.readListEnd()
16081
        else:
16082
          iprot.skip(ftype)
16083
      else:
16084
        iprot.skip(ftype)
16085
      iprot.readFieldEnd()
16086
    iprot.readStructEnd()
16087
 
16088
  def write(self, oprot):
16089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16091
      return
16092
    oprot.writeStructBegin('getAllBrandsByCategory_result')
16093
    if self.success is not None:
16094
      oprot.writeFieldBegin('success', TType.LIST, 0)
16095
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 16096
      for iter303 in self.success:
16097
        oprot.writeString(iter303)
5944 mandeep.dh 16098
      oprot.writeListEnd()
16099
      oprot.writeFieldEnd()
16100
    oprot.writeFieldStop()
16101
    oprot.writeStructEnd()
16102
 
16103
  def validate(self):
16104
    return
16105
 
16106
 
16107
  def __repr__(self):
16108
    L = ['%s=%r' % (key, value)
16109
      for key, value in self.__dict__.iteritems()]
16110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16111
 
16112
  def __eq__(self, other):
16113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16114
 
16115
  def __ne__(self, other):
16116
    return not (self == other)
16117
 
16118
class getAllBrands_args:
16119
 
16120
  thrift_spec = (
16121
  )
16122
 
16123
  def read(self, iprot):
16124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16126
      return
16127
    iprot.readStructBegin()
16128
    while True:
16129
      (fname, ftype, fid) = iprot.readFieldBegin()
16130
      if ftype == TType.STOP:
16131
        break
16132
      else:
16133
        iprot.skip(ftype)
16134
      iprot.readFieldEnd()
16135
    iprot.readStructEnd()
16136
 
16137
  def write(self, oprot):
16138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16140
      return
16141
    oprot.writeStructBegin('getAllBrands_args')
16142
    oprot.writeFieldStop()
16143
    oprot.writeStructEnd()
16144
 
16145
  def validate(self):
16146
    return
16147
 
16148
 
16149
  def __repr__(self):
16150
    L = ['%s=%r' % (key, value)
16151
      for key, value in self.__dict__.iteritems()]
16152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16153
 
16154
  def __eq__(self, other):
16155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16156
 
16157
  def __ne__(self, other):
16158
    return not (self == other)
16159
 
16160
class getAllBrands_result:
16161
  """
16162
  Attributes:
16163
   - success
16164
  """
16165
 
16166
  thrift_spec = (
16167
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16168
  )
16169
 
16170
  def __init__(self, success=None,):
16171
    self.success = success
16172
 
16173
  def read(self, iprot):
16174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16176
      return
16177
    iprot.readStructBegin()
16178
    while True:
16179
      (fname, ftype, fid) = iprot.readFieldBegin()
16180
      if ftype == TType.STOP:
16181
        break
16182
      if fid == 0:
16183
        if ftype == TType.LIST:
16184
          self.success = []
9155 kshitij.so 16185
          (_etype307, _size304) = iprot.readListBegin()
16186
          for _i308 in xrange(_size304):
16187
            _elem309 = iprot.readString();
16188
            self.success.append(_elem309)
5944 mandeep.dh 16189
          iprot.readListEnd()
16190
        else:
16191
          iprot.skip(ftype)
16192
      else:
16193
        iprot.skip(ftype)
16194
      iprot.readFieldEnd()
16195
    iprot.readStructEnd()
16196
 
16197
  def write(self, oprot):
16198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16200
      return
16201
    oprot.writeStructBegin('getAllBrands_result')
16202
    if self.success is not None:
16203
      oprot.writeFieldBegin('success', TType.LIST, 0)
16204
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 16205
      for iter310 in self.success:
16206
        oprot.writeString(iter310)
5944 mandeep.dh 16207
      oprot.writeListEnd()
16208
      oprot.writeFieldEnd()
16209
    oprot.writeFieldStop()
16210
    oprot.writeStructEnd()
16211
 
16212
  def validate(self):
16213
    return
16214
 
16215
 
16216
  def __repr__(self):
16217
    L = ['%s=%r' % (key, value)
16218
      for key, value in self.__dict__.iteritems()]
16219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16220
 
16221
  def __eq__(self, other):
16222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16223
 
16224
  def __ne__(self, other):
16225
    return not (self == other)
16226
 
16227
class getAllSources_args:
16228
 
16229
  thrift_spec = (
16230
  )
16231
 
16232
  def read(self, iprot):
16233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16235
      return
16236
    iprot.readStructBegin()
16237
    while True:
16238
      (fname, ftype, fid) = iprot.readFieldBegin()
16239
      if ftype == TType.STOP:
16240
        break
16241
      else:
16242
        iprot.skip(ftype)
16243
      iprot.readFieldEnd()
16244
    iprot.readStructEnd()
16245
 
16246
  def write(self, oprot):
16247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16249
      return
16250
    oprot.writeStructBegin('getAllSources_args')
16251
    oprot.writeFieldStop()
16252
    oprot.writeStructEnd()
16253
 
16254
  def validate(self):
16255
    return
16256
 
16257
 
16258
  def __repr__(self):
16259
    L = ['%s=%r' % (key, value)
16260
      for key, value in self.__dict__.iteritems()]
16261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16262
 
16263
  def __eq__(self, other):
16264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16265
 
16266
  def __ne__(self, other):
16267
    return not (self == other)
16268
 
16269
class getAllSources_result:
16270
  """
16271
  Attributes:
16272
   - success
16273
  """
16274
 
16275
  thrift_spec = (
16276
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
16277
  )
16278
 
16279
  def __init__(self, success=None,):
16280
    self.success = success
16281
 
16282
  def read(self, iprot):
16283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16285
      return
16286
    iprot.readStructBegin()
16287
    while True:
16288
      (fname, ftype, fid) = iprot.readFieldBegin()
16289
      if ftype == TType.STOP:
16290
        break
16291
      if fid == 0:
16292
        if ftype == TType.LIST:
16293
          self.success = []
9155 kshitij.so 16294
          (_etype314, _size311) = iprot.readListBegin()
16295
          for _i315 in xrange(_size311):
16296
            _elem316 = Source()
16297
            _elem316.read(iprot)
16298
            self.success.append(_elem316)
5944 mandeep.dh 16299
          iprot.readListEnd()
16300
        else:
16301
          iprot.skip(ftype)
16302
      else:
16303
        iprot.skip(ftype)
16304
      iprot.readFieldEnd()
16305
    iprot.readStructEnd()
16306
 
16307
  def write(self, oprot):
16308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16310
      return
16311
    oprot.writeStructBegin('getAllSources_result')
16312
    if self.success is not None:
16313
      oprot.writeFieldBegin('success', TType.LIST, 0)
16314
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16315
      for iter317 in self.success:
16316
        iter317.write(oprot)
5944 mandeep.dh 16317
      oprot.writeListEnd()
16318
      oprot.writeFieldEnd()
16319
    oprot.writeFieldStop()
16320
    oprot.writeStructEnd()
16321
 
16322
  def validate(self):
16323
    return
16324
 
16325
 
16326
  def __repr__(self):
16327
    L = ['%s=%r' % (key, value)
16328
      for key, value in self.__dict__.iteritems()]
16329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16330
 
16331
  def __eq__(self, other):
16332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16333
 
16334
  def __ne__(self, other):
16335
    return not (self == other)
16336
 
16337
class getItemPricingBySource_args:
16338
  """
16339
  Attributes:
16340
   - itemId
16341
   - sourceId
16342
  """
16343
 
16344
  thrift_spec = (
16345
    None, # 0
16346
    (1, TType.I64, 'itemId', None, None, ), # 1
16347
    (2, TType.I64, 'sourceId', None, None, ), # 2
16348
  )
16349
 
16350
  def __init__(self, itemId=None, sourceId=None,):
16351
    self.itemId = itemId
16352
    self.sourceId = sourceId
16353
 
16354
  def read(self, iprot):
16355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16357
      return
16358
    iprot.readStructBegin()
16359
    while True:
16360
      (fname, ftype, fid) = iprot.readFieldBegin()
16361
      if ftype == TType.STOP:
16362
        break
16363
      if fid == 1:
16364
        if ftype == TType.I64:
16365
          self.itemId = iprot.readI64();
16366
        else:
16367
          iprot.skip(ftype)
16368
      elif fid == 2:
16369
        if ftype == TType.I64:
16370
          self.sourceId = iprot.readI64();
16371
        else:
16372
          iprot.skip(ftype)
16373
      else:
16374
        iprot.skip(ftype)
16375
      iprot.readFieldEnd()
16376
    iprot.readStructEnd()
16377
 
16378
  def write(self, oprot):
16379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16381
      return
16382
    oprot.writeStructBegin('getItemPricingBySource_args')
16383
    if self.itemId is not None:
16384
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16385
      oprot.writeI64(self.itemId)
16386
      oprot.writeFieldEnd()
16387
    if self.sourceId is not None:
16388
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
16389
      oprot.writeI64(self.sourceId)
16390
      oprot.writeFieldEnd()
16391
    oprot.writeFieldStop()
16392
    oprot.writeStructEnd()
16393
 
16394
  def validate(self):
16395
    return
16396
 
16397
 
16398
  def __repr__(self):
16399
    L = ['%s=%r' % (key, value)
16400
      for key, value in self.__dict__.iteritems()]
16401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16402
 
16403
  def __eq__(self, other):
16404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16405
 
16406
  def __ne__(self, other):
16407
    return not (self == other)
16408
 
16409
class getItemPricingBySource_result:
16410
  """
16411
  Attributes:
16412
   - success
16413
   - cex
16414
  """
16415
 
16416
  thrift_spec = (
16417
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
16418
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16419
  )
16420
 
16421
  def __init__(self, success=None, cex=None,):
16422
    self.success = success
16423
    self.cex = cex
16424
 
16425
  def read(self, iprot):
16426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16428
      return
16429
    iprot.readStructBegin()
16430
    while True:
16431
      (fname, ftype, fid) = iprot.readFieldBegin()
16432
      if ftype == TType.STOP:
16433
        break
16434
      if fid == 0:
16435
        if ftype == TType.STRUCT:
16436
          self.success = SourceItemPricing()
16437
          self.success.read(iprot)
16438
        else:
16439
          iprot.skip(ftype)
16440
      elif fid == 1:
16441
        if ftype == TType.STRUCT:
16442
          self.cex = CatalogServiceException()
16443
          self.cex.read(iprot)
16444
        else:
16445
          iprot.skip(ftype)
16446
      else:
16447
        iprot.skip(ftype)
16448
      iprot.readFieldEnd()
16449
    iprot.readStructEnd()
16450
 
16451
  def write(self, oprot):
16452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16454
      return
16455
    oprot.writeStructBegin('getItemPricingBySource_result')
16456
    if self.success is not None:
16457
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
16458
      self.success.write(oprot)
16459
      oprot.writeFieldEnd()
16460
    if self.cex is not None:
16461
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16462
      self.cex.write(oprot)
16463
      oprot.writeFieldEnd()
16464
    oprot.writeFieldStop()
16465
    oprot.writeStructEnd()
16466
 
16467
  def validate(self):
16468
    return
16469
 
16470
 
16471
  def __repr__(self):
16472
    L = ['%s=%r' % (key, value)
16473
      for key, value in self.__dict__.iteritems()]
16474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16475
 
16476
  def __eq__(self, other):
16477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16478
 
16479
  def __ne__(self, other):
16480
    return not (self == other)
16481
 
16482
class addSourceItemPricing_args:
16483
  """
16484
  Attributes:
16485
   - sourceItemPricing
16486
  """
16487
 
16488
  thrift_spec = (
16489
    None, # 0
16490
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
16491
  )
16492
 
16493
  def __init__(self, sourceItemPricing=None,):
16494
    self.sourceItemPricing = sourceItemPricing
16495
 
16496
  def read(self, iprot):
16497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16499
      return
16500
    iprot.readStructBegin()
16501
    while True:
16502
      (fname, ftype, fid) = iprot.readFieldBegin()
16503
      if ftype == TType.STOP:
16504
        break
16505
      if fid == 1:
16506
        if ftype == TType.STRUCT:
16507
          self.sourceItemPricing = SourceItemPricing()
16508
          self.sourceItemPricing.read(iprot)
16509
        else:
16510
          iprot.skip(ftype)
16511
      else:
16512
        iprot.skip(ftype)
16513
      iprot.readFieldEnd()
16514
    iprot.readStructEnd()
16515
 
16516
  def write(self, oprot):
16517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16519
      return
16520
    oprot.writeStructBegin('addSourceItemPricing_args')
16521
    if self.sourceItemPricing is not None:
16522
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
16523
      self.sourceItemPricing.write(oprot)
16524
      oprot.writeFieldEnd()
16525
    oprot.writeFieldStop()
16526
    oprot.writeStructEnd()
16527
 
16528
  def validate(self):
16529
    return
16530
 
16531
 
16532
  def __repr__(self):
16533
    L = ['%s=%r' % (key, value)
16534
      for key, value in self.__dict__.iteritems()]
16535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16536
 
16537
  def __eq__(self, other):
16538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16539
 
16540
  def __ne__(self, other):
16541
    return not (self == other)
16542
 
16543
class addSourceItemPricing_result:
16544
  """
16545
  Attributes:
16546
   - cex
16547
  """
16548
 
16549
  thrift_spec = (
16550
    None, # 0
16551
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16552
  )
16553
 
16554
  def __init__(self, cex=None,):
16555
    self.cex = cex
16556
 
16557
  def read(self, iprot):
16558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16560
      return
16561
    iprot.readStructBegin()
16562
    while True:
16563
      (fname, ftype, fid) = iprot.readFieldBegin()
16564
      if ftype == TType.STOP:
16565
        break
16566
      if fid == 1:
16567
        if ftype == TType.STRUCT:
16568
          self.cex = CatalogServiceException()
16569
          self.cex.read(iprot)
16570
        else:
16571
          iprot.skip(ftype)
16572
      else:
16573
        iprot.skip(ftype)
16574
      iprot.readFieldEnd()
16575
    iprot.readStructEnd()
16576
 
16577
  def write(self, oprot):
16578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16580
      return
16581
    oprot.writeStructBegin('addSourceItemPricing_result')
16582
    if self.cex is not None:
16583
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16584
      self.cex.write(oprot)
16585
      oprot.writeFieldEnd()
16586
    oprot.writeFieldStop()
16587
    oprot.writeStructEnd()
16588
 
16589
  def validate(self):
16590
    return
16591
 
16592
 
16593
  def __repr__(self):
16594
    L = ['%s=%r' % (key, value)
16595
      for key, value in self.__dict__.iteritems()]
16596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16597
 
16598
  def __eq__(self, other):
16599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16600
 
16601
  def __ne__(self, other):
16602
    return not (self == other)
16603
 
16604
class getAllSourcePricing_args:
16605
  """
16606
  Attributes:
16607
   - itemId
16608
  """
16609
 
16610
  thrift_spec = (
16611
    None, # 0
16612
    (1, TType.I64, 'itemId', None, None, ), # 1
16613
  )
16614
 
16615
  def __init__(self, itemId=None,):
16616
    self.itemId = itemId
16617
 
16618
  def read(self, iprot):
16619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16621
      return
16622
    iprot.readStructBegin()
16623
    while True:
16624
      (fname, ftype, fid) = iprot.readFieldBegin()
16625
      if ftype == TType.STOP:
16626
        break
16627
      if fid == 1:
16628
        if ftype == TType.I64:
16629
          self.itemId = iprot.readI64();
16630
        else:
16631
          iprot.skip(ftype)
16632
      else:
16633
        iprot.skip(ftype)
16634
      iprot.readFieldEnd()
16635
    iprot.readStructEnd()
16636
 
16637
  def write(self, oprot):
16638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16640
      return
16641
    oprot.writeStructBegin('getAllSourcePricing_args')
16642
    if self.itemId is not None:
16643
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16644
      oprot.writeI64(self.itemId)
16645
      oprot.writeFieldEnd()
16646
    oprot.writeFieldStop()
16647
    oprot.writeStructEnd()
16648
 
16649
  def validate(self):
16650
    return
16651
 
16652
 
16653
  def __repr__(self):
16654
    L = ['%s=%r' % (key, value)
16655
      for key, value in self.__dict__.iteritems()]
16656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16657
 
16658
  def __eq__(self, other):
16659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16660
 
16661
  def __ne__(self, other):
16662
    return not (self == other)
16663
 
16664
class getAllSourcePricing_result:
16665
  """
16666
  Attributes:
16667
   - success
16668
   - cex
16669
  """
16670
 
16671
  thrift_spec = (
16672
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
16673
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16674
  )
16675
 
16676
  def __init__(self, success=None, cex=None,):
16677
    self.success = success
16678
    self.cex = cex
16679
 
16680
  def read(self, iprot):
16681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16683
      return
16684
    iprot.readStructBegin()
16685
    while True:
16686
      (fname, ftype, fid) = iprot.readFieldBegin()
16687
      if ftype == TType.STOP:
16688
        break
16689
      if fid == 0:
16690
        if ftype == TType.LIST:
16691
          self.success = []
9155 kshitij.so 16692
          (_etype321, _size318) = iprot.readListBegin()
16693
          for _i322 in xrange(_size318):
16694
            _elem323 = SourceItemPricing()
16695
            _elem323.read(iprot)
16696
            self.success.append(_elem323)
5944 mandeep.dh 16697
          iprot.readListEnd()
16698
        else:
16699
          iprot.skip(ftype)
16700
      elif fid == 1:
16701
        if ftype == TType.STRUCT:
16702
          self.cex = CatalogServiceException()
16703
          self.cex.read(iprot)
16704
        else:
16705
          iprot.skip(ftype)
16706
      else:
16707
        iprot.skip(ftype)
16708
      iprot.readFieldEnd()
16709
    iprot.readStructEnd()
16710
 
16711
  def write(self, oprot):
16712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16714
      return
16715
    oprot.writeStructBegin('getAllSourcePricing_result')
16716
    if self.success is not None:
16717
      oprot.writeFieldBegin('success', TType.LIST, 0)
16718
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16719
      for iter324 in self.success:
16720
        iter324.write(oprot)
5944 mandeep.dh 16721
      oprot.writeListEnd()
16722
      oprot.writeFieldEnd()
16723
    if self.cex is not None:
16724
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16725
      self.cex.write(oprot)
16726
      oprot.writeFieldEnd()
16727
    oprot.writeFieldStop()
16728
    oprot.writeStructEnd()
16729
 
16730
  def validate(self):
16731
    return
16732
 
16733
 
16734
  def __repr__(self):
16735
    L = ['%s=%r' % (key, value)
16736
      for key, value in self.__dict__.iteritems()]
16737
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16738
 
16739
  def __eq__(self, other):
16740
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16741
 
16742
  def __ne__(self, other):
16743
    return not (self == other)
16744
 
16745
class getItemForSource_args:
16746
  """
16747
  Attributes:
16748
   - item_id
16749
   - sourceId
16750
  """
16751
 
16752
  thrift_spec = (
16753
    None, # 0
16754
    (1, TType.I64, 'item_id', None, None, ), # 1
16755
    (2, TType.I64, 'sourceId', None, None, ), # 2
16756
  )
16757
 
16758
  def __init__(self, item_id=None, sourceId=None,):
16759
    self.item_id = item_id
16760
    self.sourceId = sourceId
16761
 
16762
  def read(self, iprot):
16763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16765
      return
16766
    iprot.readStructBegin()
16767
    while True:
16768
      (fname, ftype, fid) = iprot.readFieldBegin()
16769
      if ftype == TType.STOP:
16770
        break
16771
      if fid == 1:
16772
        if ftype == TType.I64:
16773
          self.item_id = iprot.readI64();
16774
        else:
16775
          iprot.skip(ftype)
16776
      elif fid == 2:
16777
        if ftype == TType.I64:
16778
          self.sourceId = iprot.readI64();
16779
        else:
16780
          iprot.skip(ftype)
16781
      else:
16782
        iprot.skip(ftype)
16783
      iprot.readFieldEnd()
16784
    iprot.readStructEnd()
16785
 
16786
  def write(self, oprot):
16787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16789
      return
16790
    oprot.writeStructBegin('getItemForSource_args')
16791
    if self.item_id is not None:
16792
      oprot.writeFieldBegin('item_id', TType.I64, 1)
16793
      oprot.writeI64(self.item_id)
16794
      oprot.writeFieldEnd()
16795
    if self.sourceId is not None:
16796
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
16797
      oprot.writeI64(self.sourceId)
16798
      oprot.writeFieldEnd()
16799
    oprot.writeFieldStop()
16800
    oprot.writeStructEnd()
16801
 
16802
  def validate(self):
16803
    return
16804
 
16805
 
16806
  def __repr__(self):
16807
    L = ['%s=%r' % (key, value)
16808
      for key, value in self.__dict__.iteritems()]
16809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16810
 
16811
  def __eq__(self, other):
16812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16813
 
16814
  def __ne__(self, other):
16815
    return not (self == other)
16816
 
16817
class getItemForSource_result:
16818
  """
16819
  Attributes:
16820
   - success
16821
   - cex
16822
  """
16823
 
16824
  thrift_spec = (
16825
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
16826
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16827
  )
16828
 
16829
  def __init__(self, success=None, cex=None,):
16830
    self.success = success
16831
    self.cex = cex
16832
 
16833
  def read(self, iprot):
16834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16836
      return
16837
    iprot.readStructBegin()
16838
    while True:
16839
      (fname, ftype, fid) = iprot.readFieldBegin()
16840
      if ftype == TType.STOP:
16841
        break
16842
      if fid == 0:
16843
        if ftype == TType.STRUCT:
16844
          self.success = Item()
16845
          self.success.read(iprot)
16846
        else:
16847
          iprot.skip(ftype)
16848
      elif fid == 1:
16849
        if ftype == TType.STRUCT:
16850
          self.cex = CatalogServiceException()
16851
          self.cex.read(iprot)
16852
        else:
16853
          iprot.skip(ftype)
16854
      else:
16855
        iprot.skip(ftype)
16856
      iprot.readFieldEnd()
16857
    iprot.readStructEnd()
16858
 
16859
  def write(self, oprot):
16860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16862
      return
16863
    oprot.writeStructBegin('getItemForSource_result')
16864
    if self.success is not None:
16865
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
16866
      self.success.write(oprot)
16867
      oprot.writeFieldEnd()
16868
    if self.cex is not None:
16869
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16870
      self.cex.write(oprot)
16871
      oprot.writeFieldEnd()
16872
    oprot.writeFieldStop()
16873
    oprot.writeStructEnd()
16874
 
16875
  def validate(self):
16876
    return
16877
 
16878
 
16879
  def __repr__(self):
16880
    L = ['%s=%r' % (key, value)
16881
      for key, value in self.__dict__.iteritems()]
16882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16883
 
16884
  def __eq__(self, other):
16885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16886
 
16887
  def __ne__(self, other):
16888
    return not (self == other)
16889
 
16890
class searchItemsInRange_args:
16891
  """
16892
  Attributes:
16893
   - searchTerms
16894
   - offset
16895
   - limit
16896
  """
16897
 
16898
  thrift_spec = (
16899
    None, # 0
16900
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
16901
    (2, TType.I64, 'offset', None, None, ), # 2
16902
    (3, TType.I64, 'limit', None, None, ), # 3
16903
  )
16904
 
16905
  def __init__(self, searchTerms=None, offset=None, limit=None,):
16906
    self.searchTerms = searchTerms
16907
    self.offset = offset
16908
    self.limit = limit
16909
 
16910
  def read(self, iprot):
16911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16913
      return
16914
    iprot.readStructBegin()
16915
    while True:
16916
      (fname, ftype, fid) = iprot.readFieldBegin()
16917
      if ftype == TType.STOP:
16918
        break
16919
      if fid == 1:
16920
        if ftype == TType.LIST:
16921
          self.searchTerms = []
9155 kshitij.so 16922
          (_etype328, _size325) = iprot.readListBegin()
16923
          for _i329 in xrange(_size325):
16924
            _elem330 = iprot.readString();
16925
            self.searchTerms.append(_elem330)
5944 mandeep.dh 16926
          iprot.readListEnd()
16927
        else:
16928
          iprot.skip(ftype)
16929
      elif fid == 2:
16930
        if ftype == TType.I64:
16931
          self.offset = iprot.readI64();
16932
        else:
16933
          iprot.skip(ftype)
16934
      elif fid == 3:
16935
        if ftype == TType.I64:
16936
          self.limit = iprot.readI64();
16937
        else:
16938
          iprot.skip(ftype)
16939
      else:
16940
        iprot.skip(ftype)
16941
      iprot.readFieldEnd()
16942
    iprot.readStructEnd()
16943
 
16944
  def write(self, oprot):
16945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16947
      return
16948
    oprot.writeStructBegin('searchItemsInRange_args')
16949
    if self.searchTerms is not None:
16950
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
16951
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 16952
      for iter331 in self.searchTerms:
16953
        oprot.writeString(iter331)
5944 mandeep.dh 16954
      oprot.writeListEnd()
16955
      oprot.writeFieldEnd()
16956
    if self.offset is not None:
16957
      oprot.writeFieldBegin('offset', TType.I64, 2)
16958
      oprot.writeI64(self.offset)
16959
      oprot.writeFieldEnd()
16960
    if self.limit is not None:
16961
      oprot.writeFieldBegin('limit', TType.I64, 3)
16962
      oprot.writeI64(self.limit)
16963
      oprot.writeFieldEnd()
16964
    oprot.writeFieldStop()
16965
    oprot.writeStructEnd()
16966
 
16967
  def validate(self):
16968
    return
16969
 
16970
 
16971
  def __repr__(self):
16972
    L = ['%s=%r' % (key, value)
16973
      for key, value in self.__dict__.iteritems()]
16974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16975
 
16976
  def __eq__(self, other):
16977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16978
 
16979
  def __ne__(self, other):
16980
    return not (self == other)
16981
 
16982
class searchItemsInRange_result:
16983
  """
16984
  Attributes:
16985
   - success
16986
  """
16987
 
16988
  thrift_spec = (
16989
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
16990
  )
16991
 
16992
  def __init__(self, success=None,):
16993
    self.success = success
16994
 
16995
  def read(self, iprot):
16996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16998
      return
16999
    iprot.readStructBegin()
17000
    while True:
17001
      (fname, ftype, fid) = iprot.readFieldBegin()
17002
      if ftype == TType.STOP:
17003
        break
17004
      if fid == 0:
17005
        if ftype == TType.LIST:
17006
          self.success = []
9155 kshitij.so 17007
          (_etype335, _size332) = iprot.readListBegin()
17008
          for _i336 in xrange(_size332):
17009
            _elem337 = Item()
17010
            _elem337.read(iprot)
17011
            self.success.append(_elem337)
5944 mandeep.dh 17012
          iprot.readListEnd()
17013
        else:
17014
          iprot.skip(ftype)
17015
      else:
17016
        iprot.skip(ftype)
17017
      iprot.readFieldEnd()
17018
    iprot.readStructEnd()
17019
 
17020
  def write(self, oprot):
17021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17023
      return
17024
    oprot.writeStructBegin('searchItemsInRange_result')
17025
    if self.success is not None:
17026
      oprot.writeFieldBegin('success', TType.LIST, 0)
17027
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17028
      for iter338 in self.success:
17029
        iter338.write(oprot)
5944 mandeep.dh 17030
      oprot.writeListEnd()
17031
      oprot.writeFieldEnd()
17032
    oprot.writeFieldStop()
17033
    oprot.writeStructEnd()
17034
 
17035
  def validate(self):
17036
    return
17037
 
17038
 
17039
  def __repr__(self):
17040
    L = ['%s=%r' % (key, value)
17041
      for key, value in self.__dict__.iteritems()]
17042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17043
 
17044
  def __eq__(self, other):
17045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17046
 
17047
  def __ne__(self, other):
17048
    return not (self == other)
17049
 
17050
class getSearchResultCount_args:
17051
  """
17052
  Attributes:
17053
   - searchTerms
17054
  """
17055
 
17056
  thrift_spec = (
17057
    None, # 0
17058
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
17059
  )
17060
 
17061
  def __init__(self, searchTerms=None,):
17062
    self.searchTerms = searchTerms
17063
 
17064
  def read(self, iprot):
17065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17067
      return
17068
    iprot.readStructBegin()
17069
    while True:
17070
      (fname, ftype, fid) = iprot.readFieldBegin()
17071
      if ftype == TType.STOP:
17072
        break
17073
      if fid == 1:
17074
        if ftype == TType.LIST:
17075
          self.searchTerms = []
9155 kshitij.so 17076
          (_etype342, _size339) = iprot.readListBegin()
17077
          for _i343 in xrange(_size339):
17078
            _elem344 = iprot.readString();
17079
            self.searchTerms.append(_elem344)
5944 mandeep.dh 17080
          iprot.readListEnd()
17081
        else:
17082
          iprot.skip(ftype)
17083
      else:
17084
        iprot.skip(ftype)
17085
      iprot.readFieldEnd()
17086
    iprot.readStructEnd()
17087
 
17088
  def write(self, oprot):
17089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17091
      return
17092
    oprot.writeStructBegin('getSearchResultCount_args')
17093
    if self.searchTerms is not None:
17094
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
17095
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 17096
      for iter345 in self.searchTerms:
17097
        oprot.writeString(iter345)
5944 mandeep.dh 17098
      oprot.writeListEnd()
17099
      oprot.writeFieldEnd()
17100
    oprot.writeFieldStop()
17101
    oprot.writeStructEnd()
17102
 
17103
  def validate(self):
17104
    return
17105
 
17106
 
17107
  def __repr__(self):
17108
    L = ['%s=%r' % (key, value)
17109
      for key, value in self.__dict__.iteritems()]
17110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17111
 
17112
  def __eq__(self, other):
17113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17114
 
17115
  def __ne__(self, other):
17116
    return not (self == other)
17117
 
17118
class getSearchResultCount_result:
17119
  """
17120
  Attributes:
17121
   - success
17122
  """
17123
 
17124
  thrift_spec = (
17125
    (0, TType.I32, 'success', None, None, ), # 0
17126
  )
17127
 
17128
  def __init__(self, success=None,):
17129
    self.success = success
17130
 
17131
  def read(self, iprot):
17132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17134
      return
17135
    iprot.readStructBegin()
17136
    while True:
17137
      (fname, ftype, fid) = iprot.readFieldBegin()
17138
      if ftype == TType.STOP:
17139
        break
17140
      if fid == 0:
17141
        if ftype == TType.I32:
17142
          self.success = iprot.readI32();
17143
        else:
17144
          iprot.skip(ftype)
17145
      else:
17146
        iprot.skip(ftype)
17147
      iprot.readFieldEnd()
17148
    iprot.readStructEnd()
17149
 
17150
  def write(self, oprot):
17151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17153
      return
17154
    oprot.writeStructBegin('getSearchResultCount_result')
17155
    if self.success is not None:
17156
      oprot.writeFieldBegin('success', TType.I32, 0)
17157
      oprot.writeI32(self.success)
17158
      oprot.writeFieldEnd()
17159
    oprot.writeFieldStop()
17160
    oprot.writeStructEnd()
17161
 
17162
  def validate(self):
17163
    return
17164
 
17165
 
17166
  def __repr__(self):
17167
    L = ['%s=%r' % (key, value)
17168
      for key, value in self.__dict__.iteritems()]
17169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17170
 
17171
  def __eq__(self, other):
17172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17173
 
17174
  def __ne__(self, other):
17175
    return not (self == other)
17176
 
17177
class getProductNotifications_args:
17178
  """
17179
  Attributes:
17180
   - startDateTime
17181
  """
17182
 
17183
  thrift_spec = (
17184
    None, # 0
17185
    (1, TType.I64, 'startDateTime', None, None, ), # 1
17186
  )
17187
 
17188
  def __init__(self, startDateTime=None,):
17189
    self.startDateTime = startDateTime
17190
 
17191
  def read(self, iprot):
17192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17194
      return
17195
    iprot.readStructBegin()
17196
    while True:
17197
      (fname, ftype, fid) = iprot.readFieldBegin()
17198
      if ftype == TType.STOP:
17199
        break
17200
      if fid == 1:
17201
        if ftype == TType.I64:
17202
          self.startDateTime = iprot.readI64();
17203
        else:
17204
          iprot.skip(ftype)
17205
      else:
17206
        iprot.skip(ftype)
17207
      iprot.readFieldEnd()
17208
    iprot.readStructEnd()
17209
 
17210
  def write(self, oprot):
17211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17213
      return
17214
    oprot.writeStructBegin('getProductNotifications_args')
17215
    if self.startDateTime is not None:
17216
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
17217
      oprot.writeI64(self.startDateTime)
17218
      oprot.writeFieldEnd()
17219
    oprot.writeFieldStop()
17220
    oprot.writeStructEnd()
17221
 
17222
  def validate(self):
17223
    return
17224
 
17225
 
17226
  def __repr__(self):
17227
    L = ['%s=%r' % (key, value)
17228
      for key, value in self.__dict__.iteritems()]
17229
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17230
 
17231
  def __eq__(self, other):
17232
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17233
 
17234
  def __ne__(self, other):
17235
    return not (self == other)
17236
 
17237
class getProductNotifications_result:
17238
  """
17239
  Attributes:
17240
   - success
17241
  """
17242
 
17243
  thrift_spec = (
17244
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
17245
  )
17246
 
17247
  def __init__(self, success=None,):
17248
    self.success = success
17249
 
17250
  def read(self, iprot):
17251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17253
      return
17254
    iprot.readStructBegin()
17255
    while True:
17256
      (fname, ftype, fid) = iprot.readFieldBegin()
17257
      if ftype == TType.STOP:
17258
        break
17259
      if fid == 0:
17260
        if ftype == TType.LIST:
17261
          self.success = []
9155 kshitij.so 17262
          (_etype349, _size346) = iprot.readListBegin()
17263
          for _i350 in xrange(_size346):
17264
            _elem351 = ProductNotificationRequest()
17265
            _elem351.read(iprot)
17266
            self.success.append(_elem351)
5944 mandeep.dh 17267
          iprot.readListEnd()
17268
        else:
17269
          iprot.skip(ftype)
17270
      else:
17271
        iprot.skip(ftype)
17272
      iprot.readFieldEnd()
17273
    iprot.readStructEnd()
17274
 
17275
  def write(self, oprot):
17276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17278
      return
17279
    oprot.writeStructBegin('getProductNotifications_result')
17280
    if self.success is not None:
17281
      oprot.writeFieldBegin('success', TType.LIST, 0)
17282
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17283
      for iter352 in self.success:
17284
        iter352.write(oprot)
5944 mandeep.dh 17285
      oprot.writeListEnd()
17286
      oprot.writeFieldEnd()
17287
    oprot.writeFieldStop()
17288
    oprot.writeStructEnd()
17289
 
17290
  def validate(self):
17291
    return
17292
 
17293
 
17294
  def __repr__(self):
17295
    L = ['%s=%r' % (key, value)
17296
      for key, value in self.__dict__.iteritems()]
17297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17298
 
17299
  def __eq__(self, other):
17300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17301
 
17302
  def __ne__(self, other):
17303
    return not (self == other)
17304
 
17305
class getProductNotificationRequestCount_args:
17306
  """
17307
  Attributes:
17308
   - startDateTime
7897 amar.kumar 17309
   - categoryId
5944 mandeep.dh 17310
  """
17311
 
17312
  thrift_spec = (
17313
    None, # 0
17314
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 17315
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 17316
  )
17317
 
7897 amar.kumar 17318
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 17319
    self.startDateTime = startDateTime
7897 amar.kumar 17320
    self.categoryId = categoryId
5944 mandeep.dh 17321
 
17322
  def read(self, iprot):
17323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17325
      return
17326
    iprot.readStructBegin()
17327
    while True:
17328
      (fname, ftype, fid) = iprot.readFieldBegin()
17329
      if ftype == TType.STOP:
17330
        break
17331
      if fid == 1:
17332
        if ftype == TType.I64:
17333
          self.startDateTime = iprot.readI64();
17334
        else:
17335
          iprot.skip(ftype)
7897 amar.kumar 17336
      elif fid == 2:
17337
        if ftype == TType.I64:
17338
          self.categoryId = iprot.readI64();
17339
        else:
17340
          iprot.skip(ftype)
5944 mandeep.dh 17341
      else:
17342
        iprot.skip(ftype)
17343
      iprot.readFieldEnd()
17344
    iprot.readStructEnd()
17345
 
17346
  def write(self, oprot):
17347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17349
      return
17350
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
17351
    if self.startDateTime is not None:
17352
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
17353
      oprot.writeI64(self.startDateTime)
17354
      oprot.writeFieldEnd()
7897 amar.kumar 17355
    if self.categoryId is not None:
17356
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
17357
      oprot.writeI64(self.categoryId)
17358
      oprot.writeFieldEnd()
5944 mandeep.dh 17359
    oprot.writeFieldStop()
17360
    oprot.writeStructEnd()
17361
 
17362
  def validate(self):
17363
    return
17364
 
17365
 
17366
  def __repr__(self):
17367
    L = ['%s=%r' % (key, value)
17368
      for key, value in self.__dict__.iteritems()]
17369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17370
 
17371
  def __eq__(self, other):
17372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17373
 
17374
  def __ne__(self, other):
17375
    return not (self == other)
17376
 
17377
class getProductNotificationRequestCount_result:
17378
  """
17379
  Attributes:
17380
   - success
17381
  """
17382
 
17383
  thrift_spec = (
17384
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
17385
  )
17386
 
17387
  def __init__(self, success=None,):
17388
    self.success = success
17389
 
17390
  def read(self, iprot):
17391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17393
      return
17394
    iprot.readStructBegin()
17395
    while True:
17396
      (fname, ftype, fid) = iprot.readFieldBegin()
17397
      if ftype == TType.STOP:
17398
        break
17399
      if fid == 0:
17400
        if ftype == TType.LIST:
17401
          self.success = []
9155 kshitij.so 17402
          (_etype356, _size353) = iprot.readListBegin()
17403
          for _i357 in xrange(_size353):
17404
            _elem358 = ProductNotificationRequestCount()
17405
            _elem358.read(iprot)
17406
            self.success.append(_elem358)
5944 mandeep.dh 17407
          iprot.readListEnd()
17408
        else:
17409
          iprot.skip(ftype)
17410
      else:
17411
        iprot.skip(ftype)
17412
      iprot.readFieldEnd()
17413
    iprot.readStructEnd()
17414
 
17415
  def write(self, oprot):
17416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17418
      return
17419
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
17420
    if self.success is not None:
17421
      oprot.writeFieldBegin('success', TType.LIST, 0)
17422
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17423
      for iter359 in self.success:
17424
        iter359.write(oprot)
5944 mandeep.dh 17425
      oprot.writeListEnd()
17426
      oprot.writeFieldEnd()
17427
    oprot.writeFieldStop()
17428
    oprot.writeStructEnd()
17429
 
17430
  def validate(self):
17431
    return
17432
 
17433
 
17434
  def __repr__(self):
17435
    L = ['%s=%r' % (key, value)
17436
      for key, value in self.__dict__.iteritems()]
17437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17438
 
17439
  def __eq__(self, other):
17440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17441
 
17442
  def __ne__(self, other):
17443
    return not (self == other)
17444
 
17445
class addAuthorizationLog_args:
17446
  """
17447
  Attributes:
17448
   - itemId
17449
   - username
17450
   - reason
17451
  """
17452
 
17453
  thrift_spec = (
17454
    None, # 0
17455
    (1, TType.I64, 'itemId', None, None, ), # 1
17456
    (2, TType.STRING, 'username', None, None, ), # 2
17457
    (3, TType.STRING, 'reason', None, None, ), # 3
17458
  )
17459
 
17460
  def __init__(self, itemId=None, username=None, reason=None,):
17461
    self.itemId = itemId
17462
    self.username = username
17463
    self.reason = reason
17464
 
17465
  def read(self, iprot):
17466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17468
      return
17469
    iprot.readStructBegin()
17470
    while True:
17471
      (fname, ftype, fid) = iprot.readFieldBegin()
17472
      if ftype == TType.STOP:
17473
        break
17474
      if fid == 1:
17475
        if ftype == TType.I64:
17476
          self.itemId = iprot.readI64();
17477
        else:
17478
          iprot.skip(ftype)
17479
      elif fid == 2:
17480
        if ftype == TType.STRING:
17481
          self.username = iprot.readString();
17482
        else:
17483
          iprot.skip(ftype)
17484
      elif fid == 3:
17485
        if ftype == TType.STRING:
17486
          self.reason = iprot.readString();
17487
        else:
17488
          iprot.skip(ftype)
17489
      else:
17490
        iprot.skip(ftype)
17491
      iprot.readFieldEnd()
17492
    iprot.readStructEnd()
17493
 
17494
  def write(self, oprot):
17495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17497
      return
17498
    oprot.writeStructBegin('addAuthorizationLog_args')
17499
    if self.itemId is not None:
17500
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17501
      oprot.writeI64(self.itemId)
17502
      oprot.writeFieldEnd()
17503
    if self.username is not None:
17504
      oprot.writeFieldBegin('username', TType.STRING, 2)
17505
      oprot.writeString(self.username)
17506
      oprot.writeFieldEnd()
17507
    if self.reason is not None:
17508
      oprot.writeFieldBegin('reason', TType.STRING, 3)
17509
      oprot.writeString(self.reason)
17510
      oprot.writeFieldEnd()
17511
    oprot.writeFieldStop()
17512
    oprot.writeStructEnd()
17513
 
17514
  def validate(self):
17515
    return
17516
 
17517
 
17518
  def __repr__(self):
17519
    L = ['%s=%r' % (key, value)
17520
      for key, value in self.__dict__.iteritems()]
17521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17522
 
17523
  def __eq__(self, other):
17524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17525
 
17526
  def __ne__(self, other):
17527
    return not (self == other)
17528
 
17529
class addAuthorizationLog_result:
17530
  """
17531
  Attributes:
17532
   - success
17533
   - cex
17534
  """
17535
 
17536
  thrift_spec = (
17537
    (0, TType.BOOL, 'success', None, None, ), # 0
17538
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17539
  )
17540
 
17541
  def __init__(self, success=None, cex=None,):
17542
    self.success = success
17543
    self.cex = cex
17544
 
17545
  def read(self, iprot):
17546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17548
      return
17549
    iprot.readStructBegin()
17550
    while True:
17551
      (fname, ftype, fid) = iprot.readFieldBegin()
17552
      if ftype == TType.STOP:
17553
        break
17554
      if fid == 0:
17555
        if ftype == TType.BOOL:
17556
          self.success = iprot.readBool();
17557
        else:
17558
          iprot.skip(ftype)
17559
      elif fid == 1:
17560
        if ftype == TType.STRUCT:
17561
          self.cex = CatalogServiceException()
17562
          self.cex.read(iprot)
17563
        else:
17564
          iprot.skip(ftype)
17565
      else:
17566
        iprot.skip(ftype)
17567
      iprot.readFieldEnd()
17568
    iprot.readStructEnd()
17569
 
17570
  def write(self, oprot):
17571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17573
      return
17574
    oprot.writeStructBegin('addAuthorizationLog_result')
17575
    if self.success is not None:
17576
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17577
      oprot.writeBool(self.success)
17578
      oprot.writeFieldEnd()
17579
    if self.cex is not None:
17580
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17581
      self.cex.write(oprot)
17582
      oprot.writeFieldEnd()
17583
    oprot.writeFieldStop()
17584
    oprot.writeStructEnd()
17585
 
17586
  def validate(self):
17587
    return
17588
 
17589
 
17590
  def __repr__(self):
17591
    L = ['%s=%r' % (key, value)
17592
      for key, value in self.__dict__.iteritems()]
17593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17594
 
17595
  def __eq__(self, other):
17596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17597
 
17598
  def __ne__(self, other):
17599
    return not (self == other)
17600
 
17601
class addupdateVoucherForItem_args:
17602
  """
17603
  Attributes:
17604
   - catalog_item_id
17605
   - voucherType
17606
   - voucherAmount
17607
  """
17608
 
17609
  thrift_spec = (
17610
    None, # 0
17611
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
17612
    (2, TType.I64, 'voucherType', None, None, ), # 2
17613
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
17614
  )
17615
 
17616
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
17617
    self.catalog_item_id = catalog_item_id
17618
    self.voucherType = voucherType
17619
    self.voucherAmount = voucherAmount
17620
 
17621
  def read(self, iprot):
17622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17624
      return
17625
    iprot.readStructBegin()
17626
    while True:
17627
      (fname, ftype, fid) = iprot.readFieldBegin()
17628
      if ftype == TType.STOP:
17629
        break
17630
      if fid == 1:
17631
        if ftype == TType.I64:
17632
          self.catalog_item_id = iprot.readI64();
17633
        else:
17634
          iprot.skip(ftype)
17635
      elif fid == 2:
17636
        if ftype == TType.I64:
17637
          self.voucherType = iprot.readI64();
17638
        else:
17639
          iprot.skip(ftype)
17640
      elif fid == 3:
17641
        if ftype == TType.I64:
17642
          self.voucherAmount = iprot.readI64();
17643
        else:
17644
          iprot.skip(ftype)
17645
      else:
17646
        iprot.skip(ftype)
17647
      iprot.readFieldEnd()
17648
    iprot.readStructEnd()
17649
 
17650
  def write(self, oprot):
17651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17653
      return
17654
    oprot.writeStructBegin('addupdateVoucherForItem_args')
17655
    if self.catalog_item_id is not None:
17656
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
17657
      oprot.writeI64(self.catalog_item_id)
17658
      oprot.writeFieldEnd()
17659
    if self.voucherType is not None:
17660
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
17661
      oprot.writeI64(self.voucherType)
17662
      oprot.writeFieldEnd()
17663
    if self.voucherAmount is not None:
17664
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
17665
      oprot.writeI64(self.voucherAmount)
17666
      oprot.writeFieldEnd()
17667
    oprot.writeFieldStop()
17668
    oprot.writeStructEnd()
17669
 
17670
  def validate(self):
17671
    return
17672
 
17673
 
17674
  def __repr__(self):
17675
    L = ['%s=%r' % (key, value)
17676
      for key, value in self.__dict__.iteritems()]
17677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17678
 
17679
  def __eq__(self, other):
17680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17681
 
17682
  def __ne__(self, other):
17683
    return not (self == other)
17684
 
17685
class addupdateVoucherForItem_result:
17686
  """
17687
  Attributes:
17688
   - success
17689
   - cex
17690
  """
17691
 
17692
  thrift_spec = (
17693
    (0, TType.BOOL, 'success', None, None, ), # 0
17694
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17695
  )
17696
 
17697
  def __init__(self, success=None, cex=None,):
17698
    self.success = success
17699
    self.cex = cex
17700
 
17701
  def read(self, iprot):
17702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17704
      return
17705
    iprot.readStructBegin()
17706
    while True:
17707
      (fname, ftype, fid) = iprot.readFieldBegin()
17708
      if ftype == TType.STOP:
17709
        break
17710
      if fid == 0:
17711
        if ftype == TType.BOOL:
17712
          self.success = iprot.readBool();
17713
        else:
17714
          iprot.skip(ftype)
17715
      elif fid == 1:
17716
        if ftype == TType.STRUCT:
17717
          self.cex = CatalogServiceException()
17718
          self.cex.read(iprot)
17719
        else:
17720
          iprot.skip(ftype)
17721
      else:
17722
        iprot.skip(ftype)
17723
      iprot.readFieldEnd()
17724
    iprot.readStructEnd()
17725
 
17726
  def write(self, oprot):
17727
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17728
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17729
      return
17730
    oprot.writeStructBegin('addupdateVoucherForItem_result')
17731
    if self.success is not None:
17732
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17733
      oprot.writeBool(self.success)
17734
      oprot.writeFieldEnd()
17735
    if self.cex is not None:
17736
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17737
      self.cex.write(oprot)
17738
      oprot.writeFieldEnd()
17739
    oprot.writeFieldStop()
17740
    oprot.writeStructEnd()
17741
 
17742
  def validate(self):
17743
    return
17744
 
17745
 
17746
  def __repr__(self):
17747
    L = ['%s=%r' % (key, value)
17748
      for key, value in self.__dict__.iteritems()]
17749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17750
 
17751
  def __eq__(self, other):
17752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17753
 
17754
  def __ne__(self, other):
17755
    return not (self == other)
17756
 
17757
class deleteVoucherForItem_args:
17758
  """
17759
  Attributes:
17760
   - catalog_item_id
17761
   - voucherType
17762
  """
17763
 
17764
  thrift_spec = (
17765
    None, # 0
17766
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
17767
    (2, TType.I64, 'voucherType', None, None, ), # 2
17768
  )
17769
 
17770
  def __init__(self, catalog_item_id=None, voucherType=None,):
17771
    self.catalog_item_id = catalog_item_id
17772
    self.voucherType = voucherType
17773
 
17774
  def read(self, iprot):
17775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17777
      return
17778
    iprot.readStructBegin()
17779
    while True:
17780
      (fname, ftype, fid) = iprot.readFieldBegin()
17781
      if ftype == TType.STOP:
17782
        break
17783
      if fid == 1:
17784
        if ftype == TType.I64:
17785
          self.catalog_item_id = iprot.readI64();
17786
        else:
17787
          iprot.skip(ftype)
17788
      elif fid == 2:
17789
        if ftype == TType.I64:
17790
          self.voucherType = iprot.readI64();
17791
        else:
17792
          iprot.skip(ftype)
17793
      else:
17794
        iprot.skip(ftype)
17795
      iprot.readFieldEnd()
17796
    iprot.readStructEnd()
17797
 
17798
  def write(self, oprot):
17799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17801
      return
17802
    oprot.writeStructBegin('deleteVoucherForItem_args')
17803
    if self.catalog_item_id is not None:
17804
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
17805
      oprot.writeI64(self.catalog_item_id)
17806
      oprot.writeFieldEnd()
17807
    if self.voucherType is not None:
17808
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
17809
      oprot.writeI64(self.voucherType)
17810
      oprot.writeFieldEnd()
17811
    oprot.writeFieldStop()
17812
    oprot.writeStructEnd()
17813
 
17814
  def validate(self):
17815
    return
17816
 
17817
 
17818
  def __repr__(self):
17819
    L = ['%s=%r' % (key, value)
17820
      for key, value in self.__dict__.iteritems()]
17821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17822
 
17823
  def __eq__(self, other):
17824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17825
 
17826
  def __ne__(self, other):
17827
    return not (self == other)
17828
 
17829
class deleteVoucherForItem_result:
17830
  """
17831
  Attributes:
17832
   - success
17833
   - cex
17834
  """
17835
 
17836
  thrift_spec = (
17837
    (0, TType.BOOL, 'success', None, None, ), # 0
17838
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17839
  )
17840
 
17841
  def __init__(self, success=None, cex=None,):
17842
    self.success = success
17843
    self.cex = cex
17844
 
17845
  def read(self, iprot):
17846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17848
      return
17849
    iprot.readStructBegin()
17850
    while True:
17851
      (fname, ftype, fid) = iprot.readFieldBegin()
17852
      if ftype == TType.STOP:
17853
        break
17854
      if fid == 0:
17855
        if ftype == TType.BOOL:
17856
          self.success = iprot.readBool();
17857
        else:
17858
          iprot.skip(ftype)
17859
      elif fid == 1:
17860
        if ftype == TType.STRUCT:
17861
          self.cex = CatalogServiceException()
17862
          self.cex.read(iprot)
17863
        else:
17864
          iprot.skip(ftype)
17865
      else:
17866
        iprot.skip(ftype)
17867
      iprot.readFieldEnd()
17868
    iprot.readStructEnd()
17869
 
17870
  def write(self, oprot):
17871
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17872
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17873
      return
17874
    oprot.writeStructBegin('deleteVoucherForItem_result')
17875
    if self.success is not None:
17876
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17877
      oprot.writeBool(self.success)
17878
      oprot.writeFieldEnd()
17879
    if self.cex is not None:
17880
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17881
      self.cex.write(oprot)
17882
      oprot.writeFieldEnd()
17883
    oprot.writeFieldStop()
17884
    oprot.writeStructEnd()
17885
 
17886
  def validate(self):
17887
    return
17888
 
17889
 
17890
  def __repr__(self):
17891
    L = ['%s=%r' % (key, value)
17892
      for key, value in self.__dict__.iteritems()]
17893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17894
 
17895
  def __eq__(self, other):
17896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17897
 
17898
  def __ne__(self, other):
17899
    return not (self == other)
17900
 
17901
class getVoucherAmount_args:
17902
  """
17903
  Attributes:
17904
   - itemId
17905
   - voucherType
17906
  """
17907
 
17908
  thrift_spec = (
17909
    None, # 0
17910
    (1, TType.I64, 'itemId', None, None, ), # 1
17911
    (2, TType.I64, 'voucherType', None, None, ), # 2
17912
  )
17913
 
17914
  def __init__(self, itemId=None, voucherType=None,):
17915
    self.itemId = itemId
17916
    self.voucherType = voucherType
17917
 
17918
  def read(self, iprot):
17919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17921
      return
17922
    iprot.readStructBegin()
17923
    while True:
17924
      (fname, ftype, fid) = iprot.readFieldBegin()
17925
      if ftype == TType.STOP:
17926
        break
17927
      if fid == 1:
17928
        if ftype == TType.I64:
17929
          self.itemId = iprot.readI64();
17930
        else:
17931
          iprot.skip(ftype)
17932
      elif fid == 2:
17933
        if ftype == TType.I64:
17934
          self.voucherType = iprot.readI64();
17935
        else:
17936
          iprot.skip(ftype)
17937
      else:
17938
        iprot.skip(ftype)
17939
      iprot.readFieldEnd()
17940
    iprot.readStructEnd()
17941
 
17942
  def write(self, oprot):
17943
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17944
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17945
      return
17946
    oprot.writeStructBegin('getVoucherAmount_args')
17947
    if self.itemId is not None:
17948
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17949
      oprot.writeI64(self.itemId)
17950
      oprot.writeFieldEnd()
17951
    if self.voucherType is not None:
17952
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
17953
      oprot.writeI64(self.voucherType)
17954
      oprot.writeFieldEnd()
17955
    oprot.writeFieldStop()
17956
    oprot.writeStructEnd()
17957
 
17958
  def validate(self):
17959
    return
17960
 
17961
 
17962
  def __repr__(self):
17963
    L = ['%s=%r' % (key, value)
17964
      for key, value in self.__dict__.iteritems()]
17965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17966
 
17967
  def __eq__(self, other):
17968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17969
 
17970
  def __ne__(self, other):
17971
    return not (self == other)
17972
 
17973
class getVoucherAmount_result:
17974
  """
17975
  Attributes:
17976
   - success
17977
  """
17978
 
17979
  thrift_spec = (
17980
    (0, TType.I64, 'success', None, None, ), # 0
17981
  )
17982
 
17983
  def __init__(self, success=None,):
17984
    self.success = success
17985
 
17986
  def read(self, iprot):
17987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17989
      return
17990
    iprot.readStructBegin()
17991
    while True:
17992
      (fname, ftype, fid) = iprot.readFieldBegin()
17993
      if ftype == TType.STOP:
17994
        break
17995
      if fid == 0:
17996
        if ftype == TType.I64:
17997
          self.success = iprot.readI64();
17998
        else:
17999
          iprot.skip(ftype)
18000
      else:
18001
        iprot.skip(ftype)
18002
      iprot.readFieldEnd()
18003
    iprot.readStructEnd()
18004
 
18005
  def write(self, oprot):
18006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18008
      return
18009
    oprot.writeStructBegin('getVoucherAmount_result')
18010
    if self.success is not None:
18011
      oprot.writeFieldBegin('success', TType.I64, 0)
18012
      oprot.writeI64(self.success)
18013
      oprot.writeFieldEnd()
18014
    oprot.writeFieldStop()
18015
    oprot.writeStructEnd()
18016
 
18017
  def validate(self):
18018
    return
18019
 
18020
 
18021
  def __repr__(self):
18022
    L = ['%s=%r' % (key, value)
18023
      for key, value in self.__dict__.iteritems()]
18024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18025
 
18026
  def __eq__(self, other):
18027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18028
 
18029
  def __ne__(self, other):
18030
    return not (self == other)
18031
 
18032
class getAllItemVouchers_args:
18033
  """
18034
  Attributes:
18035
   - itemId
18036
  """
18037
 
18038
  thrift_spec = (
18039
    None, # 0
18040
    (1, TType.I64, 'itemId', None, None, ), # 1
18041
  )
18042
 
18043
  def __init__(self, itemId=None,):
18044
    self.itemId = itemId
18045
 
18046
  def read(self, iprot):
18047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18049
      return
18050
    iprot.readStructBegin()
18051
    while True:
18052
      (fname, ftype, fid) = iprot.readFieldBegin()
18053
      if ftype == TType.STOP:
18054
        break
18055
      if fid == 1:
18056
        if ftype == TType.I64:
18057
          self.itemId = iprot.readI64();
18058
        else:
18059
          iprot.skip(ftype)
18060
      else:
18061
        iprot.skip(ftype)
18062
      iprot.readFieldEnd()
18063
    iprot.readStructEnd()
18064
 
18065
  def write(self, oprot):
18066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18068
      return
18069
    oprot.writeStructBegin('getAllItemVouchers_args')
18070
    if self.itemId is not None:
18071
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18072
      oprot.writeI64(self.itemId)
18073
      oprot.writeFieldEnd()
18074
    oprot.writeFieldStop()
18075
    oprot.writeStructEnd()
18076
 
18077
  def validate(self):
18078
    return
18079
 
18080
 
18081
  def __repr__(self):
18082
    L = ['%s=%r' % (key, value)
18083
      for key, value in self.__dict__.iteritems()]
18084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18085
 
18086
  def __eq__(self, other):
18087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18088
 
18089
  def __ne__(self, other):
18090
    return not (self == other)
18091
 
18092
class getAllItemVouchers_result:
18093
  """
18094
  Attributes:
18095
   - success
18096
  """
18097
 
18098
  thrift_spec = (
18099
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
18100
  )
18101
 
18102
  def __init__(self, success=None,):
18103
    self.success = success
18104
 
18105
  def read(self, iprot):
18106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18108
      return
18109
    iprot.readStructBegin()
18110
    while True:
18111
      (fname, ftype, fid) = iprot.readFieldBegin()
18112
      if ftype == TType.STOP:
18113
        break
18114
      if fid == 0:
18115
        if ftype == TType.LIST:
18116
          self.success = []
9155 kshitij.so 18117
          (_etype363, _size360) = iprot.readListBegin()
18118
          for _i364 in xrange(_size360):
18119
            _elem365 = VoucherItemMapping()
18120
            _elem365.read(iprot)
18121
            self.success.append(_elem365)
5944 mandeep.dh 18122
          iprot.readListEnd()
18123
        else:
18124
          iprot.skip(ftype)
18125
      else:
18126
        iprot.skip(ftype)
18127
      iprot.readFieldEnd()
18128
    iprot.readStructEnd()
18129
 
18130
  def write(self, oprot):
18131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18133
      return
18134
    oprot.writeStructBegin('getAllItemVouchers_result')
18135
    if self.success is not None:
18136
      oprot.writeFieldBegin('success', TType.LIST, 0)
18137
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18138
      for iter366 in self.success:
18139
        iter366.write(oprot)
5944 mandeep.dh 18140
      oprot.writeListEnd()
18141
      oprot.writeFieldEnd()
18142
    oprot.writeFieldStop()
18143
    oprot.writeStructEnd()
18144
 
18145
  def validate(self):
18146
    return
18147
 
18148
 
18149
  def __repr__(self):
18150
    L = ['%s=%r' % (key, value)
18151
      for key, value in self.__dict__.iteritems()]
18152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18153
 
18154
  def __eq__(self, other):
18155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18156
 
18157
  def __ne__(self, other):
18158
    return not (self == other)
18159
 
18160
class isValidCatalogItemId_args:
18161
  """
18162
  Attributes:
18163
   - catalog_item_id
18164
  """
18165
 
18166
  thrift_spec = (
18167
    None, # 0
18168
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
18169
  )
18170
 
18171
  def __init__(self, catalog_item_id=None,):
18172
    self.catalog_item_id = catalog_item_id
18173
 
18174
  def read(self, iprot):
18175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18177
      return
18178
    iprot.readStructBegin()
18179
    while True:
18180
      (fname, ftype, fid) = iprot.readFieldBegin()
18181
      if ftype == TType.STOP:
18182
        break
18183
      if fid == 1:
18184
        if ftype == TType.I64:
18185
          self.catalog_item_id = iprot.readI64();
18186
        else:
18187
          iprot.skip(ftype)
18188
      else:
18189
        iprot.skip(ftype)
18190
      iprot.readFieldEnd()
18191
    iprot.readStructEnd()
18192
 
18193
  def write(self, oprot):
18194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18196
      return
18197
    oprot.writeStructBegin('isValidCatalogItemId_args')
18198
    if self.catalog_item_id is not None:
18199
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
18200
      oprot.writeI64(self.catalog_item_id)
18201
      oprot.writeFieldEnd()
18202
    oprot.writeFieldStop()
18203
    oprot.writeStructEnd()
18204
 
18205
  def validate(self):
18206
    return
18207
 
18208
 
18209
  def __repr__(self):
18210
    L = ['%s=%r' % (key, value)
18211
      for key, value in self.__dict__.iteritems()]
18212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18213
 
18214
  def __eq__(self, other):
18215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18216
 
18217
  def __ne__(self, other):
18218
    return not (self == other)
18219
 
18220
class isValidCatalogItemId_result:
18221
  """
18222
  Attributes:
18223
   - success
18224
  """
18225
 
18226
  thrift_spec = (
18227
    (0, TType.BOOL, 'success', None, None, ), # 0
18228
  )
18229
 
18230
  def __init__(self, success=None,):
18231
    self.success = success
18232
 
18233
  def read(self, iprot):
18234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18236
      return
18237
    iprot.readStructBegin()
18238
    while True:
18239
      (fname, ftype, fid) = iprot.readFieldBegin()
18240
      if ftype == TType.STOP:
18241
        break
18242
      if fid == 0:
18243
        if ftype == TType.BOOL:
18244
          self.success = iprot.readBool();
18245
        else:
18246
          iprot.skip(ftype)
18247
      else:
18248
        iprot.skip(ftype)
18249
      iprot.readFieldEnd()
18250
    iprot.readStructEnd()
18251
 
18252
  def write(self, oprot):
18253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18255
      return
18256
    oprot.writeStructBegin('isValidCatalogItemId_result')
18257
    if self.success is not None:
18258
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18259
      oprot.writeBool(self.success)
18260
      oprot.writeFieldEnd()
18261
    oprot.writeFieldStop()
18262
    oprot.writeStructEnd()
18263
 
18264
  def validate(self):
18265
    return
18266
 
18267
 
18268
  def __repr__(self):
18269
    L = ['%s=%r' % (key, value)
18270
      for key, value in self.__dict__.iteritems()]
18271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18272
 
18273
  def __eq__(self, other):
18274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18275
 
18276
  def __ne__(self, other):
18277
    return not (self == other)
6039 amit.gupta 18278
 
18279
class getVatPercentageForItem_args:
18280
  """
18281
  Attributes:
18282
   - itemId
7330 amit.gupta 18283
   - stateId
6039 amit.gupta 18284
   - price
18285
  """
18286
 
18287
  thrift_spec = (
18288
    None, # 0
18289
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 18290
    (2, TType.I64, 'stateId', None, None, ), # 2
18291
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 18292
  )
18293
 
7330 amit.gupta 18294
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 18295
    self.itemId = itemId
7330 amit.gupta 18296
    self.stateId = stateId
6039 amit.gupta 18297
    self.price = price
18298
 
18299
  def read(self, iprot):
18300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18302
      return
18303
    iprot.readStructBegin()
18304
    while True:
18305
      (fname, ftype, fid) = iprot.readFieldBegin()
18306
      if ftype == TType.STOP:
18307
        break
18308
      if fid == 1:
18309
        if ftype == TType.I64:
18310
          self.itemId = iprot.readI64();
18311
        else:
18312
          iprot.skip(ftype)
18313
      elif fid == 2:
7330 amit.gupta 18314
        if ftype == TType.I64:
18315
          self.stateId = iprot.readI64();
18316
        else:
18317
          iprot.skip(ftype)
18318
      elif fid == 3:
6039 amit.gupta 18319
        if ftype == TType.DOUBLE:
18320
          self.price = iprot.readDouble();
18321
        else:
18322
          iprot.skip(ftype)
18323
      else:
18324
        iprot.skip(ftype)
18325
      iprot.readFieldEnd()
18326
    iprot.readStructEnd()
18327
 
18328
  def write(self, oprot):
18329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18331
      return
18332
    oprot.writeStructBegin('getVatPercentageForItem_args')
18333
    if self.itemId is not None:
18334
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18335
      oprot.writeI64(self.itemId)
18336
      oprot.writeFieldEnd()
7330 amit.gupta 18337
    if self.stateId is not None:
18338
      oprot.writeFieldBegin('stateId', TType.I64, 2)
18339
      oprot.writeI64(self.stateId)
18340
      oprot.writeFieldEnd()
6039 amit.gupta 18341
    if self.price is not None:
7330 amit.gupta 18342
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 18343
      oprot.writeDouble(self.price)
18344
      oprot.writeFieldEnd()
18345
    oprot.writeFieldStop()
18346
    oprot.writeStructEnd()
18347
 
18348
  def validate(self):
18349
    return
18350
 
18351
 
18352
  def __repr__(self):
18353
    L = ['%s=%r' % (key, value)
18354
      for key, value in self.__dict__.iteritems()]
18355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18356
 
18357
  def __eq__(self, other):
18358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18359
 
18360
  def __ne__(self, other):
18361
    return not (self == other)
18362
 
18363
class getVatPercentageForItem_result:
18364
  """
18365
  Attributes:
18366
   - success
7340 amit.gupta 18367
   - cex
6039 amit.gupta 18368
  """
18369
 
18370
  thrift_spec = (
18371
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 18372
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 18373
  )
18374
 
7340 amit.gupta 18375
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 18376
    self.success = success
7340 amit.gupta 18377
    self.cex = cex
6039 amit.gupta 18378
 
18379
  def read(self, iprot):
18380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18382
      return
18383
    iprot.readStructBegin()
18384
    while True:
18385
      (fname, ftype, fid) = iprot.readFieldBegin()
18386
      if ftype == TType.STOP:
18387
        break
18388
      if fid == 0:
18389
        if ftype == TType.DOUBLE:
18390
          self.success = iprot.readDouble();
18391
        else:
18392
          iprot.skip(ftype)
7340 amit.gupta 18393
      elif fid == 1:
18394
        if ftype == TType.STRUCT:
18395
          self.cex = CatalogServiceException()
18396
          self.cex.read(iprot)
18397
        else:
18398
          iprot.skip(ftype)
6039 amit.gupta 18399
      else:
18400
        iprot.skip(ftype)
18401
      iprot.readFieldEnd()
18402
    iprot.readStructEnd()
18403
 
18404
  def write(self, oprot):
18405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18407
      return
18408
    oprot.writeStructBegin('getVatPercentageForItem_result')
18409
    if self.success is not None:
18410
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
18411
      oprot.writeDouble(self.success)
18412
      oprot.writeFieldEnd()
7340 amit.gupta 18413
    if self.cex is not None:
18414
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18415
      self.cex.write(oprot)
18416
      oprot.writeFieldEnd()
6039 amit.gupta 18417
    oprot.writeFieldStop()
18418
    oprot.writeStructEnd()
18419
 
18420
  def validate(self):
18421
    return
18422
 
18423
 
18424
  def __repr__(self):
18425
    L = ['%s=%r' % (key, value)
18426
      for key, value in self.__dict__.iteritems()]
18427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18428
 
18429
  def __eq__(self, other):
18430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18431
 
18432
  def __ne__(self, other):
18433
    return not (self == other)
18434
 
18435
class getVatAmountForItem_args:
18436
  """
18437
  Attributes:
18438
   - itemId
18439
   - price
18440
  """
18441
 
18442
  thrift_spec = (
18443
    None, # 0
18444
    (1, TType.I64, 'itemId', None, None, ), # 1
18445
    (2, TType.DOUBLE, 'price', None, None, ), # 2
18446
  )
18447
 
18448
  def __init__(self, itemId=None, price=None,):
18449
    self.itemId = itemId
18450
    self.price = price
18451
 
18452
  def read(self, iprot):
18453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18455
      return
18456
    iprot.readStructBegin()
18457
    while True:
18458
      (fname, ftype, fid) = iprot.readFieldBegin()
18459
      if ftype == TType.STOP:
18460
        break
18461
      if fid == 1:
18462
        if ftype == TType.I64:
18463
          self.itemId = iprot.readI64();
18464
        else:
18465
          iprot.skip(ftype)
18466
      elif fid == 2:
18467
        if ftype == TType.DOUBLE:
18468
          self.price = iprot.readDouble();
18469
        else:
18470
          iprot.skip(ftype)
18471
      else:
18472
        iprot.skip(ftype)
18473
      iprot.readFieldEnd()
18474
    iprot.readStructEnd()
18475
 
18476
  def write(self, oprot):
18477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18479
      return
18480
    oprot.writeStructBegin('getVatAmountForItem_args')
18481
    if self.itemId is not None:
18482
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18483
      oprot.writeI64(self.itemId)
18484
      oprot.writeFieldEnd()
18485
    if self.price is not None:
18486
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
18487
      oprot.writeDouble(self.price)
18488
      oprot.writeFieldEnd()
18489
    oprot.writeFieldStop()
18490
    oprot.writeStructEnd()
18491
 
18492
  def validate(self):
18493
    return
18494
 
18495
 
18496
  def __repr__(self):
18497
    L = ['%s=%r' % (key, value)
18498
      for key, value in self.__dict__.iteritems()]
18499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18500
 
18501
  def __eq__(self, other):
18502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18503
 
18504
  def __ne__(self, other):
18505
    return not (self == other)
18506
 
18507
class getVatAmountForItem_result:
18508
  """
18509
  Attributes:
18510
   - success
18511
  """
18512
 
18513
  thrift_spec = (
18514
    (0, TType.DOUBLE, 'success', None, None, ), # 0
18515
  )
18516
 
18517
  def __init__(self, success=None,):
18518
    self.success = success
18519
 
18520
  def read(self, iprot):
18521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18523
      return
18524
    iprot.readStructBegin()
18525
    while True:
18526
      (fname, ftype, fid) = iprot.readFieldBegin()
18527
      if ftype == TType.STOP:
18528
        break
18529
      if fid == 0:
18530
        if ftype == TType.DOUBLE:
18531
          self.success = iprot.readDouble();
18532
        else:
18533
          iprot.skip(ftype)
18534
      else:
18535
        iprot.skip(ftype)
18536
      iprot.readFieldEnd()
18537
    iprot.readStructEnd()
18538
 
18539
  def write(self, oprot):
18540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18542
      return
18543
    oprot.writeStructBegin('getVatAmountForItem_result')
18544
    if self.success is not None:
18545
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
18546
      oprot.writeDouble(self.success)
18547
      oprot.writeFieldEnd()
18548
    oprot.writeFieldStop()
18549
    oprot.writeStructEnd()
18550
 
18551
  def validate(self):
18552
    return
18553
 
18554
 
18555
  def __repr__(self):
18556
    L = ['%s=%r' % (key, value)
18557
      for key, value in self.__dict__.iteritems()]
18558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18559
 
18560
  def __eq__(self, other):
18561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18562
 
18563
  def __ne__(self, other):
18564
    return not (self == other)
6531 vikram.rag 18565
 
18566
class getAllIgnoredInventoryUpdateItemsList_args:
18567
  """
18568
  Attributes:
18569
   - offset
18570
   - limit
18571
  """
18572
 
18573
  thrift_spec = (
18574
    None, # 0
18575
    (1, TType.I32, 'offset', None, None, ), # 1
18576
    (2, TType.I32, 'limit', None, None, ), # 2
18577
  )
18578
 
18579
  def __init__(self, offset=None, limit=None,):
18580
    self.offset = offset
18581
    self.limit = limit
18582
 
18583
  def read(self, iprot):
18584
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18585
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18586
      return
18587
    iprot.readStructBegin()
18588
    while True:
18589
      (fname, ftype, fid) = iprot.readFieldBegin()
18590
      if ftype == TType.STOP:
18591
        break
18592
      if fid == 1:
18593
        if ftype == TType.I32:
18594
          self.offset = iprot.readI32();
18595
        else:
18596
          iprot.skip(ftype)
18597
      elif fid == 2:
18598
        if ftype == TType.I32:
18599
          self.limit = iprot.readI32();
18600
        else:
18601
          iprot.skip(ftype)
18602
      else:
18603
        iprot.skip(ftype)
18604
      iprot.readFieldEnd()
18605
    iprot.readStructEnd()
18606
 
18607
  def write(self, oprot):
18608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18610
      return
18611
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
18612
    if self.offset is not None:
18613
      oprot.writeFieldBegin('offset', TType.I32, 1)
18614
      oprot.writeI32(self.offset)
18615
      oprot.writeFieldEnd()
18616
    if self.limit is not None:
18617
      oprot.writeFieldBegin('limit', TType.I32, 2)
18618
      oprot.writeI32(self.limit)
18619
      oprot.writeFieldEnd()
18620
    oprot.writeFieldStop()
18621
    oprot.writeStructEnd()
18622
 
18623
  def validate(self):
18624
    return
18625
 
18626
 
18627
  def __repr__(self):
18628
    L = ['%s=%r' % (key, value)
18629
      for key, value in self.__dict__.iteritems()]
18630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18631
 
18632
  def __eq__(self, other):
18633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18634
 
18635
  def __ne__(self, other):
18636
    return not (self == other)
18637
 
18638
class getAllIgnoredInventoryUpdateItemsList_result:
18639
  """
18640
  Attributes:
18641
   - success
18642
  """
18643
 
18644
  thrift_spec = (
18645
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18646
  )
18647
 
18648
  def __init__(self, success=None,):
18649
    self.success = success
18650
 
18651
  def read(self, iprot):
18652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18654
      return
18655
    iprot.readStructBegin()
18656
    while True:
18657
      (fname, ftype, fid) = iprot.readFieldBegin()
18658
      if ftype == TType.STOP:
18659
        break
18660
      if fid == 0:
18661
        if ftype == TType.LIST:
18662
          self.success = []
9155 kshitij.so 18663
          (_etype370, _size367) = iprot.readListBegin()
18664
          for _i371 in xrange(_size367):
18665
            _elem372 = Item()
18666
            _elem372.read(iprot)
18667
            self.success.append(_elem372)
6531 vikram.rag 18668
          iprot.readListEnd()
18669
        else:
18670
          iprot.skip(ftype)
18671
      else:
18672
        iprot.skip(ftype)
18673
      iprot.readFieldEnd()
18674
    iprot.readStructEnd()
18675
 
18676
  def write(self, oprot):
18677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18679
      return
18680
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
18681
    if self.success is not None:
18682
      oprot.writeFieldBegin('success', TType.LIST, 0)
18683
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18684
      for iter373 in self.success:
18685
        iter373.write(oprot)
6531 vikram.rag 18686
      oprot.writeListEnd()
18687
      oprot.writeFieldEnd()
18688
    oprot.writeFieldStop()
18689
    oprot.writeStructEnd()
18690
 
18691
  def validate(self):
18692
    return
18693
 
18694
 
18695
  def __repr__(self):
18696
    L = ['%s=%r' % (key, value)
18697
      for key, value in self.__dict__.iteritems()]
18698
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18699
 
18700
  def __eq__(self, other):
18701
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18702
 
18703
  def __ne__(self, other):
18704
    return not (self == other)
6805 anupam.sin 18705
 
6821 amar.kumar 18706
class getAllAliveItems_args:
18707
 
18708
  thrift_spec = (
18709
  )
18710
 
18711
  def read(self, iprot):
18712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18714
      return
18715
    iprot.readStructBegin()
18716
    while True:
18717
      (fname, ftype, fid) = iprot.readFieldBegin()
18718
      if ftype == TType.STOP:
18719
        break
18720
      else:
18721
        iprot.skip(ftype)
18722
      iprot.readFieldEnd()
18723
    iprot.readStructEnd()
18724
 
18725
  def write(self, oprot):
18726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18728
      return
18729
    oprot.writeStructBegin('getAllAliveItems_args')
18730
    oprot.writeFieldStop()
18731
    oprot.writeStructEnd()
18732
 
18733
  def validate(self):
18734
    return
18735
 
18736
 
18737
  def __repr__(self):
18738
    L = ['%s=%r' % (key, value)
18739
      for key, value in self.__dict__.iteritems()]
18740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18741
 
18742
  def __eq__(self, other):
18743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18744
 
18745
  def __ne__(self, other):
18746
    return not (self == other)
18747
 
18748
class getAllAliveItems_result:
18749
  """
18750
  Attributes:
18751
   - success
18752
  """
18753
 
18754
  thrift_spec = (
18755
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18756
  )
18757
 
18758
  def __init__(self, success=None,):
18759
    self.success = success
18760
 
18761
  def read(self, iprot):
18762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18764
      return
18765
    iprot.readStructBegin()
18766
    while True:
18767
      (fname, ftype, fid) = iprot.readFieldBegin()
18768
      if ftype == TType.STOP:
18769
        break
18770
      if fid == 0:
18771
        if ftype == TType.LIST:
18772
          self.success = []
9155 kshitij.so 18773
          (_etype377, _size374) = iprot.readListBegin()
18774
          for _i378 in xrange(_size374):
18775
            _elem379 = Item()
18776
            _elem379.read(iprot)
18777
            self.success.append(_elem379)
6821 amar.kumar 18778
          iprot.readListEnd()
18779
        else:
18780
          iprot.skip(ftype)
18781
      else:
18782
        iprot.skip(ftype)
18783
      iprot.readFieldEnd()
18784
    iprot.readStructEnd()
18785
 
18786
  def write(self, oprot):
18787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18789
      return
18790
    oprot.writeStructBegin('getAllAliveItems_result')
18791
    if self.success is not None:
18792
      oprot.writeFieldBegin('success', TType.LIST, 0)
18793
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18794
      for iter380 in self.success:
18795
        iter380.write(oprot)
6821 amar.kumar 18796
      oprot.writeListEnd()
18797
      oprot.writeFieldEnd()
18798
    oprot.writeFieldStop()
18799
    oprot.writeStructEnd()
18800
 
18801
  def validate(self):
18802
    return
18803
 
18804
 
18805
  def __repr__(self):
18806
    L = ['%s=%r' % (key, value)
18807
      for key, value in self.__dict__.iteritems()]
18808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18809
 
18810
  def __eq__(self, other):
18811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18812
 
18813
  def __ne__(self, other):
18814
    return not (self == other)
18815
 
6805 anupam.sin 18816
class getInsuranceAmount_args:
18817
  """
18818
  Attributes:
18819
   - itemId
6921 anupam.sin 18820
   - price
6805 anupam.sin 18821
   - insurerId
18822
   - quantity
18823
  """
18824
 
18825
  thrift_spec = (
18826
    None, # 0
18827
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 18828
    (2, TType.DOUBLE, 'price', None, None, ), # 2
18829
    (3, TType.I64, 'insurerId', None, None, ), # 3
18830
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 18831
  )
18832
 
6921 anupam.sin 18833
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 18834
    self.itemId = itemId
6921 anupam.sin 18835
    self.price = price
6805 anupam.sin 18836
    self.insurerId = insurerId
18837
    self.quantity = quantity
18838
 
18839
  def read(self, iprot):
18840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18842
      return
18843
    iprot.readStructBegin()
18844
    while True:
18845
      (fname, ftype, fid) = iprot.readFieldBegin()
18846
      if ftype == TType.STOP:
18847
        break
18848
      if fid == 1:
18849
        if ftype == TType.I64:
18850
          self.itemId = iprot.readI64();
18851
        else:
18852
          iprot.skip(ftype)
18853
      elif fid == 2:
6921 anupam.sin 18854
        if ftype == TType.DOUBLE:
18855
          self.price = iprot.readDouble();
18856
        else:
18857
          iprot.skip(ftype)
18858
      elif fid == 3:
6805 anupam.sin 18859
        if ftype == TType.I64:
18860
          self.insurerId = iprot.readI64();
18861
        else:
18862
          iprot.skip(ftype)
6921 anupam.sin 18863
      elif fid == 4:
6805 anupam.sin 18864
        if ftype == TType.I64:
18865
          self.quantity = iprot.readI64();
18866
        else:
18867
          iprot.skip(ftype)
18868
      else:
18869
        iprot.skip(ftype)
18870
      iprot.readFieldEnd()
18871
    iprot.readStructEnd()
18872
 
18873
  def write(self, oprot):
18874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18876
      return
18877
    oprot.writeStructBegin('getInsuranceAmount_args')
18878
    if self.itemId is not None:
18879
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18880
      oprot.writeI64(self.itemId)
18881
      oprot.writeFieldEnd()
6921 anupam.sin 18882
    if self.price is not None:
18883
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
18884
      oprot.writeDouble(self.price)
18885
      oprot.writeFieldEnd()
6805 anupam.sin 18886
    if self.insurerId is not None:
6921 anupam.sin 18887
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 18888
      oprot.writeI64(self.insurerId)
18889
      oprot.writeFieldEnd()
18890
    if self.quantity is not None:
6921 anupam.sin 18891
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 18892
      oprot.writeI64(self.quantity)
18893
      oprot.writeFieldEnd()
18894
    oprot.writeFieldStop()
18895
    oprot.writeStructEnd()
18896
 
18897
  def validate(self):
18898
    return
18899
 
18900
 
18901
  def __repr__(self):
18902
    L = ['%s=%r' % (key, value)
18903
      for key, value in self.__dict__.iteritems()]
18904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18905
 
18906
  def __eq__(self, other):
18907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18908
 
18909
  def __ne__(self, other):
18910
    return not (self == other)
18911
 
18912
class getInsuranceAmount_result:
18913
  """
18914
  Attributes:
18915
   - success
18916
  """
18917
 
18918
  thrift_spec = (
18919
    (0, TType.I64, 'success', None, None, ), # 0
18920
  )
18921
 
18922
  def __init__(self, success=None,):
18923
    self.success = success
18924
 
18925
  def read(self, iprot):
18926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18928
      return
18929
    iprot.readStructBegin()
18930
    while True:
18931
      (fname, ftype, fid) = iprot.readFieldBegin()
18932
      if ftype == TType.STOP:
18933
        break
18934
      if fid == 0:
18935
        if ftype == TType.I64:
18936
          self.success = iprot.readI64();
18937
        else:
18938
          iprot.skip(ftype)
18939
      else:
18940
        iprot.skip(ftype)
18941
      iprot.readFieldEnd()
18942
    iprot.readStructEnd()
18943
 
18944
  def write(self, oprot):
18945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18947
      return
18948
    oprot.writeStructBegin('getInsuranceAmount_result')
18949
    if self.success is not None:
18950
      oprot.writeFieldBegin('success', TType.I64, 0)
18951
      oprot.writeI64(self.success)
18952
      oprot.writeFieldEnd()
18953
    oprot.writeFieldStop()
18954
    oprot.writeStructEnd()
18955
 
18956
  def validate(self):
18957
    return
18958
 
18959
 
18960
  def __repr__(self):
18961
    L = ['%s=%r' % (key, value)
18962
      for key, value in self.__dict__.iteritems()]
18963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18964
 
18965
  def __eq__(self, other):
18966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18967
 
18968
  def __ne__(self, other):
18969
    return not (self == other)
18970
 
18971
class getInsurer_args:
18972
  """
18973
  Attributes:
18974
   - insurerId
18975
  """
18976
 
18977
  thrift_spec = (
18978
    None, # 0
18979
    (1, TType.I64, 'insurerId', None, None, ), # 1
18980
  )
18981
 
18982
  def __init__(self, insurerId=None,):
18983
    self.insurerId = insurerId
18984
 
18985
  def read(self, iprot):
18986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18988
      return
18989
    iprot.readStructBegin()
18990
    while True:
18991
      (fname, ftype, fid) = iprot.readFieldBegin()
18992
      if ftype == TType.STOP:
18993
        break
18994
      if fid == 1:
18995
        if ftype == TType.I64:
18996
          self.insurerId = iprot.readI64();
18997
        else:
18998
          iprot.skip(ftype)
18999
      else:
19000
        iprot.skip(ftype)
19001
      iprot.readFieldEnd()
19002
    iprot.readStructEnd()
19003
 
19004
  def write(self, oprot):
19005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19007
      return
19008
    oprot.writeStructBegin('getInsurer_args')
19009
    if self.insurerId is not None:
19010
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
19011
      oprot.writeI64(self.insurerId)
19012
      oprot.writeFieldEnd()
19013
    oprot.writeFieldStop()
19014
    oprot.writeStructEnd()
19015
 
19016
  def validate(self):
19017
    return
19018
 
19019
 
19020
  def __repr__(self):
19021
    L = ['%s=%r' % (key, value)
19022
      for key, value in self.__dict__.iteritems()]
19023
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19024
 
19025
  def __eq__(self, other):
19026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19027
 
19028
  def __ne__(self, other):
19029
    return not (self == other)
19030
 
19031
class getInsurer_result:
19032
  """
19033
  Attributes:
19034
   - success
19035
  """
19036
 
19037
  thrift_spec = (
19038
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
19039
  )
19040
 
19041
  def __init__(self, success=None,):
19042
    self.success = success
19043
 
19044
  def read(self, iprot):
19045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19047
      return
19048
    iprot.readStructBegin()
19049
    while True:
19050
      (fname, ftype, fid) = iprot.readFieldBegin()
19051
      if ftype == TType.STOP:
19052
        break
19053
      if fid == 0:
19054
        if ftype == TType.STRUCT:
19055
          self.success = Insurer()
19056
          self.success.read(iprot)
19057
        else:
19058
          iprot.skip(ftype)
19059
      else:
19060
        iprot.skip(ftype)
19061
      iprot.readFieldEnd()
19062
    iprot.readStructEnd()
19063
 
19064
  def write(self, oprot):
19065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19067
      return
19068
    oprot.writeStructBegin('getInsurer_result')
19069
    if self.success is not None:
19070
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
19071
      self.success.write(oprot)
19072
      oprot.writeFieldEnd()
19073
    oprot.writeFieldStop()
19074
    oprot.writeStructEnd()
19075
 
19076
  def validate(self):
19077
    return
19078
 
19079
 
19080
  def __repr__(self):
19081
    L = ['%s=%r' % (key, value)
19082
      for key, value in self.__dict__.iteritems()]
19083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19084
 
19085
  def __eq__(self, other):
19086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19087
 
19088
  def __ne__(self, other):
19089
    return not (self == other)
6838 vikram.rag 19090
 
19091
class getAllInsurers_args:
19092
 
19093
  thrift_spec = (
19094
  )
19095
 
19096
  def read(self, iprot):
19097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19099
      return
19100
    iprot.readStructBegin()
19101
    while True:
19102
      (fname, ftype, fid) = iprot.readFieldBegin()
19103
      if ftype == TType.STOP:
19104
        break
19105
      else:
19106
        iprot.skip(ftype)
19107
      iprot.readFieldEnd()
19108
    iprot.readStructEnd()
19109
 
19110
  def write(self, oprot):
19111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19113
      return
19114
    oprot.writeStructBegin('getAllInsurers_args')
19115
    oprot.writeFieldStop()
19116
    oprot.writeStructEnd()
19117
 
19118
  def validate(self):
19119
    return
19120
 
19121
 
19122
  def __repr__(self):
19123
    L = ['%s=%r' % (key, value)
19124
      for key, value in self.__dict__.iteritems()]
19125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19126
 
19127
  def __eq__(self, other):
19128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19129
 
19130
  def __ne__(self, other):
19131
    return not (self == other)
19132
 
19133
class getAllInsurers_result:
19134
  """
19135
  Attributes:
19136
   - success
19137
  """
19138
 
19139
  thrift_spec = (
19140
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
19141
  )
19142
 
19143
  def __init__(self, success=None,):
19144
    self.success = success
19145
 
19146
  def read(self, iprot):
19147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19149
      return
19150
    iprot.readStructBegin()
19151
    while True:
19152
      (fname, ftype, fid) = iprot.readFieldBegin()
19153
      if ftype == TType.STOP:
19154
        break
19155
      if fid == 0:
19156
        if ftype == TType.LIST:
19157
          self.success = []
9155 kshitij.so 19158
          (_etype384, _size381) = iprot.readListBegin()
19159
          for _i385 in xrange(_size381):
19160
            _elem386 = Insurer()
19161
            _elem386.read(iprot)
19162
            self.success.append(_elem386)
6838 vikram.rag 19163
          iprot.readListEnd()
19164
        else:
19165
          iprot.skip(ftype)
19166
      else:
19167
        iprot.skip(ftype)
19168
      iprot.readFieldEnd()
19169
    iprot.readStructEnd()
19170
 
19171
  def write(self, oprot):
19172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19174
      return
19175
    oprot.writeStructBegin('getAllInsurers_result')
19176
    if self.success is not None:
19177
      oprot.writeFieldBegin('success', TType.LIST, 0)
19178
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19179
      for iter387 in self.success:
19180
        iter387.write(oprot)
6838 vikram.rag 19181
      oprot.writeListEnd()
19182
      oprot.writeFieldEnd()
19183
    oprot.writeFieldStop()
19184
    oprot.writeStructEnd()
19185
 
19186
  def validate(self):
19187
    return
19188
 
19189
 
19190
  def __repr__(self):
19191
    L = ['%s=%r' % (key, value)
19192
      for key, value in self.__dict__.iteritems()]
19193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19194
 
19195
  def __eq__(self, other):
19196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19197
 
19198
  def __ne__(self, other):
19199
    return not (self == other)
6962 rajveer 19200
 
19201
class updateInsuranceDeclaredAmount_args:
19202
  """
19203
  Attributes:
19204
   - insurerId
19205
   - amount
19206
  """
19207
 
19208
  thrift_spec = (
19209
    None, # 0
19210
    (1, TType.I64, 'insurerId', None, None, ), # 1
19211
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
19212
  )
19213
 
19214
  def __init__(self, insurerId=None, amount=None,):
19215
    self.insurerId = insurerId
19216
    self.amount = amount
19217
 
19218
  def read(self, iprot):
19219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19221
      return
19222
    iprot.readStructBegin()
19223
    while True:
19224
      (fname, ftype, fid) = iprot.readFieldBegin()
19225
      if ftype == TType.STOP:
19226
        break
19227
      if fid == 1:
19228
        if ftype == TType.I64:
19229
          self.insurerId = iprot.readI64();
19230
        else:
19231
          iprot.skip(ftype)
19232
      elif fid == 2:
19233
        if ftype == TType.DOUBLE:
19234
          self.amount = iprot.readDouble();
19235
        else:
19236
          iprot.skip(ftype)
19237
      else:
19238
        iprot.skip(ftype)
19239
      iprot.readFieldEnd()
19240
    iprot.readStructEnd()
19241
 
19242
  def write(self, oprot):
19243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19245
      return
19246
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
19247
    if self.insurerId is not None:
19248
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
19249
      oprot.writeI64(self.insurerId)
19250
      oprot.writeFieldEnd()
19251
    if self.amount is not None:
19252
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
19253
      oprot.writeDouble(self.amount)
19254
      oprot.writeFieldEnd()
19255
    oprot.writeFieldStop()
19256
    oprot.writeStructEnd()
19257
 
19258
  def validate(self):
19259
    return
19260
 
19261
 
19262
  def __repr__(self):
19263
    L = ['%s=%r' % (key, value)
19264
      for key, value in self.__dict__.iteritems()]
19265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19266
 
19267
  def __eq__(self, other):
19268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19269
 
19270
  def __ne__(self, other):
19271
    return not (self == other)
19272
 
19273
class updateInsuranceDeclaredAmount_result:
19274
 
19275
  thrift_spec = (
19276
  )
19277
 
19278
  def read(self, iprot):
19279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19281
      return
19282
    iprot.readStructBegin()
19283
    while True:
19284
      (fname, ftype, fid) = iprot.readFieldBegin()
19285
      if ftype == TType.STOP:
19286
        break
19287
      else:
19288
        iprot.skip(ftype)
19289
      iprot.readFieldEnd()
19290
    iprot.readStructEnd()
19291
 
19292
  def write(self, oprot):
19293
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19294
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19295
      return
19296
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
19297
    oprot.writeFieldStop()
19298
    oprot.writeStructEnd()
19299
 
19300
  def validate(self):
19301
    return
19302
 
19303
 
19304
  def __repr__(self):
19305
    L = ['%s=%r' % (key, value)
19306
      for key, value in self.__dict__.iteritems()]
19307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19308
 
19309
  def __eq__(self, other):
19310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19311
 
19312
  def __ne__(self, other):
19313
    return not (self == other)
7190 amar.kumar 19314
 
19315
class getFreebieForItem_args:
19316
  """
19317
  Attributes:
19318
   - itemId
19319
  """
19320
 
19321
  thrift_spec = (
19322
    None, # 0
19323
    (1, TType.I64, 'itemId', None, None, ), # 1
19324
  )
19325
 
19326
  def __init__(self, itemId=None,):
19327
    self.itemId = itemId
19328
 
19329
  def read(self, iprot):
19330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19332
      return
19333
    iprot.readStructBegin()
19334
    while True:
19335
      (fname, ftype, fid) = iprot.readFieldBegin()
19336
      if ftype == TType.STOP:
19337
        break
19338
      if fid == 1:
19339
        if ftype == TType.I64:
19340
          self.itemId = iprot.readI64();
19341
        else:
19342
          iprot.skip(ftype)
19343
      else:
19344
        iprot.skip(ftype)
19345
      iprot.readFieldEnd()
19346
    iprot.readStructEnd()
19347
 
19348
  def write(self, oprot):
19349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19351
      return
19352
    oprot.writeStructBegin('getFreebieForItem_args')
19353
    if self.itemId is not None:
19354
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19355
      oprot.writeI64(self.itemId)
19356
      oprot.writeFieldEnd()
19357
    oprot.writeFieldStop()
19358
    oprot.writeStructEnd()
19359
 
19360
  def validate(self):
19361
    return
19362
 
19363
 
19364
  def __repr__(self):
19365
    L = ['%s=%r' % (key, value)
19366
      for key, value in self.__dict__.iteritems()]
19367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19368
 
19369
  def __eq__(self, other):
19370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19371
 
19372
  def __ne__(self, other):
19373
    return not (self == other)
19374
 
19375
class getFreebieForItem_result:
19376
  """
19377
  Attributes:
19378
   - success
19379
  """
19380
 
19381
  thrift_spec = (
19382
    (0, TType.I64, 'success', None, None, ), # 0
19383
  )
19384
 
19385
  def __init__(self, success=None,):
19386
    self.success = success
19387
 
19388
  def read(self, iprot):
19389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19391
      return
19392
    iprot.readStructBegin()
19393
    while True:
19394
      (fname, ftype, fid) = iprot.readFieldBegin()
19395
      if ftype == TType.STOP:
19396
        break
19397
      if fid == 0:
19398
        if ftype == TType.I64:
19399
          self.success = iprot.readI64();
19400
        else:
19401
          iprot.skip(ftype)
19402
      else:
19403
        iprot.skip(ftype)
19404
      iprot.readFieldEnd()
19405
    iprot.readStructEnd()
19406
 
19407
  def write(self, oprot):
19408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19410
      return
19411
    oprot.writeStructBegin('getFreebieForItem_result')
19412
    if self.success is not None:
19413
      oprot.writeFieldBegin('success', TType.I64, 0)
19414
      oprot.writeI64(self.success)
19415
      oprot.writeFieldEnd()
19416
    oprot.writeFieldStop()
19417
    oprot.writeStructEnd()
19418
 
19419
  def validate(self):
19420
    return
19421
 
19422
 
19423
  def __repr__(self):
19424
    L = ['%s=%r' % (key, value)
19425
      for key, value in self.__dict__.iteritems()]
19426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19427
 
19428
  def __eq__(self, other):
19429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19430
 
19431
  def __ne__(self, other):
19432
    return not (self == other)
19433
 
19434
class addOrUpdateFreebieForItem_args:
19435
  """
19436
  Attributes:
19437
   - freebieItem
19438
  """
19439
 
19440
  thrift_spec = (
19441
    None, # 0
19442
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
19443
  )
19444
 
19445
  def __init__(self, freebieItem=None,):
19446
    self.freebieItem = freebieItem
19447
 
19448
  def read(self, iprot):
19449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19451
      return
19452
    iprot.readStructBegin()
19453
    while True:
19454
      (fname, ftype, fid) = iprot.readFieldBegin()
19455
      if ftype == TType.STOP:
19456
        break
19457
      if fid == 1:
19458
        if ftype == TType.STRUCT:
19459
          self.freebieItem = FreebieItem()
19460
          self.freebieItem.read(iprot)
19461
        else:
19462
          iprot.skip(ftype)
19463
      else:
19464
        iprot.skip(ftype)
19465
      iprot.readFieldEnd()
19466
    iprot.readStructEnd()
19467
 
19468
  def write(self, oprot):
19469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19471
      return
19472
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
19473
    if self.freebieItem is not None:
19474
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
19475
      self.freebieItem.write(oprot)
19476
      oprot.writeFieldEnd()
19477
    oprot.writeFieldStop()
19478
    oprot.writeStructEnd()
19479
 
19480
  def validate(self):
19481
    return
19482
 
19483
 
19484
  def __repr__(self):
19485
    L = ['%s=%r' % (key, value)
19486
      for key, value in self.__dict__.iteritems()]
19487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19488
 
19489
  def __eq__(self, other):
19490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19491
 
19492
  def __ne__(self, other):
19493
    return not (self == other)
19494
 
19495
class addOrUpdateFreebieForItem_result:
19496
 
19497
  thrift_spec = (
19498
  )
19499
 
19500
  def read(self, iprot):
19501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19503
      return
19504
    iprot.readStructBegin()
19505
    while True:
19506
      (fname, ftype, fid) = iprot.readFieldBegin()
19507
      if ftype == TType.STOP:
19508
        break
19509
      else:
19510
        iprot.skip(ftype)
19511
      iprot.readFieldEnd()
19512
    iprot.readStructEnd()
19513
 
19514
  def write(self, oprot):
19515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19517
      return
19518
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
19519
    oprot.writeFieldStop()
19520
    oprot.writeStructEnd()
19521
 
19522
  def validate(self):
19523
    return
19524
 
19525
 
19526
  def __repr__(self):
19527
    L = ['%s=%r' % (key, value)
19528
      for key, value in self.__dict__.iteritems()]
19529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19530
 
19531
  def __eq__(self, other):
19532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19533
 
19534
  def __ne__(self, other):
19535
    return not (self == other)
7256 rajveer 19536
 
7272 amit.gupta 19537
class addOrUpdateBrandInfo_args:
19538
  """
19539
  Attributes:
19540
   - brandInfo
19541
  """
19542
 
19543
  thrift_spec = (
19544
    None, # 0
19545
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
19546
  )
19547
 
19548
  def __init__(self, brandInfo=None,):
19549
    self.brandInfo = brandInfo
19550
 
19551
  def read(self, iprot):
19552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19554
      return
19555
    iprot.readStructBegin()
19556
    while True:
19557
      (fname, ftype, fid) = iprot.readFieldBegin()
19558
      if ftype == TType.STOP:
19559
        break
19560
      if fid == 1:
19561
        if ftype == TType.STRUCT:
19562
          self.brandInfo = BrandInfo()
19563
          self.brandInfo.read(iprot)
19564
        else:
19565
          iprot.skip(ftype)
19566
      else:
19567
        iprot.skip(ftype)
19568
      iprot.readFieldEnd()
19569
    iprot.readStructEnd()
19570
 
19571
  def write(self, oprot):
19572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19574
      return
19575
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
19576
    if self.brandInfo is not None:
19577
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
19578
      self.brandInfo.write(oprot)
19579
      oprot.writeFieldEnd()
19580
    oprot.writeFieldStop()
19581
    oprot.writeStructEnd()
19582
 
19583
  def validate(self):
19584
    return
19585
 
19586
 
19587
  def __repr__(self):
19588
    L = ['%s=%r' % (key, value)
19589
      for key, value in self.__dict__.iteritems()]
19590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19591
 
19592
  def __eq__(self, other):
19593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19594
 
19595
  def __ne__(self, other):
19596
    return not (self == other)
19597
 
19598
class addOrUpdateBrandInfo_result:
19599
 
19600
  thrift_spec = (
19601
  )
19602
 
19603
  def read(self, iprot):
19604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19606
      return
19607
    iprot.readStructBegin()
19608
    while True:
19609
      (fname, ftype, fid) = iprot.readFieldBegin()
19610
      if ftype == TType.STOP:
19611
        break
19612
      else:
19613
        iprot.skip(ftype)
19614
      iprot.readFieldEnd()
19615
    iprot.readStructEnd()
19616
 
19617
  def write(self, oprot):
19618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19620
      return
19621
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
19622
    oprot.writeFieldStop()
19623
    oprot.writeStructEnd()
19624
 
19625
  def validate(self):
19626
    return
19627
 
19628
 
19629
  def __repr__(self):
19630
    L = ['%s=%r' % (key, value)
19631
      for key, value in self.__dict__.iteritems()]
19632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19633
 
19634
  def __eq__(self, other):
19635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19636
 
19637
  def __ne__(self, other):
19638
    return not (self == other)
19639
 
19640
class getBrandInfo_args:
19641
 
19642
  thrift_spec = (
19643
  )
19644
 
19645
  def read(self, iprot):
19646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19648
      return
19649
    iprot.readStructBegin()
19650
    while True:
19651
      (fname, ftype, fid) = iprot.readFieldBegin()
19652
      if ftype == TType.STOP:
19653
        break
19654
      else:
19655
        iprot.skip(ftype)
19656
      iprot.readFieldEnd()
19657
    iprot.readStructEnd()
19658
 
19659
  def write(self, oprot):
19660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19662
      return
19663
    oprot.writeStructBegin('getBrandInfo_args')
19664
    oprot.writeFieldStop()
19665
    oprot.writeStructEnd()
19666
 
19667
  def validate(self):
19668
    return
19669
 
19670
 
19671
  def __repr__(self):
19672
    L = ['%s=%r' % (key, value)
19673
      for key, value in self.__dict__.iteritems()]
19674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19675
 
19676
  def __eq__(self, other):
19677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19678
 
19679
  def __ne__(self, other):
19680
    return not (self == other)
19681
 
19682
class getBrandInfo_result:
19683
  """
19684
  Attributes:
19685
   - success
19686
  """
19687
 
19688
  thrift_spec = (
19689
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
19690
  )
19691
 
19692
  def __init__(self, success=None,):
19693
    self.success = success
19694
 
19695
  def read(self, iprot):
19696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19698
      return
19699
    iprot.readStructBegin()
19700
    while True:
19701
      (fname, ftype, fid) = iprot.readFieldBegin()
19702
      if ftype == TType.STOP:
19703
        break
19704
      if fid == 0:
19705
        if ftype == TType.MAP:
19706
          self.success = {}
9155 kshitij.so 19707
          (_ktype389, _vtype390, _size388 ) = iprot.readMapBegin() 
19708
          for _i392 in xrange(_size388):
19709
            _key393 = iprot.readString();
19710
            _val394 = BrandInfo()
19711
            _val394.read(iprot)
19712
            self.success[_key393] = _val394
7272 amit.gupta 19713
          iprot.readMapEnd()
19714
        else:
19715
          iprot.skip(ftype)
19716
      else:
19717
        iprot.skip(ftype)
19718
      iprot.readFieldEnd()
19719
    iprot.readStructEnd()
19720
 
19721
  def write(self, oprot):
19722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19724
      return
19725
    oprot.writeStructBegin('getBrandInfo_result')
19726
    if self.success is not None:
19727
      oprot.writeFieldBegin('success', TType.MAP, 0)
19728
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
9155 kshitij.so 19729
      for kiter395,viter396 in self.success.items():
19730
        oprot.writeString(kiter395)
19731
        viter396.write(oprot)
7272 amit.gupta 19732
      oprot.writeMapEnd()
19733
      oprot.writeFieldEnd()
19734
    oprot.writeFieldStop()
19735
    oprot.writeStructEnd()
19736
 
19737
  def validate(self):
19738
    return
19739
 
19740
 
19741
  def __repr__(self):
19742
    L = ['%s=%r' % (key, value)
19743
      for key, value in self.__dict__.iteritems()]
19744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19745
 
19746
  def __eq__(self, other):
19747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19748
 
19749
  def __ne__(self, other):
19750
    return not (self == other)
19751
 
7256 rajveer 19752
class getStorePricing_args:
19753
  """
19754
  Attributes:
19755
   - itemId
19756
  """
19757
 
19758
  thrift_spec = (
19759
    None, # 0
19760
    (1, TType.I64, 'itemId', None, None, ), # 1
19761
  )
19762
 
19763
  def __init__(self, itemId=None,):
19764
    self.itemId = itemId
19765
 
19766
  def read(self, iprot):
19767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19769
      return
19770
    iprot.readStructBegin()
19771
    while True:
19772
      (fname, ftype, fid) = iprot.readFieldBegin()
19773
      if ftype == TType.STOP:
19774
        break
19775
      if fid == 1:
19776
        if ftype == TType.I64:
19777
          self.itemId = iprot.readI64();
19778
        else:
19779
          iprot.skip(ftype)
19780
      else:
19781
        iprot.skip(ftype)
19782
      iprot.readFieldEnd()
19783
    iprot.readStructEnd()
19784
 
19785
  def write(self, oprot):
19786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19788
      return
19789
    oprot.writeStructBegin('getStorePricing_args')
19790
    if self.itemId is not None:
19791
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19792
      oprot.writeI64(self.itemId)
19793
      oprot.writeFieldEnd()
19794
    oprot.writeFieldStop()
19795
    oprot.writeStructEnd()
19796
 
19797
  def validate(self):
19798
    return
19799
 
19800
 
19801
  def __repr__(self):
19802
    L = ['%s=%r' % (key, value)
19803
      for key, value in self.__dict__.iteritems()]
19804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19805
 
19806
  def __eq__(self, other):
19807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19808
 
19809
  def __ne__(self, other):
19810
    return not (self == other)
19811
 
19812
class getStorePricing_result:
19813
  """
19814
  Attributes:
19815
   - success
19816
  """
19817
 
19818
  thrift_spec = (
19819
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
19820
  )
19821
 
19822
  def __init__(self, success=None,):
19823
    self.success = success
19824
 
19825
  def read(self, iprot):
19826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19828
      return
19829
    iprot.readStructBegin()
19830
    while True:
19831
      (fname, ftype, fid) = iprot.readFieldBegin()
19832
      if ftype == TType.STOP:
19833
        break
19834
      if fid == 0:
19835
        if ftype == TType.STRUCT:
19836
          self.success = StorePricing()
19837
          self.success.read(iprot)
19838
        else:
19839
          iprot.skip(ftype)
19840
      else:
19841
        iprot.skip(ftype)
19842
      iprot.readFieldEnd()
19843
    iprot.readStructEnd()
19844
 
19845
  def write(self, oprot):
19846
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19847
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19848
      return
19849
    oprot.writeStructBegin('getStorePricing_result')
19850
    if self.success is not None:
19851
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
19852
      self.success.write(oprot)
19853
      oprot.writeFieldEnd()
19854
    oprot.writeFieldStop()
19855
    oprot.writeStructEnd()
19856
 
19857
  def validate(self):
19858
    return
19859
 
19860
 
19861
  def __repr__(self):
19862
    L = ['%s=%r' % (key, value)
19863
      for key, value in self.__dict__.iteritems()]
19864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19865
 
19866
  def __eq__(self, other):
19867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19868
 
19869
  def __ne__(self, other):
19870
    return not (self == other)
7265 rajveer 19871
 
7306 rajveer 19872
class getStorePricings_args:
19873
  """
19874
  Attributes:
19875
   - itemIds
19876
  """
19877
 
19878
  thrift_spec = (
19879
    None, # 0
19880
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
19881
  )
19882
 
19883
  def __init__(self, itemIds=None,):
19884
    self.itemIds = itemIds
19885
 
19886
  def read(self, iprot):
19887
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19888
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19889
      return
19890
    iprot.readStructBegin()
19891
    while True:
19892
      (fname, ftype, fid) = iprot.readFieldBegin()
19893
      if ftype == TType.STOP:
19894
        break
19895
      if fid == 1:
19896
        if ftype == TType.LIST:
19897
          self.itemIds = []
9155 kshitij.so 19898
          (_etype400, _size397) = iprot.readListBegin()
19899
          for _i401 in xrange(_size397):
19900
            _elem402 = iprot.readI64();
19901
            self.itemIds.append(_elem402)
7306 rajveer 19902
          iprot.readListEnd()
19903
        else:
19904
          iprot.skip(ftype)
19905
      else:
19906
        iprot.skip(ftype)
19907
      iprot.readFieldEnd()
19908
    iprot.readStructEnd()
19909
 
19910
  def write(self, oprot):
19911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19913
      return
19914
    oprot.writeStructBegin('getStorePricings_args')
19915
    if self.itemIds is not None:
19916
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
19917
      oprot.writeListBegin(TType.I64, len(self.itemIds))
9155 kshitij.so 19918
      for iter403 in self.itemIds:
19919
        oprot.writeI64(iter403)
7306 rajveer 19920
      oprot.writeListEnd()
19921
      oprot.writeFieldEnd()
19922
    oprot.writeFieldStop()
19923
    oprot.writeStructEnd()
19924
 
19925
  def validate(self):
19926
    return
19927
 
19928
 
19929
  def __repr__(self):
19930
    L = ['%s=%r' % (key, value)
19931
      for key, value in self.__dict__.iteritems()]
19932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19933
 
19934
  def __eq__(self, other):
19935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19936
 
19937
  def __ne__(self, other):
19938
    return not (self == other)
19939
 
19940
class getStorePricings_result:
19941
  """
19942
  Attributes:
19943
   - success
19944
  """
19945
 
19946
  thrift_spec = (
19947
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
19948
  )
19949
 
19950
  def __init__(self, success=None,):
19951
    self.success = success
19952
 
19953
  def read(self, iprot):
19954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19956
      return
19957
    iprot.readStructBegin()
19958
    while True:
19959
      (fname, ftype, fid) = iprot.readFieldBegin()
19960
      if ftype == TType.STOP:
19961
        break
19962
      if fid == 0:
19963
        if ftype == TType.LIST:
19964
          self.success = []
9155 kshitij.so 19965
          (_etype407, _size404) = iprot.readListBegin()
19966
          for _i408 in xrange(_size404):
19967
            _elem409 = StorePricing()
19968
            _elem409.read(iprot)
19969
            self.success.append(_elem409)
7306 rajveer 19970
          iprot.readListEnd()
19971
        else:
19972
          iprot.skip(ftype)
19973
      else:
19974
        iprot.skip(ftype)
19975
      iprot.readFieldEnd()
19976
    iprot.readStructEnd()
19977
 
19978
  def write(self, oprot):
19979
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19980
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19981
      return
19982
    oprot.writeStructBegin('getStorePricings_result')
19983
    if self.success is not None:
19984
      oprot.writeFieldBegin('success', TType.LIST, 0)
19985
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19986
      for iter410 in self.success:
19987
        iter410.write(oprot)
7306 rajveer 19988
      oprot.writeListEnd()
19989
      oprot.writeFieldEnd()
19990
    oprot.writeFieldStop()
19991
    oprot.writeStructEnd()
19992
 
19993
  def validate(self):
19994
    return
19995
 
19996
 
19997
  def __repr__(self):
19998
    L = ['%s=%r' % (key, value)
19999
      for key, value in self.__dict__.iteritems()]
20000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20001
 
20002
  def __eq__(self, other):
20003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20004
 
20005
  def __ne__(self, other):
20006
    return not (self == other)
20007
 
7265 rajveer 20008
class updateStorePricing_args:
20009
  """
20010
  Attributes:
20011
   - sp
7382 rajveer 20012
   - allColors
7265 rajveer 20013
  """
20014
 
20015
  thrift_spec = (
20016
    None, # 0
20017
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 20018
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 20019
  )
20020
 
7382 rajveer 20021
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 20022
    self.sp = sp
7382 rajveer 20023
    self.allColors = allColors
7265 rajveer 20024
 
20025
  def read(self, iprot):
20026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20028
      return
20029
    iprot.readStructBegin()
20030
    while True:
20031
      (fname, ftype, fid) = iprot.readFieldBegin()
20032
      if ftype == TType.STOP:
20033
        break
20034
      if fid == 1:
20035
        if ftype == TType.STRUCT:
20036
          self.sp = StorePricing()
20037
          self.sp.read(iprot)
20038
        else:
20039
          iprot.skip(ftype)
7382 rajveer 20040
      elif fid == 2:
20041
        if ftype == TType.BOOL:
20042
          self.allColors = iprot.readBool();
20043
        else:
20044
          iprot.skip(ftype)
7265 rajveer 20045
      else:
20046
        iprot.skip(ftype)
20047
      iprot.readFieldEnd()
20048
    iprot.readStructEnd()
20049
 
20050
  def write(self, oprot):
20051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20053
      return
20054
    oprot.writeStructBegin('updateStorePricing_args')
20055
    if self.sp is not None:
20056
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
20057
      self.sp.write(oprot)
20058
      oprot.writeFieldEnd()
7382 rajveer 20059
    if self.allColors is not None:
20060
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
20061
      oprot.writeBool(self.allColors)
20062
      oprot.writeFieldEnd()
7265 rajveer 20063
    oprot.writeFieldStop()
20064
    oprot.writeStructEnd()
20065
 
20066
  def validate(self):
20067
    return
20068
 
20069
 
20070
  def __repr__(self):
20071
    L = ['%s=%r' % (key, value)
20072
      for key, value in self.__dict__.iteritems()]
20073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20074
 
20075
  def __eq__(self, other):
20076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20077
 
20078
  def __ne__(self, other):
20079
    return not (self == other)
20080
 
20081
class updateStorePricing_result:
20082
 
20083
  thrift_spec = (
20084
  )
20085
 
20086
  def read(self, iprot):
20087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20089
      return
20090
    iprot.readStructBegin()
20091
    while True:
20092
      (fname, ftype, fid) = iprot.readFieldBegin()
20093
      if ftype == TType.STOP:
20094
        break
20095
      else:
20096
        iprot.skip(ftype)
20097
      iprot.readFieldEnd()
20098
    iprot.readStructEnd()
20099
 
20100
  def write(self, oprot):
20101
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20102
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20103
      return
20104
    oprot.writeStructBegin('updateStorePricing_result')
20105
    oprot.writeFieldStop()
20106
    oprot.writeStructEnd()
20107
 
20108
  def validate(self):
20109
    return
20110
 
20111
 
20112
  def __repr__(self):
20113
    L = ['%s=%r' % (key, value)
20114
      for key, value in self.__dict__.iteritems()]
20115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20116
 
20117
  def __eq__(self, other):
20118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20119
 
20120
  def __ne__(self, other):
20121
    return not (self == other)
7281 kshitij.so 20122
 
20123
class getAllAmazonListedItems_args:
20124
 
20125
  thrift_spec = (
20126
  )
20127
 
20128
  def read(self, iprot):
20129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20131
      return
20132
    iprot.readStructBegin()
20133
    while True:
20134
      (fname, ftype, fid) = iprot.readFieldBegin()
20135
      if ftype == TType.STOP:
20136
        break
20137
      else:
20138
        iprot.skip(ftype)
20139
      iprot.readFieldEnd()
20140
    iprot.readStructEnd()
20141
 
20142
  def write(self, oprot):
20143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20145
      return
20146
    oprot.writeStructBegin('getAllAmazonListedItems_args')
20147
    oprot.writeFieldStop()
20148
    oprot.writeStructEnd()
20149
 
20150
  def validate(self):
20151
    return
20152
 
20153
 
20154
  def __repr__(self):
20155
    L = ['%s=%r' % (key, value)
20156
      for key, value in self.__dict__.iteritems()]
20157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20158
 
20159
  def __eq__(self, other):
20160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20161
 
20162
  def __ne__(self, other):
20163
    return not (self == other)
20164
 
20165
class getAllAmazonListedItems_result:
20166
  """
20167
  Attributes:
20168
   - success
20169
  """
20170
 
20171
  thrift_spec = (
20172
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20173
  )
20174
 
20175
  def __init__(self, success=None,):
20176
    self.success = success
20177
 
20178
  def read(self, iprot):
20179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20181
      return
20182
    iprot.readStructBegin()
20183
    while True:
20184
      (fname, ftype, fid) = iprot.readFieldBegin()
20185
      if ftype == TType.STOP:
20186
        break
20187
      if fid == 0:
20188
        if ftype == TType.LIST:
20189
          self.success = []
9155 kshitij.so 20190
          (_etype414, _size411) = iprot.readListBegin()
20191
          for _i415 in xrange(_size411):
20192
            _elem416 = Amazonlisted()
20193
            _elem416.read(iprot)
20194
            self.success.append(_elem416)
7281 kshitij.so 20195
          iprot.readListEnd()
20196
        else:
20197
          iprot.skip(ftype)
20198
      else:
20199
        iprot.skip(ftype)
20200
      iprot.readFieldEnd()
20201
    iprot.readStructEnd()
20202
 
20203
  def write(self, oprot):
20204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20206
      return
20207
    oprot.writeStructBegin('getAllAmazonListedItems_result')
20208
    if self.success is not None:
20209
      oprot.writeFieldBegin('success', TType.LIST, 0)
20210
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20211
      for iter417 in self.success:
20212
        iter417.write(oprot)
7281 kshitij.so 20213
      oprot.writeListEnd()
20214
      oprot.writeFieldEnd()
20215
    oprot.writeFieldStop()
20216
    oprot.writeStructEnd()
20217
 
20218
  def validate(self):
20219
    return
20220
 
20221
 
20222
  def __repr__(self):
20223
    L = ['%s=%r' % (key, value)
20224
      for key, value in self.__dict__.iteritems()]
20225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20226
 
20227
  def __eq__(self, other):
20228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20229
 
20230
  def __ne__(self, other):
20231
    return not (self == other)
20232
 
8619 kshitij.so 20233
class searchAmazonItems_args:
20234
  """
20235
  Attributes:
20236
   - searchTerm
20237
   - offset
20238
   - limit
20239
  """
20240
 
20241
  thrift_spec = (
20242
    None, # 0
20243
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
20244
    (2, TType.I64, 'offset', None, None, ), # 2
20245
    (3, TType.I64, 'limit', None, None, ), # 3
20246
  )
20247
 
20248
  def __init__(self, searchTerm=None, offset=None, limit=None,):
20249
    self.searchTerm = searchTerm
20250
    self.offset = offset
20251
    self.limit = limit
20252
 
20253
  def read(self, iprot):
20254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20256
      return
20257
    iprot.readStructBegin()
20258
    while True:
20259
      (fname, ftype, fid) = iprot.readFieldBegin()
20260
      if ftype == TType.STOP:
20261
        break
20262
      if fid == 1:
20263
        if ftype == TType.LIST:
20264
          self.searchTerm = []
9155 kshitij.so 20265
          (_etype421, _size418) = iprot.readListBegin()
20266
          for _i422 in xrange(_size418):
20267
            _elem423 = iprot.readString();
20268
            self.searchTerm.append(_elem423)
8619 kshitij.so 20269
          iprot.readListEnd()
20270
        else:
20271
          iprot.skip(ftype)
20272
      elif fid == 2:
20273
        if ftype == TType.I64:
20274
          self.offset = iprot.readI64();
20275
        else:
20276
          iprot.skip(ftype)
20277
      elif fid == 3:
20278
        if ftype == TType.I64:
20279
          self.limit = iprot.readI64();
20280
        else:
20281
          iprot.skip(ftype)
20282
      else:
20283
        iprot.skip(ftype)
20284
      iprot.readFieldEnd()
20285
    iprot.readStructEnd()
20286
 
20287
  def write(self, oprot):
20288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20290
      return
20291
    oprot.writeStructBegin('searchAmazonItems_args')
20292
    if self.searchTerm is not None:
20293
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
20294
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 20295
      for iter424 in self.searchTerm:
20296
        oprot.writeString(iter424)
8619 kshitij.so 20297
      oprot.writeListEnd()
20298
      oprot.writeFieldEnd()
20299
    if self.offset is not None:
20300
      oprot.writeFieldBegin('offset', TType.I64, 2)
20301
      oprot.writeI64(self.offset)
20302
      oprot.writeFieldEnd()
20303
    if self.limit is not None:
20304
      oprot.writeFieldBegin('limit', TType.I64, 3)
20305
      oprot.writeI64(self.limit)
20306
      oprot.writeFieldEnd()
20307
    oprot.writeFieldStop()
20308
    oprot.writeStructEnd()
20309
 
20310
  def validate(self):
20311
    return
20312
 
20313
 
20314
  def __repr__(self):
20315
    L = ['%s=%r' % (key, value)
20316
      for key, value in self.__dict__.iteritems()]
20317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20318
 
20319
  def __eq__(self, other):
20320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20321
 
20322
  def __ne__(self, other):
20323
    return not (self == other)
20324
 
20325
class searchAmazonItems_result:
20326
  """
20327
  Attributes:
20328
   - success
20329
  """
20330
 
20331
  thrift_spec = (
20332
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20333
  )
20334
 
20335
  def __init__(self, success=None,):
20336
    self.success = success
20337
 
20338
  def read(self, iprot):
20339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20341
      return
20342
    iprot.readStructBegin()
20343
    while True:
20344
      (fname, ftype, fid) = iprot.readFieldBegin()
20345
      if ftype == TType.STOP:
20346
        break
20347
      if fid == 0:
20348
        if ftype == TType.LIST:
20349
          self.success = []
9155 kshitij.so 20350
          (_etype428, _size425) = iprot.readListBegin()
20351
          for _i429 in xrange(_size425):
20352
            _elem430 = Amazonlisted()
20353
            _elem430.read(iprot)
20354
            self.success.append(_elem430)
8619 kshitij.so 20355
          iprot.readListEnd()
20356
        else:
20357
          iprot.skip(ftype)
20358
      else:
20359
        iprot.skip(ftype)
20360
      iprot.readFieldEnd()
20361
    iprot.readStructEnd()
20362
 
20363
  def write(self, oprot):
20364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20366
      return
20367
    oprot.writeStructBegin('searchAmazonItems_result')
20368
    if self.success is not None:
20369
      oprot.writeFieldBegin('success', TType.LIST, 0)
20370
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20371
      for iter431 in self.success:
20372
        iter431.write(oprot)
8619 kshitij.so 20373
      oprot.writeListEnd()
20374
      oprot.writeFieldEnd()
20375
    oprot.writeFieldStop()
20376
    oprot.writeStructEnd()
20377
 
20378
  def validate(self):
20379
    return
20380
 
20381
 
20382
  def __repr__(self):
20383
    L = ['%s=%r' % (key, value)
20384
      for key, value in self.__dict__.iteritems()]
20385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20386
 
20387
  def __eq__(self, other):
20388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20389
 
20390
  def __ne__(self, other):
20391
    return not (self == other)
20392
 
20393
class getAmazonSearchResultCount_args:
20394
  """
20395
  Attributes:
20396
   - searchTerm
20397
  """
20398
 
20399
  thrift_spec = (
20400
    None, # 0
20401
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
20402
  )
20403
 
20404
  def __init__(self, searchTerm=None,):
20405
    self.searchTerm = searchTerm
20406
 
20407
  def read(self, iprot):
20408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20410
      return
20411
    iprot.readStructBegin()
20412
    while True:
20413
      (fname, ftype, fid) = iprot.readFieldBegin()
20414
      if ftype == TType.STOP:
20415
        break
20416
      if fid == 1:
20417
        if ftype == TType.LIST:
20418
          self.searchTerm = []
9155 kshitij.so 20419
          (_etype435, _size432) = iprot.readListBegin()
20420
          for _i436 in xrange(_size432):
20421
            _elem437 = iprot.readString();
20422
            self.searchTerm.append(_elem437)
8619 kshitij.so 20423
          iprot.readListEnd()
20424
        else:
20425
          iprot.skip(ftype)
20426
      else:
20427
        iprot.skip(ftype)
20428
      iprot.readFieldEnd()
20429
    iprot.readStructEnd()
20430
 
20431
  def write(self, oprot):
20432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20434
      return
20435
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
20436
    if self.searchTerm is not None:
20437
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
20438
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 20439
      for iter438 in self.searchTerm:
20440
        oprot.writeString(iter438)
8619 kshitij.so 20441
      oprot.writeListEnd()
20442
      oprot.writeFieldEnd()
20443
    oprot.writeFieldStop()
20444
    oprot.writeStructEnd()
20445
 
20446
  def validate(self):
20447
    return
20448
 
20449
 
20450
  def __repr__(self):
20451
    L = ['%s=%r' % (key, value)
20452
      for key, value in self.__dict__.iteritems()]
20453
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20454
 
20455
  def __eq__(self, other):
20456
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20457
 
20458
  def __ne__(self, other):
20459
    return not (self == other)
20460
 
20461
class getAmazonSearchResultCount_result:
20462
  """
20463
  Attributes:
20464
   - success
20465
  """
20466
 
20467
  thrift_spec = (
20468
    (0, TType.I64, 'success', None, None, ), # 0
20469
  )
20470
 
20471
  def __init__(self, success=None,):
20472
    self.success = success
20473
 
20474
  def read(self, iprot):
20475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20477
      return
20478
    iprot.readStructBegin()
20479
    while True:
20480
      (fname, ftype, fid) = iprot.readFieldBegin()
20481
      if ftype == TType.STOP:
20482
        break
20483
      if fid == 0:
20484
        if ftype == TType.I64:
20485
          self.success = iprot.readI64();
20486
        else:
20487
          iprot.skip(ftype)
20488
      else:
20489
        iprot.skip(ftype)
20490
      iprot.readFieldEnd()
20491
    iprot.readStructEnd()
20492
 
20493
  def write(self, oprot):
20494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20496
      return
20497
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
20498
    if self.success is not None:
20499
      oprot.writeFieldBegin('success', TType.I64, 0)
20500
      oprot.writeI64(self.success)
20501
      oprot.writeFieldEnd()
20502
    oprot.writeFieldStop()
20503
    oprot.writeStructEnd()
20504
 
20505
  def validate(self):
20506
    return
20507
 
20508
 
20509
  def __repr__(self):
20510
    L = ['%s=%r' % (key, value)
20511
      for key, value in self.__dict__.iteritems()]
20512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20513
 
20514
  def __eq__(self, other):
20515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20516
 
20517
  def __ne__(self, other):
20518
    return not (self == other)
20519
 
20520
class getCountForAmazonlistedItems_args:
20521
 
20522
  thrift_spec = (
20523
  )
20524
 
20525
  def read(self, iprot):
20526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20528
      return
20529
    iprot.readStructBegin()
20530
    while True:
20531
      (fname, ftype, fid) = iprot.readFieldBegin()
20532
      if ftype == TType.STOP:
20533
        break
20534
      else:
20535
        iprot.skip(ftype)
20536
      iprot.readFieldEnd()
20537
    iprot.readStructEnd()
20538
 
20539
  def write(self, oprot):
20540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20542
      return
20543
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
20544
    oprot.writeFieldStop()
20545
    oprot.writeStructEnd()
20546
 
20547
  def validate(self):
20548
    return
20549
 
20550
 
20551
  def __repr__(self):
20552
    L = ['%s=%r' % (key, value)
20553
      for key, value in self.__dict__.iteritems()]
20554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20555
 
20556
  def __eq__(self, other):
20557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20558
 
20559
  def __ne__(self, other):
20560
    return not (self == other)
20561
 
20562
class getCountForAmazonlistedItems_result:
20563
  """
20564
  Attributes:
20565
   - success
20566
  """
20567
 
20568
  thrift_spec = (
20569
    (0, TType.I64, 'success', None, None, ), # 0
20570
  )
20571
 
20572
  def __init__(self, success=None,):
20573
    self.success = success
20574
 
20575
  def read(self, iprot):
20576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20578
      return
20579
    iprot.readStructBegin()
20580
    while True:
20581
      (fname, ftype, fid) = iprot.readFieldBegin()
20582
      if ftype == TType.STOP:
20583
        break
20584
      if fid == 0:
20585
        if ftype == TType.I64:
20586
          self.success = iprot.readI64();
20587
        else:
20588
          iprot.skip(ftype)
20589
      else:
20590
        iprot.skip(ftype)
20591
      iprot.readFieldEnd()
20592
    iprot.readStructEnd()
20593
 
20594
  def write(self, oprot):
20595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20597
      return
20598
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
20599
    if self.success is not None:
20600
      oprot.writeFieldBegin('success', TType.I64, 0)
20601
      oprot.writeI64(self.success)
20602
      oprot.writeFieldEnd()
20603
    oprot.writeFieldStop()
20604
    oprot.writeStructEnd()
20605
 
20606
  def validate(self):
20607
    return
20608
 
20609
 
20610
  def __repr__(self):
20611
    L = ['%s=%r' % (key, value)
20612
      for key, value in self.__dict__.iteritems()]
20613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20614
 
20615
  def __eq__(self, other):
20616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20617
 
20618
  def __ne__(self, other):
20619
    return not (self == other)
20620
 
7281 kshitij.so 20621
class getAmazonItemDetails_args:
20622
  """
20623
  Attributes:
20624
   - itemId
20625
  """
20626
 
20627
  thrift_spec = (
20628
    None, # 0
20629
    (1, TType.I64, 'itemId', None, None, ), # 1
20630
  )
20631
 
20632
  def __init__(self, itemId=None,):
20633
    self.itemId = itemId
20634
 
20635
  def read(self, iprot):
20636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20638
      return
20639
    iprot.readStructBegin()
20640
    while True:
20641
      (fname, ftype, fid) = iprot.readFieldBegin()
20642
      if ftype == TType.STOP:
20643
        break
20644
      if fid == 1:
20645
        if ftype == TType.I64:
20646
          self.itemId = iprot.readI64();
20647
        else:
20648
          iprot.skip(ftype)
20649
      else:
20650
        iprot.skip(ftype)
20651
      iprot.readFieldEnd()
20652
    iprot.readStructEnd()
20653
 
20654
  def write(self, oprot):
20655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20657
      return
20658
    oprot.writeStructBegin('getAmazonItemDetails_args')
20659
    if self.itemId is not None:
20660
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20661
      oprot.writeI64(self.itemId)
20662
      oprot.writeFieldEnd()
20663
    oprot.writeFieldStop()
20664
    oprot.writeStructEnd()
20665
 
20666
  def validate(self):
20667
    return
20668
 
20669
 
20670
  def __repr__(self):
20671
    L = ['%s=%r' % (key, value)
20672
      for key, value in self.__dict__.iteritems()]
20673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20674
 
20675
  def __eq__(self, other):
20676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20677
 
20678
  def __ne__(self, other):
20679
    return not (self == other)
20680
 
20681
class getAmazonItemDetails_result:
20682
  """
20683
  Attributes:
20684
   - success
20685
  """
20686
 
20687
  thrift_spec = (
20688
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
20689
  )
20690
 
20691
  def __init__(self, success=None,):
20692
    self.success = success
20693
 
20694
  def read(self, iprot):
20695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20697
      return
20698
    iprot.readStructBegin()
20699
    while True:
20700
      (fname, ftype, fid) = iprot.readFieldBegin()
20701
      if ftype == TType.STOP:
20702
        break
20703
      if fid == 0:
20704
        if ftype == TType.STRUCT:
20705
          self.success = Amazonlisted()
20706
          self.success.read(iprot)
20707
        else:
20708
          iprot.skip(ftype)
20709
      else:
20710
        iprot.skip(ftype)
20711
      iprot.readFieldEnd()
20712
    iprot.readStructEnd()
20713
 
20714
  def write(self, oprot):
20715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20717
      return
20718
    oprot.writeStructBegin('getAmazonItemDetails_result')
20719
    if self.success is not None:
20720
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
20721
      self.success.write(oprot)
20722
      oprot.writeFieldEnd()
20723
    oprot.writeFieldStop()
20724
    oprot.writeStructEnd()
20725
 
20726
  def validate(self):
20727
    return
20728
 
20729
 
20730
  def __repr__(self):
20731
    L = ['%s=%r' % (key, value)
20732
      for key, value in self.__dict__.iteritems()]
20733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20734
 
20735
  def __eq__(self, other):
20736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20737
 
20738
  def __ne__(self, other):
20739
    return not (self == other)
20740
 
20741
class updateAmazonItemDetails_args:
20742
  """
20743
  Attributes:
8168 kshitij.so 20744
   - amazonlisted
7281 kshitij.so 20745
  """
20746
 
20747
  thrift_spec = (
20748
    None, # 0
8168 kshitij.so 20749
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 20750
  )
20751
 
8168 kshitij.so 20752
  def __init__(self, amazonlisted=None,):
20753
    self.amazonlisted = amazonlisted
7281 kshitij.so 20754
 
20755
  def read(self, iprot):
20756
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20757
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20758
      return
20759
    iprot.readStructBegin()
20760
    while True:
20761
      (fname, ftype, fid) = iprot.readFieldBegin()
20762
      if ftype == TType.STOP:
20763
        break
20764
      if fid == 1:
8168 kshitij.so 20765
        if ftype == TType.STRUCT:
20766
          self.amazonlisted = Amazonlisted()
20767
          self.amazonlisted.read(iprot)
7281 kshitij.so 20768
        else:
20769
          iprot.skip(ftype)
20770
      else:
20771
        iprot.skip(ftype)
20772
      iprot.readFieldEnd()
20773
    iprot.readStructEnd()
20774
 
20775
  def write(self, oprot):
20776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20778
      return
20779
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 20780
    if self.amazonlisted is not None:
20781
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
20782
      self.amazonlisted.write(oprot)
7281 kshitij.so 20783
      oprot.writeFieldEnd()
20784
    oprot.writeFieldStop()
20785
    oprot.writeStructEnd()
20786
 
20787
  def validate(self):
20788
    return
20789
 
20790
 
20791
  def __repr__(self):
20792
    L = ['%s=%r' % (key, value)
20793
      for key, value in self.__dict__.iteritems()]
20794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20795
 
20796
  def __eq__(self, other):
20797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20798
 
20799
  def __ne__(self, other):
20800
    return not (self == other)
20801
 
20802
class updateAmazonItemDetails_result:
20803
 
20804
  thrift_spec = (
20805
  )
20806
 
20807
  def read(self, iprot):
20808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20810
      return
20811
    iprot.readStructBegin()
20812
    while True:
20813
      (fname, ftype, fid) = iprot.readFieldBegin()
20814
      if ftype == TType.STOP:
20815
        break
20816
      else:
20817
        iprot.skip(ftype)
20818
      iprot.readFieldEnd()
20819
    iprot.readStructEnd()
20820
 
20821
  def write(self, oprot):
20822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20824
      return
20825
    oprot.writeStructBegin('updateAmazonItemDetails_result')
20826
    oprot.writeFieldStop()
20827
    oprot.writeStructEnd()
20828
 
20829
  def validate(self):
20830
    return
20831
 
20832
 
20833
  def __repr__(self):
20834
    L = ['%s=%r' % (key, value)
20835
      for key, value in self.__dict__.iteritems()]
20836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20837
 
20838
  def __eq__(self, other):
20839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20840
 
20841
  def __ne__(self, other):
20842
    return not (self == other)
20843
 
20844
class addAmazonItem_args:
20845
  """
20846
  Attributes:
20847
   - amazonlisted
20848
  """
20849
 
20850
  thrift_spec = (
20851
    None, # 0
20852
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
20853
  )
20854
 
20855
  def __init__(self, amazonlisted=None,):
20856
    self.amazonlisted = amazonlisted
20857
 
20858
  def read(self, iprot):
20859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20861
      return
20862
    iprot.readStructBegin()
20863
    while True:
20864
      (fname, ftype, fid) = iprot.readFieldBegin()
20865
      if ftype == TType.STOP:
20866
        break
20867
      if fid == 1:
20868
        if ftype == TType.STRUCT:
20869
          self.amazonlisted = Amazonlisted()
20870
          self.amazonlisted.read(iprot)
20871
        else:
20872
          iprot.skip(ftype)
20873
      else:
20874
        iprot.skip(ftype)
20875
      iprot.readFieldEnd()
20876
    iprot.readStructEnd()
20877
 
20878
  def write(self, oprot):
20879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20881
      return
20882
    oprot.writeStructBegin('addAmazonItem_args')
20883
    if self.amazonlisted is not None:
20884
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
20885
      self.amazonlisted.write(oprot)
20886
      oprot.writeFieldEnd()
20887
    oprot.writeFieldStop()
20888
    oprot.writeStructEnd()
20889
 
20890
  def validate(self):
20891
    return
20892
 
20893
 
20894
  def __repr__(self):
20895
    L = ['%s=%r' % (key, value)
20896
      for key, value in self.__dict__.iteritems()]
20897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20898
 
20899
  def __eq__(self, other):
20900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20901
 
20902
  def __ne__(self, other):
20903
    return not (self == other)
20904
 
20905
class addAmazonItem_result:
20906
 
20907
  thrift_spec = (
20908
  )
20909
 
20910
  def read(self, iprot):
20911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20913
      return
20914
    iprot.readStructBegin()
20915
    while True:
20916
      (fname, ftype, fid) = iprot.readFieldBegin()
20917
      if ftype == TType.STOP:
20918
        break
20919
      else:
20920
        iprot.skip(ftype)
20921
      iprot.readFieldEnd()
20922
    iprot.readStructEnd()
20923
 
20924
  def write(self, oprot):
20925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20927
      return
20928
    oprot.writeStructBegin('addAmazonItem_result')
20929
    oprot.writeFieldStop()
20930
    oprot.writeStructEnd()
20931
 
20932
  def validate(self):
20933
    return
20934
 
20935
 
20936
  def __repr__(self):
20937
    L = ['%s=%r' % (key, value)
20938
      for key, value in self.__dict__.iteritems()]
20939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20940
 
20941
  def __eq__(self, other):
20942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20943
 
20944
  def __ne__(self, other):
20945
    return not (self == other)
7291 vikram.rag 20946
 
20947
class getAsinItems_args:
20948
 
20949
  thrift_spec = (
20950
  )
20951
 
20952
  def read(self, iprot):
20953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20955
      return
20956
    iprot.readStructBegin()
20957
    while True:
20958
      (fname, ftype, fid) = iprot.readFieldBegin()
20959
      if ftype == TType.STOP:
20960
        break
20961
      else:
20962
        iprot.skip(ftype)
20963
      iprot.readFieldEnd()
20964
    iprot.readStructEnd()
20965
 
20966
  def write(self, oprot):
20967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20969
      return
20970
    oprot.writeStructBegin('getAsinItems_args')
20971
    oprot.writeFieldStop()
20972
    oprot.writeStructEnd()
20973
 
20974
  def validate(self):
20975
    return
20976
 
20977
 
20978
  def __repr__(self):
20979
    L = ['%s=%r' % (key, value)
20980
      for key, value in self.__dict__.iteritems()]
20981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20982
 
20983
  def __eq__(self, other):
20984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20985
 
20986
  def __ne__(self, other):
20987
    return not (self == other)
20988
 
20989
class getAsinItems_result:
20990
  """
20991
  Attributes:
20992
   - success
20993
  """
20994
 
20995
  thrift_spec = (
20996
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20997
  )
20998
 
20999
  def __init__(self, success=None,):
21000
    self.success = success
21001
 
21002
  def read(self, iprot):
21003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21005
      return
21006
    iprot.readStructBegin()
21007
    while True:
21008
      (fname, ftype, fid) = iprot.readFieldBegin()
21009
      if ftype == TType.STOP:
21010
        break
21011
      if fid == 0:
21012
        if ftype == TType.LIST:
21013
          self.success = []
9155 kshitij.so 21014
          (_etype442, _size439) = iprot.readListBegin()
21015
          for _i443 in xrange(_size439):
21016
            _elem444 = Item()
21017
            _elem444.read(iprot)
21018
            self.success.append(_elem444)
7291 vikram.rag 21019
          iprot.readListEnd()
21020
        else:
21021
          iprot.skip(ftype)
21022
      else:
21023
        iprot.skip(ftype)
21024
      iprot.readFieldEnd()
21025
    iprot.readStructEnd()
21026
 
21027
  def write(self, oprot):
21028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21030
      return
21031
    oprot.writeStructBegin('getAsinItems_result')
21032
    if self.success is not None:
21033
      oprot.writeFieldBegin('success', TType.LIST, 0)
21034
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21035
      for iter445 in self.success:
21036
        iter445.write(oprot)
7291 vikram.rag 21037
      oprot.writeListEnd()
21038
      oprot.writeFieldEnd()
21039
    oprot.writeFieldStop()
21040
    oprot.writeStructEnd()
21041
 
21042
  def validate(self):
21043
    return
21044
 
21045
 
21046
  def __repr__(self):
21047
    L = ['%s=%r' % (key, value)
21048
      for key, value in self.__dict__.iteritems()]
21049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21050
 
21051
  def __eq__(self, other):
21052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21053
 
21054
  def __ne__(self, other):
21055
    return not (self == other)
21056
 
21057
class getAllFbaListedItems_args:
21058
 
21059
  thrift_spec = (
21060
  )
21061
 
21062
  def read(self, iprot):
21063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21065
      return
21066
    iprot.readStructBegin()
21067
    while True:
21068
      (fname, ftype, fid) = iprot.readFieldBegin()
21069
      if ftype == TType.STOP:
21070
        break
21071
      else:
21072
        iprot.skip(ftype)
21073
      iprot.readFieldEnd()
21074
    iprot.readStructEnd()
21075
 
21076
  def write(self, oprot):
21077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21079
      return
21080
    oprot.writeStructBegin('getAllFbaListedItems_args')
21081
    oprot.writeFieldStop()
21082
    oprot.writeStructEnd()
21083
 
21084
  def validate(self):
21085
    return
21086
 
21087
 
21088
  def __repr__(self):
21089
    L = ['%s=%r' % (key, value)
21090
      for key, value in self.__dict__.iteritems()]
21091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21092
 
21093
  def __eq__(self, other):
21094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21095
 
21096
  def __ne__(self, other):
21097
    return not (self == other)
21098
 
21099
class getAllFbaListedItems_result:
21100
  """
21101
  Attributes:
21102
   - success
21103
  """
21104
 
21105
  thrift_spec = (
21106
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21107
  )
21108
 
21109
  def __init__(self, success=None,):
21110
    self.success = success
21111
 
21112
  def read(self, iprot):
21113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21115
      return
21116
    iprot.readStructBegin()
21117
    while True:
21118
      (fname, ftype, fid) = iprot.readFieldBegin()
21119
      if ftype == TType.STOP:
21120
        break
21121
      if fid == 0:
21122
        if ftype == TType.LIST:
21123
          self.success = []
9155 kshitij.so 21124
          (_etype449, _size446) = iprot.readListBegin()
21125
          for _i450 in xrange(_size446):
21126
            _elem451 = Amazonlisted()
21127
            _elem451.read(iprot)
21128
            self.success.append(_elem451)
7291 vikram.rag 21129
          iprot.readListEnd()
21130
        else:
21131
          iprot.skip(ftype)
21132
      else:
21133
        iprot.skip(ftype)
21134
      iprot.readFieldEnd()
21135
    iprot.readStructEnd()
21136
 
21137
  def write(self, oprot):
21138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21140
      return
21141
    oprot.writeStructBegin('getAllFbaListedItems_result')
21142
    if self.success is not None:
21143
      oprot.writeFieldBegin('success', TType.LIST, 0)
21144
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21145
      for iter452 in self.success:
21146
        iter452.write(oprot)
7291 vikram.rag 21147
      oprot.writeListEnd()
21148
      oprot.writeFieldEnd()
21149
    oprot.writeFieldStop()
21150
    oprot.writeStructEnd()
21151
 
21152
  def validate(self):
21153
    return
21154
 
21155
 
21156
  def __repr__(self):
21157
    L = ['%s=%r' % (key, value)
21158
      for key, value in self.__dict__.iteritems()]
21159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21160
 
21161
  def __eq__(self, other):
21162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21163
 
21164
  def __ne__(self, other):
21165
    return not (self == other)
21166
 
21167
class getAllNonFbaListedItems_args:
21168
 
21169
  thrift_spec = (
21170
  )
21171
 
21172
  def read(self, iprot):
21173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21175
      return
21176
    iprot.readStructBegin()
21177
    while True:
21178
      (fname, ftype, fid) = iprot.readFieldBegin()
21179
      if ftype == TType.STOP:
21180
        break
21181
      else:
21182
        iprot.skip(ftype)
21183
      iprot.readFieldEnd()
21184
    iprot.readStructEnd()
21185
 
21186
  def write(self, oprot):
21187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21189
      return
21190
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
21191
    oprot.writeFieldStop()
21192
    oprot.writeStructEnd()
21193
 
21194
  def validate(self):
21195
    return
21196
 
21197
 
21198
  def __repr__(self):
21199
    L = ['%s=%r' % (key, value)
21200
      for key, value in self.__dict__.iteritems()]
21201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21202
 
21203
  def __eq__(self, other):
21204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21205
 
21206
  def __ne__(self, other):
21207
    return not (self == other)
21208
 
21209
class getAllNonFbaListedItems_result:
21210
  """
21211
  Attributes:
21212
   - success
21213
  """
21214
 
21215
  thrift_spec = (
21216
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21217
  )
21218
 
21219
  def __init__(self, success=None,):
21220
    self.success = success
21221
 
21222
  def read(self, iprot):
21223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21225
      return
21226
    iprot.readStructBegin()
21227
    while True:
21228
      (fname, ftype, fid) = iprot.readFieldBegin()
21229
      if ftype == TType.STOP:
21230
        break
21231
      if fid == 0:
21232
        if ftype == TType.LIST:
21233
          self.success = []
9155 kshitij.so 21234
          (_etype456, _size453) = iprot.readListBegin()
21235
          for _i457 in xrange(_size453):
21236
            _elem458 = Amazonlisted()
21237
            _elem458.read(iprot)
21238
            self.success.append(_elem458)
7291 vikram.rag 21239
          iprot.readListEnd()
21240
        else:
21241
          iprot.skip(ftype)
21242
      else:
21243
        iprot.skip(ftype)
21244
      iprot.readFieldEnd()
21245
    iprot.readStructEnd()
21246
 
21247
  def write(self, oprot):
21248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21250
      return
21251
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
21252
    if self.success is not None:
21253
      oprot.writeFieldBegin('success', TType.LIST, 0)
21254
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21255
      for iter459 in self.success:
21256
        iter459.write(oprot)
7291 vikram.rag 21257
      oprot.writeListEnd()
21258
      oprot.writeFieldEnd()
21259
    oprot.writeFieldStop()
21260
    oprot.writeStructEnd()
21261
 
21262
  def validate(self):
21263
    return
21264
 
21265
 
21266
  def __repr__(self):
21267
    L = ['%s=%r' % (key, value)
21268
      for key, value in self.__dict__.iteritems()]
21269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21270
 
21271
  def __eq__(self, other):
21272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21273
 
21274
  def __ne__(self, other):
21275
    return not (self == other)
7460 kshitij.so 21276
 
21277
class updateItemInventory_args:
21278
  """
21279
  Attributes:
21280
   - itemId
21281
   - holdInventory
21282
   - defaultInventory
21283
  """
21284
 
21285
  thrift_spec = (
21286
    None, # 0
21287
    (1, TType.I64, 'itemId', None, None, ), # 1
21288
    (2, TType.I64, 'holdInventory', None, None, ), # 2
21289
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
21290
  )
21291
 
21292
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
21293
    self.itemId = itemId
21294
    self.holdInventory = holdInventory
21295
    self.defaultInventory = defaultInventory
21296
 
21297
  def read(self, iprot):
21298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21300
      return
21301
    iprot.readStructBegin()
21302
    while True:
21303
      (fname, ftype, fid) = iprot.readFieldBegin()
21304
      if ftype == TType.STOP:
21305
        break
21306
      if fid == 1:
21307
        if ftype == TType.I64:
21308
          self.itemId = iprot.readI64();
21309
        else:
21310
          iprot.skip(ftype)
21311
      elif fid == 2:
21312
        if ftype == TType.I64:
21313
          self.holdInventory = iprot.readI64();
21314
        else:
21315
          iprot.skip(ftype)
21316
      elif fid == 3:
21317
        if ftype == TType.I64:
21318
          self.defaultInventory = iprot.readI64();
21319
        else:
21320
          iprot.skip(ftype)
21321
      else:
21322
        iprot.skip(ftype)
21323
      iprot.readFieldEnd()
21324
    iprot.readStructEnd()
21325
 
21326
  def write(self, oprot):
21327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21329
      return
21330
    oprot.writeStructBegin('updateItemInventory_args')
21331
    if self.itemId is not None:
21332
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21333
      oprot.writeI64(self.itemId)
21334
      oprot.writeFieldEnd()
21335
    if self.holdInventory is not None:
21336
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
21337
      oprot.writeI64(self.holdInventory)
21338
      oprot.writeFieldEnd()
21339
    if self.defaultInventory is not None:
21340
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
21341
      oprot.writeI64(self.defaultInventory)
21342
      oprot.writeFieldEnd()
21343
    oprot.writeFieldStop()
21344
    oprot.writeStructEnd()
21345
 
21346
  def validate(self):
21347
    return
21348
 
21349
 
21350
  def __repr__(self):
21351
    L = ['%s=%r' % (key, value)
21352
      for key, value in self.__dict__.iteritems()]
21353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21354
 
21355
  def __eq__(self, other):
21356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21357
 
21358
  def __ne__(self, other):
21359
    return not (self == other)
21360
 
21361
class updateItemInventory_result:
21362
  """
21363
  Attributes:
21364
   - success
21365
  """
21366
 
21367
  thrift_spec = (
21368
    (0, TType.BOOL, 'success', None, None, ), # 0
21369
  )
21370
 
21371
  def __init__(self, success=None,):
21372
    self.success = success
21373
 
21374
  def read(self, iprot):
21375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21377
      return
21378
    iprot.readStructBegin()
21379
    while True:
21380
      (fname, ftype, fid) = iprot.readFieldBegin()
21381
      if ftype == TType.STOP:
21382
        break
21383
      if fid == 0:
21384
        if ftype == TType.BOOL:
21385
          self.success = iprot.readBool();
21386
        else:
21387
          iprot.skip(ftype)
21388
      else:
21389
        iprot.skip(ftype)
21390
      iprot.readFieldEnd()
21391
    iprot.readStructEnd()
21392
 
21393
  def write(self, oprot):
21394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21396
      return
21397
    oprot.writeStructBegin('updateItemInventory_result')
21398
    if self.success is not None:
21399
      oprot.writeFieldBegin('success', TType.BOOL, 0)
21400
      oprot.writeBool(self.success)
21401
      oprot.writeFieldEnd()
21402
    oprot.writeFieldStop()
21403
    oprot.writeStructEnd()
21404
 
21405
  def validate(self):
21406
    return
21407
 
21408
 
21409
  def __repr__(self):
21410
    L = ['%s=%r' % (key, value)
21411
      for key, value in self.__dict__.iteritems()]
21412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21413
 
21414
  def __eq__(self, other):
21415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21416
 
21417
  def __ne__(self, other):
21418
    return not (self == other)
7770 kshitij.so 21419
 
21420
class updateTimestampForAmazonFeeds_args:
21421
  """
21422
  Attributes:
21423
   - type
21424
   - sku
21425
   - timestamp
21426
  """
21427
 
21428
  thrift_spec = (
21429
    None, # 0
21430
    (1, TType.STRING, 'type', None, None, ), # 1
21431
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
21432
    (3, TType.I64, 'timestamp', None, None, ), # 3
21433
  )
21434
 
21435
  def __init__(self, type=None, sku=None, timestamp=None,):
21436
    self.type = type
21437
    self.sku = sku
21438
    self.timestamp = timestamp
21439
 
21440
  def read(self, iprot):
21441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21443
      return
21444
    iprot.readStructBegin()
21445
    while True:
21446
      (fname, ftype, fid) = iprot.readFieldBegin()
21447
      if ftype == TType.STOP:
21448
        break
21449
      if fid == 1:
21450
        if ftype == TType.STRING:
21451
          self.type = iprot.readString();
21452
        else:
21453
          iprot.skip(ftype)
21454
      elif fid == 2:
21455
        if ftype == TType.LIST:
21456
          self.sku = []
9155 kshitij.so 21457
          (_etype463, _size460) = iprot.readListBegin()
21458
          for _i464 in xrange(_size460):
21459
            _elem465 = iprot.readI64();
21460
            self.sku.append(_elem465)
7770 kshitij.so 21461
          iprot.readListEnd()
21462
        else:
21463
          iprot.skip(ftype)
21464
      elif fid == 3:
21465
        if ftype == TType.I64:
21466
          self.timestamp = iprot.readI64();
21467
        else:
21468
          iprot.skip(ftype)
21469
      else:
21470
        iprot.skip(ftype)
21471
      iprot.readFieldEnd()
21472
    iprot.readStructEnd()
21473
 
21474
  def write(self, oprot):
21475
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21476
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21477
      return
21478
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
21479
    if self.type is not None:
21480
      oprot.writeFieldBegin('type', TType.STRING, 1)
21481
      oprot.writeString(self.type)
21482
      oprot.writeFieldEnd()
21483
    if self.sku is not None:
21484
      oprot.writeFieldBegin('sku', TType.LIST, 2)
21485
      oprot.writeListBegin(TType.I64, len(self.sku))
9155 kshitij.so 21486
      for iter466 in self.sku:
21487
        oprot.writeI64(iter466)
7770 kshitij.so 21488
      oprot.writeListEnd()
21489
      oprot.writeFieldEnd()
21490
    if self.timestamp is not None:
21491
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
21492
      oprot.writeI64(self.timestamp)
21493
      oprot.writeFieldEnd()
21494
    oprot.writeFieldStop()
21495
    oprot.writeStructEnd()
21496
 
21497
  def validate(self):
21498
    return
21499
 
21500
 
21501
  def __repr__(self):
21502
    L = ['%s=%r' % (key, value)
21503
      for key, value in self.__dict__.iteritems()]
21504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21505
 
21506
  def __eq__(self, other):
21507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21508
 
21509
  def __ne__(self, other):
21510
    return not (self == other)
21511
 
21512
class updateTimestampForAmazonFeeds_result:
21513
  """
21514
  Attributes:
21515
   - success
21516
  """
21517
 
21518
  thrift_spec = (
21519
    (0, TType.BOOL, 'success', None, None, ), # 0
21520
  )
21521
 
21522
  def __init__(self, success=None,):
21523
    self.success = success
21524
 
21525
  def read(self, iprot):
21526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21528
      return
21529
    iprot.readStructBegin()
21530
    while True:
21531
      (fname, ftype, fid) = iprot.readFieldBegin()
21532
      if ftype == TType.STOP:
21533
        break
21534
      if fid == 0:
21535
        if ftype == TType.BOOL:
21536
          self.success = iprot.readBool();
21537
        else:
21538
          iprot.skip(ftype)
21539
      else:
21540
        iprot.skip(ftype)
21541
      iprot.readFieldEnd()
21542
    iprot.readStructEnd()
21543
 
21544
  def write(self, oprot):
21545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21547
      return
21548
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
21549
    if self.success is not None:
21550
      oprot.writeFieldBegin('success', TType.BOOL, 0)
21551
      oprot.writeBool(self.success)
21552
      oprot.writeFieldEnd()
21553
    oprot.writeFieldStop()
21554
    oprot.writeStructEnd()
21555
 
21556
  def validate(self):
21557
    return
21558
 
21559
 
21560
  def __repr__(self):
21561
    L = ['%s=%r' % (key, value)
21562
      for key, value in self.__dict__.iteritems()]
21563
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21564
 
21565
  def __eq__(self, other):
21566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21567
 
21568
  def __ne__(self, other):
21569
    return not (self == other)
7897 amar.kumar 21570
 
21571
class getAllParentCategories_args:
21572
 
21573
  thrift_spec = (
21574
  )
21575
 
21576
  def read(self, iprot):
21577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21579
      return
21580
    iprot.readStructBegin()
21581
    while True:
21582
      (fname, ftype, fid) = iprot.readFieldBegin()
21583
      if ftype == TType.STOP:
21584
        break
21585
      else:
21586
        iprot.skip(ftype)
21587
      iprot.readFieldEnd()
21588
    iprot.readStructEnd()
21589
 
21590
  def write(self, oprot):
21591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21593
      return
21594
    oprot.writeStructBegin('getAllParentCategories_args')
21595
    oprot.writeFieldStop()
21596
    oprot.writeStructEnd()
21597
 
21598
  def validate(self):
21599
    return
21600
 
21601
 
21602
  def __repr__(self):
21603
    L = ['%s=%r' % (key, value)
21604
      for key, value in self.__dict__.iteritems()]
21605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21606
 
21607
  def __eq__(self, other):
21608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21609
 
21610
  def __ne__(self, other):
21611
    return not (self == other)
21612
 
21613
class getAllParentCategories_result:
21614
  """
21615
  Attributes:
21616
   - success
21617
  """
21618
 
21619
  thrift_spec = (
21620
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
21621
  )
21622
 
21623
  def __init__(self, success=None,):
21624
    self.success = success
21625
 
21626
  def read(self, iprot):
21627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21629
      return
21630
    iprot.readStructBegin()
21631
    while True:
21632
      (fname, ftype, fid) = iprot.readFieldBegin()
21633
      if ftype == TType.STOP:
21634
        break
21635
      if fid == 0:
21636
        if ftype == TType.LIST:
21637
          self.success = []
9155 kshitij.so 21638
          (_etype470, _size467) = iprot.readListBegin()
21639
          for _i471 in xrange(_size467):
21640
            _elem472 = Category()
21641
            _elem472.read(iprot)
21642
            self.success.append(_elem472)
7897 amar.kumar 21643
          iprot.readListEnd()
21644
        else:
21645
          iprot.skip(ftype)
21646
      else:
21647
        iprot.skip(ftype)
21648
      iprot.readFieldEnd()
21649
    iprot.readStructEnd()
21650
 
21651
  def write(self, oprot):
21652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21654
      return
21655
    oprot.writeStructBegin('getAllParentCategories_result')
21656
    if self.success is not None:
21657
      oprot.writeFieldBegin('success', TType.LIST, 0)
21658
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21659
      for iter473 in self.success:
21660
        iter473.write(oprot)
7897 amar.kumar 21661
      oprot.writeListEnd()
21662
      oprot.writeFieldEnd()
21663
    oprot.writeFieldStop()
21664
    oprot.writeStructEnd()
21665
 
21666
  def validate(self):
21667
    return
21668
 
21669
 
21670
  def __repr__(self):
21671
    L = ['%s=%r' % (key, value)
21672
      for key, value in self.__dict__.iteritems()]
21673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21674
 
21675
  def __eq__(self, other):
21676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21677
 
21678
  def __ne__(self, other):
21679
    return not (self == other)
7977 kshitij.so 21680
 
21681
class addPageViewEvent_args:
21682
  """
21683
  Attributes:
21684
   - pageViewEvents
21685
  """
21686
 
21687
  thrift_spec = (
21688
    None, # 0
21689
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
21690
  )
21691
 
21692
  def __init__(self, pageViewEvents=None,):
21693
    self.pageViewEvents = pageViewEvents
21694
 
21695
  def read(self, iprot):
21696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21698
      return
21699
    iprot.readStructBegin()
21700
    while True:
21701
      (fname, ftype, fid) = iprot.readFieldBegin()
21702
      if ftype == TType.STOP:
21703
        break
21704
      if fid == 1:
21705
        if ftype == TType.STRUCT:
21706
          self.pageViewEvents = PageViewEvents()
21707
          self.pageViewEvents.read(iprot)
21708
        else:
21709
          iprot.skip(ftype)
21710
      else:
21711
        iprot.skip(ftype)
21712
      iprot.readFieldEnd()
21713
    iprot.readStructEnd()
21714
 
21715
  def write(self, oprot):
21716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21718
      return
21719
    oprot.writeStructBegin('addPageViewEvent_args')
21720
    if self.pageViewEvents is not None:
21721
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
21722
      self.pageViewEvents.write(oprot)
21723
      oprot.writeFieldEnd()
21724
    oprot.writeFieldStop()
21725
    oprot.writeStructEnd()
21726
 
21727
  def validate(self):
21728
    return
21729
 
21730
 
21731
  def __repr__(self):
21732
    L = ['%s=%r' % (key, value)
21733
      for key, value in self.__dict__.iteritems()]
21734
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21735
 
21736
  def __eq__(self, other):
21737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21738
 
21739
  def __ne__(self, other):
21740
    return not (self == other)
21741
 
21742
class addPageViewEvent_result:
21743
 
21744
  thrift_spec = (
21745
  )
21746
 
21747
  def read(self, iprot):
21748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21750
      return
21751
    iprot.readStructBegin()
21752
    while True:
21753
      (fname, ftype, fid) = iprot.readFieldBegin()
21754
      if ftype == TType.STOP:
21755
        break
21756
      else:
21757
        iprot.skip(ftype)
21758
      iprot.readFieldEnd()
21759
    iprot.readStructEnd()
21760
 
21761
  def write(self, oprot):
21762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21764
      return
21765
    oprot.writeStructBegin('addPageViewEvent_result')
21766
    oprot.writeFieldStop()
21767
    oprot.writeStructEnd()
21768
 
21769
  def validate(self):
21770
    return
21771
 
21772
 
21773
  def __repr__(self):
21774
    L = ['%s=%r' % (key, value)
21775
      for key, value in self.__dict__.iteritems()]
21776
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21777
 
21778
  def __eq__(self, other):
21779
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21780
 
21781
  def __ne__(self, other):
21782
    return not (self == other)
21783
 
21784
class addCartEvent_args:
21785
  """
21786
  Attributes:
21787
   - cartEvents
21788
  """
21789
 
21790
  thrift_spec = (
21791
    None, # 0
21792
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
21793
  )
21794
 
21795
  def __init__(self, cartEvents=None,):
21796
    self.cartEvents = cartEvents
21797
 
21798
  def read(self, iprot):
21799
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21800
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21801
      return
21802
    iprot.readStructBegin()
21803
    while True:
21804
      (fname, ftype, fid) = iprot.readFieldBegin()
21805
      if ftype == TType.STOP:
21806
        break
21807
      if fid == 1:
21808
        if ftype == TType.STRUCT:
21809
          self.cartEvents = CartEvents()
21810
          self.cartEvents.read(iprot)
21811
        else:
21812
          iprot.skip(ftype)
21813
      else:
21814
        iprot.skip(ftype)
21815
      iprot.readFieldEnd()
21816
    iprot.readStructEnd()
21817
 
21818
  def write(self, oprot):
21819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21821
      return
21822
    oprot.writeStructBegin('addCartEvent_args')
21823
    if self.cartEvents is not None:
21824
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
21825
      self.cartEvents.write(oprot)
21826
      oprot.writeFieldEnd()
21827
    oprot.writeFieldStop()
21828
    oprot.writeStructEnd()
21829
 
21830
  def validate(self):
21831
    return
21832
 
21833
 
21834
  def __repr__(self):
21835
    L = ['%s=%r' % (key, value)
21836
      for key, value in self.__dict__.iteritems()]
21837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21838
 
21839
  def __eq__(self, other):
21840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21841
 
21842
  def __ne__(self, other):
21843
    return not (self == other)
21844
 
21845
class addCartEvent_result:
21846
 
21847
  thrift_spec = (
21848
  )
21849
 
21850
  def read(self, iprot):
21851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21853
      return
21854
    iprot.readStructBegin()
21855
    while True:
21856
      (fname, ftype, fid) = iprot.readFieldBegin()
21857
      if ftype == TType.STOP:
21858
        break
21859
      else:
21860
        iprot.skip(ftype)
21861
      iprot.readFieldEnd()
21862
    iprot.readStructEnd()
21863
 
21864
  def write(self, oprot):
21865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21867
      return
21868
    oprot.writeStructBegin('addCartEvent_result')
21869
    oprot.writeFieldStop()
21870
    oprot.writeStructEnd()
21871
 
21872
  def validate(self):
21873
    return
21874
 
21875
 
21876
  def __repr__(self):
21877
    L = ['%s=%r' % (key, value)
21878
      for key, value in self.__dict__.iteritems()]
21879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21880
 
21881
  def __eq__(self, other):
21882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21883
 
21884
  def __ne__(self, other):
21885
    return not (self == other)
8139 kshitij.so 21886
 
8182 amar.kumar 21887
class addEbayItem_args:
21888
  """
21889
  Attributes:
21890
   - ebayItem
21891
  """
21892
 
21893
  thrift_spec = (
21894
    None, # 0
21895
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
21896
  )
21897
 
21898
  def __init__(self, ebayItem=None,):
21899
    self.ebayItem = ebayItem
21900
 
21901
  def read(self, iprot):
21902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21904
      return
21905
    iprot.readStructBegin()
21906
    while True:
21907
      (fname, ftype, fid) = iprot.readFieldBegin()
21908
      if ftype == TType.STOP:
21909
        break
21910
      if fid == 1:
21911
        if ftype == TType.STRUCT:
21912
          self.ebayItem = EbayItem()
21913
          self.ebayItem.read(iprot)
21914
        else:
21915
          iprot.skip(ftype)
21916
      else:
21917
        iprot.skip(ftype)
21918
      iprot.readFieldEnd()
21919
    iprot.readStructEnd()
21920
 
21921
  def write(self, oprot):
21922
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21923
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21924
      return
21925
    oprot.writeStructBegin('addEbayItem_args')
21926
    if self.ebayItem is not None:
21927
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
21928
      self.ebayItem.write(oprot)
21929
      oprot.writeFieldEnd()
21930
    oprot.writeFieldStop()
21931
    oprot.writeStructEnd()
21932
 
21933
  def validate(self):
21934
    return
21935
 
21936
 
21937
  def __repr__(self):
21938
    L = ['%s=%r' % (key, value)
21939
      for key, value in self.__dict__.iteritems()]
21940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21941
 
21942
  def __eq__(self, other):
21943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21944
 
21945
  def __ne__(self, other):
21946
    return not (self == other)
21947
 
21948
class addEbayItem_result:
21949
 
21950
  thrift_spec = (
21951
  )
21952
 
21953
  def read(self, iprot):
21954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21956
      return
21957
    iprot.readStructBegin()
21958
    while True:
21959
      (fname, ftype, fid) = iprot.readFieldBegin()
21960
      if ftype == TType.STOP:
21961
        break
21962
      else:
21963
        iprot.skip(ftype)
21964
      iprot.readFieldEnd()
21965
    iprot.readStructEnd()
21966
 
21967
  def write(self, oprot):
21968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21970
      return
21971
    oprot.writeStructBegin('addEbayItem_result')
21972
    oprot.writeFieldStop()
21973
    oprot.writeStructEnd()
21974
 
21975
  def validate(self):
21976
    return
21977
 
21978
 
21979
  def __repr__(self):
21980
    L = ['%s=%r' % (key, value)
21981
      for key, value in self.__dict__.iteritems()]
21982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21983
 
21984
  def __eq__(self, other):
21985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21986
 
21987
  def __ne__(self, other):
21988
    return not (self == other)
21989
 
21990
class getEbayItem_args:
21991
  """
21992
  Attributes:
21993
   - listingId
21994
  """
21995
 
21996
  thrift_spec = (
21997
    None, # 0
21998
    (1, TType.STRING, 'listingId', None, None, ), # 1
21999
  )
22000
 
22001
  def __init__(self, listingId=None,):
22002
    self.listingId = listingId
22003
 
22004
  def read(self, iprot):
22005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22007
      return
22008
    iprot.readStructBegin()
22009
    while True:
22010
      (fname, ftype, fid) = iprot.readFieldBegin()
22011
      if ftype == TType.STOP:
22012
        break
22013
      if fid == 1:
22014
        if ftype == TType.STRING:
22015
          self.listingId = iprot.readString();
22016
        else:
22017
          iprot.skip(ftype)
22018
      else:
22019
        iprot.skip(ftype)
22020
      iprot.readFieldEnd()
22021
    iprot.readStructEnd()
22022
 
22023
  def write(self, oprot):
22024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22026
      return
22027
    oprot.writeStructBegin('getEbayItem_args')
22028
    if self.listingId is not None:
22029
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
22030
      oprot.writeString(self.listingId)
22031
      oprot.writeFieldEnd()
22032
    oprot.writeFieldStop()
22033
    oprot.writeStructEnd()
22034
 
22035
  def validate(self):
22036
    return
22037
 
22038
 
22039
  def __repr__(self):
22040
    L = ['%s=%r' % (key, value)
22041
      for key, value in self.__dict__.iteritems()]
22042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22043
 
22044
  def __eq__(self, other):
22045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22046
 
22047
  def __ne__(self, other):
22048
    return not (self == other)
22049
 
22050
class getEbayItem_result:
22051
  """
22052
  Attributes:
22053
   - success
22054
  """
22055
 
22056
  thrift_spec = (
22057
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
22058
  )
22059
 
22060
  def __init__(self, success=None,):
22061
    self.success = success
22062
 
22063
  def read(self, iprot):
22064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22066
      return
22067
    iprot.readStructBegin()
22068
    while True:
22069
      (fname, ftype, fid) = iprot.readFieldBegin()
22070
      if ftype == TType.STOP:
22071
        break
22072
      if fid == 0:
22073
        if ftype == TType.STRUCT:
22074
          self.success = EbayItem()
22075
          self.success.read(iprot)
22076
        else:
22077
          iprot.skip(ftype)
22078
      else:
22079
        iprot.skip(ftype)
22080
      iprot.readFieldEnd()
22081
    iprot.readStructEnd()
22082
 
22083
  def write(self, oprot):
22084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22086
      return
22087
    oprot.writeStructBegin('getEbayItem_result')
22088
    if self.success is not None:
22089
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22090
      self.success.write(oprot)
22091
      oprot.writeFieldEnd()
22092
    oprot.writeFieldStop()
22093
    oprot.writeStructEnd()
22094
 
22095
  def validate(self):
22096
    return
22097
 
22098
 
22099
  def __repr__(self):
22100
    L = ['%s=%r' % (key, value)
22101
      for key, value in self.__dict__.iteritems()]
22102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22103
 
22104
  def __eq__(self, other):
22105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22106
 
22107
  def __ne__(self, other):
22108
    return not (self == other)
22109
 
22110
class updateEbayItem_args:
22111
  """
22112
  Attributes:
22113
   - ebayItem
22114
  """
22115
 
22116
  thrift_spec = (
22117
    None, # 0
22118
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
22119
  )
22120
 
22121
  def __init__(self, ebayItem=None,):
22122
    self.ebayItem = ebayItem
22123
 
22124
  def read(self, iprot):
22125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22127
      return
22128
    iprot.readStructBegin()
22129
    while True:
22130
      (fname, ftype, fid) = iprot.readFieldBegin()
22131
      if ftype == TType.STOP:
22132
        break
22133
      if fid == 1:
22134
        if ftype == TType.STRUCT:
22135
          self.ebayItem = EbayItem()
22136
          self.ebayItem.read(iprot)
22137
        else:
22138
          iprot.skip(ftype)
22139
      else:
22140
        iprot.skip(ftype)
22141
      iprot.readFieldEnd()
22142
    iprot.readStructEnd()
22143
 
22144
  def write(self, oprot):
22145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22147
      return
22148
    oprot.writeStructBegin('updateEbayItem_args')
22149
    if self.ebayItem is not None:
22150
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
22151
      self.ebayItem.write(oprot)
22152
      oprot.writeFieldEnd()
22153
    oprot.writeFieldStop()
22154
    oprot.writeStructEnd()
22155
 
22156
  def validate(self):
22157
    return
22158
 
22159
 
22160
  def __repr__(self):
22161
    L = ['%s=%r' % (key, value)
22162
      for key, value in self.__dict__.iteritems()]
22163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22164
 
22165
  def __eq__(self, other):
22166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22167
 
22168
  def __ne__(self, other):
22169
    return not (self == other)
22170
 
22171
class updateEbayItem_result:
22172
 
22173
  thrift_spec = (
22174
  )
22175
 
22176
  def read(self, iprot):
22177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22179
      return
22180
    iprot.readStructBegin()
22181
    while True:
22182
      (fname, ftype, fid) = iprot.readFieldBegin()
22183
      if ftype == TType.STOP:
22184
        break
22185
      else:
22186
        iprot.skip(ftype)
22187
      iprot.readFieldEnd()
22188
    iprot.readStructEnd()
22189
 
22190
  def write(self, oprot):
22191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22193
      return
22194
    oprot.writeStructBegin('updateEbayItem_result')
22195
    oprot.writeFieldStop()
22196
    oprot.writeStructEnd()
22197
 
22198
  def validate(self):
22199
    return
22200
 
22201
 
22202
  def __repr__(self):
22203
    L = ['%s=%r' % (key, value)
22204
      for key, value in self.__dict__.iteritems()]
22205
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22206
 
22207
  def __eq__(self, other):
22208
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22209
 
22210
  def __ne__(self, other):
22211
    return not (self == other)
22212
 
8139 kshitij.so 22213
class getAmazonListedItems_args:
22214
  """
22215
  Attributes:
22216
   - offset
22217
   - limit
22218
  """
22219
 
22220
  thrift_spec = (
22221
    None, # 0
22222
    (1, TType.I64, 'offset', None, None, ), # 1
22223
    (2, TType.I64, 'limit', None, None, ), # 2
22224
  )
22225
 
22226
  def __init__(self, offset=None, limit=None,):
22227
    self.offset = offset
22228
    self.limit = limit
22229
 
22230
  def read(self, iprot):
22231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22233
      return
22234
    iprot.readStructBegin()
22235
    while True:
22236
      (fname, ftype, fid) = iprot.readFieldBegin()
22237
      if ftype == TType.STOP:
22238
        break
22239
      if fid == 1:
22240
        if ftype == TType.I64:
22241
          self.offset = iprot.readI64();
22242
        else:
22243
          iprot.skip(ftype)
22244
      elif fid == 2:
22245
        if ftype == TType.I64:
22246
          self.limit = iprot.readI64();
22247
        else:
22248
          iprot.skip(ftype)
22249
      else:
22250
        iprot.skip(ftype)
22251
      iprot.readFieldEnd()
22252
    iprot.readStructEnd()
22253
 
22254
  def write(self, oprot):
22255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22257
      return
22258
    oprot.writeStructBegin('getAmazonListedItems_args')
22259
    if self.offset is not None:
22260
      oprot.writeFieldBegin('offset', TType.I64, 1)
22261
      oprot.writeI64(self.offset)
22262
      oprot.writeFieldEnd()
22263
    if self.limit is not None:
22264
      oprot.writeFieldBegin('limit', TType.I64, 2)
22265
      oprot.writeI64(self.limit)
22266
      oprot.writeFieldEnd()
22267
    oprot.writeFieldStop()
22268
    oprot.writeStructEnd()
22269
 
22270
  def validate(self):
22271
    return
22272
 
22273
 
22274
  def __repr__(self):
22275
    L = ['%s=%r' % (key, value)
22276
      for key, value in self.__dict__.iteritems()]
22277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22278
 
22279
  def __eq__(self, other):
22280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22281
 
22282
  def __ne__(self, other):
22283
    return not (self == other)
22284
 
22285
class getAmazonListedItems_result:
22286
  """
22287
  Attributes:
22288
   - success
22289
  """
22290
 
22291
  thrift_spec = (
22292
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22293
  )
22294
 
22295
  def __init__(self, success=None,):
22296
    self.success = success
22297
 
22298
  def read(self, iprot):
22299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22301
      return
22302
    iprot.readStructBegin()
22303
    while True:
22304
      (fname, ftype, fid) = iprot.readFieldBegin()
22305
      if ftype == TType.STOP:
22306
        break
22307
      if fid == 0:
22308
        if ftype == TType.LIST:
22309
          self.success = []
9155 kshitij.so 22310
          (_etype477, _size474) = iprot.readListBegin()
22311
          for _i478 in xrange(_size474):
22312
            _elem479 = Amazonlisted()
22313
            _elem479.read(iprot)
22314
            self.success.append(_elem479)
8139 kshitij.so 22315
          iprot.readListEnd()
22316
        else:
22317
          iprot.skip(ftype)
22318
      else:
22319
        iprot.skip(ftype)
22320
      iprot.readFieldEnd()
22321
    iprot.readStructEnd()
22322
 
22323
  def write(self, oprot):
22324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22326
      return
22327
    oprot.writeStructBegin('getAmazonListedItems_result')
22328
    if self.success is not None:
22329
      oprot.writeFieldBegin('success', TType.LIST, 0)
22330
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22331
      for iter480 in self.success:
22332
        iter480.write(oprot)
8139 kshitij.so 22333
      oprot.writeListEnd()
22334
      oprot.writeFieldEnd()
22335
    oprot.writeFieldStop()
22336
    oprot.writeStructEnd()
22337
 
22338
  def validate(self):
22339
    return
22340
 
22341
 
22342
  def __repr__(self):
22343
    L = ['%s=%r' % (key, value)
22344
      for key, value in self.__dict__.iteritems()]
22345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22346
 
22347
  def __eq__(self, other):
22348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22349
 
22350
  def __ne__(self, other):
22351
    return not (self == other)
8168 kshitij.so 22352
 
22353
class updateAmazonAttributesInBulk_args:
22354
  """
22355
  Attributes:
22356
   - amazonlisted
22357
  """
22358
 
22359
  thrift_spec = (
22360
    None, # 0
22361
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
22362
  )
22363
 
22364
  def __init__(self, amazonlisted=None,):
22365
    self.amazonlisted = amazonlisted
22366
 
22367
  def read(self, iprot):
22368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22370
      return
22371
    iprot.readStructBegin()
22372
    while True:
22373
      (fname, ftype, fid) = iprot.readFieldBegin()
22374
      if ftype == TType.STOP:
22375
        break
22376
      if fid == 1:
22377
        if ftype == TType.MAP:
22378
          self.amazonlisted = {}
9155 kshitij.so 22379
          (_ktype482, _vtype483, _size481 ) = iprot.readMapBegin() 
22380
          for _i485 in xrange(_size481):
22381
            _key486 = iprot.readI64();
22382
            _val487 = Amazonlisted()
22383
            _val487.read(iprot)
22384
            self.amazonlisted[_key486] = _val487
8168 kshitij.so 22385
          iprot.readMapEnd()
22386
        else:
22387
          iprot.skip(ftype)
22388
      else:
22389
        iprot.skip(ftype)
22390
      iprot.readFieldEnd()
22391
    iprot.readStructEnd()
22392
 
22393
  def write(self, oprot):
22394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22396
      return
22397
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
22398
    if self.amazonlisted is not None:
22399
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
22400
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
9155 kshitij.so 22401
      for kiter488,viter489 in self.amazonlisted.items():
22402
        oprot.writeI64(kiter488)
22403
        viter489.write(oprot)
8168 kshitij.so 22404
      oprot.writeMapEnd()
22405
      oprot.writeFieldEnd()
22406
    oprot.writeFieldStop()
22407
    oprot.writeStructEnd()
22408
 
22409
  def validate(self):
22410
    return
22411
 
22412
 
22413
  def __repr__(self):
22414
    L = ['%s=%r' % (key, value)
22415
      for key, value in self.__dict__.iteritems()]
22416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22417
 
22418
  def __eq__(self, other):
22419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22420
 
22421
  def __ne__(self, other):
22422
    return not (self == other)
22423
 
22424
class updateAmazonAttributesInBulk_result:
22425
  """
22426
  Attributes:
22427
   - success
22428
  """
22429
 
22430
  thrift_spec = (
22431
    (0, TType.BOOL, 'success', None, None, ), # 0
22432
  )
22433
 
22434
  def __init__(self, success=None,):
22435
    self.success = success
22436
 
22437
  def read(self, iprot):
22438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22440
      return
22441
    iprot.readStructBegin()
22442
    while True:
22443
      (fname, ftype, fid) = iprot.readFieldBegin()
22444
      if ftype == TType.STOP:
22445
        break
22446
      if fid == 0:
22447
        if ftype == TType.BOOL:
22448
          self.success = iprot.readBool();
22449
        else:
22450
          iprot.skip(ftype)
22451
      else:
22452
        iprot.skip(ftype)
22453
      iprot.readFieldEnd()
22454
    iprot.readStructEnd()
22455
 
22456
  def write(self, oprot):
22457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22459
      return
22460
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
22461
    if self.success is not None:
22462
      oprot.writeFieldBegin('success', TType.BOOL, 0)
22463
      oprot.writeBool(self.success)
22464
      oprot.writeFieldEnd()
22465
    oprot.writeFieldStop()
22466
    oprot.writeStructEnd()
22467
 
22468
  def validate(self):
22469
    return
22470
 
22471
 
22472
  def __repr__(self):
22473
    L = ['%s=%r' % (key, value)
22474
      for key, value in self.__dict__.iteritems()]
22475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22476
 
22477
  def __eq__(self, other):
22478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22479
 
22480
  def __ne__(self, other):
22481
    return not (self == other)
8379 vikram.rag 22482
 
22483
class getAllItemstoListOnFba_args:
22484
 
22485
  thrift_spec = (
22486
  )
22487
 
22488
  def read(self, iprot):
22489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22491
      return
22492
    iprot.readStructBegin()
22493
    while True:
22494
      (fname, ftype, fid) = iprot.readFieldBegin()
22495
      if ftype == TType.STOP:
22496
        break
22497
      else:
22498
        iprot.skip(ftype)
22499
      iprot.readFieldEnd()
22500
    iprot.readStructEnd()
22501
 
22502
  def write(self, oprot):
22503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22505
      return
22506
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
22507
    oprot.writeFieldStop()
22508
    oprot.writeStructEnd()
22509
 
22510
  def validate(self):
22511
    return
22512
 
22513
 
22514
  def __repr__(self):
22515
    L = ['%s=%r' % (key, value)
22516
      for key, value in self.__dict__.iteritems()]
22517
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22518
 
22519
  def __eq__(self, other):
22520
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22521
 
22522
  def __ne__(self, other):
22523
    return not (self == other)
22524
 
22525
class getAllItemstoListOnFba_result:
22526
  """
22527
  Attributes:
22528
   - success
22529
  """
22530
 
22531
  thrift_spec = (
22532
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22533
  )
22534
 
22535
  def __init__(self, success=None,):
22536
    self.success = success
22537
 
22538
  def read(self, iprot):
22539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22541
      return
22542
    iprot.readStructBegin()
22543
    while True:
22544
      (fname, ftype, fid) = iprot.readFieldBegin()
22545
      if ftype == TType.STOP:
22546
        break
22547
      if fid == 0:
22548
        if ftype == TType.LIST:
22549
          self.success = []
9155 kshitij.so 22550
          (_etype493, _size490) = iprot.readListBegin()
22551
          for _i494 in xrange(_size490):
22552
            _elem495 = Amazonlisted()
22553
            _elem495.read(iprot)
22554
            self.success.append(_elem495)
8379 vikram.rag 22555
          iprot.readListEnd()
22556
        else:
22557
          iprot.skip(ftype)
22558
      else:
22559
        iprot.skip(ftype)
22560
      iprot.readFieldEnd()
22561
    iprot.readStructEnd()
22562
 
22563
  def write(self, oprot):
22564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22566
      return
22567
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
22568
    if self.success is not None:
22569
      oprot.writeFieldBegin('success', TType.LIST, 0)
22570
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22571
      for iter496 in self.success:
22572
        iter496.write(oprot)
8379 vikram.rag 22573
      oprot.writeListEnd()
22574
      oprot.writeFieldEnd()
22575
    oprot.writeFieldStop()
22576
    oprot.writeStructEnd()
22577
 
22578
  def validate(self):
22579
    return
22580
 
22581
 
22582
  def __repr__(self):
22583
    L = ['%s=%r' % (key, value)
22584
      for key, value in self.__dict__.iteritems()]
22585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22586
 
22587
  def __eq__(self, other):
22588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22589
 
22590
  def __ne__(self, other):
22591
    return not (self == other)
22592
 
22593
class getAllItemstoListOnNonFba_args:
22594
 
22595
  thrift_spec = (
22596
  )
22597
 
22598
  def read(self, iprot):
22599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22601
      return
22602
    iprot.readStructBegin()
22603
    while True:
22604
      (fname, ftype, fid) = iprot.readFieldBegin()
22605
      if ftype == TType.STOP:
22606
        break
22607
      else:
22608
        iprot.skip(ftype)
22609
      iprot.readFieldEnd()
22610
    iprot.readStructEnd()
22611
 
22612
  def write(self, oprot):
22613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22615
      return
22616
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
22617
    oprot.writeFieldStop()
22618
    oprot.writeStructEnd()
22619
 
22620
  def validate(self):
22621
    return
22622
 
22623
 
22624
  def __repr__(self):
22625
    L = ['%s=%r' % (key, value)
22626
      for key, value in self.__dict__.iteritems()]
22627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22628
 
22629
  def __eq__(self, other):
22630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22631
 
22632
  def __ne__(self, other):
22633
    return not (self == other)
22634
 
22635
class getAllItemstoListOnNonFba_result:
22636
  """
22637
  Attributes:
22638
   - success
22639
  """
22640
 
22641
  thrift_spec = (
22642
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22643
  )
22644
 
22645
  def __init__(self, success=None,):
22646
    self.success = success
22647
 
22648
  def read(self, iprot):
22649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22651
      return
22652
    iprot.readStructBegin()
22653
    while True:
22654
      (fname, ftype, fid) = iprot.readFieldBegin()
22655
      if ftype == TType.STOP:
22656
        break
22657
      if fid == 0:
22658
        if ftype == TType.LIST:
22659
          self.success = []
9155 kshitij.so 22660
          (_etype500, _size497) = iprot.readListBegin()
22661
          for _i501 in xrange(_size497):
22662
            _elem502 = Amazonlisted()
22663
            _elem502.read(iprot)
22664
            self.success.append(_elem502)
8379 vikram.rag 22665
          iprot.readListEnd()
22666
        else:
22667
          iprot.skip(ftype)
22668
      else:
22669
        iprot.skip(ftype)
22670
      iprot.readFieldEnd()
22671
    iprot.readStructEnd()
22672
 
22673
  def write(self, oprot):
22674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22676
      return
22677
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
22678
    if self.success is not None:
22679
      oprot.writeFieldBegin('success', TType.LIST, 0)
22680
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22681
      for iter503 in self.success:
22682
        iter503.write(oprot)
8379 vikram.rag 22683
      oprot.writeListEnd()
22684
      oprot.writeFieldEnd()
22685
    oprot.writeFieldStop()
22686
    oprot.writeStructEnd()
22687
 
22688
  def validate(self):
22689
    return
22690
 
22691
 
22692
  def __repr__(self):
22693
    L = ['%s=%r' % (key, value)
22694
      for key, value in self.__dict__.iteritems()]
22695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22696
 
22697
  def __eq__(self, other):
22698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22699
 
22700
  def __ne__(self, other):
22701
    return not (self == other)
8616 vikram.rag 22702
 
9242 kshitij.so 22703
class updateAsin_args:
22704
  """
22705
  Attributes:
22706
   - item
22707
  """
8616 vikram.rag 22708
 
22709
  thrift_spec = (
9242 kshitij.so 22710
    None, # 0
22711
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 22712
  )
22713
 
9242 kshitij.so 22714
  def __init__(self, item=None,):
22715
    self.item = item
22716
 
8616 vikram.rag 22717
  def read(self, iprot):
22718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22720
      return
22721
    iprot.readStructBegin()
22722
    while True:
22723
      (fname, ftype, fid) = iprot.readFieldBegin()
22724
      if ftype == TType.STOP:
22725
        break
9242 kshitij.so 22726
      if fid == 1:
22727
        if ftype == TType.MAP:
22728
          self.item = {}
22729
          (_ktype505, _vtype506, _size504 ) = iprot.readMapBegin() 
22730
          for _i508 in xrange(_size504):
22731
            _key509 = iprot.readI64();
22732
            _val510 = Item()
22733
            _val510.read(iprot)
22734
            self.item[_key509] = _val510
22735
          iprot.readMapEnd()
22736
        else:
22737
          iprot.skip(ftype)
8616 vikram.rag 22738
      else:
22739
        iprot.skip(ftype)
22740
      iprot.readFieldEnd()
22741
    iprot.readStructEnd()
22742
 
22743
  def write(self, oprot):
22744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22746
      return
9242 kshitij.so 22747
    oprot.writeStructBegin('updateAsin_args')
22748
    if self.item is not None:
22749
      oprot.writeFieldBegin('item', TType.MAP, 1)
22750
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
22751
      for kiter511,viter512 in self.item.items():
22752
        oprot.writeI64(kiter511)
22753
        viter512.write(oprot)
22754
      oprot.writeMapEnd()
22755
      oprot.writeFieldEnd()
8616 vikram.rag 22756
    oprot.writeFieldStop()
22757
    oprot.writeStructEnd()
22758
 
22759
  def validate(self):
22760
    return
22761
 
22762
 
22763
  def __repr__(self):
22764
    L = ['%s=%r' % (key, value)
22765
      for key, value in self.__dict__.iteritems()]
22766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22767
 
22768
  def __eq__(self, other):
22769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22770
 
22771
  def __ne__(self, other):
22772
    return not (self == other)
22773
 
9242 kshitij.so 22774
class updateAsin_result:
8616 vikram.rag 22775
 
22776
  thrift_spec = (
22777
  )
22778
 
22779
  def read(self, iprot):
22780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22782
      return
22783
    iprot.readStructBegin()
22784
    while True:
22785
      (fname, ftype, fid) = iprot.readFieldBegin()
22786
      if ftype == TType.STOP:
22787
        break
22788
      else:
22789
        iprot.skip(ftype)
22790
      iprot.readFieldEnd()
22791
    iprot.readStructEnd()
22792
 
22793
  def write(self, oprot):
22794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22796
      return
9242 kshitij.so 22797
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 22798
    oprot.writeFieldStop()
22799
    oprot.writeStructEnd()
22800
 
22801
  def validate(self):
22802
    return
22803
 
22804
 
22805
  def __repr__(self):
22806
    L = ['%s=%r' % (key, value)
22807
      for key, value in self.__dict__.iteritems()]
22808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22809
 
22810
  def __eq__(self, other):
22811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22812
 
22813
  def __ne__(self, other):
22814
    return not (self == other)
8619 kshitij.so 22815
 
9242 kshitij.so 22816
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 22817
  """
22818
  Attributes:
9242 kshitij.so 22819
   - snapdealitem
8619 kshitij.so 22820
  """
22821
 
9242 kshitij.so 22822
  thrift_spec = None
22823
  def __init__(self, snapdealitem=None,):
22824
    self.snapdealitem = snapdealitem
8619 kshitij.so 22825
 
22826
  def read(self, iprot):
22827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22829
      return
22830
    iprot.readStructBegin()
22831
    while True:
22832
      (fname, ftype, fid) = iprot.readFieldBegin()
22833
      if ftype == TType.STOP:
22834
        break
9242 kshitij.so 22835
      if fid == -1:
22836
        if ftype == TType.STRUCT:
22837
          self.snapdealitem = SnapdealItem()
22838
          self.snapdealitem.read(iprot)
8619 kshitij.so 22839
        else:
22840
          iprot.skip(ftype)
22841
      else:
22842
        iprot.skip(ftype)
22843
      iprot.readFieldEnd()
22844
    iprot.readStructEnd()
22845
 
22846
  def write(self, oprot):
22847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22849
      return
9242 kshitij.so 22850
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
22851
    if self.snapdealitem is not None:
22852
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
22853
      self.snapdealitem.write(oprot)
8619 kshitij.so 22854
      oprot.writeFieldEnd()
22855
    oprot.writeFieldStop()
22856
    oprot.writeStructEnd()
22857
 
22858
  def validate(self):
22859
    return
22860
 
22861
 
22862
  def __repr__(self):
22863
    L = ['%s=%r' % (key, value)
22864
      for key, value in self.__dict__.iteritems()]
22865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22866
 
22867
  def __eq__(self, other):
22868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22869
 
22870
  def __ne__(self, other):
22871
    return not (self == other)
22872
 
9242 kshitij.so 22873
class addOrUpdateSnapdealItem_result:
22874
  """
22875
  Attributes:
22876
   - success
22877
  """
8619 kshitij.so 22878
 
22879
  thrift_spec = (
9242 kshitij.so 22880
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 22881
  )
22882
 
9242 kshitij.so 22883
  def __init__(self, success=None,):
22884
    self.success = success
22885
 
8619 kshitij.so 22886
  def read(self, iprot):
22887
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22888
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22889
      return
22890
    iprot.readStructBegin()
22891
    while True:
22892
      (fname, ftype, fid) = iprot.readFieldBegin()
22893
      if ftype == TType.STOP:
22894
        break
9242 kshitij.so 22895
      if fid == 0:
22896
        if ftype == TType.BOOL:
22897
          self.success = iprot.readBool();
22898
        else:
22899
          iprot.skip(ftype)
8619 kshitij.so 22900
      else:
22901
        iprot.skip(ftype)
22902
      iprot.readFieldEnd()
22903
    iprot.readStructEnd()
22904
 
22905
  def write(self, oprot):
22906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22908
      return
9242 kshitij.so 22909
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
22910
    if self.success is not None:
22911
      oprot.writeFieldBegin('success', TType.BOOL, 0)
22912
      oprot.writeBool(self.success)
22913
      oprot.writeFieldEnd()
8619 kshitij.so 22914
    oprot.writeFieldStop()
22915
    oprot.writeStructEnd()
22916
 
22917
  def validate(self):
22918
    return
22919
 
22920
 
22921
  def __repr__(self):
22922
    L = ['%s=%r' % (key, value)
22923
      for key, value in self.__dict__.iteritems()]
22924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22925
 
22926
  def __eq__(self, other):
22927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22928
 
22929
  def __ne__(self, other):
22930
    return not (self == other)
8739 vikram.rag 22931
 
9242 kshitij.so 22932
class getSnapdealItem_args:
8739 vikram.rag 22933
  """
22934
  Attributes:
9242 kshitij.so 22935
   - item_id
8739 vikram.rag 22936
  """
22937
 
9242 kshitij.so 22938
  thrift_spec = (
22939
    None, # 0
22940
    (1, TType.I64, 'item_id', None, None, ), # 1
22941
  )
8739 vikram.rag 22942
 
9242 kshitij.so 22943
  def __init__(self, item_id=None,):
22944
    self.item_id = item_id
22945
 
8739 vikram.rag 22946
  def read(self, iprot):
22947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22949
      return
22950
    iprot.readStructBegin()
22951
    while True:
22952
      (fname, ftype, fid) = iprot.readFieldBegin()
22953
      if ftype == TType.STOP:
22954
        break
9242 kshitij.so 22955
      if fid == 1:
22956
        if ftype == TType.I64:
22957
          self.item_id = iprot.readI64();
8739 vikram.rag 22958
        else:
22959
          iprot.skip(ftype)
22960
      else:
22961
        iprot.skip(ftype)
22962
      iprot.readFieldEnd()
22963
    iprot.readStructEnd()
22964
 
22965
  def write(self, oprot):
22966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22968
      return
9242 kshitij.so 22969
    oprot.writeStructBegin('getSnapdealItem_args')
22970
    if self.item_id is not None:
22971
      oprot.writeFieldBegin('item_id', TType.I64, 1)
22972
      oprot.writeI64(self.item_id)
8739 vikram.rag 22973
      oprot.writeFieldEnd()
22974
    oprot.writeFieldStop()
22975
    oprot.writeStructEnd()
22976
 
22977
  def validate(self):
22978
    return
22979
 
22980
 
22981
  def __repr__(self):
22982
    L = ['%s=%r' % (key, value)
22983
      for key, value in self.__dict__.iteritems()]
22984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22985
 
22986
  def __eq__(self, other):
22987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22988
 
22989
  def __ne__(self, other):
22990
    return not (self == other)
22991
 
9242 kshitij.so 22992
class getSnapdealItem_result:
8739 vikram.rag 22993
  """
22994
  Attributes:
22995
   - success
22996
  """
22997
 
22998
  thrift_spec = (
9242 kshitij.so 22999
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 23000
  )
23001
 
23002
  def __init__(self, success=None,):
23003
    self.success = success
23004
 
23005
  def read(self, iprot):
23006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23008
      return
23009
    iprot.readStructBegin()
23010
    while True:
23011
      (fname, ftype, fid) = iprot.readFieldBegin()
23012
      if ftype == TType.STOP:
23013
        break
23014
      if fid == 0:
9242 kshitij.so 23015
        if ftype == TType.STRUCT:
23016
          self.success = SnapdealItem()
23017
          self.success.read(iprot)
8739 vikram.rag 23018
        else:
23019
          iprot.skip(ftype)
23020
      else:
23021
        iprot.skip(ftype)
23022
      iprot.readFieldEnd()
23023
    iprot.readStructEnd()
23024
 
23025
  def write(self, oprot):
23026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23028
      return
9242 kshitij.so 23029
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 23030
    if self.success is not None:
9242 kshitij.so 23031
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23032
      self.success.write(oprot)
8739 vikram.rag 23033
      oprot.writeFieldEnd()
23034
    oprot.writeFieldStop()
23035
    oprot.writeStructEnd()
23036
 
23037
  def validate(self):
23038
    return
23039
 
23040
 
23041
  def __repr__(self):
23042
    L = ['%s=%r' % (key, value)
23043
      for key, value in self.__dict__.iteritems()]
23044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23045
 
23046
  def __eq__(self, other):
23047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23048
 
23049
  def __ne__(self, other):
23050
    return not (self == other)
23051
 
9242 kshitij.so 23052
class getSnapdealItemDetails_args:
8739 vikram.rag 23053
  """
23054
  Attributes:
23055
   - item_id
23056
  """
23057
 
23058
  thrift_spec = (
23059
    None, # 0
23060
    (1, TType.I64, 'item_id', None, None, ), # 1
23061
  )
23062
 
23063
  def __init__(self, item_id=None,):
23064
    self.item_id = item_id
23065
 
23066
  def read(self, iprot):
23067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23069
      return
23070
    iprot.readStructBegin()
23071
    while True:
23072
      (fname, ftype, fid) = iprot.readFieldBegin()
23073
      if ftype == TType.STOP:
23074
        break
23075
      if fid == 1:
23076
        if ftype == TType.I64:
23077
          self.item_id = iprot.readI64();
23078
        else:
23079
          iprot.skip(ftype)
23080
      else:
23081
        iprot.skip(ftype)
23082
      iprot.readFieldEnd()
23083
    iprot.readStructEnd()
23084
 
23085
  def write(self, oprot):
23086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23088
      return
9242 kshitij.so 23089
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 23090
    if self.item_id is not None:
23091
      oprot.writeFieldBegin('item_id', TType.I64, 1)
23092
      oprot.writeI64(self.item_id)
23093
      oprot.writeFieldEnd()
23094
    oprot.writeFieldStop()
23095
    oprot.writeStructEnd()
23096
 
23097
  def validate(self):
23098
    return
23099
 
23100
 
23101
  def __repr__(self):
23102
    L = ['%s=%r' % (key, value)
23103
      for key, value in self.__dict__.iteritems()]
23104
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23105
 
23106
  def __eq__(self, other):
23107
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23108
 
23109
  def __ne__(self, other):
23110
    return not (self == other)
23111
 
9242 kshitij.so 23112
class getSnapdealItemDetails_result:
8739 vikram.rag 23113
  """
23114
  Attributes:
23115
   - success
23116
  """
23117
 
23118
  thrift_spec = (
9242 kshitij.so 23119
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 23120
  )
23121
 
23122
  def __init__(self, success=None,):
23123
    self.success = success
23124
 
23125
  def read(self, iprot):
23126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23128
      return
23129
    iprot.readStructBegin()
23130
    while True:
23131
      (fname, ftype, fid) = iprot.readFieldBegin()
23132
      if ftype == TType.STOP:
23133
        break
23134
      if fid == 0:
23135
        if ftype == TType.STRUCT:
9242 kshitij.so 23136
          self.success = SnapdealItemDetails()
8739 vikram.rag 23137
          self.success.read(iprot)
23138
        else:
23139
          iprot.skip(ftype)
23140
      else:
23141
        iprot.skip(ftype)
23142
      iprot.readFieldEnd()
23143
    iprot.readStructEnd()
23144
 
23145
  def write(self, oprot):
23146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23148
      return
9242 kshitij.so 23149
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 23150
    if self.success is not None:
23151
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23152
      self.success.write(oprot)
23153
      oprot.writeFieldEnd()
23154
    oprot.writeFieldStop()
23155
    oprot.writeStructEnd()
23156
 
23157
  def validate(self):
23158
    return
23159
 
23160
 
23161
  def __repr__(self):
23162
    L = ['%s=%r' % (key, value)
23163
      for key, value in self.__dict__.iteritems()]
23164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23165
 
23166
  def __eq__(self, other):
23167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23168
 
23169
  def __ne__(self, other):
23170
    return not (self == other)
23171
 
23172
class getAllSnapdealItems_args:
23173
 
23174
  thrift_spec = (
23175
  )
23176
 
23177
  def read(self, iprot):
23178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23180
      return
23181
    iprot.readStructBegin()
23182
    while True:
23183
      (fname, ftype, fid) = iprot.readFieldBegin()
23184
      if ftype == TType.STOP:
23185
        break
23186
      else:
23187
        iprot.skip(ftype)
23188
      iprot.readFieldEnd()
23189
    iprot.readStructEnd()
23190
 
23191
  def write(self, oprot):
23192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23194
      return
23195
    oprot.writeStructBegin('getAllSnapdealItems_args')
23196
    oprot.writeFieldStop()
23197
    oprot.writeStructEnd()
23198
 
23199
  def validate(self):
23200
    return
23201
 
23202
 
23203
  def __repr__(self):
23204
    L = ['%s=%r' % (key, value)
23205
      for key, value in self.__dict__.iteritems()]
23206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23207
 
23208
  def __eq__(self, other):
23209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23210
 
23211
  def __ne__(self, other):
23212
    return not (self == other)
23213
 
23214
class getAllSnapdealItems_result:
23215
  """
23216
  Attributes:
23217
   - success
23218
  """
23219
 
23220
  thrift_spec = (
9242 kshitij.so 23221
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 23222
  )
23223
 
23224
  def __init__(self, success=None,):
23225
    self.success = success
23226
 
23227
  def read(self, iprot):
23228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23230
      return
23231
    iprot.readStructBegin()
23232
    while True:
23233
      (fname, ftype, fid) = iprot.readFieldBegin()
23234
      if ftype == TType.STOP:
23235
        break
23236
      if fid == 0:
23237
        if ftype == TType.LIST:
23238
          self.success = []
9242 kshitij.so 23239
          (_etype516, _size513) = iprot.readListBegin()
23240
          for _i517 in xrange(_size513):
23241
            _elem518 = SnapdealItemDetails()
23242
            _elem518.read(iprot)
23243
            self.success.append(_elem518)
23244
          iprot.readListEnd()
23245
        else:
23246
          iprot.skip(ftype)
23247
      else:
23248
        iprot.skip(ftype)
23249
      iprot.readFieldEnd()
23250
    iprot.readStructEnd()
23251
 
23252
  def write(self, oprot):
23253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23255
      return
23256
    oprot.writeStructBegin('getAllSnapdealItems_result')
23257
    if self.success is not None:
23258
      oprot.writeFieldBegin('success', TType.LIST, 0)
23259
      oprot.writeListBegin(TType.STRUCT, len(self.success))
23260
      for iter519 in self.success:
23261
        iter519.write(oprot)
23262
      oprot.writeListEnd()
23263
      oprot.writeFieldEnd()
23264
    oprot.writeFieldStop()
23265
    oprot.writeStructEnd()
23266
 
23267
  def validate(self):
23268
    return
23269
 
23270
 
23271
  def __repr__(self):
23272
    L = ['%s=%r' % (key, value)
23273
      for key, value in self.__dict__.iteritems()]
23274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23275
 
23276
  def __eq__(self, other):
23277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23278
 
23279
  def __ne__(self, other):
23280
    return not (self == other)
23281
 
23282
class getSnapdealItems_args:
23283
  """
23284
  Attributes:
23285
   - offset
23286
   - limit
23287
  """
23288
 
23289
  thrift_spec = (
23290
    None, # 0
23291
    (1, TType.I64, 'offset', None, None, ), # 1
23292
    (2, TType.I64, 'limit', None, None, ), # 2
23293
  )
23294
 
23295
  def __init__(self, offset=None, limit=None,):
23296
    self.offset = offset
23297
    self.limit = limit
23298
 
23299
  def read(self, iprot):
23300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23302
      return
23303
    iprot.readStructBegin()
23304
    while True:
23305
      (fname, ftype, fid) = iprot.readFieldBegin()
23306
      if ftype == TType.STOP:
23307
        break
23308
      if fid == 1:
23309
        if ftype == TType.I64:
23310
          self.offset = iprot.readI64();
23311
        else:
23312
          iprot.skip(ftype)
23313
      elif fid == 2:
23314
        if ftype == TType.I64:
23315
          self.limit = iprot.readI64();
23316
        else:
23317
          iprot.skip(ftype)
23318
      else:
23319
        iprot.skip(ftype)
23320
      iprot.readFieldEnd()
23321
    iprot.readStructEnd()
23322
 
23323
  def write(self, oprot):
23324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23326
      return
23327
    oprot.writeStructBegin('getSnapdealItems_args')
23328
    if self.offset is not None:
23329
      oprot.writeFieldBegin('offset', TType.I64, 1)
23330
      oprot.writeI64(self.offset)
23331
      oprot.writeFieldEnd()
23332
    if self.limit is not None:
23333
      oprot.writeFieldBegin('limit', TType.I64, 2)
23334
      oprot.writeI64(self.limit)
23335
      oprot.writeFieldEnd()
23336
    oprot.writeFieldStop()
23337
    oprot.writeStructEnd()
23338
 
23339
  def validate(self):
23340
    return
23341
 
23342
 
23343
  def __repr__(self):
23344
    L = ['%s=%r' % (key, value)
23345
      for key, value in self.__dict__.iteritems()]
23346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23347
 
23348
  def __eq__(self, other):
23349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23350
 
23351
  def __ne__(self, other):
23352
    return not (self == other)
23353
 
23354
class getSnapdealItems_result:
23355
  """
23356
  Attributes:
23357
   - success
23358
  """
23359
 
23360
  thrift_spec = (
23361
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
23362
  )
23363
 
23364
  def __init__(self, success=None,):
23365
    self.success = success
23366
 
23367
  def read(self, iprot):
23368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23370
      return
23371
    iprot.readStructBegin()
23372
    while True:
23373
      (fname, ftype, fid) = iprot.readFieldBegin()
23374
      if ftype == TType.STOP:
23375
        break
23376
      if fid == 0:
23377
        if ftype == TType.LIST:
23378
          self.success = []
9155 kshitij.so 23379
          (_etype523, _size520) = iprot.readListBegin()
23380
          for _i524 in xrange(_size520):
9242 kshitij.so 23381
            _elem525 = SnapdealItemDetails()
9155 kshitij.so 23382
            _elem525.read(iprot)
23383
            self.success.append(_elem525)
8739 vikram.rag 23384
          iprot.readListEnd()
23385
        else:
23386
          iprot.skip(ftype)
23387
      else:
23388
        iprot.skip(ftype)
23389
      iprot.readFieldEnd()
23390
    iprot.readStructEnd()
23391
 
23392
  def write(self, oprot):
23393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23395
      return
9242 kshitij.so 23396
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 23397
    if self.success is not None:
23398
      oprot.writeFieldBegin('success', TType.LIST, 0)
23399
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 23400
      for iter526 in self.success:
23401
        iter526.write(oprot)
8739 vikram.rag 23402
      oprot.writeListEnd()
23403
      oprot.writeFieldEnd()
23404
    oprot.writeFieldStop()
23405
    oprot.writeStructEnd()
23406
 
23407
  def validate(self):
23408
    return
23409
 
23410
 
23411
  def __repr__(self):
23412
    L = ['%s=%r' % (key, value)
23413
      for key, value in self.__dict__.iteritems()]
23414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23415
 
23416
  def __eq__(self, other):
23417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23418
 
23419
  def __ne__(self, other):
23420
    return not (self == other)
9242 kshitij.so 23421
 
23422
class searchSnapdealItems_args:
23423
  """
23424
  Attributes:
23425
   - searchTerm
23426
   - offset
23427
   - limit
23428
  """
23429
 
23430
  thrift_spec = (
23431
    None, # 0
23432
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
23433
    (2, TType.I64, 'offset', None, None, ), # 2
23434
    (3, TType.I64, 'limit', None, None, ), # 3
23435
  )
23436
 
23437
  def __init__(self, searchTerm=None, offset=None, limit=None,):
23438
    self.searchTerm = searchTerm
23439
    self.offset = offset
23440
    self.limit = limit
23441
 
23442
  def read(self, iprot):
23443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23445
      return
23446
    iprot.readStructBegin()
23447
    while True:
23448
      (fname, ftype, fid) = iprot.readFieldBegin()
23449
      if ftype == TType.STOP:
23450
        break
23451
      if fid == 1:
23452
        if ftype == TType.LIST:
23453
          self.searchTerm = []
23454
          (_etype530, _size527) = iprot.readListBegin()
23455
          for _i531 in xrange(_size527):
23456
            _elem532 = iprot.readString();
23457
            self.searchTerm.append(_elem532)
23458
          iprot.readListEnd()
23459
        else:
23460
          iprot.skip(ftype)
23461
      elif fid == 2:
23462
        if ftype == TType.I64:
23463
          self.offset = iprot.readI64();
23464
        else:
23465
          iprot.skip(ftype)
23466
      elif fid == 3:
23467
        if ftype == TType.I64:
23468
          self.limit = iprot.readI64();
23469
        else:
23470
          iprot.skip(ftype)
23471
      else:
23472
        iprot.skip(ftype)
23473
      iprot.readFieldEnd()
23474
    iprot.readStructEnd()
23475
 
23476
  def write(self, oprot):
23477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23479
      return
23480
    oprot.writeStructBegin('searchSnapdealItems_args')
23481
    if self.searchTerm is not None:
23482
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
23483
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
23484
      for iter533 in self.searchTerm:
23485
        oprot.writeString(iter533)
23486
      oprot.writeListEnd()
23487
      oprot.writeFieldEnd()
23488
    if self.offset is not None:
23489
      oprot.writeFieldBegin('offset', TType.I64, 2)
23490
      oprot.writeI64(self.offset)
23491
      oprot.writeFieldEnd()
23492
    if self.limit is not None:
23493
      oprot.writeFieldBegin('limit', TType.I64, 3)
23494
      oprot.writeI64(self.limit)
23495
      oprot.writeFieldEnd()
23496
    oprot.writeFieldStop()
23497
    oprot.writeStructEnd()
23498
 
23499
  def validate(self):
23500
    return
23501
 
23502
 
23503
  def __repr__(self):
23504
    L = ['%s=%r' % (key, value)
23505
      for key, value in self.__dict__.iteritems()]
23506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23507
 
23508
  def __eq__(self, other):
23509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23510
 
23511
  def __ne__(self, other):
23512
    return not (self == other)
23513
 
23514
class searchSnapdealItems_result:
23515
  """
23516
  Attributes:
23517
   - success
23518
  """
23519
 
23520
  thrift_spec = (
23521
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
23522
  )
23523
 
23524
  def __init__(self, success=None,):
23525
    self.success = success
23526
 
23527
  def read(self, iprot):
23528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23530
      return
23531
    iprot.readStructBegin()
23532
    while True:
23533
      (fname, ftype, fid) = iprot.readFieldBegin()
23534
      if ftype == TType.STOP:
23535
        break
23536
      if fid == 0:
23537
        if ftype == TType.LIST:
23538
          self.success = []
23539
          (_etype537, _size534) = iprot.readListBegin()
23540
          for _i538 in xrange(_size534):
23541
            _elem539 = SnapdealItemDetails()
23542
            _elem539.read(iprot)
23543
            self.success.append(_elem539)
23544
          iprot.readListEnd()
23545
        else:
23546
          iprot.skip(ftype)
23547
      else:
23548
        iprot.skip(ftype)
23549
      iprot.readFieldEnd()
23550
    iprot.readStructEnd()
23551
 
23552
  def write(self, oprot):
23553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23555
      return
23556
    oprot.writeStructBegin('searchSnapdealItems_result')
23557
    if self.success is not None:
23558
      oprot.writeFieldBegin('success', TType.LIST, 0)
23559
      oprot.writeListBegin(TType.STRUCT, len(self.success))
23560
      for iter540 in self.success:
23561
        iter540.write(oprot)
23562
      oprot.writeListEnd()
23563
      oprot.writeFieldEnd()
23564
    oprot.writeFieldStop()
23565
    oprot.writeStructEnd()
23566
 
23567
  def validate(self):
23568
    return
23569
 
23570
 
23571
  def __repr__(self):
23572
    L = ['%s=%r' % (key, value)
23573
      for key, value in self.__dict__.iteritems()]
23574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23575
 
23576
  def __eq__(self, other):
23577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23578
 
23579
  def __ne__(self, other):
23580
    return not (self == other)
23581
 
23582
class getCountForSnapdealItems_args:
23583
 
23584
  thrift_spec = (
23585
  )
23586
 
23587
  def read(self, iprot):
23588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23590
      return
23591
    iprot.readStructBegin()
23592
    while True:
23593
      (fname, ftype, fid) = iprot.readFieldBegin()
23594
      if ftype == TType.STOP:
23595
        break
23596
      else:
23597
        iprot.skip(ftype)
23598
      iprot.readFieldEnd()
23599
    iprot.readStructEnd()
23600
 
23601
  def write(self, oprot):
23602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23604
      return
23605
    oprot.writeStructBegin('getCountForSnapdealItems_args')
23606
    oprot.writeFieldStop()
23607
    oprot.writeStructEnd()
23608
 
23609
  def validate(self):
23610
    return
23611
 
23612
 
23613
  def __repr__(self):
23614
    L = ['%s=%r' % (key, value)
23615
      for key, value in self.__dict__.iteritems()]
23616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23617
 
23618
  def __eq__(self, other):
23619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23620
 
23621
  def __ne__(self, other):
23622
    return not (self == other)
23623
 
23624
class getCountForSnapdealItems_result:
23625
  """
23626
  Attributes:
23627
   - success
23628
  """
23629
 
23630
  thrift_spec = (
23631
    (0, TType.I64, 'success', None, None, ), # 0
23632
  )
23633
 
23634
  def __init__(self, success=None,):
23635
    self.success = success
23636
 
23637
  def read(self, iprot):
23638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23640
      return
23641
    iprot.readStructBegin()
23642
    while True:
23643
      (fname, ftype, fid) = iprot.readFieldBegin()
23644
      if ftype == TType.STOP:
23645
        break
23646
      if fid == 0:
23647
        if ftype == TType.I64:
23648
          self.success = iprot.readI64();
23649
        else:
23650
          iprot.skip(ftype)
23651
      else:
23652
        iprot.skip(ftype)
23653
      iprot.readFieldEnd()
23654
    iprot.readStructEnd()
23655
 
23656
  def write(self, oprot):
23657
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23658
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23659
      return
23660
    oprot.writeStructBegin('getCountForSnapdealItems_result')
23661
    if self.success is not None:
23662
      oprot.writeFieldBegin('success', TType.I64, 0)
23663
      oprot.writeI64(self.success)
23664
      oprot.writeFieldEnd()
23665
    oprot.writeFieldStop()
23666
    oprot.writeStructEnd()
23667
 
23668
  def validate(self):
23669
    return
23670
 
23671
 
23672
  def __repr__(self):
23673
    L = ['%s=%r' % (key, value)
23674
      for key, value in self.__dict__.iteritems()]
23675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23676
 
23677
  def __eq__(self, other):
23678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23679
 
23680
  def __ne__(self, other):
23681
    return not (self == other)
23682
 
23683
class getSnapdealSearchResultCount_args:
23684
  """
23685
  Attributes:
23686
   - searchTerm
23687
  """
23688
 
23689
  thrift_spec = (
23690
    None, # 0
23691
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
23692
  )
23693
 
23694
  def __init__(self, searchTerm=None,):
23695
    self.searchTerm = searchTerm
23696
 
23697
  def read(self, iprot):
23698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23700
      return
23701
    iprot.readStructBegin()
23702
    while True:
23703
      (fname, ftype, fid) = iprot.readFieldBegin()
23704
      if ftype == TType.STOP:
23705
        break
23706
      if fid == 1:
23707
        if ftype == TType.LIST:
23708
          self.searchTerm = []
23709
          (_etype544, _size541) = iprot.readListBegin()
23710
          for _i545 in xrange(_size541):
23711
            _elem546 = iprot.readString();
23712
            self.searchTerm.append(_elem546)
23713
          iprot.readListEnd()
23714
        else:
23715
          iprot.skip(ftype)
23716
      else:
23717
        iprot.skip(ftype)
23718
      iprot.readFieldEnd()
23719
    iprot.readStructEnd()
23720
 
23721
  def write(self, oprot):
23722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23724
      return
23725
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
23726
    if self.searchTerm is not None:
23727
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
23728
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
23729
      for iter547 in self.searchTerm:
23730
        oprot.writeString(iter547)
23731
      oprot.writeListEnd()
23732
      oprot.writeFieldEnd()
23733
    oprot.writeFieldStop()
23734
    oprot.writeStructEnd()
23735
 
23736
  def validate(self):
23737
    return
23738
 
23739
 
23740
  def __repr__(self):
23741
    L = ['%s=%r' % (key, value)
23742
      for key, value in self.__dict__.iteritems()]
23743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23744
 
23745
  def __eq__(self, other):
23746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23747
 
23748
  def __ne__(self, other):
23749
    return not (self == other)
23750
 
23751
class getSnapdealSearchResultCount_result:
23752
  """
23753
  Attributes:
23754
   - success
23755
  """
23756
 
23757
  thrift_spec = (
23758
    (0, TType.I64, 'success', None, None, ), # 0
23759
  )
23760
 
23761
  def __init__(self, success=None,):
23762
    self.success = success
23763
 
23764
  def read(self, iprot):
23765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23767
      return
23768
    iprot.readStructBegin()
23769
    while True:
23770
      (fname, ftype, fid) = iprot.readFieldBegin()
23771
      if ftype == TType.STOP:
23772
        break
23773
      if fid == 0:
23774
        if ftype == TType.I64:
23775
          self.success = iprot.readI64();
23776
        else:
23777
          iprot.skip(ftype)
23778
      else:
23779
        iprot.skip(ftype)
23780
      iprot.readFieldEnd()
23781
    iprot.readStructEnd()
23782
 
23783
  def write(self, oprot):
23784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23786
      return
23787
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
23788
    if self.success is not None:
23789
      oprot.writeFieldBegin('success', TType.I64, 0)
23790
      oprot.writeI64(self.success)
23791
      oprot.writeFieldEnd()
23792
    oprot.writeFieldStop()
23793
    oprot.writeStructEnd()
23794
 
23795
  def validate(self):
23796
    return
23797
 
23798
 
23799
  def __repr__(self):
23800
    L = ['%s=%r' % (key, value)
23801
      for key, value in self.__dict__.iteritems()]
23802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23803
 
23804
  def __eq__(self, other):
23805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23806
 
23807
  def __ne__(self, other):
23808
    return not (self == other)
9299 kshitij.so 23809
 
23810
class getPrefferedInsurerForItem_args:
23811
  """
23812
  Attributes:
23813
   - itemId
23814
   - insurerType
23815
  """
23816
 
23817
  thrift_spec = (
23818
    None, # 0
23819
    (1, TType.I64, 'itemId', None, None, ), # 1
23820
    (2, TType.I32, 'insurerType', None, None, ), # 2
23821
  )
23822
 
23823
  def __init__(self, itemId=None, insurerType=None,):
23824
    self.itemId = itemId
23825
    self.insurerType = insurerType
23826
 
23827
  def read(self, iprot):
23828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23830
      return
23831
    iprot.readStructBegin()
23832
    while True:
23833
      (fname, ftype, fid) = iprot.readFieldBegin()
23834
      if ftype == TType.STOP:
23835
        break
23836
      if fid == 1:
23837
        if ftype == TType.I64:
23838
          self.itemId = iprot.readI64();
23839
        else:
23840
          iprot.skip(ftype)
23841
      elif fid == 2:
23842
        if ftype == TType.I32:
23843
          self.insurerType = iprot.readI32();
23844
        else:
23845
          iprot.skip(ftype)
23846
      else:
23847
        iprot.skip(ftype)
23848
      iprot.readFieldEnd()
23849
    iprot.readStructEnd()
23850
 
23851
  def write(self, oprot):
23852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23854
      return
23855
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
23856
    if self.itemId is not None:
23857
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23858
      oprot.writeI64(self.itemId)
23859
      oprot.writeFieldEnd()
23860
    if self.insurerType is not None:
23861
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
23862
      oprot.writeI32(self.insurerType)
23863
      oprot.writeFieldEnd()
23864
    oprot.writeFieldStop()
23865
    oprot.writeStructEnd()
23866
 
23867
  def validate(self):
23868
    return
23869
 
23870
 
23871
  def __repr__(self):
23872
    L = ['%s=%r' % (key, value)
23873
      for key, value in self.__dict__.iteritems()]
23874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23875
 
23876
  def __eq__(self, other):
23877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23878
 
23879
  def __ne__(self, other):
23880
    return not (self == other)
23881
 
23882
class getPrefferedInsurerForItem_result:
23883
  """
23884
  Attributes:
23885
   - success
23886
  """
23887
 
23888
  thrift_spec = (
23889
    (0, TType.I64, 'success', None, None, ), # 0
23890
  )
23891
 
23892
  def __init__(self, success=None,):
23893
    self.success = success
23894
 
23895
  def read(self, iprot):
23896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23898
      return
23899
    iprot.readStructBegin()
23900
    while True:
23901
      (fname, ftype, fid) = iprot.readFieldBegin()
23902
      if ftype == TType.STOP:
23903
        break
23904
      if fid == 0:
23905
        if ftype == TType.I64:
23906
          self.success = iprot.readI64();
23907
        else:
23908
          iprot.skip(ftype)
23909
      else:
23910
        iprot.skip(ftype)
23911
      iprot.readFieldEnd()
23912
    iprot.readStructEnd()
23913
 
23914
  def write(self, oprot):
23915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23917
      return
23918
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
23919
    if self.success is not None:
23920
      oprot.writeFieldBegin('success', TType.I64, 0)
23921
      oprot.writeI64(self.success)
23922
      oprot.writeFieldEnd()
23923
    oprot.writeFieldStop()
23924
    oprot.writeStructEnd()
23925
 
23926
  def validate(self):
23927
    return
23928
 
23929
 
23930
  def __repr__(self):
23931
    L = ['%s=%r' % (key, value)
23932
      for key, value in self.__dict__.iteritems()]
23933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23934
 
23935
  def __eq__(self, other):
23936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23937
 
23938
  def __ne__(self, other):
23939
    return not (self == other)
9456 vikram.rag 23940
 
23941
class getSnapdealItembySkuAtSnapdeal_args:
23942
  """
23943
  Attributes:
23944
   - skuAtSnapdeal
23945
  """
23946
 
23947
  thrift_spec = None
23948
  def __init__(self, skuAtSnapdeal=None,):
23949
    self.skuAtSnapdeal = skuAtSnapdeal
23950
 
23951
  def read(self, iprot):
23952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23954
      return
23955
    iprot.readStructBegin()
23956
    while True:
23957
      (fname, ftype, fid) = iprot.readFieldBegin()
23958
      if ftype == TType.STOP:
23959
        break
23960
      if fid == -1:
23961
        if ftype == TType.STRING:
23962
          self.skuAtSnapdeal = iprot.readString();
23963
        else:
23964
          iprot.skip(ftype)
23965
      else:
23966
        iprot.skip(ftype)
23967
      iprot.readFieldEnd()
23968
    iprot.readStructEnd()
23969
 
23970
  def write(self, oprot):
23971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23973
      return
23974
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
23975
    if self.skuAtSnapdeal is not None:
23976
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
23977
      oprot.writeString(self.skuAtSnapdeal)
23978
      oprot.writeFieldEnd()
23979
    oprot.writeFieldStop()
23980
    oprot.writeStructEnd()
23981
 
23982
  def validate(self):
23983
    return
23984
 
23985
 
23986
  def __repr__(self):
23987
    L = ['%s=%r' % (key, value)
23988
      for key, value in self.__dict__.iteritems()]
23989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23990
 
23991
  def __eq__(self, other):
23992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23993
 
23994
  def __ne__(self, other):
23995
    return not (self == other)
23996
 
23997
class getSnapdealItembySkuAtSnapdeal_result:
23998
  """
23999
  Attributes:
24000
   - success
24001
  """
24002
 
24003
  thrift_spec = (
24004
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
24005
  )
24006
 
24007
  def __init__(self, success=None,):
24008
    self.success = success
24009
 
24010
  def read(self, iprot):
24011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24013
      return
24014
    iprot.readStructBegin()
24015
    while True:
24016
      (fname, ftype, fid) = iprot.readFieldBegin()
24017
      if ftype == TType.STOP:
24018
        break
24019
      if fid == 0:
24020
        if ftype == TType.STRUCT:
24021
          self.success = SnapdealItem()
24022
          self.success.read(iprot)
24023
        else:
24024
          iprot.skip(ftype)
24025
      else:
24026
        iprot.skip(ftype)
24027
      iprot.readFieldEnd()
24028
    iprot.readStructEnd()
24029
 
24030
  def write(self, oprot):
24031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24033
      return
24034
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
24035
    if self.success is not None:
24036
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24037
      self.success.write(oprot)
24038
      oprot.writeFieldEnd()
24039
    oprot.writeFieldStop()
24040
    oprot.writeStructEnd()
24041
 
24042
  def validate(self):
24043
    return
24044
 
24045
 
24046
  def __repr__(self):
24047
    L = ['%s=%r' % (key, value)
24048
      for key, value in self.__dict__.iteritems()]
24049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24050
 
24051
  def __eq__(self, other):
24052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24053
 
24054
  def __ne__(self, other):
24055
    return not (self == other)
9621 manish.sha 24056
 
24057
class getProductFeedSubmit_args:
24058
  """
24059
  Attributes:
24060
   - catalogItemId
24061
  """
24062
 
24063
  thrift_spec = (
24064
    None, # 0
24065
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
24066
  )
24067
 
24068
  def __init__(self, catalogItemId=None,):
24069
    self.catalogItemId = catalogItemId
24070
 
24071
  def read(self, iprot):
24072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24074
      return
24075
    iprot.readStructBegin()
24076
    while True:
24077
      (fname, ftype, fid) = iprot.readFieldBegin()
24078
      if ftype == TType.STOP:
24079
        break
24080
      if fid == 1:
24081
        if ftype == TType.I64:
24082
          self.catalogItemId = iprot.readI64();
24083
        else:
24084
          iprot.skip(ftype)
24085
      else:
24086
        iprot.skip(ftype)
24087
      iprot.readFieldEnd()
24088
    iprot.readStructEnd()
24089
 
24090
  def write(self, oprot):
24091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24093
      return
24094
    oprot.writeStructBegin('getProductFeedSubmit_args')
24095
    if self.catalogItemId is not None:
24096
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
24097
      oprot.writeI64(self.catalogItemId)
24098
      oprot.writeFieldEnd()
24099
    oprot.writeFieldStop()
24100
    oprot.writeStructEnd()
24101
 
24102
  def validate(self):
24103
    return
24104
 
24105
 
24106
  def __repr__(self):
24107
    L = ['%s=%r' % (key, value)
24108
      for key, value in self.__dict__.iteritems()]
24109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24110
 
24111
  def __eq__(self, other):
24112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24113
 
24114
  def __ne__(self, other):
24115
    return not (self == other)
24116
 
24117
class getProductFeedSubmit_result:
24118
  """
24119
  Attributes:
24120
   - success
24121
   - cex
24122
  """
24123
 
24124
  thrift_spec = (
24125
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
24126
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24127
  )
24128
 
24129
  def __init__(self, success=None, cex=None,):
24130
    self.success = success
24131
    self.cex = cex
24132
 
24133
  def read(self, iprot):
24134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24136
      return
24137
    iprot.readStructBegin()
24138
    while True:
24139
      (fname, ftype, fid) = iprot.readFieldBegin()
24140
      if ftype == TType.STOP:
24141
        break
24142
      if fid == 0:
24143
        if ftype == TType.STRUCT:
24144
          self.success = ProductFeedSubmit()
24145
          self.success.read(iprot)
24146
        else:
24147
          iprot.skip(ftype)
24148
      elif fid == 1:
24149
        if ftype == TType.STRUCT:
24150
          self.cex = CatalogServiceException()
24151
          self.cex.read(iprot)
24152
        else:
24153
          iprot.skip(ftype)
24154
      else:
24155
        iprot.skip(ftype)
24156
      iprot.readFieldEnd()
24157
    iprot.readStructEnd()
24158
 
24159
  def write(self, oprot):
24160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24162
      return
24163
    oprot.writeStructBegin('getProductFeedSubmit_result')
24164
    if self.success is not None:
24165
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24166
      self.success.write(oprot)
24167
      oprot.writeFieldEnd()
24168
    if self.cex is not None:
24169
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24170
      self.cex.write(oprot)
24171
      oprot.writeFieldEnd()
24172
    oprot.writeFieldStop()
24173
    oprot.writeStructEnd()
24174
 
24175
  def validate(self):
24176
    return
24177
 
24178
 
24179
  def __repr__(self):
24180
    L = ['%s=%r' % (key, value)
24181
      for key, value in self.__dict__.iteritems()]
24182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24183
 
24184
  def __eq__(self, other):
24185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24186
 
24187
  def __ne__(self, other):
24188
    return not (self == other)
24189
 
24190
class addProductFeedSubmit_args:
24191
  """
24192
  Attributes:
24193
   - productFeedSubmit
24194
  """
24195
 
24196
  thrift_spec = (
24197
    None, # 0
24198
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
24199
  )
24200
 
24201
  def __init__(self, productFeedSubmit=None,):
24202
    self.productFeedSubmit = productFeedSubmit
24203
 
24204
  def read(self, iprot):
24205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24207
      return
24208
    iprot.readStructBegin()
24209
    while True:
24210
      (fname, ftype, fid) = iprot.readFieldBegin()
24211
      if ftype == TType.STOP:
24212
        break
24213
      if fid == 1:
24214
        if ftype == TType.STRUCT:
24215
          self.productFeedSubmit = ProductFeedSubmit()
24216
          self.productFeedSubmit.read(iprot)
24217
        else:
24218
          iprot.skip(ftype)
24219
      else:
24220
        iprot.skip(ftype)
24221
      iprot.readFieldEnd()
24222
    iprot.readStructEnd()
24223
 
24224
  def write(self, oprot):
24225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24227
      return
24228
    oprot.writeStructBegin('addProductFeedSubmit_args')
24229
    if self.productFeedSubmit is not None:
24230
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
24231
      self.productFeedSubmit.write(oprot)
24232
      oprot.writeFieldEnd()
24233
    oprot.writeFieldStop()
24234
    oprot.writeStructEnd()
24235
 
24236
  def validate(self):
24237
    return
24238
 
24239
 
24240
  def __repr__(self):
24241
    L = ['%s=%r' % (key, value)
24242
      for key, value in self.__dict__.iteritems()]
24243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24244
 
24245
  def __eq__(self, other):
24246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24247
 
24248
  def __ne__(self, other):
24249
    return not (self == other)
24250
 
24251
class addProductFeedSubmit_result:
24252
  """
24253
  Attributes:
24254
   - success
24255
   - cex
24256
  """
24257
 
24258
  thrift_spec = (
24259
    (0, TType.BOOL, 'success', None, None, ), # 0
24260
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24261
  )
24262
 
24263
  def __init__(self, success=None, cex=None,):
24264
    self.success = success
24265
    self.cex = cex
24266
 
24267
  def read(self, iprot):
24268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24270
      return
24271
    iprot.readStructBegin()
24272
    while True:
24273
      (fname, ftype, fid) = iprot.readFieldBegin()
24274
      if ftype == TType.STOP:
24275
        break
24276
      if fid == 0:
24277
        if ftype == TType.BOOL:
24278
          self.success = iprot.readBool();
24279
        else:
24280
          iprot.skip(ftype)
24281
      elif fid == 1:
24282
        if ftype == TType.STRUCT:
24283
          self.cex = CatalogServiceException()
24284
          self.cex.read(iprot)
24285
        else:
24286
          iprot.skip(ftype)
24287
      else:
24288
        iprot.skip(ftype)
24289
      iprot.readFieldEnd()
24290
    iprot.readStructEnd()
24291
 
24292
  def write(self, oprot):
24293
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24294
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24295
      return
24296
    oprot.writeStructBegin('addProductFeedSubmit_result')
24297
    if self.success is not None:
24298
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24299
      oprot.writeBool(self.success)
24300
      oprot.writeFieldEnd()
24301
    if self.cex is not None:
24302
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24303
      self.cex.write(oprot)
24304
      oprot.writeFieldEnd()
24305
    oprot.writeFieldStop()
24306
    oprot.writeStructEnd()
24307
 
24308
  def validate(self):
24309
    return
24310
 
24311
 
24312
  def __repr__(self):
24313
    L = ['%s=%r' % (key, value)
24314
      for key, value in self.__dict__.iteritems()]
24315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24316
 
24317
  def __eq__(self, other):
24318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24319
 
24320
  def __ne__(self, other):
24321
    return not (self == other)
24322
 
24323
class updateProductFeedSubmit_args:
24324
  """
24325
  Attributes:
24326
   - productFeedSubmit
24327
  """
24328
 
24329
  thrift_spec = (
24330
    None, # 0
24331
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
24332
  )
24333
 
24334
  def __init__(self, productFeedSubmit=None,):
24335
    self.productFeedSubmit = productFeedSubmit
24336
 
24337
  def read(self, iprot):
24338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24340
      return
24341
    iprot.readStructBegin()
24342
    while True:
24343
      (fname, ftype, fid) = iprot.readFieldBegin()
24344
      if ftype == TType.STOP:
24345
        break
24346
      if fid == 1:
24347
        if ftype == TType.STRUCT:
24348
          self.productFeedSubmit = ProductFeedSubmit()
24349
          self.productFeedSubmit.read(iprot)
24350
        else:
24351
          iprot.skip(ftype)
24352
      else:
24353
        iprot.skip(ftype)
24354
      iprot.readFieldEnd()
24355
    iprot.readStructEnd()
24356
 
24357
  def write(self, oprot):
24358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24360
      return
24361
    oprot.writeStructBegin('updateProductFeedSubmit_args')
24362
    if self.productFeedSubmit is not None:
24363
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
24364
      self.productFeedSubmit.write(oprot)
24365
      oprot.writeFieldEnd()
24366
    oprot.writeFieldStop()
24367
    oprot.writeStructEnd()
24368
 
24369
  def validate(self):
24370
    return
24371
 
24372
 
24373
  def __repr__(self):
24374
    L = ['%s=%r' % (key, value)
24375
      for key, value in self.__dict__.iteritems()]
24376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24377
 
24378
  def __eq__(self, other):
24379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24380
 
24381
  def __ne__(self, other):
24382
    return not (self == other)
24383
 
24384
class updateProductFeedSubmit_result:
24385
  """
24386
  Attributes:
24387
   - success
24388
   - cex
24389
  """
24390
 
24391
  thrift_spec = (
24392
    (0, TType.BOOL, 'success', None, None, ), # 0
24393
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24394
  )
24395
 
24396
  def __init__(self, success=None, cex=None,):
24397
    self.success = success
24398
    self.cex = cex
24399
 
24400
  def read(self, iprot):
24401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24403
      return
24404
    iprot.readStructBegin()
24405
    while True:
24406
      (fname, ftype, fid) = iprot.readFieldBegin()
24407
      if ftype == TType.STOP:
24408
        break
24409
      if fid == 0:
24410
        if ftype == TType.BOOL:
24411
          self.success = iprot.readBool();
24412
        else:
24413
          iprot.skip(ftype)
24414
      elif fid == 1:
24415
        if ftype == TType.STRUCT:
24416
          self.cex = CatalogServiceException()
24417
          self.cex.read(iprot)
24418
        else:
24419
          iprot.skip(ftype)
24420
      else:
24421
        iprot.skip(ftype)
24422
      iprot.readFieldEnd()
24423
    iprot.readStructEnd()
24424
 
24425
  def write(self, oprot):
24426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24428
      return
24429
    oprot.writeStructBegin('updateProductFeedSubmit_result')
24430
    if self.success is not None:
24431
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24432
      oprot.writeBool(self.success)
24433
      oprot.writeFieldEnd()
24434
    if self.cex is not None:
24435
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24436
      self.cex.write(oprot)
24437
      oprot.writeFieldEnd()
24438
    oprot.writeFieldStop()
24439
    oprot.writeStructEnd()
24440
 
24441
  def validate(self):
24442
    return
24443
 
24444
 
24445
  def __repr__(self):
24446
    L = ['%s=%r' % (key, value)
24447
      for key, value in self.__dict__.iteritems()]
24448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24449
 
24450
  def __eq__(self, other):
24451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24452
 
24453
  def __ne__(self, other):
24454
    return not (self == other)
24455
 
24456
class deleteProductFeedSubmit_args:
24457
  """
24458
  Attributes:
24459
   - catalogItemId
24460
  """
24461
 
24462
  thrift_spec = (
24463
    None, # 0
24464
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
24465
  )
24466
 
24467
  def __init__(self, catalogItemId=None,):
24468
    self.catalogItemId = catalogItemId
24469
 
24470
  def read(self, iprot):
24471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24473
      return
24474
    iprot.readStructBegin()
24475
    while True:
24476
      (fname, ftype, fid) = iprot.readFieldBegin()
24477
      if ftype == TType.STOP:
24478
        break
24479
      if fid == 1:
24480
        if ftype == TType.I64:
24481
          self.catalogItemId = iprot.readI64();
24482
        else:
24483
          iprot.skip(ftype)
24484
      else:
24485
        iprot.skip(ftype)
24486
      iprot.readFieldEnd()
24487
    iprot.readStructEnd()
24488
 
24489
  def write(self, oprot):
24490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24492
      return
24493
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
24494
    if self.catalogItemId is not None:
24495
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
24496
      oprot.writeI64(self.catalogItemId)
24497
      oprot.writeFieldEnd()
24498
    oprot.writeFieldStop()
24499
    oprot.writeStructEnd()
24500
 
24501
  def validate(self):
24502
    return
24503
 
24504
 
24505
  def __repr__(self):
24506
    L = ['%s=%r' % (key, value)
24507
      for key, value in self.__dict__.iteritems()]
24508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24509
 
24510
  def __eq__(self, other):
24511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24512
 
24513
  def __ne__(self, other):
24514
    return not (self == other)
24515
 
24516
class deleteProductFeedSubmit_result:
24517
  """
24518
  Attributes:
24519
   - success
24520
   - cex
24521
  """
24522
 
24523
  thrift_spec = (
24524
    (0, TType.BOOL, 'success', None, None, ), # 0
24525
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24526
  )
24527
 
24528
  def __init__(self, success=None, cex=None,):
24529
    self.success = success
24530
    self.cex = cex
24531
 
24532
  def read(self, iprot):
24533
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24534
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24535
      return
24536
    iprot.readStructBegin()
24537
    while True:
24538
      (fname, ftype, fid) = iprot.readFieldBegin()
24539
      if ftype == TType.STOP:
24540
        break
24541
      if fid == 0:
24542
        if ftype == TType.BOOL:
24543
          self.success = iprot.readBool();
24544
        else:
24545
          iprot.skip(ftype)
24546
      elif fid == 1:
24547
        if ftype == TType.STRUCT:
24548
          self.cex = CatalogServiceException()
24549
          self.cex.read(iprot)
24550
        else:
24551
          iprot.skip(ftype)
24552
      else:
24553
        iprot.skip(ftype)
24554
      iprot.readFieldEnd()
24555
    iprot.readStructEnd()
24556
 
24557
  def write(self, oprot):
24558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24560
      return
24561
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
24562
    if self.success is not None:
24563
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24564
      oprot.writeBool(self.success)
24565
      oprot.writeFieldEnd()
24566
    if self.cex is not None:
24567
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24568
      self.cex.write(oprot)
24569
      oprot.writeFieldEnd()
24570
    oprot.writeFieldStop()
24571
    oprot.writeStructEnd()
24572
 
24573
  def validate(self):
24574
    return
24575
 
24576
 
24577
  def __repr__(self):
24578
    L = ['%s=%r' % (key, value)
24579
      for key, value in self.__dict__.iteritems()]
24580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24581
 
24582
  def __eq__(self, other):
24583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24584
 
24585
  def __ne__(self, other):
24586
    return not (self == other)
24587
 
24588
class getAllProductFeedSubmit_args:
24589
 
24590
  thrift_spec = (
24591
  )
24592
 
24593
  def read(self, iprot):
24594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24596
      return
24597
    iprot.readStructBegin()
24598
    while True:
24599
      (fname, ftype, fid) = iprot.readFieldBegin()
24600
      if ftype == TType.STOP:
24601
        break
24602
      else:
24603
        iprot.skip(ftype)
24604
      iprot.readFieldEnd()
24605
    iprot.readStructEnd()
24606
 
24607
  def write(self, oprot):
24608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24610
      return
24611
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
24612
    oprot.writeFieldStop()
24613
    oprot.writeStructEnd()
24614
 
24615
  def validate(self):
24616
    return
24617
 
24618
 
24619
  def __repr__(self):
24620
    L = ['%s=%r' % (key, value)
24621
      for key, value in self.__dict__.iteritems()]
24622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24623
 
24624
  def __eq__(self, other):
24625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24626
 
24627
  def __ne__(self, other):
24628
    return not (self == other)
24629
 
24630
class getAllProductFeedSubmit_result:
24631
  """
24632
  Attributes:
24633
   - success
24634
   - cex
24635
  """
24636
 
24637
  thrift_spec = (
24638
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
24639
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24640
  )
24641
 
24642
  def __init__(self, success=None, cex=None,):
24643
    self.success = success
24644
    self.cex = cex
24645
 
24646
  def read(self, iprot):
24647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24649
      return
24650
    iprot.readStructBegin()
24651
    while True:
24652
      (fname, ftype, fid) = iprot.readFieldBegin()
24653
      if ftype == TType.STOP:
24654
        break
24655
      if fid == 0:
24656
        if ftype == TType.LIST:
24657
          self.success = []
24658
          (_etype551, _size548) = iprot.readListBegin()
24659
          for _i552 in xrange(_size548):
24660
            _elem553 = ProductFeedSubmit()
24661
            _elem553.read(iprot)
24662
            self.success.append(_elem553)
24663
          iprot.readListEnd()
24664
        else:
24665
          iprot.skip(ftype)
24666
      elif fid == 1:
24667
        if ftype == TType.STRUCT:
24668
          self.cex = CatalogServiceException()
24669
          self.cex.read(iprot)
24670
        else:
24671
          iprot.skip(ftype)
24672
      else:
24673
        iprot.skip(ftype)
24674
      iprot.readFieldEnd()
24675
    iprot.readStructEnd()
24676
 
24677
  def write(self, oprot):
24678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24680
      return
24681
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
24682
    if self.success is not None:
24683
      oprot.writeFieldBegin('success', TType.LIST, 0)
24684
      oprot.writeListBegin(TType.STRUCT, len(self.success))
24685
      for iter554 in self.success:
24686
        iter554.write(oprot)
24687
      oprot.writeListEnd()
24688
      oprot.writeFieldEnd()
24689
    if self.cex is not None:
24690
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24691
      self.cex.write(oprot)
24692
      oprot.writeFieldEnd()
24693
    oprot.writeFieldStop()
24694
    oprot.writeStructEnd()
24695
 
24696
  def validate(self):
24697
    return
24698
 
24699
 
24700
  def __repr__(self):
24701
    L = ['%s=%r' % (key, value)
24702
      for key, value in self.__dict__.iteritems()]
24703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24704
 
24705
  def __eq__(self, other):
24706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24707
 
24708
  def __ne__(self, other):
24709
    return not (self == other)
9724 kshitij.so 24710
 
24711
class getMarketplacedetailsForItem_args:
24712
  """
24713
  Attributes:
24714
   - itemId
24715
   - sourceId
24716
  """
24717
 
24718
  thrift_spec = (
24719
    None, # 0
24720
    (1, TType.I64, 'itemId', None, None, ), # 1
24721
    (2, TType.I64, 'sourceId', None, None, ), # 2
24722
  )
24723
 
24724
  def __init__(self, itemId=None, sourceId=None,):
24725
    self.itemId = itemId
24726
    self.sourceId = sourceId
24727
 
24728
  def read(self, iprot):
24729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24731
      return
24732
    iprot.readStructBegin()
24733
    while True:
24734
      (fname, ftype, fid) = iprot.readFieldBegin()
24735
      if ftype == TType.STOP:
24736
        break
24737
      if fid == 1:
24738
        if ftype == TType.I64:
24739
          self.itemId = iprot.readI64();
24740
        else:
24741
          iprot.skip(ftype)
24742
      elif fid == 2:
24743
        if ftype == TType.I64:
24744
          self.sourceId = iprot.readI64();
24745
        else:
24746
          iprot.skip(ftype)
24747
      else:
24748
        iprot.skip(ftype)
24749
      iprot.readFieldEnd()
24750
    iprot.readStructEnd()
24751
 
24752
  def write(self, oprot):
24753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24755
      return
24756
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
24757
    if self.itemId is not None:
24758
      oprot.writeFieldBegin('itemId', TType.I64, 1)
24759
      oprot.writeI64(self.itemId)
24760
      oprot.writeFieldEnd()
24761
    if self.sourceId is not None:
24762
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
24763
      oprot.writeI64(self.sourceId)
24764
      oprot.writeFieldEnd()
24765
    oprot.writeFieldStop()
24766
    oprot.writeStructEnd()
24767
 
24768
  def validate(self):
24769
    return
24770
 
24771
 
24772
  def __repr__(self):
24773
    L = ['%s=%r' % (key, value)
24774
      for key, value in self.__dict__.iteritems()]
24775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24776
 
24777
  def __eq__(self, other):
24778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24779
 
24780
  def __ne__(self, other):
24781
    return not (self == other)
24782
 
24783
class getMarketplacedetailsForItem_result:
24784
  """
24785
  Attributes:
24786
   - success
24787
  """
24788
 
24789
  thrift_spec = (
24790
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
24791
  )
24792
 
24793
  def __init__(self, success=None,):
24794
    self.success = success
24795
 
24796
  def read(self, iprot):
24797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24799
      return
24800
    iprot.readStructBegin()
24801
    while True:
24802
      (fname, ftype, fid) = iprot.readFieldBegin()
24803
      if ftype == TType.STOP:
24804
        break
24805
      if fid == 0:
24806
        if ftype == TType.STRUCT:
24807
          self.success = MarketplaceItems()
24808
          self.success.read(iprot)
24809
        else:
24810
          iprot.skip(ftype)
24811
      else:
24812
        iprot.skip(ftype)
24813
      iprot.readFieldEnd()
24814
    iprot.readStructEnd()
24815
 
24816
  def write(self, oprot):
24817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24819
      return
24820
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
24821
    if self.success is not None:
24822
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24823
      self.success.write(oprot)
24824
      oprot.writeFieldEnd()
24825
    oprot.writeFieldStop()
24826
    oprot.writeStructEnd()
24827
 
24828
  def validate(self):
24829
    return
24830
 
24831
 
24832
  def __repr__(self):
24833
    L = ['%s=%r' % (key, value)
24834
      for key, value in self.__dict__.iteritems()]
24835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24836
 
24837
  def __eq__(self, other):
24838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24839
 
24840
  def __ne__(self, other):
24841
    return not (self == other)
24842
 
24843
class updateMarketplaceAttributesForItem_args:
24844
  """
24845
  Attributes:
24846
   - marketPlaceItem
24847
  """
24848
 
24849
  thrift_spec = (
24850
    None, # 0
24851
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
24852
  )
24853
 
24854
  def __init__(self, marketPlaceItem=None,):
24855
    self.marketPlaceItem = marketPlaceItem
24856
 
24857
  def read(self, iprot):
24858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24860
      return
24861
    iprot.readStructBegin()
24862
    while True:
24863
      (fname, ftype, fid) = iprot.readFieldBegin()
24864
      if ftype == TType.STOP:
24865
        break
24866
      if fid == 1:
24867
        if ftype == TType.STRUCT:
24868
          self.marketPlaceItem = MarketplaceItems()
24869
          self.marketPlaceItem.read(iprot)
24870
        else:
24871
          iprot.skip(ftype)
24872
      else:
24873
        iprot.skip(ftype)
24874
      iprot.readFieldEnd()
24875
    iprot.readStructEnd()
24876
 
24877
  def write(self, oprot):
24878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24880
      return
24881
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
24882
    if self.marketPlaceItem is not None:
24883
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
24884
      self.marketPlaceItem.write(oprot)
24885
      oprot.writeFieldEnd()
24886
    oprot.writeFieldStop()
24887
    oprot.writeStructEnd()
24888
 
24889
  def validate(self):
24890
    return
24891
 
24892
 
24893
  def __repr__(self):
24894
    L = ['%s=%r' % (key, value)
24895
      for key, value in self.__dict__.iteritems()]
24896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24897
 
24898
  def __eq__(self, other):
24899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24900
 
24901
  def __ne__(self, other):
24902
    return not (self == other)
24903
 
24904
class updateMarketplaceAttributesForItem_result:
24905
  """
24906
  Attributes:
24907
   - success
24908
  """
24909
 
24910
  thrift_spec = (
24911
    (0, TType.BOOL, 'success', None, None, ), # 0
24912
  )
24913
 
24914
  def __init__(self, success=None,):
24915
    self.success = success
24916
 
24917
  def read(self, iprot):
24918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24920
      return
24921
    iprot.readStructBegin()
24922
    while True:
24923
      (fname, ftype, fid) = iprot.readFieldBegin()
24924
      if ftype == TType.STOP:
24925
        break
24926
      if fid == 0:
24927
        if ftype == TType.BOOL:
24928
          self.success = iprot.readBool();
24929
        else:
24930
          iprot.skip(ftype)
24931
      else:
24932
        iprot.skip(ftype)
24933
      iprot.readFieldEnd()
24934
    iprot.readStructEnd()
24935
 
24936
  def write(self, oprot):
24937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24939
      return
24940
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
24941
    if self.success is not None:
24942
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24943
      oprot.writeBool(self.success)
24944
      oprot.writeFieldEnd()
24945
    oprot.writeFieldStop()
24946
    oprot.writeStructEnd()
24947
 
24948
  def validate(self):
24949
    return
24950
 
24951
 
24952
  def __repr__(self):
24953
    L = ['%s=%r' % (key, value)
24954
      for key, value in self.__dict__.iteritems()]
24955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24956
 
24957
  def __eq__(self, other):
24958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24959
 
24960
  def __ne__(self, other):
24961
    return not (self == other)
9776 vikram.rag 24962
 
9779 kshitij.so 24963
class getCostingForMarketplace_args:
24964
  """
24965
  Attributes:
24966
   - source
24967
   - item_id
24968
  """
24969
 
24970
  thrift_spec = (
24971
    None, # 0
24972
    (1, TType.I64, 'source', None, None, ), # 1
24973
    (2, TType.I64, 'item_id', None, None, ), # 2
24974
  )
24975
 
24976
  def __init__(self, source=None, item_id=None,):
24977
    self.source = source
24978
    self.item_id = item_id
24979
 
24980
  def read(self, iprot):
24981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24983
      return
24984
    iprot.readStructBegin()
24985
    while True:
24986
      (fname, ftype, fid) = iprot.readFieldBegin()
24987
      if ftype == TType.STOP:
24988
        break
24989
      if fid == 1:
24990
        if ftype == TType.I64:
24991
          self.source = iprot.readI64();
24992
        else:
24993
          iprot.skip(ftype)
24994
      elif fid == 2:
24995
        if ftype == TType.I64:
24996
          self.item_id = iprot.readI64();
24997
        else:
24998
          iprot.skip(ftype)
24999
      else:
25000
        iprot.skip(ftype)
25001
      iprot.readFieldEnd()
25002
    iprot.readStructEnd()
25003
 
25004
  def write(self, oprot):
25005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25007
      return
25008
    oprot.writeStructBegin('getCostingForMarketplace_args')
25009
    if self.source is not None:
25010
      oprot.writeFieldBegin('source', TType.I64, 1)
25011
      oprot.writeI64(self.source)
25012
      oprot.writeFieldEnd()
25013
    if self.item_id is not None:
25014
      oprot.writeFieldBegin('item_id', TType.I64, 2)
25015
      oprot.writeI64(self.item_id)
25016
      oprot.writeFieldEnd()
25017
    oprot.writeFieldStop()
25018
    oprot.writeStructEnd()
25019
 
25020
  def validate(self):
25021
    return
25022
 
25023
 
25024
  def __repr__(self):
25025
    L = ['%s=%r' % (key, value)
25026
      for key, value in self.__dict__.iteritems()]
25027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25028
 
25029
  def __eq__(self, other):
25030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25031
 
25032
  def __ne__(self, other):
25033
    return not (self == other)
25034
 
25035
class getCostingForMarketplace_result:
25036
  """
25037
  Attributes:
25038
   - success
25039
  """
25040
 
25041
  thrift_spec = (
25042
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
25043
  )
25044
 
25045
  def __init__(self, success=None,):
25046
    self.success = success
25047
 
25048
  def read(self, iprot):
25049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25051
      return
25052
    iprot.readStructBegin()
25053
    while True:
25054
      (fname, ftype, fid) = iprot.readFieldBegin()
25055
      if ftype == TType.STOP:
25056
        break
25057
      if fid == 0:
25058
        if ftype == TType.STRUCT:
25059
          self.success = MarketplacePercentage()
25060
          self.success.read(iprot)
25061
        else:
25062
          iprot.skip(ftype)
25063
      else:
25064
        iprot.skip(ftype)
25065
      iprot.readFieldEnd()
25066
    iprot.readStructEnd()
25067
 
25068
  def write(self, oprot):
25069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25071
      return
25072
    oprot.writeStructBegin('getCostingForMarketplace_result')
25073
    if self.success is not None:
25074
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25075
      self.success.write(oprot)
25076
      oprot.writeFieldEnd()
25077
    oprot.writeFieldStop()
25078
    oprot.writeStructEnd()
25079
 
25080
  def validate(self):
25081
    return
25082
 
25083
 
25084
  def __repr__(self):
25085
    L = ['%s=%r' % (key, value)
25086
      for key, value in self.__dict__.iteritems()]
25087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25088
 
25089
  def __eq__(self, other):
25090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25091
 
25092
  def __ne__(self, other):
25093
    return not (self == other)
25094
 
9776 vikram.rag 25095
class getMarketPlaceItemsForPriceUpdate_args:
25096
  """
25097
  Attributes:
25098
   - source
25099
  """
25100
 
25101
  thrift_spec = (
25102
    None, # 0
25103
    (1, TType.I64, 'source', None, None, ), # 1
25104
  )
25105
 
25106
  def __init__(self, source=None,):
25107
    self.source = source
25108
 
25109
  def read(self, iprot):
25110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25112
      return
25113
    iprot.readStructBegin()
25114
    while True:
25115
      (fname, ftype, fid) = iprot.readFieldBegin()
25116
      if ftype == TType.STOP:
25117
        break
25118
      if fid == 1:
25119
        if ftype == TType.I64:
25120
          self.source = iprot.readI64();
25121
        else:
25122
          iprot.skip(ftype)
25123
      else:
25124
        iprot.skip(ftype)
25125
      iprot.readFieldEnd()
25126
    iprot.readStructEnd()
25127
 
25128
  def write(self, oprot):
25129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25131
      return
25132
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
25133
    if self.source is not None:
25134
      oprot.writeFieldBegin('source', TType.I64, 1)
25135
      oprot.writeI64(self.source)
25136
      oprot.writeFieldEnd()
25137
    oprot.writeFieldStop()
25138
    oprot.writeStructEnd()
25139
 
25140
  def validate(self):
25141
    return
25142
 
25143
 
25144
  def __repr__(self):
25145
    L = ['%s=%r' % (key, value)
25146
      for key, value in self.__dict__.iteritems()]
25147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25148
 
25149
  def __eq__(self, other):
25150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25151
 
25152
  def __ne__(self, other):
25153
    return not (self == other)
25154
 
25155
class getMarketPlaceItemsForPriceUpdate_result:
25156
  """
25157
  Attributes:
25158
   - success
25159
  """
25160
 
25161
  thrift_spec = (
25162
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
25163
  )
25164
 
25165
  def __init__(self, success=None,):
25166
    self.success = success
25167
 
25168
  def read(self, iprot):
25169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25171
      return
25172
    iprot.readStructBegin()
25173
    while True:
25174
      (fname, ftype, fid) = iprot.readFieldBegin()
25175
      if ftype == TType.STOP:
25176
        break
25177
      if fid == 0:
25178
        if ftype == TType.LIST:
25179
          self.success = []
25180
          (_etype558, _size555) = iprot.readListBegin()
25181
          for _i559 in xrange(_size555):
25182
            _elem560 = MarketPlaceItemPrice()
25183
            _elem560.read(iprot)
25184
            self.success.append(_elem560)
25185
          iprot.readListEnd()
25186
        else:
25187
          iprot.skip(ftype)
25188
      else:
25189
        iprot.skip(ftype)
25190
      iprot.readFieldEnd()
25191
    iprot.readStructEnd()
25192
 
25193
  def write(self, oprot):
25194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25196
      return
25197
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
25198
    if self.success is not None:
25199
      oprot.writeFieldBegin('success', TType.LIST, 0)
25200
      oprot.writeListBegin(TType.STRUCT, len(self.success))
25201
      for iter561 in self.success:
25202
        iter561.write(oprot)
25203
      oprot.writeListEnd()
25204
      oprot.writeFieldEnd()
25205
    oprot.writeFieldStop()
25206
    oprot.writeStructEnd()
25207
 
25208
  def validate(self):
25209
    return
25210
 
25211
 
25212
  def __repr__(self):
25213
    L = ['%s=%r' % (key, value)
25214
      for key, value in self.__dict__.iteritems()]
25215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25216
 
25217
  def __eq__(self, other):
25218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25219
 
25220
  def __ne__(self, other):
25221
    return not (self == other)
25222
 
25223
class updateMarketPlacePriceUpdateStatus_args:
25224
  """
25225
  Attributes:
25226
   - skulist
25227
   - timestamp
25228
  """
25229
 
25230
  thrift_spec = (
25231
    None, # 0
25232
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
25233
    (2, TType.I64, 'timestamp', None, None, ), # 2
25234
  )
25235
 
25236
  def __init__(self, skulist=None, timestamp=None,):
25237
    self.skulist = skulist
25238
    self.timestamp = timestamp
25239
 
25240
  def read(self, iprot):
25241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25243
      return
25244
    iprot.readStructBegin()
25245
    while True:
25246
      (fname, ftype, fid) = iprot.readFieldBegin()
25247
      if ftype == TType.STOP:
25248
        break
25249
      if fid == 1:
25250
        if ftype == TType.LIST:
25251
          self.skulist = []
25252
          (_etype565, _size562) = iprot.readListBegin()
25253
          for _i566 in xrange(_size562):
25254
            _elem567 = iprot.readI64();
25255
            self.skulist.append(_elem567)
25256
          iprot.readListEnd()
25257
        else:
25258
          iprot.skip(ftype)
25259
      elif fid == 2:
25260
        if ftype == TType.I64:
25261
          self.timestamp = iprot.readI64();
25262
        else:
25263
          iprot.skip(ftype)
25264
      else:
25265
        iprot.skip(ftype)
25266
      iprot.readFieldEnd()
25267
    iprot.readStructEnd()
25268
 
25269
  def write(self, oprot):
25270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25272
      return
25273
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
25274
    if self.skulist is not None:
25275
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
25276
      oprot.writeListBegin(TType.I64, len(self.skulist))
25277
      for iter568 in self.skulist:
25278
        oprot.writeI64(iter568)
25279
      oprot.writeListEnd()
25280
      oprot.writeFieldEnd()
25281
    if self.timestamp is not None:
25282
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
25283
      oprot.writeI64(self.timestamp)
25284
      oprot.writeFieldEnd()
25285
    oprot.writeFieldStop()
25286
    oprot.writeStructEnd()
25287
 
25288
  def validate(self):
25289
    return
25290
 
25291
 
25292
  def __repr__(self):
25293
    L = ['%s=%r' % (key, value)
25294
      for key, value in self.__dict__.iteritems()]
25295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25296
 
25297
  def __eq__(self, other):
25298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25299
 
25300
  def __ne__(self, other):
25301
    return not (self == other)
25302
 
25303
class updateMarketPlacePriceUpdateStatus_result:
25304
 
25305
  thrift_spec = (
25306
  )
25307
 
25308
  def read(self, iprot):
25309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25311
      return
25312
    iprot.readStructBegin()
25313
    while True:
25314
      (fname, ftype, fid) = iprot.readFieldBegin()
25315
      if ftype == TType.STOP:
25316
        break
25317
      else:
25318
        iprot.skip(ftype)
25319
      iprot.readFieldEnd()
25320
    iprot.readStructEnd()
25321
 
25322
  def write(self, oprot):
25323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25325
      return
25326
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
25327
    oprot.writeFieldStop()
25328
    oprot.writeStructEnd()
25329
 
25330
  def validate(self):
25331
    return
25332
 
25333
 
25334
  def __repr__(self):
25335
    L = ['%s=%r' % (key, value)
25336
      for key, value in self.__dict__.iteritems()]
25337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25338
 
25339
  def __eq__(self, other):
25340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25341
 
25342
  def __ne__(self, other):
25343
    return not (self == other)