Subversion Repositories SmartDukaan

Rev

Rev 9621 | Rev 9776 | 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
 
1013
 
5944 mandeep.dh 1014
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1015
  def __init__(self, iprot, oprot=None):
1016
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1017
 
1018
  def addItem(self, item):
1019
    """
1020
    Availability and inventory attributes
1021
 
1022
    Parameters:
1023
     - item
1024
    """
1025
    self.send_addItem(item)
1026
    return self.recv_addItem()
1027
 
1028
  def send_addItem(self, item):
1029
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1030
    args = addItem_args()
1031
    args.item = item
1032
    args.write(self._oprot)
1033
    self._oprot.writeMessageEnd()
1034
    self._oprot.trans.flush()
1035
 
1036
  def recv_addItem(self, ):
1037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1038
    if mtype == TMessageType.EXCEPTION:
1039
      x = TApplicationException()
1040
      x.read(self._iprot)
1041
      self._iprot.readMessageEnd()
1042
      raise x
1043
    result = addItem_result()
1044
    result.read(self._iprot)
1045
    self._iprot.readMessageEnd()
1046
    if result.success is not None:
1047
      return result.success
1048
    if result.cex is not None:
1049
      raise result.cex
1050
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1051
 
1052
  def updateItem(self, item):
1053
    """
1054
    Parameters:
1055
     - item
1056
    """
1057
    self.send_updateItem(item)
1058
    return self.recv_updateItem()
1059
 
1060
  def send_updateItem(self, item):
1061
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1062
    args = updateItem_args()
1063
    args.item = item
1064
    args.write(self._oprot)
1065
    self._oprot.writeMessageEnd()
1066
    self._oprot.trans.flush()
1067
 
1068
  def recv_updateItem(self, ):
1069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1070
    if mtype == TMessageType.EXCEPTION:
1071
      x = TApplicationException()
1072
      x.read(self._iprot)
1073
      self._iprot.readMessageEnd()
1074
      raise x
1075
    result = updateItem_result()
1076
    result.read(self._iprot)
1077
    self._iprot.readMessageEnd()
1078
    if result.success is not None:
1079
      return result.success
1080
    if result.cex is not None:
1081
      raise result.cex
1082
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1083
 
1084
  def isActive(self, itemId):
1085
    """
1086
    Checks if the item given to the corresponding itemId is active. If it's active,
1087
    whether it's risky and if it's risky, its inventory position.
1088
 
1089
    Parameters:
1090
     - itemId
1091
    """
1092
    self.send_isActive(itemId)
1093
    return self.recv_isActive()
1094
 
1095
  def send_isActive(self, itemId):
1096
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1097
    args = isActive_args()
1098
    args.itemId = itemId
1099
    args.write(self._oprot)
1100
    self._oprot.writeMessageEnd()
1101
    self._oprot.trans.flush()
1102
 
1103
  def recv_isActive(self, ):
1104
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1105
    if mtype == TMessageType.EXCEPTION:
1106
      x = TApplicationException()
1107
      x.read(self._iprot)
1108
      self._iprot.readMessageEnd()
1109
      raise x
1110
    result = isActive_result()
1111
    result.read(self._iprot)
1112
    self._iprot.readMessageEnd()
1113
    if result.success is not None:
1114
      return result.success
1115
    if result.isex is not None:
1116
      raise result.isex
1117
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1118
 
7438 amit.gupta 1119
  def getItemsStatus(self, itemIds):
1120
    """
1121
    Parameters:
1122
     - itemIds
1123
    """
1124
    self.send_getItemsStatus(itemIds)
1125
    return self.recv_getItemsStatus()
1126
 
1127
  def send_getItemsStatus(self, itemIds):
1128
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1129
    args = getItemsStatus_args()
1130
    args.itemIds = itemIds
1131
    args.write(self._oprot)
1132
    self._oprot.writeMessageEnd()
1133
    self._oprot.trans.flush()
1134
 
1135
  def recv_getItemsStatus(self, ):
1136
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1137
    if mtype == TMessageType.EXCEPTION:
1138
      x = TApplicationException()
1139
      x.read(self._iprot)
1140
      self._iprot.readMessageEnd()
1141
      raise x
1142
    result = getItemsStatus_result()
1143
    result.read(self._iprot)
1144
    self._iprot.readMessageEnd()
1145
    if result.success is not None:
1146
      return result.success
1147
    if result.isex is not None:
1148
      raise result.isex
1149
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1150
 
5944 mandeep.dh 1151
  def getItemStatusDescription(self, itemId):
1152
    """
1153
    Parameters:
1154
     - itemId
1155
    """
1156
    self.send_getItemStatusDescription(itemId)
1157
    return self.recv_getItemStatusDescription()
1158
 
1159
  def send_getItemStatusDescription(self, itemId):
1160
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1161
    args = getItemStatusDescription_args()
1162
    args.itemId = itemId
1163
    args.write(self._oprot)
1164
    self._oprot.writeMessageEnd()
1165
    self._oprot.trans.flush()
1166
 
1167
  def recv_getItemStatusDescription(self, ):
1168
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1169
    if mtype == TMessageType.EXCEPTION:
1170
      x = TApplicationException()
1171
      x.read(self._iprot)
1172
      self._iprot.readMessageEnd()
1173
      raise x
1174
    result = getItemStatusDescription_result()
1175
    result.read(self._iprot)
1176
    self._iprot.readMessageEnd()
1177
    if result.success is not None:
1178
      return result.success
1179
    if result.isex is not None:
1180
      raise result.isex
1181
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1182
 
1183
  def startItemOn(self, item_id, timestamp):
1184
    """
1185
    Parameters:
1186
     - item_id
1187
     - timestamp
1188
    """
1189
    self.send_startItemOn(item_id, timestamp)
1190
    self.recv_startItemOn()
1191
 
1192
  def send_startItemOn(self, item_id, timestamp):
1193
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1194
    args = startItemOn_args()
1195
    args.item_id = item_id
1196
    args.timestamp = timestamp
1197
    args.write(self._oprot)
1198
    self._oprot.writeMessageEnd()
1199
    self._oprot.trans.flush()
1200
 
1201
  def recv_startItemOn(self, ):
1202
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1203
    if mtype == TMessageType.EXCEPTION:
1204
      x = TApplicationException()
1205
      x.read(self._iprot)
1206
      self._iprot.readMessageEnd()
1207
      raise x
1208
    result = startItemOn_result()
1209
    result.read(self._iprot)
1210
    self._iprot.readMessageEnd()
1211
    if result.cex is not None:
1212
      raise result.cex
1213
    return
1214
 
1215
  def retireItemOn(self, item_id, timestamp):
1216
    """
1217
    Parameters:
1218
     - item_id
1219
     - timestamp
1220
    """
1221
    self.send_retireItemOn(item_id, timestamp)
1222
    self.recv_retireItemOn()
1223
 
1224
  def send_retireItemOn(self, item_id, timestamp):
1225
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1226
    args = retireItemOn_args()
1227
    args.item_id = item_id
1228
    args.timestamp = timestamp
1229
    args.write(self._oprot)
1230
    self._oprot.writeMessageEnd()
1231
    self._oprot.trans.flush()
1232
 
1233
  def recv_retireItemOn(self, ):
1234
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1235
    if mtype == TMessageType.EXCEPTION:
1236
      x = TApplicationException()
1237
      x.read(self._iprot)
1238
      self._iprot.readMessageEnd()
1239
      raise x
1240
    result = retireItemOn_result()
1241
    result.read(self._iprot)
1242
    self._iprot.readMessageEnd()
1243
    if result.cex is not None:
1244
      raise result.cex
1245
    return
1246
 
1247
  def changeItemStatus(self, item_id, timestamp, newstatus):
1248
    """
1249
    Parameters:
1250
     - item_id
1251
     - timestamp
1252
     - newstatus
1253
    """
1254
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1255
    self.recv_changeItemStatus()
1256
 
1257
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1258
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1259
    args = changeItemStatus_args()
1260
    args.item_id = item_id
1261
    args.timestamp = timestamp
1262
    args.newstatus = newstatus
1263
    args.write(self._oprot)
1264
    self._oprot.writeMessageEnd()
1265
    self._oprot.trans.flush()
1266
 
1267
  def recv_changeItemStatus(self, ):
1268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1269
    if mtype == TMessageType.EXCEPTION:
1270
      x = TApplicationException()
1271
      x.read(self._iprot)
1272
      self._iprot.readMessageEnd()
1273
      raise x
1274
    result = changeItemStatus_result()
1275
    result.read(self._iprot)
1276
    self._iprot.readMessageEnd()
1277
    if result.cex is not None:
1278
      raise result.cex
1279
    return
1280
 
1281
  def getItem(self, item_id):
1282
    """
1283
    Parameters:
1284
     - item_id
1285
    """
1286
    self.send_getItem(item_id)
1287
    return self.recv_getItem()
1288
 
1289
  def send_getItem(self, item_id):
1290
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1291
    args = getItem_args()
1292
    args.item_id = item_id
1293
    args.write(self._oprot)
1294
    self._oprot.writeMessageEnd()
1295
    self._oprot.trans.flush()
1296
 
1297
  def recv_getItem(self, ):
1298
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1299
    if mtype == TMessageType.EXCEPTION:
1300
      x = TApplicationException()
1301
      x.read(self._iprot)
1302
      self._iprot.readMessageEnd()
1303
      raise x
1304
    result = getItem_result()
1305
    result.read(self._iprot)
1306
    self._iprot.readMessageEnd()
1307
    if result.success is not None:
1308
      return result.success
1309
    if result.cex is not None:
1310
      raise result.cex
1311
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1312
 
1313
  def getItemsByCatalogId(self, catalog_item_id):
1314
    """
1315
    Parameters:
1316
     - catalog_item_id
1317
    """
1318
    self.send_getItemsByCatalogId(catalog_item_id)
1319
    return self.recv_getItemsByCatalogId()
1320
 
1321
  def send_getItemsByCatalogId(self, catalog_item_id):
1322
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1323
    args = getItemsByCatalogId_args()
1324
    args.catalog_item_id = catalog_item_id
1325
    args.write(self._oprot)
1326
    self._oprot.writeMessageEnd()
1327
    self._oprot.trans.flush()
1328
 
1329
  def recv_getItemsByCatalogId(self, ):
1330
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1331
    if mtype == TMessageType.EXCEPTION:
1332
      x = TApplicationException()
1333
      x.read(self._iprot)
1334
      self._iprot.readMessageEnd()
1335
      raise x
1336
    result = getItemsByCatalogId_result()
1337
    result.read(self._iprot)
1338
    self._iprot.readMessageEnd()
1339
    if result.success is not None:
1340
      return result.success
1341
    if result.cex is not None:
1342
      raise result.cex
1343
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1344
 
1345
  def getValidItemsByCatalogId(self, catalog_item_id):
1346
    """
1347
    Parameters:
1348
     - catalog_item_id
1349
    """
1350
    self.send_getValidItemsByCatalogId(catalog_item_id)
1351
    return self.recv_getValidItemsByCatalogId()
1352
 
1353
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1354
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1355
    args = getValidItemsByCatalogId_args()
1356
    args.catalog_item_id = catalog_item_id
1357
    args.write(self._oprot)
1358
    self._oprot.writeMessageEnd()
1359
    self._oprot.trans.flush()
1360
 
1361
  def recv_getValidItemsByCatalogId(self, ):
1362
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1363
    if mtype == TMessageType.EXCEPTION:
1364
      x = TApplicationException()
1365
      x.read(self._iprot)
1366
      self._iprot.readMessageEnd()
1367
      raise x
1368
    result = getValidItemsByCatalogId_result()
1369
    result.read(self._iprot)
1370
    self._iprot.readMessageEnd()
1371
    if result.success is not None:
1372
      return result.success
1373
    if result.cex is not None:
1374
      raise result.cex
1375
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1376
 
1377
  def getAllItems(self, isActive):
1378
    """
1379
    Parameters:
1380
     - isActive
1381
    """
1382
    self.send_getAllItems(isActive)
1383
    return self.recv_getAllItems()
1384
 
1385
  def send_getAllItems(self, isActive):
1386
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1387
    args = getAllItems_args()
1388
    args.isActive = isActive
1389
    args.write(self._oprot)
1390
    self._oprot.writeMessageEnd()
1391
    self._oprot.trans.flush()
1392
 
1393
  def recv_getAllItems(self, ):
1394
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1395
    if mtype == TMessageType.EXCEPTION:
1396
      x = TApplicationException()
1397
      x.read(self._iprot)
1398
      self._iprot.readMessageEnd()
1399
      raise x
1400
    result = getAllItems_result()
1401
    result.read(self._iprot)
1402
    self._iprot.readMessageEnd()
1403
    if result.success is not None:
1404
      return result.success
1405
    if result.cex is not None:
1406
      raise result.cex
1407
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1408
 
1409
  def getAllItemsByStatus(self, itemStatus):
1410
    """
1411
    Parameters:
1412
     - itemStatus
1413
    """
1414
    self.send_getAllItemsByStatus(itemStatus)
1415
    return self.recv_getAllItemsByStatus()
1416
 
1417
  def send_getAllItemsByStatus(self, itemStatus):
1418
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1419
    args = getAllItemsByStatus_args()
1420
    args.itemStatus = itemStatus
1421
    args.write(self._oprot)
1422
    self._oprot.writeMessageEnd()
1423
    self._oprot.trans.flush()
1424
 
1425
  def recv_getAllItemsByStatus(self, ):
1426
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1427
    if mtype == TMessageType.EXCEPTION:
1428
      x = TApplicationException()
1429
      x.read(self._iprot)
1430
      self._iprot.readMessageEnd()
1431
      raise x
1432
    result = getAllItemsByStatus_result()
1433
    result.read(self._iprot)
1434
    self._iprot.readMessageEnd()
1435
    if result.success is not None:
1436
      return result.success
1437
    if result.cex is not None:
1438
      raise result.cex
1439
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1440
 
9253 rajveer 1441
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1442
    """
1443
    Parameters:
1444
     - entityId
1445
     - category
1446
     - brand
1447
     - modelName
1448
     - modelNumber
9253 rajveer 1449
     - isAndroid
5944 mandeep.dh 1450
    """
9253 rajveer 1451
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1452
    return self.recv_markItemAsContentComplete()
1453
 
9253 rajveer 1454
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1455
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1456
    args = markItemAsContentComplete_args()
1457
    args.entityId = entityId
1458
    args.category = category
1459
    args.brand = brand
1460
    args.modelName = modelName
1461
    args.modelNumber = modelNumber
9253 rajveer 1462
    args.isAndroid = isAndroid
5944 mandeep.dh 1463
    args.write(self._oprot)
1464
    self._oprot.writeMessageEnd()
1465
    self._oprot.trans.flush()
1466
 
1467
  def recv_markItemAsContentComplete(self, ):
1468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1469
    if mtype == TMessageType.EXCEPTION:
1470
      x = TApplicationException()
1471
      x.read(self._iprot)
1472
      self._iprot.readMessageEnd()
1473
      raise x
1474
    result = markItemAsContentComplete_result()
1475
    result.read(self._iprot)
1476
    self._iprot.readMessageEnd()
1477
    if result.success is not None:
1478
      return result.success
1479
    if result.cex is not None:
1480
      raise result.cex
1481
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1482
 
1483
  def getAllItemsInRange(self, offset, limit):
1484
    """
1485
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1486
 
1487
    Parameters:
1488
     - offset
1489
     - limit
1490
    """
1491
    self.send_getAllItemsInRange(offset, limit)
1492
    return self.recv_getAllItemsInRange()
1493
 
1494
  def send_getAllItemsInRange(self, offset, limit):
1495
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1496
    args = getAllItemsInRange_args()
1497
    args.offset = offset
1498
    args.limit = limit
1499
    args.write(self._oprot)
1500
    self._oprot.writeMessageEnd()
1501
    self._oprot.trans.flush()
1502
 
1503
  def recv_getAllItemsInRange(self, ):
1504
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1505
    if mtype == TMessageType.EXCEPTION:
1506
      x = TApplicationException()
1507
      x.read(self._iprot)
1508
      self._iprot.readMessageEnd()
1509
      raise x
1510
    result = getAllItemsInRange_result()
1511
    result.read(self._iprot)
1512
    self._iprot.readMessageEnd()
1513
    if result.success is not None:
1514
      return result.success
1515
    if result.cex is not None:
1516
      raise result.cex
1517
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1518
 
1519
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1520
    """
1521
    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.
1522
 
1523
    Parameters:
1524
     - itemStatus
1525
     - offset
1526
     - limit
1527
    """
1528
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1529
    return self.recv_getAllItemsByStatusInRange()
1530
 
1531
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1532
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1533
    args = getAllItemsByStatusInRange_args()
1534
    args.itemStatus = itemStatus
1535
    args.offset = offset
1536
    args.limit = limit
1537
    args.write(self._oprot)
1538
    self._oprot.writeMessageEnd()
1539
    self._oprot.trans.flush()
1540
 
1541
  def recv_getAllItemsByStatusInRange(self, ):
1542
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1543
    if mtype == TMessageType.EXCEPTION:
1544
      x = TApplicationException()
1545
      x.read(self._iprot)
1546
      self._iprot.readMessageEnd()
1547
      raise x
1548
    result = getAllItemsByStatusInRange_result()
1549
    result.read(self._iprot)
1550
    self._iprot.readMessageEnd()
1551
    if result.success is not None:
1552
      return result.success
1553
    if result.cex is not None:
1554
      raise result.cex
1555
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1556
 
1557
  def getItemCountByStatus(self, useStatus, itemStatus):
1558
    """
1559
    Gets a count of all items by status
1560
 
1561
    Parameters:
1562
     - useStatus
1563
     - itemStatus
1564
    """
1565
    self.send_getItemCountByStatus(useStatus, itemStatus)
1566
    return self.recv_getItemCountByStatus()
1567
 
1568
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1569
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1570
    args = getItemCountByStatus_args()
1571
    args.useStatus = useStatus
1572
    args.itemStatus = itemStatus
1573
    args.write(self._oprot)
1574
    self._oprot.writeMessageEnd()
1575
    self._oprot.trans.flush()
1576
 
1577
  def recv_getItemCountByStatus(self, ):
1578
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1579
    if mtype == TMessageType.EXCEPTION:
1580
      x = TApplicationException()
1581
      x.read(self._iprot)
1582
      self._iprot.readMessageEnd()
1583
      raise x
1584
    result = getItemCountByStatus_result()
1585
    result.read(self._iprot)
1586
    self._iprot.readMessageEnd()
1587
    if result.success is not None:
1588
      return result.success
1589
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1590
 
1591
  def getBestSellers(self, ):
1592
    self.send_getBestSellers()
1593
    return self.recv_getBestSellers()
1594
 
1595
  def send_getBestSellers(self, ):
1596
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1597
    args = getBestSellers_args()
1598
    args.write(self._oprot)
1599
    self._oprot.writeMessageEnd()
1600
    self._oprot.trans.flush()
1601
 
1602
  def recv_getBestSellers(self, ):
1603
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1604
    if mtype == TMessageType.EXCEPTION:
1605
      x = TApplicationException()
1606
      x.read(self._iprot)
1607
      self._iprot.readMessageEnd()
1608
      raise x
1609
    result = getBestSellers_result()
1610
    result.read(self._iprot)
1611
    self._iprot.readMessageEnd()
1612
    if result.success is not None:
1613
      return result.success
1614
    if result.isex is not None:
1615
      raise result.isex
1616
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1617
 
1618
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1619
    """
1620
    Parameters:
1621
     - beginIndex
1622
     - totalItems
1623
     - brand
1624
     - category
1625
    """
1626
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1627
    return self.recv_getBestSellersCatalogIds()
1628
 
1629
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1630
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1631
    args = getBestSellersCatalogIds_args()
1632
    args.beginIndex = beginIndex
1633
    args.totalItems = totalItems
1634
    args.brand = brand
1635
    args.category = category
1636
    args.write(self._oprot)
1637
    self._oprot.writeMessageEnd()
1638
    self._oprot.trans.flush()
1639
 
1640
  def recv_getBestSellersCatalogIds(self, ):
1641
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1642
    if mtype == TMessageType.EXCEPTION:
1643
      x = TApplicationException()
1644
      x.read(self._iprot)
1645
      self._iprot.readMessageEnd()
1646
      raise x
1647
    result = getBestSellersCatalogIds_result()
1648
    result.read(self._iprot)
1649
    self._iprot.readMessageEnd()
1650
    if result.success is not None:
1651
      return result.success
1652
    if result.cex is not None:
1653
      raise result.cex
1654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1655
 
1656
  def getBestSellersCount(self, ):
1657
    self.send_getBestSellersCount()
1658
    return self.recv_getBestSellersCount()
1659
 
1660
  def send_getBestSellersCount(self, ):
1661
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1662
    args = getBestSellersCount_args()
1663
    args.write(self._oprot)
1664
    self._oprot.writeMessageEnd()
1665
    self._oprot.trans.flush()
1666
 
1667
  def recv_getBestSellersCount(self, ):
1668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1669
    if mtype == TMessageType.EXCEPTION:
1670
      x = TApplicationException()
1671
      x.read(self._iprot)
1672
      self._iprot.readMessageEnd()
1673
      raise x
1674
    result = getBestSellersCount_result()
1675
    result.read(self._iprot)
1676
    self._iprot.readMessageEnd()
1677
    if result.success is not None:
1678
      return result.success
1679
    if result.cex is not None:
1680
      raise result.cex
1681
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1682
 
1683
  def getBestDeals(self, ):
1684
    self.send_getBestDeals()
1685
    return self.recv_getBestDeals()
1686
 
1687
  def send_getBestDeals(self, ):
1688
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1689
    args = getBestDeals_args()
1690
    args.write(self._oprot)
1691
    self._oprot.writeMessageEnd()
1692
    self._oprot.trans.flush()
1693
 
1694
  def recv_getBestDeals(self, ):
1695
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1696
    if mtype == TMessageType.EXCEPTION:
1697
      x = TApplicationException()
1698
      x.read(self._iprot)
1699
      self._iprot.readMessageEnd()
1700
      raise x
1701
    result = getBestDeals_result()
1702
    result.read(self._iprot)
1703
    self._iprot.readMessageEnd()
1704
    if result.success is not None:
1705
      return result.success
1706
    if result.isex is not None:
1707
      raise result.isex
1708
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1709
 
1710
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1711
    """
1712
    Parameters:
1713
     - beginIndex
1714
     - totalItems
1715
     - brand
1716
     - category
1717
    """
1718
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1719
    return self.recv_getBestDealsCatalogIds()
1720
 
1721
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1722
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1723
    args = getBestDealsCatalogIds_args()
1724
    args.beginIndex = beginIndex
1725
    args.totalItems = totalItems
1726
    args.brand = brand
1727
    args.category = category
1728
    args.write(self._oprot)
1729
    self._oprot.writeMessageEnd()
1730
    self._oprot.trans.flush()
1731
 
1732
  def recv_getBestDealsCatalogIds(self, ):
1733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1734
    if mtype == TMessageType.EXCEPTION:
1735
      x = TApplicationException()
1736
      x.read(self._iprot)
1737
      self._iprot.readMessageEnd()
1738
      raise x
1739
    result = getBestDealsCatalogIds_result()
1740
    result.read(self._iprot)
1741
    self._iprot.readMessageEnd()
1742
    if result.success is not None:
1743
      return result.success
1744
    if result.cex is not None:
1745
      raise result.cex
1746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1747
 
1748
  def getBestDealsCount(self, ):
1749
    self.send_getBestDealsCount()
1750
    return self.recv_getBestDealsCount()
1751
 
1752
  def send_getBestDealsCount(self, ):
1753
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1754
    args = getBestDealsCount_args()
1755
    args.write(self._oprot)
1756
    self._oprot.writeMessageEnd()
1757
    self._oprot.trans.flush()
1758
 
1759
  def recv_getBestDealsCount(self, ):
1760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1761
    if mtype == TMessageType.EXCEPTION:
1762
      x = TApplicationException()
1763
      x.read(self._iprot)
1764
      self._iprot.readMessageEnd()
1765
      raise x
1766
    result = getBestDealsCount_result()
1767
    result.read(self._iprot)
1768
    self._iprot.readMessageEnd()
1769
    if result.success is not None:
1770
      return result.success
1771
    if result.cex is not None:
1772
      raise result.cex
1773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1774
 
1775
  def getComingSoon(self, ):
1776
    self.send_getComingSoon()
1777
    return self.recv_getComingSoon()
1778
 
1779
  def send_getComingSoon(self, ):
1780
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1781
    args = getComingSoon_args()
1782
    args.write(self._oprot)
1783
    self._oprot.writeMessageEnd()
1784
    self._oprot.trans.flush()
1785
 
1786
  def recv_getComingSoon(self, ):
1787
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1788
    if mtype == TMessageType.EXCEPTION:
1789
      x = TApplicationException()
1790
      x.read(self._iprot)
1791
      self._iprot.readMessageEnd()
1792
      raise x
1793
    result = getComingSoon_result()
1794
    result.read(self._iprot)
1795
    self._iprot.readMessageEnd()
1796
    if result.success is not None:
1797
      return result.success
1798
    if result.isex is not None:
1799
      raise result.isex
1800
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1801
 
1802
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1803
    """
1804
    Parameters:
1805
     - beginIndex
1806
     - totalItems
1807
     - brand
1808
     - category
1809
    """
1810
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1811
    return self.recv_getComingSoonCatalogIds()
1812
 
1813
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1814
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1815
    args = getComingSoonCatalogIds_args()
1816
    args.beginIndex = beginIndex
1817
    args.totalItems = totalItems
1818
    args.brand = brand
1819
    args.category = category
1820
    args.write(self._oprot)
1821
    self._oprot.writeMessageEnd()
1822
    self._oprot.trans.flush()
1823
 
1824
  def recv_getComingSoonCatalogIds(self, ):
1825
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1826
    if mtype == TMessageType.EXCEPTION:
1827
      x = TApplicationException()
1828
      x.read(self._iprot)
1829
      self._iprot.readMessageEnd()
1830
      raise x
1831
    result = getComingSoonCatalogIds_result()
1832
    result.read(self._iprot)
1833
    self._iprot.readMessageEnd()
1834
    if result.success is not None:
1835
      return result.success
1836
    if result.cex is not None:
1837
      raise result.cex
1838
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1839
 
1840
  def getComingSoonCount(self, ):
1841
    self.send_getComingSoonCount()
1842
    return self.recv_getComingSoonCount()
1843
 
1844
  def send_getComingSoonCount(self, ):
1845
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1846
    args = getComingSoonCount_args()
1847
    args.write(self._oprot)
1848
    self._oprot.writeMessageEnd()
1849
    self._oprot.trans.flush()
1850
 
1851
  def recv_getComingSoonCount(self, ):
1852
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1853
    if mtype == TMessageType.EXCEPTION:
1854
      x = TApplicationException()
1855
      x.read(self._iprot)
1856
      self._iprot.readMessageEnd()
1857
      raise x
1858
    result = getComingSoonCount_result()
1859
    result.read(self._iprot)
1860
    self._iprot.readMessageEnd()
1861
    if result.success is not None:
1862
      return result.success
1863
    if result.cex is not None:
1864
      raise result.cex
1865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1866
 
1867
  def getLatestArrivals(self, ):
1868
    """
1869
    Returns a list of items sorted in the descending order by start date.
1870
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1871
    """
1872
    self.send_getLatestArrivals()
1873
    return self.recv_getLatestArrivals()
1874
 
1875
  def send_getLatestArrivals(self, ):
1876
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1877
    args = getLatestArrivals_args()
1878
    args.write(self._oprot)
1879
    self._oprot.writeMessageEnd()
1880
    self._oprot.trans.flush()
1881
 
1882
  def recv_getLatestArrivals(self, ):
1883
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1884
    if mtype == TMessageType.EXCEPTION:
1885
      x = TApplicationException()
1886
      x.read(self._iprot)
1887
      self._iprot.readMessageEnd()
1888
      raise x
1889
    result = getLatestArrivals_result()
1890
    result.read(self._iprot)
1891
    self._iprot.readMessageEnd()
1892
    if result.success is not None:
1893
      return result.success
1894
    if result.isex is not None:
1895
      raise result.isex
1896
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1897
 
1898
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1899
    """
1900
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1901
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1902
 
1903
    Parameters:
1904
     - beginIndex
1905
     - totalItems
1906
     - brand
1907
     - categories
1908
    """
1909
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1910
    return self.recv_getLatestArrivalsCatalogIds()
1911
 
1912
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1913
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1914
    args = getLatestArrivalsCatalogIds_args()
1915
    args.beginIndex = beginIndex
1916
    args.totalItems = totalItems
1917
    args.brand = brand
1918
    args.categories = categories
1919
    args.write(self._oprot)
1920
    self._oprot.writeMessageEnd()
1921
    self._oprot.trans.flush()
1922
 
1923
  def recv_getLatestArrivalsCatalogIds(self, ):
1924
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1925
    if mtype == TMessageType.EXCEPTION:
1926
      x = TApplicationException()
1927
      x.read(self._iprot)
1928
      self._iprot.readMessageEnd()
1929
      raise x
1930
    result = getLatestArrivalsCatalogIds_result()
1931
    result.read(self._iprot)
1932
    self._iprot.readMessageEnd()
1933
    if result.success is not None:
1934
      return result.success
1935
    if result.cex is not None:
1936
      raise result.cex
1937
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1938
 
1939
  def getLatestArrivalsCount(self, ):
1940
    """
1941
    Get the total number of latest arrivals we are willing to show.
1942
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1943
    """
1944
    self.send_getLatestArrivalsCount()
1945
    return self.recv_getLatestArrivalsCount()
1946
 
1947
  def send_getLatestArrivalsCount(self, ):
1948
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1949
    args = getLatestArrivalsCount_args()
1950
    args.write(self._oprot)
1951
    self._oprot.writeMessageEnd()
1952
    self._oprot.trans.flush()
1953
 
1954
  def recv_getLatestArrivalsCount(self, ):
1955
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1956
    if mtype == TMessageType.EXCEPTION:
1957
      x = TApplicationException()
1958
      x.read(self._iprot)
1959
      self._iprot.readMessageEnd()
1960
      raise x
1961
    result = getLatestArrivalsCount_result()
1962
    result.read(self._iprot)
1963
    self._iprot.readMessageEnd()
1964
    if result.success is not None:
1965
      return result.success
1966
    if result.cex is not None:
1967
      raise result.cex
1968
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1969
 
1970
  def generateNewEntityID(self, ):
1971
    self.send_generateNewEntityID()
1972
    return self.recv_generateNewEntityID()
1973
 
1974
  def send_generateNewEntityID(self, ):
1975
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1976
    args = generateNewEntityID_args()
1977
    args.write(self._oprot)
1978
    self._oprot.writeMessageEnd()
1979
    self._oprot.trans.flush()
1980
 
1981
  def recv_generateNewEntityID(self, ):
1982
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1983
    if mtype == TMessageType.EXCEPTION:
1984
      x = TApplicationException()
1985
      x.read(self._iprot)
1986
      self._iprot.readMessageEnd()
1987
      raise x
1988
    result = generateNewEntityID_result()
1989
    result.read(self._iprot)
1990
    self._iprot.readMessageEnd()
1991
    if result.success is not None:
1992
      return result.success
1993
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1994
 
1995
  def addCategory(self, category):
1996
    """
1997
    All category related functions
1998
 
1999
    Parameters:
2000
     - category
2001
    """
2002
    self.send_addCategory(category)
2003
    return self.recv_addCategory()
2004
 
2005
  def send_addCategory(self, category):
2006
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2007
    args = addCategory_args()
2008
    args.category = category
2009
    args.write(self._oprot)
2010
    self._oprot.writeMessageEnd()
2011
    self._oprot.trans.flush()
2012
 
2013
  def recv_addCategory(self, ):
2014
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2015
    if mtype == TMessageType.EXCEPTION:
2016
      x = TApplicationException()
2017
      x.read(self._iprot)
2018
      self._iprot.readMessageEnd()
2019
      raise x
2020
    result = addCategory_result()
2021
    result.read(self._iprot)
2022
    self._iprot.readMessageEnd()
2023
    if result.success is not None:
2024
      return result.success
2025
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2026
 
2027
  def getCategory(self, id):
2028
    """
2029
    Parameters:
2030
     - id
2031
    """
2032
    self.send_getCategory(id)
2033
    return self.recv_getCategory()
2034
 
2035
  def send_getCategory(self, id):
2036
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2037
    args = getCategory_args()
2038
    args.id = id
2039
    args.write(self._oprot)
2040
    self._oprot.writeMessageEnd()
2041
    self._oprot.trans.flush()
2042
 
2043
  def recv_getCategory(self, ):
2044
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2045
    if mtype == TMessageType.EXCEPTION:
2046
      x = TApplicationException()
2047
      x.read(self._iprot)
2048
      self._iprot.readMessageEnd()
2049
      raise x
2050
    result = getCategory_result()
2051
    result.read(self._iprot)
2052
    self._iprot.readMessageEnd()
2053
    if result.success is not None:
2054
      return result.success
2055
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2056
 
2057
  def getAllCategories(self, ):
2058
    self.send_getAllCategories()
2059
    return self.recv_getAllCategories()
2060
 
2061
  def send_getAllCategories(self, ):
2062
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2063
    args = getAllCategories_args()
2064
    args.write(self._oprot)
2065
    self._oprot.writeMessageEnd()
2066
    self._oprot.trans.flush()
2067
 
2068
  def recv_getAllCategories(self, ):
2069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2070
    if mtype == TMessageType.EXCEPTION:
2071
      x = TApplicationException()
2072
      x.read(self._iprot)
2073
      self._iprot.readMessageEnd()
2074
      raise x
2075
    result = getAllCategories_result()
2076
    result.read(self._iprot)
2077
    self._iprot.readMessageEnd()
2078
    if result.success is not None:
2079
      return result.success
2080
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2081
 
2082
  def getAllSimilarItems(self, itemId):
2083
    """
2084
    Returns the list of similar items.
2085
 
2086
    Parameters:
2087
     - itemId
2088
    """
2089
    self.send_getAllSimilarItems(itemId)
2090
    return self.recv_getAllSimilarItems()
2091
 
2092
  def send_getAllSimilarItems(self, itemId):
2093
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2094
    args = getAllSimilarItems_args()
2095
    args.itemId = itemId
2096
    args.write(self._oprot)
2097
    self._oprot.writeMessageEnd()
2098
    self._oprot.trans.flush()
2099
 
2100
  def recv_getAllSimilarItems(self, ):
2101
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2102
    if mtype == TMessageType.EXCEPTION:
2103
      x = TApplicationException()
2104
      x.read(self._iprot)
2105
      self._iprot.readMessageEnd()
2106
      raise x
2107
    result = getAllSimilarItems_result()
2108
    result.read(self._iprot)
2109
    self._iprot.readMessageEnd()
2110
    if result.success is not None:
2111
      return result.success
2112
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2113
 
2114
  def addSimilarItem(self, itemId, catalogItemId):
2115
    """
2116
    Adds similar item.
2117
 
2118
    Parameters:
2119
     - itemId
2120
     - catalogItemId
2121
    """
2122
    self.send_addSimilarItem(itemId, catalogItemId)
2123
    return self.recv_addSimilarItem()
2124
 
2125
  def send_addSimilarItem(self, itemId, catalogItemId):
2126
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2127
    args = addSimilarItem_args()
2128
    args.itemId = itemId
2129
    args.catalogItemId = catalogItemId
2130
    args.write(self._oprot)
2131
    self._oprot.writeMessageEnd()
2132
    self._oprot.trans.flush()
2133
 
2134
  def recv_addSimilarItem(self, ):
2135
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2136
    if mtype == TMessageType.EXCEPTION:
2137
      x = TApplicationException()
2138
      x.read(self._iprot)
2139
      self._iprot.readMessageEnd()
2140
      raise x
2141
    result = addSimilarItem_result()
2142
    result.read(self._iprot)
2143
    self._iprot.readMessageEnd()
2144
    if result.success is not None:
2145
      return result.success
2146
    if result.cex is not None:
2147
      raise result.cex
2148
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2149
 
6512 kshitij.so 2150
  def addTag(self, displayName, itemId):
2151
    """
2152
    Tag Related
2153
 
2154
    Parameters:
2155
     - displayName
2156
     - itemId
2157
    """
2158
    self.send_addTag(displayName, itemId)
2159
    return self.recv_addTag()
2160
 
2161
  def send_addTag(self, displayName, itemId):
2162
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2163
    args = addTag_args()
2164
    args.displayName = displayName
2165
    args.itemId = itemId
2166
    args.write(self._oprot)
2167
    self._oprot.writeMessageEnd()
2168
    self._oprot.trans.flush()
2169
 
2170
  def recv_addTag(self, ):
2171
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2172
    if mtype == TMessageType.EXCEPTION:
2173
      x = TApplicationException()
2174
      x.read(self._iprot)
2175
      self._iprot.readMessageEnd()
2176
      raise x
2177
    result = addTag_result()
2178
    result.read(self._iprot)
2179
    self._iprot.readMessageEnd()
2180
    if result.success is not None:
2181
      return result.success
2182
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2183
 
2184
  def deleteEntityTag(self, displayName, itemId):
2185
    """
2186
    Parameters:
2187
     - displayName
2188
     - itemId
2189
    """
2190
    self.send_deleteEntityTag(displayName, itemId)
2191
    return self.recv_deleteEntityTag()
2192
 
2193
  def send_deleteEntityTag(self, displayName, itemId):
2194
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2195
    args = deleteEntityTag_args()
2196
    args.displayName = displayName
2197
    args.itemId = itemId
2198
    args.write(self._oprot)
2199
    self._oprot.writeMessageEnd()
2200
    self._oprot.trans.flush()
2201
 
2202
  def recv_deleteEntityTag(self, ):
2203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2204
    if mtype == TMessageType.EXCEPTION:
2205
      x = TApplicationException()
2206
      x.read(self._iprot)
2207
      self._iprot.readMessageEnd()
2208
      raise x
2209
    result = deleteEntityTag_result()
2210
    result.read(self._iprot)
2211
    self._iprot.readMessageEnd()
2212
    if result.success is not None:
2213
      return result.success
2214
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2215
 
2216
  def deleteTag(self, displayName):
2217
    """
2218
    Parameters:
2219
     - displayName
2220
    """
2221
    self.send_deleteTag(displayName)
2222
    return self.recv_deleteTag()
2223
 
2224
  def send_deleteTag(self, displayName):
2225
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2226
    args = deleteTag_args()
2227
    args.displayName = displayName
2228
    args.write(self._oprot)
2229
    self._oprot.writeMessageEnd()
2230
    self._oprot.trans.flush()
2231
 
2232
  def recv_deleteTag(self, ):
2233
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2234
    if mtype == TMessageType.EXCEPTION:
2235
      x = TApplicationException()
2236
      x.read(self._iprot)
2237
      self._iprot.readMessageEnd()
2238
      raise x
2239
    result = deleteTag_result()
2240
    result.read(self._iprot)
2241
    self._iprot.readMessageEnd()
2242
    if result.success is not None:
2243
      return result.success
2244
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2245
 
2246
  def getAllTags(self, ):
2247
    self.send_getAllTags()
2248
    return self.recv_getAllTags()
2249
 
2250
  def send_getAllTags(self, ):
2251
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2252
    args = getAllTags_args()
2253
    args.write(self._oprot)
2254
    self._oprot.writeMessageEnd()
2255
    self._oprot.trans.flush()
2256
 
2257
  def recv_getAllTags(self, ):
2258
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2259
    if mtype == TMessageType.EXCEPTION:
2260
      x = TApplicationException()
2261
      x.read(self._iprot)
2262
      self._iprot.readMessageEnd()
2263
      raise x
2264
    result = getAllTags_result()
2265
    result.read(self._iprot)
2266
    self._iprot.readMessageEnd()
2267
    if result.success is not None:
2268
      return result.success
2269
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2270
 
2271
  def getAllEntitiesByTagName(self, displayName):
2272
    """
2273
    Parameters:
2274
     - displayName
2275
    """
2276
    self.send_getAllEntitiesByTagName(displayName)
2277
    return self.recv_getAllEntitiesByTagName()
2278
 
2279
  def send_getAllEntitiesByTagName(self, displayName):
2280
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2281
    args = getAllEntitiesByTagName_args()
2282
    args.displayName = displayName
2283
    args.write(self._oprot)
2284
    self._oprot.writeMessageEnd()
2285
    self._oprot.trans.flush()
2286
 
2287
  def recv_getAllEntitiesByTagName(self, ):
2288
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2289
    if mtype == TMessageType.EXCEPTION:
2290
      x = TApplicationException()
2291
      x.read(self._iprot)
2292
      self._iprot.readMessageEnd()
2293
      raise x
2294
    result = getAllEntitiesByTagName_result()
2295
    result.read(self._iprot)
2296
    self._iprot.readMessageEnd()
2297
    if result.success is not None:
2298
      return result.success
2299
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2300
 
6845 amit.gupta 2301
  def getAllEntityTags(self, ):
2302
    self.send_getAllEntityTags()
2303
    return self.recv_getAllEntityTags()
2304
 
2305
  def send_getAllEntityTags(self, ):
2306
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2307
    args = getAllEntityTags_args()
2308
    args.write(self._oprot)
2309
    self._oprot.writeMessageEnd()
2310
    self._oprot.trans.flush()
2311
 
2312
  def recv_getAllEntityTags(self, ):
2313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2314
    if mtype == TMessageType.EXCEPTION:
2315
      x = TApplicationException()
2316
      x.read(self._iprot)
2317
      self._iprot.readMessageEnd()
2318
      raise x
2319
    result = getAllEntityTags_result()
2320
    result.read(self._iprot)
2321
    self._iprot.readMessageEnd()
2322
    if result.success is not None:
2323
      return result.success
2324
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2325
 
8590 kshitij.so 2326
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2327
    """
8579 kshitij.so 2328
    Banner Related
2329
 
6850 kshitij.so 2330
    Parameters:
8590 kshitij.so 2331
     - bannerCongregate
6850 kshitij.so 2332
    """
8590 kshitij.so 2333
    self.send_addBanner(bannerCongregate)
2334
    self.recv_addBanner()
6850 kshitij.so 2335
 
8590 kshitij.so 2336
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2337
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2338
    args = addBanner_args()
8590 kshitij.so 2339
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2340
    args.write(self._oprot)
2341
    self._oprot.writeMessageEnd()
2342
    self._oprot.trans.flush()
2343
 
2344
  def recv_addBanner(self, ):
2345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2346
    if mtype == TMessageType.EXCEPTION:
2347
      x = TApplicationException()
2348
      x.read(self._iprot)
2349
      self._iprot.readMessageEnd()
2350
      raise x
2351
    result = addBanner_result()
2352
    result.read(self._iprot)
2353
    self._iprot.readMessageEnd()
8590 kshitij.so 2354
    return
6850 kshitij.so 2355
 
8579 kshitij.so 2356
  def updateBanner(self, banner):
2357
    """
2358
    Parameters:
2359
     - banner
2360
    """
2361
    self.send_updateBanner(banner)
2362
    return self.recv_updateBanner()
2363
 
2364
  def send_updateBanner(self, banner):
2365
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2366
    args = updateBanner_args()
2367
    args.banner = banner
2368
    args.write(self._oprot)
2369
    self._oprot.writeMessageEnd()
2370
    self._oprot.trans.flush()
2371
 
2372
  def recv_updateBanner(self, ):
2373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2374
    if mtype == TMessageType.EXCEPTION:
2375
      x = TApplicationException()
2376
      x.read(self._iprot)
2377
      self._iprot.readMessageEnd()
2378
      raise x
2379
    result = updateBanner_result()
2380
    result.read(self._iprot)
2381
    self._iprot.readMessageEnd()
2382
    if result.success is not None:
2383
      return result.success
2384
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2385
 
6850 kshitij.so 2386
  def getAllBanners(self, ):
2387
    self.send_getAllBanners()
2388
    return self.recv_getAllBanners()
2389
 
2390
  def send_getAllBanners(self, ):
2391
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2392
    args = getAllBanners_args()
2393
    args.write(self._oprot)
2394
    self._oprot.writeMessageEnd()
2395
    self._oprot.trans.flush()
2396
 
2397
  def recv_getAllBanners(self, ):
2398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2399
    if mtype == TMessageType.EXCEPTION:
2400
      x = TApplicationException()
2401
      x.read(self._iprot)
2402
      self._iprot.readMessageEnd()
2403
      raise x
2404
    result = getAllBanners_result()
2405
    result.read(self._iprot)
2406
    self._iprot.readMessageEnd()
2407
    if result.success is not None:
2408
      return result.success
2409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2410
 
9155 kshitij.so 2411
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2412
    """
2413
    Parameters:
2414
     - bannerName
9155 kshitij.so 2415
     - bannerType
6850 kshitij.so 2416
    """
9155 kshitij.so 2417
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2418
    return self.recv_deleteBanner()
2419
 
9155 kshitij.so 2420
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2421
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2422
    args = deleteBanner_args()
2423
    args.bannerName = bannerName
9155 kshitij.so 2424
    args.bannerType = bannerType
6850 kshitij.so 2425
    args.write(self._oprot)
2426
    self._oprot.writeMessageEnd()
2427
    self._oprot.trans.flush()
2428
 
2429
  def recv_deleteBanner(self, ):
2430
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2431
    if mtype == TMessageType.EXCEPTION:
2432
      x = TApplicationException()
2433
      x.read(self._iprot)
2434
      self._iprot.readMessageEnd()
2435
      raise x
2436
    result = deleteBanner_result()
2437
    result.read(self._iprot)
2438
    self._iprot.readMessageEnd()
2439
    if result.success is not None:
2440
      return result.success
2441
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2442
 
9155 kshitij.so 2443
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2444
    """
2445
    Parameters:
2446
     - bannerName
9155 kshitij.so 2447
     - bannerType
6850 kshitij.so 2448
    """
9155 kshitij.so 2449
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2450
    return self.recv_getBannerDetails()
2451
 
9155 kshitij.so 2452
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2453
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2454
    args = getBannerDetails_args()
2455
    args.bannerName = bannerName
9155 kshitij.so 2456
    args.bannerType = bannerType
6850 kshitij.so 2457
    args.write(self._oprot)
2458
    self._oprot.writeMessageEnd()
2459
    self._oprot.trans.flush()
2460
 
2461
  def recv_getBannerDetails(self, ):
2462
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2463
    if mtype == TMessageType.EXCEPTION:
2464
      x = TApplicationException()
2465
      x.read(self._iprot)
2466
      self._iprot.readMessageEnd()
2467
      raise x
2468
    result = getBannerDetails_result()
2469
    result.read(self._iprot)
2470
    self._iprot.readMessageEnd()
2471
    if result.success is not None:
2472
      return result.success
2473
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2474
 
2475
  def getActiveBanners(self, ):
2476
    self.send_getActiveBanners()
2477
    return self.recv_getActiveBanners()
2478
 
2479
  def send_getActiveBanners(self, ):
2480
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2481
    args = getActiveBanners_args()
2482
    args.write(self._oprot)
2483
    self._oprot.writeMessageEnd()
2484
    self._oprot.trans.flush()
2485
 
2486
  def recv_getActiveBanners(self, ):
2487
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2488
    if mtype == TMessageType.EXCEPTION:
2489
      x = TApplicationException()
2490
      x.read(self._iprot)
2491
      self._iprot.readMessageEnd()
2492
      raise x
2493
    result = getActiveBanners_result()
2494
    result.read(self._iprot)
2495
    self._iprot.readMessageEnd()
2496
    if result.success is not None:
2497
      return result.success
2498
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2499
 
8579 kshitij.so 2500
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2501
    """
2502
    Parameters:
8579 kshitij.so 2503
     - bannerMaps
6849 kshitij.so 2504
    """
8579 kshitij.so 2505
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2506
    return self.recv_addBannerMap()
2507
 
8579 kshitij.so 2508
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2509
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2510
    args = addBannerMap_args()
8579 kshitij.so 2511
    args.bannerMaps = bannerMaps
6849 kshitij.so 2512
    args.write(self._oprot)
2513
    self._oprot.writeMessageEnd()
2514
    self._oprot.trans.flush()
2515
 
2516
  def recv_addBannerMap(self, ):
2517
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2518
    if mtype == TMessageType.EXCEPTION:
2519
      x = TApplicationException()
2520
      x.read(self._iprot)
2521
      self._iprot.readMessageEnd()
2522
      raise x
2523
    result = addBannerMap_result()
2524
    result.read(self._iprot)
2525
    self._iprot.readMessageEnd()
2526
    if result.success is not None:
2527
      return result.success
2528
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2529
 
8579 kshitij.so 2530
  def updateBannerMap(self, bannerMap):
2531
    """
2532
    Parameters:
2533
     - bannerMap
2534
    """
2535
    self.send_updateBannerMap(bannerMap)
2536
    return self.recv_updateBannerMap()
2537
 
2538
  def send_updateBannerMap(self, bannerMap):
2539
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2540
    args = updateBannerMap_args()
2541
    args.bannerMap = bannerMap
2542
    args.write(self._oprot)
2543
    self._oprot.writeMessageEnd()
2544
    self._oprot.trans.flush()
2545
 
2546
  def recv_updateBannerMap(self, ):
2547
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2548
    if mtype == TMessageType.EXCEPTION:
2549
      x = TApplicationException()
2550
      x.read(self._iprot)
2551
      self._iprot.readMessageEnd()
2552
      raise x
2553
    result = updateBannerMap_result()
2554
    result.read(self._iprot)
2555
    self._iprot.readMessageEnd()
2556
    if result.success is not None:
2557
      return result.success
2558
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2559
 
6849 kshitij.so 2560
  def deleteBannerMap(self, bannerName):
2561
    """
2562
    Parameters:
2563
     - bannerName
2564
    """
2565
    self.send_deleteBannerMap(bannerName)
2566
    return self.recv_deleteBannerMap()
2567
 
2568
  def send_deleteBannerMap(self, bannerName):
2569
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2570
    args = deleteBannerMap_args()
2571
    args.bannerName = bannerName
2572
    args.write(self._oprot)
2573
    self._oprot.writeMessageEnd()
2574
    self._oprot.trans.flush()
2575
 
2576
  def recv_deleteBannerMap(self, ):
2577
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2578
    if mtype == TMessageType.EXCEPTION:
2579
      x = TApplicationException()
2580
      x.read(self._iprot)
2581
      self._iprot.readMessageEnd()
2582
      raise x
2583
    result = deleteBannerMap_result()
2584
    result.read(self._iprot)
2585
    self._iprot.readMessageEnd()
2586
    if result.success is not None:
2587
      return result.success
2588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2589
 
9155 kshitij.so 2590
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2591
    """
2592
    Parameters:
2593
     - bannerName
9155 kshitij.so 2594
     - bannerType
6849 kshitij.so 2595
    """
9155 kshitij.so 2596
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2597
    return self.recv_getBannerMapDetails()
2598
 
9155 kshitij.so 2599
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2600
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2601
    args = getBannerMapDetails_args()
2602
    args.bannerName = bannerName
9155 kshitij.so 2603
    args.bannerType = bannerType
6849 kshitij.so 2604
    args.write(self._oprot)
2605
    self._oprot.writeMessageEnd()
2606
    self._oprot.trans.flush()
2607
 
2608
  def recv_getBannerMapDetails(self, ):
2609
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2610
    if mtype == TMessageType.EXCEPTION:
2611
      x = TApplicationException()
2612
      x.read(self._iprot)
2613
      self._iprot.readMessageEnd()
2614
      raise x
2615
    result = getBannerMapDetails_result()
2616
    result.read(self._iprot)
2617
    self._iprot.readMessageEnd()
2618
    if result.success is not None:
2619
      return result.success
2620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2621
 
8579 kshitij.so 2622
  def addBannerUri(self, bannerUriMappings):
2623
    """
2624
    Parameters:
2625
     - bannerUriMappings
2626
    """
2627
    self.send_addBannerUri(bannerUriMappings)
2628
    self.recv_addBannerUri()
2629
 
2630
  def send_addBannerUri(self, bannerUriMappings):
2631
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2632
    args = addBannerUri_args()
2633
    args.bannerUriMappings = bannerUriMappings
2634
    args.write(self._oprot)
2635
    self._oprot.writeMessageEnd()
2636
    self._oprot.trans.flush()
2637
 
2638
  def recv_addBannerUri(self, ):
2639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2640
    if mtype == TMessageType.EXCEPTION:
2641
      x = TApplicationException()
2642
      x.read(self._iprot)
2643
      self._iprot.readMessageEnd()
2644
      raise x
2645
    result = addBannerUri_result()
2646
    result.read(self._iprot)
2647
    self._iprot.readMessageEnd()
2648
    return
2649
 
9155 kshitij.so 2650
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2651
    """
2652
    Parameters:
2653
     - bannerName
9155 kshitij.so 2654
     - bannerType
8579 kshitij.so 2655
    """
9155 kshitij.so 2656
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2657
    return self.recv_getUriMapping()
2658
 
9155 kshitij.so 2659
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2660
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2661
    args = getUriMapping_args()
2662
    args.bannerName = bannerName
9155 kshitij.so 2663
    args.bannerType = bannerType
8579 kshitij.so 2664
    args.write(self._oprot)
2665
    self._oprot.writeMessageEnd()
2666
    self._oprot.trans.flush()
2667
 
2668
  def recv_getUriMapping(self, ):
2669
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2670
    if mtype == TMessageType.EXCEPTION:
2671
      x = TApplicationException()
2672
      x.read(self._iprot)
2673
      self._iprot.readMessageEnd()
2674
      raise x
2675
    result = getUriMapping_result()
2676
    result.read(self._iprot)
2677
    self._iprot.readMessageEnd()
2678
    if result.success is not None:
2679
      return result.success
2680
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2681
 
2682
  def addCampaign(self, campaign):
2683
    """
2684
    Parameters:
2685
     - campaign
2686
    """
2687
    self.send_addCampaign(campaign)
2688
    self.recv_addCampaign()
2689
 
2690
  def send_addCampaign(self, campaign):
2691
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2692
    args = addCampaign_args()
2693
    args.campaign = campaign
2694
    args.write(self._oprot)
2695
    self._oprot.writeMessageEnd()
2696
    self._oprot.trans.flush()
2697
 
2698
  def recv_addCampaign(self, ):
2699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2700
    if mtype == TMessageType.EXCEPTION:
2701
      x = TApplicationException()
2702
      x.read(self._iprot)
2703
      self._iprot.readMessageEnd()
2704
      raise x
2705
    result = addCampaign_result()
2706
    result.read(self._iprot)
2707
    self._iprot.readMessageEnd()
2708
    return
2709
 
2710
  def getCampaigns(self, campaignName):
2711
    """
2712
    Parameters:
2713
     - campaignName
2714
    """
2715
    self.send_getCampaigns(campaignName)
2716
    return self.recv_getCampaigns()
2717
 
2718
  def send_getCampaigns(self, campaignName):
2719
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
2720
    args = getCampaigns_args()
2721
    args.campaignName = campaignName
2722
    args.write(self._oprot)
2723
    self._oprot.writeMessageEnd()
2724
    self._oprot.trans.flush()
2725
 
2726
  def recv_getCampaigns(self, ):
2727
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2728
    if mtype == TMessageType.EXCEPTION:
2729
      x = TApplicationException()
2730
      x.read(self._iprot)
2731
      self._iprot.readMessageEnd()
2732
      raise x
2733
    result = getCampaigns_result()
2734
    result.read(self._iprot)
2735
    self._iprot.readMessageEnd()
2736
    if result.success is not None:
2737
      return result.success
2738
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
2739
 
2740
  def deleteCampaign(self, campaignId):
2741
    """
2742
    Parameters:
2743
     - campaignId
2744
    """
2745
    self.send_deleteCampaign(campaignId)
2746
    self.recv_deleteCampaign()
2747
 
2748
  def send_deleteCampaign(self, campaignId):
2749
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
2750
    args = deleteCampaign_args()
2751
    args.campaignId = campaignId
2752
    args.write(self._oprot)
2753
    self._oprot.writeMessageEnd()
2754
    self._oprot.trans.flush()
2755
 
2756
  def recv_deleteCampaign(self, ):
2757
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2758
    if mtype == TMessageType.EXCEPTION:
2759
      x = TApplicationException()
2760
      x.read(self._iprot)
2761
      self._iprot.readMessageEnd()
2762
      raise x
2763
    result = deleteCampaign_result()
2764
    result.read(self._iprot)
2765
    self._iprot.readMessageEnd()
2766
    return
2767
 
2768
  def getAllCampaigns(self, ):
2769
    self.send_getAllCampaigns()
2770
    return self.recv_getAllCampaigns()
2771
 
2772
  def send_getAllCampaigns(self, ):
2773
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
2774
    args = getAllCampaigns_args()
2775
    args.write(self._oprot)
2776
    self._oprot.writeMessageEnd()
2777
    self._oprot.trans.flush()
2778
 
2779
  def recv_getAllCampaigns(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 = getAllCampaigns_result()
2787
    result.read(self._iprot)
2788
    self._iprot.readMessageEnd()
2789
    if result.success is not None:
2790
      return result.success
2791
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
2792
 
9155 kshitij.so 2793
  def getActiveBannersForMobileSite(self, ):
2794
    self.send_getActiveBannersForMobileSite()
2795
    return self.recv_getActiveBannersForMobileSite()
2796
 
2797
  def send_getActiveBannersForMobileSite(self, ):
2798
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
2799
    args = getActiveBannersForMobileSite_args()
2800
    args.write(self._oprot)
2801
    self._oprot.writeMessageEnd()
2802
    self._oprot.trans.flush()
2803
 
2804
  def recv_getActiveBannersForMobileSite(self, ):
2805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2806
    if mtype == TMessageType.EXCEPTION:
2807
      x = TApplicationException()
2808
      x.read(self._iprot)
2809
      self._iprot.readMessageEnd()
2810
      raise x
2811
    result = getActiveBannersForMobileSite_result()
2812
    result.read(self._iprot)
2813
    self._iprot.readMessageEnd()
2814
    if result.success is not None:
2815
      return result.success
2816
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
2817
 
5944 mandeep.dh 2818
  def deleteSimilarItem(self, itemId, catalogItemId):
2819
    """
2820
    Delete similar item.
2821
 
2822
    Parameters:
2823
     - itemId
2824
     - catalogItemId
2825
    """
2826
    self.send_deleteSimilarItem(itemId, catalogItemId)
2827
    return self.recv_deleteSimilarItem()
2828
 
2829
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2830
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2831
    args = deleteSimilarItem_args()
2832
    args.itemId = itemId
2833
    args.catalogItemId = catalogItemId
2834
    args.write(self._oprot)
2835
    self._oprot.writeMessageEnd()
2836
    self._oprot.trans.flush()
2837
 
2838
  def recv_deleteSimilarItem(self, ):
2839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2840
    if mtype == TMessageType.EXCEPTION:
2841
      x = TApplicationException()
2842
      x.read(self._iprot)
2843
      self._iprot.readMessageEnd()
2844
      raise x
2845
    result = deleteSimilarItem_result()
2846
    result.read(self._iprot)
2847
    self._iprot.readMessageEnd()
2848
    if result.success is not None:
2849
      return result.success
2850
    if result.cex is not None:
2851
      raise result.cex
2852
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2853
 
2854
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2855
    """
2856
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2857
    If yes, returns the itemId else returns 0
2858
 
2859
    Parameters:
2860
     - brand
2861
     - modelNumber
2862
     - modelName
2863
     - color
2864
    """
2865
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2866
    return self.recv_checkSimilarItem()
2867
 
2868
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2869
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2870
    args = checkSimilarItem_args()
2871
    args.brand = brand
2872
    args.modelNumber = modelNumber
2873
    args.modelName = modelName
2874
    args.color = color
2875
    args.write(self._oprot)
2876
    self._oprot.writeMessageEnd()
2877
    self._oprot.trans.flush()
2878
 
2879
  def recv_checkSimilarItem(self, ):
2880
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2881
    if mtype == TMessageType.EXCEPTION:
2882
      x = TApplicationException()
2883
      x.read(self._iprot)
2884
      self._iprot.readMessageEnd()
2885
      raise x
2886
    result = checkSimilarItem_result()
2887
    result.read(self._iprot)
2888
    self._iprot.readMessageEnd()
2889
    if result.success is not None:
2890
      return result.success
2891
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2892
 
2893
  def validateRiskyStatus(self, itemId):
2894
    """
2895
    Check wether item is risky and change status if inventory is not available for risky items
2896
 
2897
    Parameters:
2898
     - itemId
2899
    """
2900
    self.send_validateRiskyStatus(itemId)
2901
    self.recv_validateRiskyStatus()
2902
 
2903
  def send_validateRiskyStatus(self, itemId):
2904
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2905
    args = validateRiskyStatus_args()
2906
    args.itemId = itemId
2907
    args.write(self._oprot)
2908
    self._oprot.writeMessageEnd()
2909
    self._oprot.trans.flush()
2910
 
2911
  def recv_validateRiskyStatus(self, ):
2912
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2913
    if mtype == TMessageType.EXCEPTION:
2914
      x = TApplicationException()
2915
      x.read(self._iprot)
2916
      self._iprot.readMessageEnd()
2917
      raise x
2918
    result = validateRiskyStatus_result()
2919
    result.read(self._iprot)
2920
    self._iprot.readMessageEnd()
2921
    return
2922
 
2923
  def changeItemRiskyFlag(self, itemId, risky):
2924
    """
2925
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2926
 
2927
    Parameters:
2928
     - itemId
2929
     - risky
2930
    """
2931
    self.send_changeItemRiskyFlag(itemId, risky)
2932
    self.recv_changeItemRiskyFlag()
2933
 
2934
  def send_changeItemRiskyFlag(self, itemId, risky):
2935
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2936
    args = changeItemRiskyFlag_args()
2937
    args.itemId = itemId
2938
    args.risky = risky
2939
    args.write(self._oprot)
2940
    self._oprot.writeMessageEnd()
2941
    self._oprot.trans.flush()
2942
 
2943
  def recv_changeItemRiskyFlag(self, ):
2944
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2945
    if mtype == TMessageType.EXCEPTION:
2946
      x = TApplicationException()
2947
      x.read(self._iprot)
2948
      self._iprot.readMessageEnd()
2949
      raise x
2950
    result = changeItemRiskyFlag_result()
2951
    result.read(self._iprot)
2952
    self._iprot.readMessageEnd()
2953
    return
2954
 
2955
  def getItemsByRiskyFlag(self, ):
2956
    """
2957
    Returns list of items marked as risky.
2958
    """
2959
    self.send_getItemsByRiskyFlag()
2960
    return self.recv_getItemsByRiskyFlag()
2961
 
2962
  def send_getItemsByRiskyFlag(self, ):
2963
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2964
    args = getItemsByRiskyFlag_args()
2965
    args.write(self._oprot)
2966
    self._oprot.writeMessageEnd()
2967
    self._oprot.trans.flush()
2968
 
2969
  def recv_getItemsByRiskyFlag(self, ):
2970
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2971
    if mtype == TMessageType.EXCEPTION:
2972
      x = TApplicationException()
2973
      x.read(self._iprot)
2974
      self._iprot.readMessageEnd()
2975
      raise x
2976
    result = getItemsByRiskyFlag_result()
2977
    result.read(self._iprot)
2978
    self._iprot.readMessageEnd()
2979
    if result.success is not None:
2980
      return result.success
2981
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2982
 
2983
  def getItemsForMasterSheet(self, category, brand):
2984
    """
2985
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2986
 
2987
    Parameters:
2988
     - category
2989
     - brand
2990
    """
2991
    self.send_getItemsForMasterSheet(category, brand)
2992
    return self.recv_getItemsForMasterSheet()
2993
 
2994
  def send_getItemsForMasterSheet(self, category, brand):
2995
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2996
    args = getItemsForMasterSheet_args()
2997
    args.category = category
2998
    args.brand = brand
2999
    args.write(self._oprot)
3000
    self._oprot.writeMessageEnd()
3001
    self._oprot.trans.flush()
3002
 
3003
  def recv_getItemsForMasterSheet(self, ):
3004
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3005
    if mtype == TMessageType.EXCEPTION:
3006
      x = TApplicationException()
3007
      x.read(self._iprot)
3008
      self._iprot.readMessageEnd()
3009
      raise x
3010
    result = getItemsForMasterSheet_result()
3011
    result.read(self._iprot)
3012
    self._iprot.readMessageEnd()
3013
    if result.success is not None:
3014
      return result.success
3015
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3016
 
3017
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3018
    """
3019
    Returns list of catalog ids of items with same similarity index as of the given itemId
3020
 
3021
    Parameters:
3022
     - beginIndex
3023
     - totalItems
3024
     - itemId
3025
    """
3026
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3027
    return self.recv_getSimilarItemsCatalogIds()
3028
 
3029
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3030
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3031
    args = getSimilarItemsCatalogIds_args()
3032
    args.beginIndex = beginIndex
3033
    args.totalItems = totalItems
3034
    args.itemId = itemId
3035
    args.write(self._oprot)
3036
    self._oprot.writeMessageEnd()
3037
    self._oprot.trans.flush()
3038
 
3039
  def recv_getSimilarItemsCatalogIds(self, ):
3040
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3041
    if mtype == TMessageType.EXCEPTION:
3042
      x = TApplicationException()
3043
      x.read(self._iprot)
3044
      self._iprot.readMessageEnd()
3045
      raise x
3046
    result = getSimilarItemsCatalogIds_result()
3047
    result.read(self._iprot)
3048
    self._iprot.readMessageEnd()
3049
    if result.success is not None:
3050
      return result.success
3051
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3052
 
3053
  def addProductNotification(self, itemId, email):
3054
    """
3055
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3056
 
3057
    Parameters:
3058
     - itemId
3059
     - email
3060
    """
3061
    self.send_addProductNotification(itemId, email)
3062
    return self.recv_addProductNotification()
3063
 
3064
  def send_addProductNotification(self, itemId, email):
3065
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3066
    args = addProductNotification_args()
3067
    args.itemId = itemId
3068
    args.email = email
3069
    args.write(self._oprot)
3070
    self._oprot.writeMessageEnd()
3071
    self._oprot.trans.flush()
3072
 
3073
  def recv_addProductNotification(self, ):
3074
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3075
    if mtype == TMessageType.EXCEPTION:
3076
      x = TApplicationException()
3077
      x.read(self._iprot)
3078
      self._iprot.readMessageEnd()
3079
      raise x
3080
    result = addProductNotification_result()
3081
    result.read(self._iprot)
3082
    self._iprot.readMessageEnd()
3083
    if result.success is not None:
3084
      return result.success
3085
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3086
 
3087
  def sendProductNotifications(self, ):
3088
    """
3089
    Send the product notifications to the users for items which has stock.
3090
    """
3091
    self.send_sendProductNotifications()
3092
    return self.recv_sendProductNotifications()
3093
 
3094
  def send_sendProductNotifications(self, ):
3095
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3096
    args = sendProductNotifications_args()
3097
    args.write(self._oprot)
3098
    self._oprot.writeMessageEnd()
3099
    self._oprot.trans.flush()
3100
 
3101
  def recv_sendProductNotifications(self, ):
3102
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3103
    if mtype == TMessageType.EXCEPTION:
3104
      x = TApplicationException()
3105
      x.read(self._iprot)
3106
      self._iprot.readMessageEnd()
3107
      raise x
3108
    result = sendProductNotifications_result()
3109
    result.read(self._iprot)
3110
    self._iprot.readMessageEnd()
3111
    if result.success is not None:
3112
      return result.success
3113
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3114
 
3115
  def getAllBrandsByCategory(self, categoryId):
3116
    """
3117
    Returns list of brand names for a given category Id
3118
 
3119
    Parameters:
3120
     - categoryId
3121
    """
3122
    self.send_getAllBrandsByCategory(categoryId)
3123
    return self.recv_getAllBrandsByCategory()
3124
 
3125
  def send_getAllBrandsByCategory(self, categoryId):
3126
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3127
    args = getAllBrandsByCategory_args()
3128
    args.categoryId = categoryId
3129
    args.write(self._oprot)
3130
    self._oprot.writeMessageEnd()
3131
    self._oprot.trans.flush()
3132
 
3133
  def recv_getAllBrandsByCategory(self, ):
3134
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3135
    if mtype == TMessageType.EXCEPTION:
3136
      x = TApplicationException()
3137
      x.read(self._iprot)
3138
      self._iprot.readMessageEnd()
3139
      raise x
3140
    result = getAllBrandsByCategory_result()
3141
    result.read(self._iprot)
3142
    self._iprot.readMessageEnd()
3143
    if result.success is not None:
3144
      return result.success
3145
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3146
 
3147
  def getAllBrands(self, ):
3148
    """
3149
    Returns list of brand names
3150
    """
3151
    self.send_getAllBrands()
3152
    return self.recv_getAllBrands()
3153
 
3154
  def send_getAllBrands(self, ):
3155
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3156
    args = getAllBrands_args()
3157
    args.write(self._oprot)
3158
    self._oprot.writeMessageEnd()
3159
    self._oprot.trans.flush()
3160
 
3161
  def recv_getAllBrands(self, ):
3162
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3163
    if mtype == TMessageType.EXCEPTION:
3164
      x = TApplicationException()
3165
      x.read(self._iprot)
3166
      self._iprot.readMessageEnd()
3167
      raise x
3168
    result = getAllBrands_result()
3169
    result.read(self._iprot)
3170
    self._iprot.readMessageEnd()
3171
    if result.success is not None:
3172
      return result.success
3173
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3174
 
3175
  def getAllSources(self, ):
3176
    """
3177
    Return list of all sources
3178
    """
3179
    self.send_getAllSources()
3180
    return self.recv_getAllSources()
3181
 
3182
  def send_getAllSources(self, ):
3183
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3184
    args = getAllSources_args()
3185
    args.write(self._oprot)
3186
    self._oprot.writeMessageEnd()
3187
    self._oprot.trans.flush()
3188
 
3189
  def recv_getAllSources(self, ):
3190
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3191
    if mtype == TMessageType.EXCEPTION:
3192
      x = TApplicationException()
3193
      x.read(self._iprot)
3194
      self._iprot.readMessageEnd()
3195
      raise x
3196
    result = getAllSources_result()
3197
    result.read(self._iprot)
3198
    self._iprot.readMessageEnd()
3199
    if result.success is not None:
3200
      return result.success
3201
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3202
 
3203
  def getItemPricingBySource(self, itemId, sourceId):
3204
    """
3205
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3206
 
3207
    Parameters:
3208
     - itemId
3209
     - sourceId
3210
    """
3211
    self.send_getItemPricingBySource(itemId, sourceId)
3212
    return self.recv_getItemPricingBySource()
3213
 
3214
  def send_getItemPricingBySource(self, itemId, sourceId):
3215
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3216
    args = getItemPricingBySource_args()
3217
    args.itemId = itemId
3218
    args.sourceId = sourceId
3219
    args.write(self._oprot)
3220
    self._oprot.writeMessageEnd()
3221
    self._oprot.trans.flush()
3222
 
3223
  def recv_getItemPricingBySource(self, ):
3224
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3225
    if mtype == TMessageType.EXCEPTION:
3226
      x = TApplicationException()
3227
      x.read(self._iprot)
3228
      self._iprot.readMessageEnd()
3229
      raise x
3230
    result = getItemPricingBySource_result()
3231
    result.read(self._iprot)
3232
    self._iprot.readMessageEnd()
3233
    if result.success is not None:
3234
      return result.success
3235
    if result.cex is not None:
3236
      raise result.cex
3237
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3238
 
3239
  def addSourceItemPricing(self, sourceItemPricing):
3240
    """
3241
    Adds prices to be displayed corresponding to the item if user comes from a source.
3242
    If item is not found or source is not found, it will throw exception.
3243
 
3244
    Parameters:
3245
     - sourceItemPricing
3246
    """
3247
    self.send_addSourceItemPricing(sourceItemPricing)
3248
    self.recv_addSourceItemPricing()
3249
 
3250
  def send_addSourceItemPricing(self, sourceItemPricing):
3251
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3252
    args = addSourceItemPricing_args()
3253
    args.sourceItemPricing = sourceItemPricing
3254
    args.write(self._oprot)
3255
    self._oprot.writeMessageEnd()
3256
    self._oprot.trans.flush()
3257
 
3258
  def recv_addSourceItemPricing(self, ):
3259
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3260
    if mtype == TMessageType.EXCEPTION:
3261
      x = TApplicationException()
3262
      x.read(self._iprot)
3263
      self._iprot.readMessageEnd()
3264
      raise x
3265
    result = addSourceItemPricing_result()
3266
    result.read(self._iprot)
3267
    self._iprot.readMessageEnd()
3268
    if result.cex is not None:
3269
      raise result.cex
3270
    return
3271
 
3272
  def getAllSourcePricing(self, itemId):
3273
    """
3274
    Returns the list of source pricing information of an item.
3275
    Raises an exception if item not found corresponding to itemId
3276
 
3277
    Parameters:
3278
     - itemId
3279
    """
3280
    self.send_getAllSourcePricing(itemId)
3281
    return self.recv_getAllSourcePricing()
3282
 
3283
  def send_getAllSourcePricing(self, itemId):
3284
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3285
    args = getAllSourcePricing_args()
3286
    args.itemId = itemId
3287
    args.write(self._oprot)
3288
    self._oprot.writeMessageEnd()
3289
    self._oprot.trans.flush()
3290
 
3291
  def recv_getAllSourcePricing(self, ):
3292
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3293
    if mtype == TMessageType.EXCEPTION:
3294
      x = TApplicationException()
3295
      x.read(self._iprot)
3296
      self._iprot.readMessageEnd()
3297
      raise x
3298
    result = getAllSourcePricing_result()
3299
    result.read(self._iprot)
3300
    self._iprot.readMessageEnd()
3301
    if result.success is not None:
3302
      return result.success
3303
    if result.cex is not None:
3304
      raise result.cex
3305
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3306
 
3307
  def getItemForSource(self, item_id, sourceId):
3308
    """
3309
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3310
 
3311
    Parameters:
3312
     - item_id
3313
     - sourceId
3314
    """
3315
    self.send_getItemForSource(item_id, sourceId)
3316
    return self.recv_getItemForSource()
3317
 
3318
  def send_getItemForSource(self, item_id, sourceId):
3319
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3320
    args = getItemForSource_args()
3321
    args.item_id = item_id
3322
    args.sourceId = sourceId
3323
    args.write(self._oprot)
3324
    self._oprot.writeMessageEnd()
3325
    self._oprot.trans.flush()
3326
 
3327
  def recv_getItemForSource(self, ):
3328
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3329
    if mtype == TMessageType.EXCEPTION:
3330
      x = TApplicationException()
3331
      x.read(self._iprot)
3332
      self._iprot.readMessageEnd()
3333
      raise x
3334
    result = getItemForSource_result()
3335
    result.read(self._iprot)
3336
    self._iprot.readMessageEnd()
3337
    if result.success is not None:
3338
      return result.success
3339
    if result.cex is not None:
3340
      raise result.cex
3341
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3342
 
3343
  def searchItemsInRange(self, searchTerms, offset, limit):
3344
    """
3345
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3346
 
3347
    Parameters:
3348
     - searchTerms
3349
     - offset
3350
     - limit
3351
    """
3352
    self.send_searchItemsInRange(searchTerms, offset, limit)
3353
    return self.recv_searchItemsInRange()
3354
 
3355
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3356
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3357
    args = searchItemsInRange_args()
3358
    args.searchTerms = searchTerms
3359
    args.offset = offset
3360
    args.limit = limit
3361
    args.write(self._oprot)
3362
    self._oprot.writeMessageEnd()
3363
    self._oprot.trans.flush()
3364
 
3365
  def recv_searchItemsInRange(self, ):
3366
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3367
    if mtype == TMessageType.EXCEPTION:
3368
      x = TApplicationException()
3369
      x.read(self._iprot)
3370
      self._iprot.readMessageEnd()
3371
      raise x
3372
    result = searchItemsInRange_result()
3373
    result.read(self._iprot)
3374
    self._iprot.readMessageEnd()
3375
    if result.success is not None:
3376
      return result.success
3377
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3378
 
3379
  def getSearchResultCount(self, searchTerms):
3380
    """
3381
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3382
 
3383
    Parameters:
3384
     - searchTerms
3385
    """
3386
    self.send_getSearchResultCount(searchTerms)
3387
    return self.recv_getSearchResultCount()
3388
 
3389
  def send_getSearchResultCount(self, searchTerms):
3390
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3391
    args = getSearchResultCount_args()
3392
    args.searchTerms = searchTerms
3393
    args.write(self._oprot)
3394
    self._oprot.writeMessageEnd()
3395
    self._oprot.trans.flush()
3396
 
3397
  def recv_getSearchResultCount(self, ):
3398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3399
    if mtype == TMessageType.EXCEPTION:
3400
      x = TApplicationException()
3401
      x.read(self._iprot)
3402
      self._iprot.readMessageEnd()
3403
      raise x
3404
    result = getSearchResultCount_result()
3405
    result.read(self._iprot)
3406
    self._iprot.readMessageEnd()
3407
    if result.success is not None:
3408
      return result.success
3409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3410
 
3411
  def getProductNotifications(self, startDateTime):
3412
    """
3413
    Returns a list of product notifications added after a supplied datetime
3414
 
3415
    Parameters:
3416
     - startDateTime
3417
    """
3418
    self.send_getProductNotifications(startDateTime)
3419
    return self.recv_getProductNotifications()
3420
 
3421
  def send_getProductNotifications(self, startDateTime):
3422
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3423
    args = getProductNotifications_args()
3424
    args.startDateTime = startDateTime
3425
    args.write(self._oprot)
3426
    self._oprot.writeMessageEnd()
3427
    self._oprot.trans.flush()
3428
 
3429
  def recv_getProductNotifications(self, ):
3430
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3431
    if mtype == TMessageType.EXCEPTION:
3432
      x = TApplicationException()
3433
      x.read(self._iprot)
3434
      self._iprot.readMessageEnd()
3435
      raise x
3436
    result = getProductNotifications_result()
3437
    result.read(self._iprot)
3438
    self._iprot.readMessageEnd()
3439
    if result.success is not None:
3440
      return result.success
3441
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3442
 
7897 amar.kumar 3443
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3444
    """
3445
    Returns a list of count of requests for product notification against each item
3446
 
3447
    Parameters:
3448
     - startDateTime
7897 amar.kumar 3449
     - categoryId
5944 mandeep.dh 3450
    """
7897 amar.kumar 3451
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3452
    return self.recv_getProductNotificationRequestCount()
3453
 
7897 amar.kumar 3454
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3455
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3456
    args = getProductNotificationRequestCount_args()
3457
    args.startDateTime = startDateTime
7897 amar.kumar 3458
    args.categoryId = categoryId
5944 mandeep.dh 3459
    args.write(self._oprot)
3460
    self._oprot.writeMessageEnd()
3461
    self._oprot.trans.flush()
3462
 
3463
  def recv_getProductNotificationRequestCount(self, ):
3464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3465
    if mtype == TMessageType.EXCEPTION:
3466
      x = TApplicationException()
3467
      x.read(self._iprot)
3468
      self._iprot.readMessageEnd()
3469
      raise x
3470
    result = getProductNotificationRequestCount_result()
3471
    result.read(self._iprot)
3472
    self._iprot.readMessageEnd()
3473
    if result.success is not None:
3474
      return result.success
3475
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3476
 
3477
  def addAuthorizationLog(self, itemId, username, reason):
3478
    """
3479
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3480
 
3481
    Parameters:
3482
     - itemId
3483
     - username
3484
     - reason
3485
    """
3486
    self.send_addAuthorizationLog(itemId, username, reason)
3487
    return self.recv_addAuthorizationLog()
3488
 
3489
  def send_addAuthorizationLog(self, itemId, username, reason):
3490
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3491
    args = addAuthorizationLog_args()
3492
    args.itemId = itemId
3493
    args.username = username
3494
    args.reason = reason
3495
    args.write(self._oprot)
3496
    self._oprot.writeMessageEnd()
3497
    self._oprot.trans.flush()
3498
 
3499
  def recv_addAuthorizationLog(self, ):
3500
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3501
    if mtype == TMessageType.EXCEPTION:
3502
      x = TApplicationException()
3503
      x.read(self._iprot)
3504
      self._iprot.readMessageEnd()
3505
      raise x
3506
    result = addAuthorizationLog_result()
3507
    result.read(self._iprot)
3508
    self._iprot.readMessageEnd()
3509
    if result.success is not None:
3510
      return result.success
3511
    if result.cex is not None:
3512
      raise result.cex
3513
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3514
 
3515
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3516
    """
3517
    Parameters:
3518
     - catalog_item_id
3519
     - voucherType
3520
     - voucherAmount
3521
    """
3522
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3523
    return self.recv_addupdateVoucherForItem()
3524
 
3525
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3526
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3527
    args = addupdateVoucherForItem_args()
3528
    args.catalog_item_id = catalog_item_id
3529
    args.voucherType = voucherType
3530
    args.voucherAmount = voucherAmount
3531
    args.write(self._oprot)
3532
    self._oprot.writeMessageEnd()
3533
    self._oprot.trans.flush()
3534
 
3535
  def recv_addupdateVoucherForItem(self, ):
3536
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3537
    if mtype == TMessageType.EXCEPTION:
3538
      x = TApplicationException()
3539
      x.read(self._iprot)
3540
      self._iprot.readMessageEnd()
3541
      raise x
3542
    result = addupdateVoucherForItem_result()
3543
    result.read(self._iprot)
3544
    self._iprot.readMessageEnd()
3545
    if result.success is not None:
3546
      return result.success
3547
    if result.cex is not None:
3548
      raise result.cex
3549
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3550
 
3551
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3552
    """
3553
    Parameters:
3554
     - catalog_item_id
3555
     - voucherType
3556
    """
3557
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3558
    return self.recv_deleteVoucherForItem()
3559
 
3560
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3561
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3562
    args = deleteVoucherForItem_args()
3563
    args.catalog_item_id = catalog_item_id
3564
    args.voucherType = voucherType
3565
    args.write(self._oprot)
3566
    self._oprot.writeMessageEnd()
3567
    self._oprot.trans.flush()
3568
 
3569
  def recv_deleteVoucherForItem(self, ):
3570
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3571
    if mtype == TMessageType.EXCEPTION:
3572
      x = TApplicationException()
3573
      x.read(self._iprot)
3574
      self._iprot.readMessageEnd()
3575
      raise x
3576
    result = deleteVoucherForItem_result()
3577
    result.read(self._iprot)
3578
    self._iprot.readMessageEnd()
3579
    if result.success is not None:
3580
      return result.success
3581
    if result.cex is not None:
3582
      raise result.cex
3583
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3584
 
3585
  def getVoucherAmount(self, itemId, voucherType):
3586
    """
3587
    Parameters:
3588
     - itemId
3589
     - voucherType
3590
    """
3591
    self.send_getVoucherAmount(itemId, voucherType)
3592
    return self.recv_getVoucherAmount()
3593
 
3594
  def send_getVoucherAmount(self, itemId, voucherType):
3595
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3596
    args = getVoucherAmount_args()
3597
    args.itemId = itemId
3598
    args.voucherType = voucherType
3599
    args.write(self._oprot)
3600
    self._oprot.writeMessageEnd()
3601
    self._oprot.trans.flush()
3602
 
3603
  def recv_getVoucherAmount(self, ):
3604
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3605
    if mtype == TMessageType.EXCEPTION:
3606
      x = TApplicationException()
3607
      x.read(self._iprot)
3608
      self._iprot.readMessageEnd()
3609
      raise x
3610
    result = getVoucherAmount_result()
3611
    result.read(self._iprot)
3612
    self._iprot.readMessageEnd()
3613
    if result.success is not None:
3614
      return result.success
3615
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3616
 
3617
  def getAllItemVouchers(self, itemId):
3618
    """
3619
    Parameters:
3620
     - itemId
3621
    """
3622
    self.send_getAllItemVouchers(itemId)
3623
    return self.recv_getAllItemVouchers()
3624
 
3625
  def send_getAllItemVouchers(self, itemId):
3626
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3627
    args = getAllItemVouchers_args()
3628
    args.itemId = itemId
3629
    args.write(self._oprot)
3630
    self._oprot.writeMessageEnd()
3631
    self._oprot.trans.flush()
3632
 
3633
  def recv_getAllItemVouchers(self, ):
3634
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3635
    if mtype == TMessageType.EXCEPTION:
3636
      x = TApplicationException()
3637
      x.read(self._iprot)
3638
      self._iprot.readMessageEnd()
3639
      raise x
3640
    result = getAllItemVouchers_result()
3641
    result.read(self._iprot)
3642
    self._iprot.readMessageEnd()
3643
    if result.success is not None:
3644
      return result.success
3645
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3646
 
3647
  def isValidCatalogItemId(self, catalog_item_id):
3648
    """
3649
    Parameters:
3650
     - catalog_item_id
3651
    """
3652
    self.send_isValidCatalogItemId(catalog_item_id)
3653
    return self.recv_isValidCatalogItemId()
3654
 
3655
  def send_isValidCatalogItemId(self, catalog_item_id):
3656
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3657
    args = isValidCatalogItemId_args()
3658
    args.catalog_item_id = catalog_item_id
3659
    args.write(self._oprot)
3660
    self._oprot.writeMessageEnd()
3661
    self._oprot.trans.flush()
3662
 
3663
  def recv_isValidCatalogItemId(self, ):
3664
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3665
    if mtype == TMessageType.EXCEPTION:
3666
      x = TApplicationException()
3667
      x.read(self._iprot)
3668
      self._iprot.readMessageEnd()
3669
      raise x
3670
    result = isValidCatalogItemId_result()
3671
    result.read(self._iprot)
3672
    self._iprot.readMessageEnd()
3673
    if result.success is not None:
3674
      return result.success
3675
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3676
 
7330 amit.gupta 3677
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3678
    """
3679
    Parameters:
3680
     - itemId
7330 amit.gupta 3681
     - stateId
6039 amit.gupta 3682
     - price
3683
    """
7330 amit.gupta 3684
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3685
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3686
 
7330 amit.gupta 3687
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3688
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3689
    args = getVatPercentageForItem_args()
3690
    args.itemId = itemId
7330 amit.gupta 3691
    args.stateId = stateId
6039 amit.gupta 3692
    args.price = price
3693
    args.write(self._oprot)
3694
    self._oprot.writeMessageEnd()
3695
    self._oprot.trans.flush()
3696
 
3697
  def recv_getVatPercentageForItem(self, ):
3698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3699
    if mtype == TMessageType.EXCEPTION:
3700
      x = TApplicationException()
3701
      x.read(self._iprot)
3702
      self._iprot.readMessageEnd()
3703
      raise x
3704
    result = getVatPercentageForItem_result()
3705
    result.read(self._iprot)
3706
    self._iprot.readMessageEnd()
3707
    if result.success is not None:
3708
      return result.success
7340 amit.gupta 3709
    if result.cex is not None:
3710
      raise result.cex
6039 amit.gupta 3711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3712
 
3713
  def getVatAmountForItem(self, itemId, price):
3714
    """
3715
    Parameters:
3716
     - itemId
3717
     - price
3718
    """
3719
    self.send_getVatAmountForItem(itemId, price)
3720
    return self.recv_getVatAmountForItem()
3721
 
3722
  def send_getVatAmountForItem(self, itemId, price):
3723
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3724
    args = getVatAmountForItem_args()
3725
    args.itemId = itemId
3726
    args.price = price
3727
    args.write(self._oprot)
3728
    self._oprot.writeMessageEnd()
3729
    self._oprot.trans.flush()
3730
 
3731
  def recv_getVatAmountForItem(self, ):
3732
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3733
    if mtype == TMessageType.EXCEPTION:
3734
      x = TApplicationException()
3735
      x.read(self._iprot)
3736
      self._iprot.readMessageEnd()
3737
      raise x
3738
    result = getVatAmountForItem_result()
3739
    result.read(self._iprot)
3740
    self._iprot.readMessageEnd()
3741
    if result.success is not None:
3742
      return result.success
3743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3744
 
6531 vikram.rag 3745
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3746
    """
3747
    Parameters:
3748
     - offset
3749
     - limit
3750
    """
3751
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3752
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3753
 
6531 vikram.rag 3754
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3755
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3756
    args = getAllIgnoredInventoryUpdateItemsList_args()
3757
    args.offset = offset
3758
    args.limit = limit
3759
    args.write(self._oprot)
3760
    self._oprot.writeMessageEnd()
3761
    self._oprot.trans.flush()
3762
 
3763
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3765
    if mtype == TMessageType.EXCEPTION:
3766
      x = TApplicationException()
3767
      x.read(self._iprot)
3768
      self._iprot.readMessageEnd()
3769
      raise x
3770
    result = getAllIgnoredInventoryUpdateItemsList_result()
3771
    result.read(self._iprot)
3772
    self._iprot.readMessageEnd()
3773
    if result.success is not None:
3774
      return result.success
3775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3776
 
6821 amar.kumar 3777
  def getAllAliveItems(self, ):
3778
    self.send_getAllAliveItems()
3779
    return self.recv_getAllAliveItems()
3780
 
3781
  def send_getAllAliveItems(self, ):
3782
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3783
    args = getAllAliveItems_args()
3784
    args.write(self._oprot)
3785
    self._oprot.writeMessageEnd()
3786
    self._oprot.trans.flush()
3787
 
3788
  def recv_getAllAliveItems(self, ):
3789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3790
    if mtype == TMessageType.EXCEPTION:
3791
      x = TApplicationException()
3792
      x.read(self._iprot)
3793
      self._iprot.readMessageEnd()
3794
      raise x
3795
    result = getAllAliveItems_result()
3796
    result.read(self._iprot)
3797
    self._iprot.readMessageEnd()
3798
    if result.success is not None:
3799
      return result.success
3800
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3801
 
6921 anupam.sin 3802
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3803
    """
3804
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3805
 
6805 anupam.sin 3806
    Parameters:
3807
     - itemId
6921 anupam.sin 3808
     - price
6805 anupam.sin 3809
     - insurerId
3810
     - quantity
3811
    """
6921 anupam.sin 3812
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3813
    return self.recv_getInsuranceAmount()
3814
 
6921 anupam.sin 3815
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3816
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3817
    args = getInsuranceAmount_args()
3818
    args.itemId = itemId
6921 anupam.sin 3819
    args.price = price
6805 anupam.sin 3820
    args.insurerId = insurerId
3821
    args.quantity = quantity
3822
    args.write(self._oprot)
3823
    self._oprot.writeMessageEnd()
3824
    self._oprot.trans.flush()
3825
 
3826
  def recv_getInsuranceAmount(self, ):
3827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3828
    if mtype == TMessageType.EXCEPTION:
3829
      x = TApplicationException()
3830
      x.read(self._iprot)
3831
      self._iprot.readMessageEnd()
3832
      raise x
3833
    result = getInsuranceAmount_result()
3834
    result.read(self._iprot)
3835
    self._iprot.readMessageEnd()
3836
    if result.success is not None:
3837
      return result.success
3838
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3839
 
3840
  def getInsurer(self, insurerId):
3841
    """
3842
    Parameters:
3843
     - insurerId
3844
    """
3845
    self.send_getInsurer(insurerId)
3846
    return self.recv_getInsurer()
3847
 
3848
  def send_getInsurer(self, insurerId):
3849
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3850
    args = getInsurer_args()
3851
    args.insurerId = insurerId
3852
    args.write(self._oprot)
3853
    self._oprot.writeMessageEnd()
3854
    self._oprot.trans.flush()
3855
 
3856
  def recv_getInsurer(self, ):
3857
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3858
    if mtype == TMessageType.EXCEPTION:
3859
      x = TApplicationException()
3860
      x.read(self._iprot)
3861
      self._iprot.readMessageEnd()
3862
      raise x
3863
    result = getInsurer_result()
3864
    result.read(self._iprot)
3865
    self._iprot.readMessageEnd()
3866
    if result.success is not None:
3867
      return result.success
3868
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3869
 
6838 vikram.rag 3870
  def getAllInsurers(self, ):
3871
    self.send_getAllInsurers()
3872
    return self.recv_getAllInsurers()
6805 anupam.sin 3873
 
6838 vikram.rag 3874
  def send_getAllInsurers(self, ):
3875
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3876
    args = getAllInsurers_args()
3877
    args.write(self._oprot)
3878
    self._oprot.writeMessageEnd()
3879
    self._oprot.trans.flush()
3880
 
3881
  def recv_getAllInsurers(self, ):
3882
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3883
    if mtype == TMessageType.EXCEPTION:
3884
      x = TApplicationException()
3885
      x.read(self._iprot)
3886
      self._iprot.readMessageEnd()
3887
      raise x
3888
    result = getAllInsurers_result()
3889
    result.read(self._iprot)
3890
    self._iprot.readMessageEnd()
3891
    if result.success is not None:
3892
      return result.success
3893
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3894
 
6962 rajveer 3895
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
3896
    """
3897
    Parameters:
3898
     - insurerId
3899
     - amount
3900
    """
3901
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
3902
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 3903
 
6962 rajveer 3904
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
3905
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
3906
    args = updateInsuranceDeclaredAmount_args()
3907
    args.insurerId = insurerId
3908
    args.amount = amount
3909
    args.write(self._oprot)
3910
    self._oprot.writeMessageEnd()
3911
    self._oprot.trans.flush()
3912
 
3913
  def recv_updateInsuranceDeclaredAmount(self, ):
3914
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3915
    if mtype == TMessageType.EXCEPTION:
3916
      x = TApplicationException()
3917
      x.read(self._iprot)
3918
      self._iprot.readMessageEnd()
3919
      raise x
3920
    result = updateInsuranceDeclaredAmount_result()
3921
    result.read(self._iprot)
3922
    self._iprot.readMessageEnd()
3923
    return
3924
 
7190 amar.kumar 3925
  def getFreebieForItem(self, itemId):
3926
    """
3927
    Parameters:
3928
     - itemId
3929
    """
3930
    self.send_getFreebieForItem(itemId)
3931
    return self.recv_getFreebieForItem()
6962 rajveer 3932
 
7190 amar.kumar 3933
  def send_getFreebieForItem(self, itemId):
3934
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
3935
    args = getFreebieForItem_args()
3936
    args.itemId = itemId
3937
    args.write(self._oprot)
3938
    self._oprot.writeMessageEnd()
3939
    self._oprot.trans.flush()
3940
 
3941
  def recv_getFreebieForItem(self, ):
3942
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3943
    if mtype == TMessageType.EXCEPTION:
3944
      x = TApplicationException()
3945
      x.read(self._iprot)
3946
      self._iprot.readMessageEnd()
3947
      raise x
3948
    result = getFreebieForItem_result()
3949
    result.read(self._iprot)
3950
    self._iprot.readMessageEnd()
3951
    if result.success is not None:
3952
      return result.success
3953
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
3954
 
3955
  def addOrUpdateFreebieForItem(self, freebieItem):
3956
    """
3957
    Parameters:
3958
     - freebieItem
3959
    """
3960
    self.send_addOrUpdateFreebieForItem(freebieItem)
3961
    self.recv_addOrUpdateFreebieForItem()
3962
 
3963
  def send_addOrUpdateFreebieForItem(self, freebieItem):
3964
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
3965
    args = addOrUpdateFreebieForItem_args()
3966
    args.freebieItem = freebieItem
3967
    args.write(self._oprot)
3968
    self._oprot.writeMessageEnd()
3969
    self._oprot.trans.flush()
3970
 
3971
  def recv_addOrUpdateFreebieForItem(self, ):
3972
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3973
    if mtype == TMessageType.EXCEPTION:
3974
      x = TApplicationException()
3975
      x.read(self._iprot)
3976
      self._iprot.readMessageEnd()
3977
      raise x
3978
    result = addOrUpdateFreebieForItem_result()
3979
    result.read(self._iprot)
3980
    self._iprot.readMessageEnd()
3981
    return
3982
 
7272 amit.gupta 3983
  def addOrUpdateBrandInfo(self, brandInfo):
3984
    """
3985
    Parameters:
3986
     - brandInfo
3987
    """
3988
    self.send_addOrUpdateBrandInfo(brandInfo)
3989
    self.recv_addOrUpdateBrandInfo()
3990
 
3991
  def send_addOrUpdateBrandInfo(self, brandInfo):
3992
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
3993
    args = addOrUpdateBrandInfo_args()
3994
    args.brandInfo = brandInfo
3995
    args.write(self._oprot)
3996
    self._oprot.writeMessageEnd()
3997
    self._oprot.trans.flush()
3998
 
3999
  def recv_addOrUpdateBrandInfo(self, ):
4000
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4001
    if mtype == TMessageType.EXCEPTION:
4002
      x = TApplicationException()
4003
      x.read(self._iprot)
4004
      self._iprot.readMessageEnd()
4005
      raise x
4006
    result = addOrUpdateBrandInfo_result()
4007
    result.read(self._iprot)
4008
    self._iprot.readMessageEnd()
4009
    return
4010
 
4011
  def getBrandInfo(self, ):
4012
    self.send_getBrandInfo()
4013
    return self.recv_getBrandInfo()
4014
 
4015
  def send_getBrandInfo(self, ):
4016
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4017
    args = getBrandInfo_args()
4018
    args.write(self._oprot)
4019
    self._oprot.writeMessageEnd()
4020
    self._oprot.trans.flush()
4021
 
4022
  def recv_getBrandInfo(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 = getBrandInfo_result()
4030
    result.read(self._iprot)
4031
    self._iprot.readMessageEnd()
4032
    if result.success is not None:
4033
      return result.success
4034
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4035
 
7256 rajveer 4036
  def getStorePricing(self, itemId):
4037
    """
4038
    Parameters:
4039
     - itemId
4040
    """
4041
    self.send_getStorePricing(itemId)
4042
    return self.recv_getStorePricing()
7190 amar.kumar 4043
 
7256 rajveer 4044
  def send_getStorePricing(self, itemId):
4045
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4046
    args = getStorePricing_args()
4047
    args.itemId = itemId
4048
    args.write(self._oprot)
4049
    self._oprot.writeMessageEnd()
4050
    self._oprot.trans.flush()
4051
 
4052
  def recv_getStorePricing(self, ):
4053
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4054
    if mtype == TMessageType.EXCEPTION:
4055
      x = TApplicationException()
4056
      x.read(self._iprot)
4057
      self._iprot.readMessageEnd()
4058
      raise x
4059
    result = getStorePricing_result()
4060
    result.read(self._iprot)
4061
    self._iprot.readMessageEnd()
4062
    if result.success is not None:
4063
      return result.success
4064
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4065
 
7306 rajveer 4066
  def getStorePricings(self, itemIds):
4067
    """
4068
    Parameters:
4069
     - itemIds
4070
    """
4071
    self.send_getStorePricings(itemIds)
4072
    return self.recv_getStorePricings()
4073
 
4074
  def send_getStorePricings(self, itemIds):
4075
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4076
    args = getStorePricings_args()
4077
    args.itemIds = itemIds
4078
    args.write(self._oprot)
4079
    self._oprot.writeMessageEnd()
4080
    self._oprot.trans.flush()
4081
 
4082
  def recv_getStorePricings(self, ):
4083
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4084
    if mtype == TMessageType.EXCEPTION:
4085
      x = TApplicationException()
4086
      x.read(self._iprot)
4087
      self._iprot.readMessageEnd()
4088
      raise x
4089
    result = getStorePricings_result()
4090
    result.read(self._iprot)
4091
    self._iprot.readMessageEnd()
4092
    if result.success is not None:
4093
      return result.success
4094
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4095
 
7382 rajveer 4096
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4097
    """
4098
    Parameters:
4099
     - sp
7382 rajveer 4100
     - allColors
7265 rajveer 4101
    """
7382 rajveer 4102
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4103
    self.recv_updateStorePricing()
7256 rajveer 4104
 
7382 rajveer 4105
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4106
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4107
    args = updateStorePricing_args()
4108
    args.sp = sp
7382 rajveer 4109
    args.allColors = allColors
7265 rajveer 4110
    args.write(self._oprot)
4111
    self._oprot.writeMessageEnd()
4112
    self._oprot.trans.flush()
4113
 
4114
  def recv_updateStorePricing(self, ):
4115
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4116
    if mtype == TMessageType.EXCEPTION:
4117
      x = TApplicationException()
4118
      x.read(self._iprot)
4119
      self._iprot.readMessageEnd()
4120
      raise x
4121
    result = updateStorePricing_result()
4122
    result.read(self._iprot)
4123
    self._iprot.readMessageEnd()
4124
    return
4125
 
7281 kshitij.so 4126
  def getAllAmazonListedItems(self, ):
4127
    self.send_getAllAmazonListedItems()
4128
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4129
 
7281 kshitij.so 4130
  def send_getAllAmazonListedItems(self, ):
4131
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4132
    args = getAllAmazonListedItems_args()
4133
    args.write(self._oprot)
4134
    self._oprot.writeMessageEnd()
4135
    self._oprot.trans.flush()
4136
 
4137
  def recv_getAllAmazonListedItems(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 = getAllAmazonListedItems_result()
4145
    result.read(self._iprot)
4146
    self._iprot.readMessageEnd()
4147
    if result.success is not None:
4148
      return result.success
4149
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4150
 
8619 kshitij.so 4151
  def searchAmazonItems(self, searchTerm, offset, limit):
4152
    """
4153
    Parameters:
4154
     - searchTerm
4155
     - offset
4156
     - limit
4157
    """
4158
    self.send_searchAmazonItems(searchTerm, offset, limit)
4159
    return self.recv_searchAmazonItems()
4160
 
4161
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4162
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4163
    args = searchAmazonItems_args()
4164
    args.searchTerm = searchTerm
4165
    args.offset = offset
4166
    args.limit = limit
4167
    args.write(self._oprot)
4168
    self._oprot.writeMessageEnd()
4169
    self._oprot.trans.flush()
4170
 
4171
  def recv_searchAmazonItems(self, ):
4172
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4173
    if mtype == TMessageType.EXCEPTION:
4174
      x = TApplicationException()
4175
      x.read(self._iprot)
4176
      self._iprot.readMessageEnd()
4177
      raise x
4178
    result = searchAmazonItems_result()
4179
    result.read(self._iprot)
4180
    self._iprot.readMessageEnd()
4181
    if result.success is not None:
4182
      return result.success
4183
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4184
 
4185
  def getAmazonSearchResultCount(self, searchTerm):
4186
    """
4187
    Parameters:
4188
     - searchTerm
4189
    """
4190
    self.send_getAmazonSearchResultCount(searchTerm)
4191
    return self.recv_getAmazonSearchResultCount()
4192
 
4193
  def send_getAmazonSearchResultCount(self, searchTerm):
4194
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4195
    args = getAmazonSearchResultCount_args()
4196
    args.searchTerm = searchTerm
4197
    args.write(self._oprot)
4198
    self._oprot.writeMessageEnd()
4199
    self._oprot.trans.flush()
4200
 
4201
  def recv_getAmazonSearchResultCount(self, ):
4202
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4203
    if mtype == TMessageType.EXCEPTION:
4204
      x = TApplicationException()
4205
      x.read(self._iprot)
4206
      self._iprot.readMessageEnd()
4207
      raise x
4208
    result = getAmazonSearchResultCount_result()
4209
    result.read(self._iprot)
4210
    self._iprot.readMessageEnd()
4211
    if result.success is not None:
4212
      return result.success
4213
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4214
 
4215
  def getCountForAmazonlistedItems(self, ):
4216
    self.send_getCountForAmazonlistedItems()
4217
    return self.recv_getCountForAmazonlistedItems()
4218
 
4219
  def send_getCountForAmazonlistedItems(self, ):
4220
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4221
    args = getCountForAmazonlistedItems_args()
4222
    args.write(self._oprot)
4223
    self._oprot.writeMessageEnd()
4224
    self._oprot.trans.flush()
4225
 
4226
  def recv_getCountForAmazonlistedItems(self, ):
4227
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4228
    if mtype == TMessageType.EXCEPTION:
4229
      x = TApplicationException()
4230
      x.read(self._iprot)
4231
      self._iprot.readMessageEnd()
4232
      raise x
4233
    result = getCountForAmazonlistedItems_result()
4234
    result.read(self._iprot)
4235
    self._iprot.readMessageEnd()
4236
    if result.success is not None:
4237
      return result.success
4238
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4239
 
7281 kshitij.so 4240
  def getAmazonItemDetails(self, itemId):
4241
    """
4242
    Parameters:
4243
     - itemId
4244
    """
4245
    self.send_getAmazonItemDetails(itemId)
4246
    return self.recv_getAmazonItemDetails()
4247
 
4248
  def send_getAmazonItemDetails(self, itemId):
4249
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4250
    args = getAmazonItemDetails_args()
4251
    args.itemId = itemId
4252
    args.write(self._oprot)
4253
    self._oprot.writeMessageEnd()
4254
    self._oprot.trans.flush()
4255
 
4256
  def recv_getAmazonItemDetails(self, ):
4257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4258
    if mtype == TMessageType.EXCEPTION:
4259
      x = TApplicationException()
4260
      x.read(self._iprot)
4261
      self._iprot.readMessageEnd()
4262
      raise x
4263
    result = getAmazonItemDetails_result()
4264
    result.read(self._iprot)
4265
    self._iprot.readMessageEnd()
4266
    if result.success is not None:
4267
      return result.success
4268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4269
 
8168 kshitij.so 4270
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4271
    """
4272
    Parameters:
8168 kshitij.so 4273
     - amazonlisted
7281 kshitij.so 4274
    """
8168 kshitij.so 4275
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4276
    self.recv_updateAmazonItemDetails()
4277
 
8168 kshitij.so 4278
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4279
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4280
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4281
    args.amazonlisted = amazonlisted
7281 kshitij.so 4282
    args.write(self._oprot)
4283
    self._oprot.writeMessageEnd()
4284
    self._oprot.trans.flush()
4285
 
4286
  def recv_updateAmazonItemDetails(self, ):
4287
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4288
    if mtype == TMessageType.EXCEPTION:
4289
      x = TApplicationException()
4290
      x.read(self._iprot)
4291
      self._iprot.readMessageEnd()
4292
      raise x
4293
    result = updateAmazonItemDetails_result()
4294
    result.read(self._iprot)
4295
    self._iprot.readMessageEnd()
4296
    return
4297
 
4298
  def addAmazonItem(self, amazonlisted):
4299
    """
4300
    Parameters:
4301
     - amazonlisted
4302
    """
4303
    self.send_addAmazonItem(amazonlisted)
4304
    self.recv_addAmazonItem()
4305
 
4306
  def send_addAmazonItem(self, amazonlisted):
4307
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4308
    args = addAmazonItem_args()
4309
    args.amazonlisted = amazonlisted
4310
    args.write(self._oprot)
4311
    self._oprot.writeMessageEnd()
4312
    self._oprot.trans.flush()
4313
 
4314
  def recv_addAmazonItem(self, ):
4315
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4316
    if mtype == TMessageType.EXCEPTION:
4317
      x = TApplicationException()
4318
      x.read(self._iprot)
4319
      self._iprot.readMessageEnd()
4320
      raise x
4321
    result = addAmazonItem_result()
4322
    result.read(self._iprot)
4323
    self._iprot.readMessageEnd()
4324
    return
4325
 
7291 vikram.rag 4326
  def getAsinItems(self, ):
4327
    self.send_getAsinItems()
4328
    return self.recv_getAsinItems()
7281 kshitij.so 4329
 
7291 vikram.rag 4330
  def send_getAsinItems(self, ):
4331
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4332
    args = getAsinItems_args()
4333
    args.write(self._oprot)
4334
    self._oprot.writeMessageEnd()
4335
    self._oprot.trans.flush()
4336
 
4337
  def recv_getAsinItems(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 = getAsinItems_result()
4345
    result.read(self._iprot)
4346
    self._iprot.readMessageEnd()
4347
    if result.success is not None:
4348
      return result.success
4349
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4350
 
4351
  def getAllFbaListedItems(self, ):
4352
    self.send_getAllFbaListedItems()
4353
    return self.recv_getAllFbaListedItems()
4354
 
4355
  def send_getAllFbaListedItems(self, ):
4356
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4357
    args = getAllFbaListedItems_args()
4358
    args.write(self._oprot)
4359
    self._oprot.writeMessageEnd()
4360
    self._oprot.trans.flush()
4361
 
4362
  def recv_getAllFbaListedItems(self, ):
4363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4364
    if mtype == TMessageType.EXCEPTION:
4365
      x = TApplicationException()
4366
      x.read(self._iprot)
4367
      self._iprot.readMessageEnd()
4368
      raise x
4369
    result = getAllFbaListedItems_result()
4370
    result.read(self._iprot)
4371
    self._iprot.readMessageEnd()
4372
    if result.success is not None:
4373
      return result.success
4374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4375
 
4376
  def getAllNonFbaListedItems(self, ):
4377
    self.send_getAllNonFbaListedItems()
4378
    return self.recv_getAllNonFbaListedItems()
4379
 
4380
  def send_getAllNonFbaListedItems(self, ):
4381
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4382
    args = getAllNonFbaListedItems_args()
4383
    args.write(self._oprot)
4384
    self._oprot.writeMessageEnd()
4385
    self._oprot.trans.flush()
4386
 
4387
  def recv_getAllNonFbaListedItems(self, ):
4388
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4389
    if mtype == TMessageType.EXCEPTION:
4390
      x = TApplicationException()
4391
      x.read(self._iprot)
4392
      self._iprot.readMessageEnd()
4393
      raise x
4394
    result = getAllNonFbaListedItems_result()
4395
    result.read(self._iprot)
4396
    self._iprot.readMessageEnd()
4397
    if result.success is not None:
4398
      return result.success
4399
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4400
 
7460 kshitij.so 4401
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4402
    """
4403
    Parameters:
4404
     - itemId
4405
     - holdInventory
4406
     - defaultInventory
4407
    """
4408
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4409
    return self.recv_updateItemInventory()
7291 vikram.rag 4410
 
7460 kshitij.so 4411
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4412
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4413
    args = updateItemInventory_args()
4414
    args.itemId = itemId
4415
    args.holdInventory = holdInventory
4416
    args.defaultInventory = defaultInventory
4417
    args.write(self._oprot)
4418
    self._oprot.writeMessageEnd()
4419
    self._oprot.trans.flush()
4420
 
4421
  def recv_updateItemInventory(self, ):
4422
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4423
    if mtype == TMessageType.EXCEPTION:
4424
      x = TApplicationException()
4425
      x.read(self._iprot)
4426
      self._iprot.readMessageEnd()
4427
      raise x
4428
    result = updateItemInventory_result()
4429
    result.read(self._iprot)
4430
    self._iprot.readMessageEnd()
4431
    if result.success is not None:
4432
      return result.success
4433
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4434
 
7770 kshitij.so 4435
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4436
    """
4437
    Parameters:
4438
     - type
4439
     - sku
4440
     - timestamp
4441
    """
4442
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4443
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4444
 
7770 kshitij.so 4445
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4446
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4447
    args = updateTimestampForAmazonFeeds_args()
4448
    args.type = type
4449
    args.sku = sku
4450
    args.timestamp = timestamp
4451
    args.write(self._oprot)
4452
    self._oprot.writeMessageEnd()
4453
    self._oprot.trans.flush()
4454
 
4455
  def recv_updateTimestampForAmazonFeeds(self, ):
4456
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4457
    if mtype == TMessageType.EXCEPTION:
4458
      x = TApplicationException()
4459
      x.read(self._iprot)
4460
      self._iprot.readMessageEnd()
4461
      raise x
4462
    result = updateTimestampForAmazonFeeds_result()
4463
    result.read(self._iprot)
4464
    self._iprot.readMessageEnd()
4465
    if result.success is not None:
4466
      return result.success
4467
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4468
 
7897 amar.kumar 4469
  def getAllParentCategories(self, ):
4470
    self.send_getAllParentCategories()
4471
    return self.recv_getAllParentCategories()
7770 kshitij.so 4472
 
7897 amar.kumar 4473
  def send_getAllParentCategories(self, ):
4474
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4475
    args = getAllParentCategories_args()
4476
    args.write(self._oprot)
4477
    self._oprot.writeMessageEnd()
4478
    self._oprot.trans.flush()
4479
 
4480
  def recv_getAllParentCategories(self, ):
4481
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4482
    if mtype == TMessageType.EXCEPTION:
4483
      x = TApplicationException()
4484
      x.read(self._iprot)
4485
      self._iprot.readMessageEnd()
4486
      raise x
4487
    result = getAllParentCategories_result()
4488
    result.read(self._iprot)
4489
    self._iprot.readMessageEnd()
4490
    if result.success is not None:
4491
      return result.success
4492
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4493
 
7977 kshitij.so 4494
  def addPageViewEvent(self, pageViewEvents):
4495
    """
4496
    Parameters:
4497
     - pageViewEvents
4498
    """
4499
    self.send_addPageViewEvent(pageViewEvents)
4500
    self.recv_addPageViewEvent()
7897 amar.kumar 4501
 
7977 kshitij.so 4502
  def send_addPageViewEvent(self, pageViewEvents):
4503
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4504
    args = addPageViewEvent_args()
4505
    args.pageViewEvents = pageViewEvents
4506
    args.write(self._oprot)
4507
    self._oprot.writeMessageEnd()
4508
    self._oprot.trans.flush()
4509
 
4510
  def recv_addPageViewEvent(self, ):
4511
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4512
    if mtype == TMessageType.EXCEPTION:
4513
      x = TApplicationException()
4514
      x.read(self._iprot)
4515
      self._iprot.readMessageEnd()
4516
      raise x
4517
    result = addPageViewEvent_result()
4518
    result.read(self._iprot)
4519
    self._iprot.readMessageEnd()
4520
    return
4521
 
4522
  def addCartEvent(self, cartEvents):
4523
    """
4524
    Parameters:
4525
     - cartEvents
4526
    """
4527
    self.send_addCartEvent(cartEvents)
4528
    self.recv_addCartEvent()
4529
 
4530
  def send_addCartEvent(self, cartEvents):
4531
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4532
    args = addCartEvent_args()
4533
    args.cartEvents = cartEvents
4534
    args.write(self._oprot)
4535
    self._oprot.writeMessageEnd()
4536
    self._oprot.trans.flush()
4537
 
4538
  def recv_addCartEvent(self, ):
4539
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4540
    if mtype == TMessageType.EXCEPTION:
4541
      x = TApplicationException()
4542
      x.read(self._iprot)
4543
      self._iprot.readMessageEnd()
4544
      raise x
4545
    result = addCartEvent_result()
4546
    result.read(self._iprot)
4547
    self._iprot.readMessageEnd()
4548
    return
4549
 
8182 amar.kumar 4550
  def addEbayItem(self, ebayItem):
4551
    """
4552
    Parameters:
4553
     - ebayItem
4554
    """
4555
    self.send_addEbayItem(ebayItem)
4556
    self.recv_addEbayItem()
4557
 
4558
  def send_addEbayItem(self, ebayItem):
4559
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4560
    args = addEbayItem_args()
4561
    args.ebayItem = ebayItem
4562
    args.write(self._oprot)
4563
    self._oprot.writeMessageEnd()
4564
    self._oprot.trans.flush()
4565
 
4566
  def recv_addEbayItem(self, ):
4567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4568
    if mtype == TMessageType.EXCEPTION:
4569
      x = TApplicationException()
4570
      x.read(self._iprot)
4571
      self._iprot.readMessageEnd()
4572
      raise x
4573
    result = addEbayItem_result()
4574
    result.read(self._iprot)
4575
    self._iprot.readMessageEnd()
4576
    return
4577
 
4578
  def getEbayItem(self, listingId):
4579
    """
4580
    Parameters:
4581
     - listingId
4582
    """
4583
    self.send_getEbayItem(listingId)
4584
    return self.recv_getEbayItem()
4585
 
4586
  def send_getEbayItem(self, listingId):
4587
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4588
    args = getEbayItem_args()
4589
    args.listingId = listingId
4590
    args.write(self._oprot)
4591
    self._oprot.writeMessageEnd()
4592
    self._oprot.trans.flush()
4593
 
4594
  def recv_getEbayItem(self, ):
4595
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4596
    if mtype == TMessageType.EXCEPTION:
4597
      x = TApplicationException()
4598
      x.read(self._iprot)
4599
      self._iprot.readMessageEnd()
4600
      raise x
4601
    result = getEbayItem_result()
4602
    result.read(self._iprot)
4603
    self._iprot.readMessageEnd()
4604
    if result.success is not None:
4605
      return result.success
4606
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4607
 
4608
  def updateEbayItem(self, ebayItem):
4609
    """
4610
    Parameters:
4611
     - ebayItem
4612
    """
4613
    self.send_updateEbayItem(ebayItem)
4614
    self.recv_updateEbayItem()
4615
 
4616
  def send_updateEbayItem(self, ebayItem):
4617
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4618
    args = updateEbayItem_args()
4619
    args.ebayItem = ebayItem
4620
    args.write(self._oprot)
4621
    self._oprot.writeMessageEnd()
4622
    self._oprot.trans.flush()
4623
 
4624
  def recv_updateEbayItem(self, ):
4625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4626
    if mtype == TMessageType.EXCEPTION:
4627
      x = TApplicationException()
4628
      x.read(self._iprot)
4629
      self._iprot.readMessageEnd()
4630
      raise x
4631
    result = updateEbayItem_result()
4632
    result.read(self._iprot)
4633
    self._iprot.readMessageEnd()
4634
    return
4635
 
8139 kshitij.so 4636
  def getAmazonListedItems(self, offset, limit):
4637
    """
4638
    Parameters:
4639
     - offset
4640
     - limit
4641
    """
4642
    self.send_getAmazonListedItems(offset, limit)
4643
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4644
 
8139 kshitij.so 4645
  def send_getAmazonListedItems(self, offset, limit):
4646
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4647
    args = getAmazonListedItems_args()
4648
    args.offset = offset
4649
    args.limit = limit
4650
    args.write(self._oprot)
4651
    self._oprot.writeMessageEnd()
4652
    self._oprot.trans.flush()
4653
 
4654
  def recv_getAmazonListedItems(self, ):
4655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4656
    if mtype == TMessageType.EXCEPTION:
4657
      x = TApplicationException()
4658
      x.read(self._iprot)
4659
      self._iprot.readMessageEnd()
4660
      raise x
4661
    result = getAmazonListedItems_result()
4662
    result.read(self._iprot)
4663
    self._iprot.readMessageEnd()
4664
    if result.success is not None:
4665
      return result.success
4666
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4667
 
8168 kshitij.so 4668
  def updateAmazonAttributesInBulk(self, amazonlisted):
4669
    """
4670
    Parameters:
4671
     - amazonlisted
4672
    """
4673
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4674
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4675
 
8168 kshitij.so 4676
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4677
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4678
    args = updateAmazonAttributesInBulk_args()
4679
    args.amazonlisted = amazonlisted
4680
    args.write(self._oprot)
4681
    self._oprot.writeMessageEnd()
4682
    self._oprot.trans.flush()
4683
 
4684
  def recv_updateAmazonAttributesInBulk(self, ):
4685
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4686
    if mtype == TMessageType.EXCEPTION:
4687
      x = TApplicationException()
4688
      x.read(self._iprot)
4689
      self._iprot.readMessageEnd()
4690
      raise x
4691
    result = updateAmazonAttributesInBulk_result()
4692
    result.read(self._iprot)
4693
    self._iprot.readMessageEnd()
4694
    if result.success is not None:
4695
      return result.success
4696
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4697
 
8379 vikram.rag 4698
  def getAllItemstoListOnFba(self, ):
4699
    self.send_getAllItemstoListOnFba()
4700
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 4701
 
8379 vikram.rag 4702
  def send_getAllItemstoListOnFba(self, ):
4703
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
4704
    args = getAllItemstoListOnFba_args()
4705
    args.write(self._oprot)
4706
    self._oprot.writeMessageEnd()
4707
    self._oprot.trans.flush()
4708
 
4709
  def recv_getAllItemstoListOnFba(self, ):
4710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4711
    if mtype == TMessageType.EXCEPTION:
4712
      x = TApplicationException()
4713
      x.read(self._iprot)
4714
      self._iprot.readMessageEnd()
4715
      raise x
4716
    result = getAllItemstoListOnFba_result()
4717
    result.read(self._iprot)
4718
    self._iprot.readMessageEnd()
4719
    if result.success is not None:
4720
      return result.success
4721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
4722
 
4723
  def getAllItemstoListOnNonFba(self, ):
4724
    self.send_getAllItemstoListOnNonFba()
4725
    return self.recv_getAllItemstoListOnNonFba()
4726
 
4727
  def send_getAllItemstoListOnNonFba(self, ):
4728
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
4729
    args = getAllItemstoListOnNonFba_args()
4730
    args.write(self._oprot)
4731
    self._oprot.writeMessageEnd()
4732
    self._oprot.trans.flush()
4733
 
4734
  def recv_getAllItemstoListOnNonFba(self, ):
4735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4736
    if mtype == TMessageType.EXCEPTION:
4737
      x = TApplicationException()
4738
      x.read(self._iprot)
4739
      self._iprot.readMessageEnd()
4740
      raise x
4741
    result = getAllItemstoListOnNonFba_result()
4742
    result.read(self._iprot)
4743
    self._iprot.readMessageEnd()
4744
    if result.success is not None:
4745
      return result.success
4746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4747
 
8619 kshitij.so 4748
  def updateAsin(self, item):
4749
    """
4750
    Parameters:
4751
     - item
4752
    """
4753
    self.send_updateAsin(item)
4754
    self.recv_updateAsin()
8616 vikram.rag 4755
 
8619 kshitij.so 4756
  def send_updateAsin(self, item):
4757
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
4758
    args = updateAsin_args()
4759
    args.item = item
4760
    args.write(self._oprot)
4761
    self._oprot.writeMessageEnd()
4762
    self._oprot.trans.flush()
4763
 
4764
  def recv_updateAsin(self, ):
4765
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4766
    if mtype == TMessageType.EXCEPTION:
4767
      x = TApplicationException()
4768
      x.read(self._iprot)
4769
      self._iprot.readMessageEnd()
4770
      raise x
4771
    result = updateAsin_result()
4772
    result.read(self._iprot)
4773
    self._iprot.readMessageEnd()
4774
    return
4775
 
8739 vikram.rag 4776
  def addOrUpdateSnapdealItem(self, snapdealitem):
4777
    """
4778
    Parameters:
4779
     - snapdealitem
4780
    """
4781
    self.send_addOrUpdateSnapdealItem(snapdealitem)
4782
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 4783
 
8739 vikram.rag 4784
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
4785
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
4786
    args = addOrUpdateSnapdealItem_args()
4787
    args.snapdealitem = snapdealitem
4788
    args.write(self._oprot)
4789
    self._oprot.writeMessageEnd()
4790
    self._oprot.trans.flush()
4791
 
4792
  def recv_addOrUpdateSnapdealItem(self, ):
4793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4794
    if mtype == TMessageType.EXCEPTION:
4795
      x = TApplicationException()
4796
      x.read(self._iprot)
4797
      self._iprot.readMessageEnd()
4798
      raise x
4799
    result = addOrUpdateSnapdealItem_result()
4800
    result.read(self._iprot)
4801
    self._iprot.readMessageEnd()
4802
    if result.success is not None:
4803
      return result.success
4804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
4805
 
4806
  def getSnapdealItem(self, item_id):
4807
    """
4808
    Parameters:
4809
     - item_id
4810
    """
4811
    self.send_getSnapdealItem(item_id)
4812
    return self.recv_getSnapdealItem()
4813
 
4814
  def send_getSnapdealItem(self, item_id):
4815
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
4816
    args = getSnapdealItem_args()
4817
    args.item_id = item_id
4818
    args.write(self._oprot)
4819
    self._oprot.writeMessageEnd()
4820
    self._oprot.trans.flush()
4821
 
4822
  def recv_getSnapdealItem(self, ):
4823
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4824
    if mtype == TMessageType.EXCEPTION:
4825
      x = TApplicationException()
4826
      x.read(self._iprot)
4827
      self._iprot.readMessageEnd()
4828
      raise x
4829
    result = getSnapdealItem_result()
4830
    result.read(self._iprot)
4831
    self._iprot.readMessageEnd()
4832
    if result.success is not None:
4833
      return result.success
4834
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
4835
 
9242 kshitij.so 4836
  def getSnapdealItemDetails(self, item_id):
4837
    """
4838
    Parameters:
4839
     - item_id
4840
    """
4841
    self.send_getSnapdealItemDetails(item_id)
4842
    return self.recv_getSnapdealItemDetails()
4843
 
4844
  def send_getSnapdealItemDetails(self, item_id):
4845
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
4846
    args = getSnapdealItemDetails_args()
4847
    args.item_id = item_id
4848
    args.write(self._oprot)
4849
    self._oprot.writeMessageEnd()
4850
    self._oprot.trans.flush()
4851
 
4852
  def recv_getSnapdealItemDetails(self, ):
4853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4854
    if mtype == TMessageType.EXCEPTION:
4855
      x = TApplicationException()
4856
      x.read(self._iprot)
4857
      self._iprot.readMessageEnd()
4858
      raise x
4859
    result = getSnapdealItemDetails_result()
4860
    result.read(self._iprot)
4861
    self._iprot.readMessageEnd()
4862
    if result.success is not None:
4863
      return result.success
4864
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
4865
 
8739 vikram.rag 4866
  def getAllSnapdealItems(self, ):
4867
    self.send_getAllSnapdealItems()
4868
    return self.recv_getAllSnapdealItems()
4869
 
4870
  def send_getAllSnapdealItems(self, ):
4871
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
4872
    args = getAllSnapdealItems_args()
4873
    args.write(self._oprot)
4874
    self._oprot.writeMessageEnd()
4875
    self._oprot.trans.flush()
4876
 
4877
  def recv_getAllSnapdealItems(self, ):
4878
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4879
    if mtype == TMessageType.EXCEPTION:
4880
      x = TApplicationException()
4881
      x.read(self._iprot)
4882
      self._iprot.readMessageEnd()
4883
      raise x
4884
    result = getAllSnapdealItems_result()
4885
    result.read(self._iprot)
4886
    self._iprot.readMessageEnd()
4887
    if result.success is not None:
4888
      return result.success
4889
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
4890
 
9242 kshitij.so 4891
  def getSnapdealItems(self, offset, limit):
4892
    """
4893
    Parameters:
4894
     - offset
4895
     - limit
4896
    """
4897
    self.send_getSnapdealItems(offset, limit)
4898
    return self.recv_getSnapdealItems()
8739 vikram.rag 4899
 
9242 kshitij.so 4900
  def send_getSnapdealItems(self, offset, limit):
4901
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
4902
    args = getSnapdealItems_args()
4903
    args.offset = offset
4904
    args.limit = limit
4905
    args.write(self._oprot)
4906
    self._oprot.writeMessageEnd()
4907
    self._oprot.trans.flush()
4908
 
4909
  def recv_getSnapdealItems(self, ):
4910
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4911
    if mtype == TMessageType.EXCEPTION:
4912
      x = TApplicationException()
4913
      x.read(self._iprot)
4914
      self._iprot.readMessageEnd()
4915
      raise x
4916
    result = getSnapdealItems_result()
4917
    result.read(self._iprot)
4918
    self._iprot.readMessageEnd()
4919
    if result.success is not None:
4920
      return result.success
4921
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
4922
 
4923
  def searchSnapdealItems(self, searchTerm, offset, limit):
4924
    """
4925
    Parameters:
4926
     - searchTerm
4927
     - offset
4928
     - limit
4929
    """
4930
    self.send_searchSnapdealItems(searchTerm, offset, limit)
4931
    return self.recv_searchSnapdealItems()
4932
 
4933
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
4934
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
4935
    args = searchSnapdealItems_args()
4936
    args.searchTerm = searchTerm
4937
    args.offset = offset
4938
    args.limit = limit
4939
    args.write(self._oprot)
4940
    self._oprot.writeMessageEnd()
4941
    self._oprot.trans.flush()
4942
 
4943
  def recv_searchSnapdealItems(self, ):
4944
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4945
    if mtype == TMessageType.EXCEPTION:
4946
      x = TApplicationException()
4947
      x.read(self._iprot)
4948
      self._iprot.readMessageEnd()
4949
      raise x
4950
    result = searchSnapdealItems_result()
4951
    result.read(self._iprot)
4952
    self._iprot.readMessageEnd()
4953
    if result.success is not None:
4954
      return result.success
4955
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
4956
 
4957
  def getCountForSnapdealItems(self, ):
4958
    self.send_getCountForSnapdealItems()
4959
    return self.recv_getCountForSnapdealItems()
4960
 
4961
  def send_getCountForSnapdealItems(self, ):
4962
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
4963
    args = getCountForSnapdealItems_args()
4964
    args.write(self._oprot)
4965
    self._oprot.writeMessageEnd()
4966
    self._oprot.trans.flush()
4967
 
4968
  def recv_getCountForSnapdealItems(self, ):
4969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4970
    if mtype == TMessageType.EXCEPTION:
4971
      x = TApplicationException()
4972
      x.read(self._iprot)
4973
      self._iprot.readMessageEnd()
4974
      raise x
4975
    result = getCountForSnapdealItems_result()
4976
    result.read(self._iprot)
4977
    self._iprot.readMessageEnd()
4978
    if result.success is not None:
4979
      return result.success
4980
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
4981
 
4982
  def getSnapdealSearchResultCount(self, searchTerm):
4983
    """
4984
    Parameters:
4985
     - searchTerm
4986
    """
4987
    self.send_getSnapdealSearchResultCount(searchTerm)
4988
    return self.recv_getSnapdealSearchResultCount()
4989
 
4990
  def send_getSnapdealSearchResultCount(self, searchTerm):
4991
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
4992
    args = getSnapdealSearchResultCount_args()
4993
    args.searchTerm = searchTerm
4994
    args.write(self._oprot)
4995
    self._oprot.writeMessageEnd()
4996
    self._oprot.trans.flush()
4997
 
4998
  def recv_getSnapdealSearchResultCount(self, ):
4999
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5000
    if mtype == TMessageType.EXCEPTION:
5001
      x = TApplicationException()
5002
      x.read(self._iprot)
5003
      self._iprot.readMessageEnd()
5004
      raise x
5005
    result = getSnapdealSearchResultCount_result()
5006
    result.read(self._iprot)
5007
    self._iprot.readMessageEnd()
5008
    if result.success is not None:
5009
      return result.success
5010
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5011
 
9299 kshitij.so 5012
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5013
    """
5014
    Parameters:
5015
     - itemId
5016
     - insurerType
5017
    """
5018
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5019
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5020
 
9299 kshitij.so 5021
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5022
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5023
    args = getPrefferedInsurerForItem_args()
5024
    args.itemId = itemId
5025
    args.insurerType = insurerType
5026
    args.write(self._oprot)
5027
    self._oprot.writeMessageEnd()
5028
    self._oprot.trans.flush()
5029
 
5030
  def recv_getPrefferedInsurerForItem(self, ):
5031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5032
    if mtype == TMessageType.EXCEPTION:
5033
      x = TApplicationException()
5034
      x.read(self._iprot)
5035
      self._iprot.readMessageEnd()
5036
      raise x
5037
    result = getPrefferedInsurerForItem_result()
5038
    result.read(self._iprot)
5039
    self._iprot.readMessageEnd()
5040
    if result.success is not None:
5041
      return result.success
5042
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5043
 
9456 vikram.rag 5044
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5045
    """
5046
    Parameters:
5047
     - skuAtSnapdeal
5048
    """
5049
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5050
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5051
 
9456 vikram.rag 5052
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5053
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5054
    args = getSnapdealItembySkuAtSnapdeal_args()
5055
    args.skuAtSnapdeal = skuAtSnapdeal
5056
    args.write(self._oprot)
5057
    self._oprot.writeMessageEnd()
5058
    self._oprot.trans.flush()
5059
 
5060
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5061
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5062
    if mtype == TMessageType.EXCEPTION:
5063
      x = TApplicationException()
5064
      x.read(self._iprot)
5065
      self._iprot.readMessageEnd()
5066
      raise x
5067
    result = getSnapdealItembySkuAtSnapdeal_result()
5068
    result.read(self._iprot)
5069
    self._iprot.readMessageEnd()
5070
    if result.success is not None:
5071
      return result.success
5072
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5073
 
9621 manish.sha 5074
  def getProductFeedSubmit(self, catalogItemId):
5075
    """
5076
    Parameters:
5077
     - catalogItemId
5078
    """
5079
    self.send_getProductFeedSubmit(catalogItemId)
5080
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5081
 
9621 manish.sha 5082
  def send_getProductFeedSubmit(self, catalogItemId):
5083
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5084
    args = getProductFeedSubmit_args()
5085
    args.catalogItemId = catalogItemId
5086
    args.write(self._oprot)
5087
    self._oprot.writeMessageEnd()
5088
    self._oprot.trans.flush()
5089
 
5090
  def recv_getProductFeedSubmit(self, ):
5091
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5092
    if mtype == TMessageType.EXCEPTION:
5093
      x = TApplicationException()
5094
      x.read(self._iprot)
5095
      self._iprot.readMessageEnd()
5096
      raise x
5097
    result = getProductFeedSubmit_result()
5098
    result.read(self._iprot)
5099
    self._iprot.readMessageEnd()
5100
    if result.success is not None:
5101
      return result.success
5102
    if result.cex is not None:
5103
      raise result.cex
5104
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5105
 
5106
  def addProductFeedSubmit(self, productFeedSubmit):
5107
    """
5108
    Parameters:
5109
     - productFeedSubmit
5110
    """
5111
    self.send_addProductFeedSubmit(productFeedSubmit)
5112
    return self.recv_addProductFeedSubmit()
5113
 
5114
  def send_addProductFeedSubmit(self, productFeedSubmit):
5115
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5116
    args = addProductFeedSubmit_args()
5117
    args.productFeedSubmit = productFeedSubmit
5118
    args.write(self._oprot)
5119
    self._oprot.writeMessageEnd()
5120
    self._oprot.trans.flush()
5121
 
5122
  def recv_addProductFeedSubmit(self, ):
5123
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5124
    if mtype == TMessageType.EXCEPTION:
5125
      x = TApplicationException()
5126
      x.read(self._iprot)
5127
      self._iprot.readMessageEnd()
5128
      raise x
5129
    result = addProductFeedSubmit_result()
5130
    result.read(self._iprot)
5131
    self._iprot.readMessageEnd()
5132
    if result.success is not None:
5133
      return result.success
5134
    if result.cex is not None:
5135
      raise result.cex
5136
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5137
 
5138
  def updateProductFeedSubmit(self, productFeedSubmit):
5139
    """
5140
    Parameters:
5141
     - productFeedSubmit
5142
    """
5143
    self.send_updateProductFeedSubmit(productFeedSubmit)
5144
    return self.recv_updateProductFeedSubmit()
5145
 
5146
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5147
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5148
    args = updateProductFeedSubmit_args()
5149
    args.productFeedSubmit = productFeedSubmit
5150
    args.write(self._oprot)
5151
    self._oprot.writeMessageEnd()
5152
    self._oprot.trans.flush()
5153
 
5154
  def recv_updateProductFeedSubmit(self, ):
5155
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5156
    if mtype == TMessageType.EXCEPTION:
5157
      x = TApplicationException()
5158
      x.read(self._iprot)
5159
      self._iprot.readMessageEnd()
5160
      raise x
5161
    result = updateProductFeedSubmit_result()
5162
    result.read(self._iprot)
5163
    self._iprot.readMessageEnd()
5164
    if result.success is not None:
5165
      return result.success
5166
    if result.cex is not None:
5167
      raise result.cex
5168
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5169
 
5170
  def deleteProductFeedSubmit(self, catalogItemId):
5171
    """
5172
    Parameters:
5173
     - catalogItemId
5174
    """
5175
    self.send_deleteProductFeedSubmit(catalogItemId)
5176
    return self.recv_deleteProductFeedSubmit()
5177
 
5178
  def send_deleteProductFeedSubmit(self, catalogItemId):
5179
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5180
    args = deleteProductFeedSubmit_args()
5181
    args.catalogItemId = catalogItemId
5182
    args.write(self._oprot)
5183
    self._oprot.writeMessageEnd()
5184
    self._oprot.trans.flush()
5185
 
5186
  def recv_deleteProductFeedSubmit(self, ):
5187
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5188
    if mtype == TMessageType.EXCEPTION:
5189
      x = TApplicationException()
5190
      x.read(self._iprot)
5191
      self._iprot.readMessageEnd()
5192
      raise x
5193
    result = deleteProductFeedSubmit_result()
5194
    result.read(self._iprot)
5195
    self._iprot.readMessageEnd()
5196
    if result.success is not None:
5197
      return result.success
5198
    if result.cex is not None:
5199
      raise result.cex
5200
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5201
 
5202
  def getAllProductFeedSubmit(self, ):
5203
    self.send_getAllProductFeedSubmit()
5204
    return self.recv_getAllProductFeedSubmit()
5205
 
5206
  def send_getAllProductFeedSubmit(self, ):
5207
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5208
    args = getAllProductFeedSubmit_args()
5209
    args.write(self._oprot)
5210
    self._oprot.writeMessageEnd()
5211
    self._oprot.trans.flush()
5212
 
5213
  def recv_getAllProductFeedSubmit(self, ):
5214
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5215
    if mtype == TMessageType.EXCEPTION:
5216
      x = TApplicationException()
5217
      x.read(self._iprot)
5218
      self._iprot.readMessageEnd()
5219
      raise x
5220
    result = getAllProductFeedSubmit_result()
5221
    result.read(self._iprot)
5222
    self._iprot.readMessageEnd()
5223
    if result.success is not None:
5224
      return result.success
5225
    if result.cex is not None:
5226
      raise result.cex
5227
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5228
 
9724 kshitij.so 5229
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5230
    """
5231
    Parameters:
5232
     - itemId
5233
     - sourceId
5234
    """
5235
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5236
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5237
 
9724 kshitij.so 5238
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5239
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5240
    args = getMarketplacedetailsForItem_args()
5241
    args.itemId = itemId
5242
    args.sourceId = sourceId
5243
    args.write(self._oprot)
5244
    self._oprot.writeMessageEnd()
5245
    self._oprot.trans.flush()
5246
 
5247
  def recv_getMarketplacedetailsForItem(self, ):
5248
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5249
    if mtype == TMessageType.EXCEPTION:
5250
      x = TApplicationException()
5251
      x.read(self._iprot)
5252
      self._iprot.readMessageEnd()
5253
      raise x
5254
    result = getMarketplacedetailsForItem_result()
5255
    result.read(self._iprot)
5256
    self._iprot.readMessageEnd()
5257
    if result.success is not None:
5258
      return result.success
5259
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5260
 
5261
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5262
    """
5263
    Parameters:
5264
     - marketPlaceItem
5265
    """
5266
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5267
    return self.recv_updateMarketplaceAttributesForItem()
5268
 
5269
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5270
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5271
    args = updateMarketplaceAttributesForItem_args()
5272
    args.marketPlaceItem = marketPlaceItem
5273
    args.write(self._oprot)
5274
    self._oprot.writeMessageEnd()
5275
    self._oprot.trans.flush()
5276
 
5277
  def recv_updateMarketplaceAttributesForItem(self, ):
5278
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5279
    if mtype == TMessageType.EXCEPTION:
5280
      x = TApplicationException()
5281
      x.read(self._iprot)
5282
      self._iprot.readMessageEnd()
5283
      raise x
5284
    result = updateMarketplaceAttributesForItem_result()
5285
    result.read(self._iprot)
5286
    self._iprot.readMessageEnd()
5287
    if result.success is not None:
5288
      return result.success
5289
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5290
 
5291
 
5944 mandeep.dh 5292
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5293
  def __init__(self, handler):
5294
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5295
    self._processMap["addItem"] = Processor.process_addItem
5296
    self._processMap["updateItem"] = Processor.process_updateItem
5297
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 5298
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 5299
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
5300
    self._processMap["startItemOn"] = Processor.process_startItemOn
5301
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
5302
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
5303
    self._processMap["getItem"] = Processor.process_getItem
5304
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
5305
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
5306
    self._processMap["getAllItems"] = Processor.process_getAllItems
5307
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
5308
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
5309
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
5310
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
5311
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
5312
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
5313
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
5314
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
5315
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
5316
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
5317
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
5318
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
5319
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
5320
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
5321
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
5322
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
5323
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
5324
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
5325
    self._processMap["addCategory"] = Processor.process_addCategory
5326
    self._processMap["getCategory"] = Processor.process_getCategory
5327
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
5328
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
5329
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 5330
    self._processMap["addTag"] = Processor.process_addTag
5331
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
5332
    self._processMap["deleteTag"] = Processor.process_deleteTag
5333
    self._processMap["getAllTags"] = Processor.process_getAllTags
5334
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 5335
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 5336
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 5337
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 5338
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
5339
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
5340
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
5341
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 5342
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 5343
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 5344
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
5345
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 5346
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
5347
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
5348
    self._processMap["addCampaign"] = Processor.process_addCampaign
5349
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
5350
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
5351
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 5352
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 5353
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
5354
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
5355
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
5356
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
5357
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
5358
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
5359
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
5360
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
5361
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
5362
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
5363
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
5364
    self._processMap["getAllSources"] = Processor.process_getAllSources
5365
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
5366
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
5367
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
5368
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
5369
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
5370
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
5371
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
5372
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
5373
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
5374
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
5375
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
5376
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
5377
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
5378
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 5379
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
5380
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 5381
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 5382
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 5383
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
5384
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 5385
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 5386
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 5387
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
5388
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 5389
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
5390
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 5391
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 5392
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 5393
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 5394
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 5395
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
5396
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
5397
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 5398
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
5399
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
5400
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 5401
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
5402
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
5403
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 5404
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 5405
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 5406
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 5407
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
5408
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 5409
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
5410
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
5411
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 5412
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 5413
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 5414
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
5415
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 5416
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 5417
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
5418
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 5419
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 5420
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 5421
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
5422
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
5423
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
5424
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 5425
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 5426
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 5427
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
5428
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
5429
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
5430
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
5431
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 5432
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
5433
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
5944 mandeep.dh 5434
 
5435
  def process(self, iprot, oprot):
5436
    (name, type, seqid) = iprot.readMessageBegin()
5437
    if name not in self._processMap:
5438
      iprot.skip(TType.STRUCT)
5439
      iprot.readMessageEnd()
5440
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
5441
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
5442
      x.write(oprot)
5443
      oprot.writeMessageEnd()
5444
      oprot.trans.flush()
5445
      return
5446
    else:
5447
      self._processMap[name](self, seqid, iprot, oprot)
5448
    return True
5449
 
5450
  def process_addItem(self, seqid, iprot, oprot):
5451
    args = addItem_args()
5452
    args.read(iprot)
5453
    iprot.readMessageEnd()
5454
    result = addItem_result()
5455
    try:
5456
      result.success = self._handler.addItem(args.item)
5457
    except CatalogServiceException, cex:
5458
      result.cex = cex
5459
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
5460
    result.write(oprot)
5461
    oprot.writeMessageEnd()
5462
    oprot.trans.flush()
5463
 
5464
  def process_updateItem(self, seqid, iprot, oprot):
5465
    args = updateItem_args()
5466
    args.read(iprot)
5467
    iprot.readMessageEnd()
5468
    result = updateItem_result()
5469
    try:
5470
      result.success = self._handler.updateItem(args.item)
5471
    except CatalogServiceException, cex:
5472
      result.cex = cex
5473
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
5474
    result.write(oprot)
5475
    oprot.writeMessageEnd()
5476
    oprot.trans.flush()
5477
 
5478
  def process_isActive(self, seqid, iprot, oprot):
5479
    args = isActive_args()
5480
    args.read(iprot)
5481
    iprot.readMessageEnd()
5482
    result = isActive_result()
5483
    try:
5484
      result.success = self._handler.isActive(args.itemId)
5485
    except CatalogServiceException, isex:
5486
      result.isex = isex
5487
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
5488
    result.write(oprot)
5489
    oprot.writeMessageEnd()
5490
    oprot.trans.flush()
5491
 
7438 amit.gupta 5492
  def process_getItemsStatus(self, seqid, iprot, oprot):
5493
    args = getItemsStatus_args()
5494
    args.read(iprot)
5495
    iprot.readMessageEnd()
5496
    result = getItemsStatus_result()
5497
    try:
5498
      result.success = self._handler.getItemsStatus(args.itemIds)
5499
    except CatalogServiceException, isex:
5500
      result.isex = isex
5501
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
5502
    result.write(oprot)
5503
    oprot.writeMessageEnd()
5504
    oprot.trans.flush()
5505
 
5944 mandeep.dh 5506
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
5507
    args = getItemStatusDescription_args()
5508
    args.read(iprot)
5509
    iprot.readMessageEnd()
5510
    result = getItemStatusDescription_result()
5511
    try:
5512
      result.success = self._handler.getItemStatusDescription(args.itemId)
5513
    except CatalogServiceException, isex:
5514
      result.isex = isex
5515
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
5516
    result.write(oprot)
5517
    oprot.writeMessageEnd()
5518
    oprot.trans.flush()
5519
 
5520
  def process_startItemOn(self, seqid, iprot, oprot):
5521
    args = startItemOn_args()
5522
    args.read(iprot)
5523
    iprot.readMessageEnd()
5524
    result = startItemOn_result()
5525
    try:
5526
      self._handler.startItemOn(args.item_id, args.timestamp)
5527
    except CatalogServiceException, cex:
5528
      result.cex = cex
5529
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
5530
    result.write(oprot)
5531
    oprot.writeMessageEnd()
5532
    oprot.trans.flush()
5533
 
5534
  def process_retireItemOn(self, seqid, iprot, oprot):
5535
    args = retireItemOn_args()
5536
    args.read(iprot)
5537
    iprot.readMessageEnd()
5538
    result = retireItemOn_result()
5539
    try:
5540
      self._handler.retireItemOn(args.item_id, args.timestamp)
5541
    except CatalogServiceException, cex:
5542
      result.cex = cex
5543
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
5544
    result.write(oprot)
5545
    oprot.writeMessageEnd()
5546
    oprot.trans.flush()
5547
 
5548
  def process_changeItemStatus(self, seqid, iprot, oprot):
5549
    args = changeItemStatus_args()
5550
    args.read(iprot)
5551
    iprot.readMessageEnd()
5552
    result = changeItemStatus_result()
5553
    try:
5554
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
5555
    except CatalogServiceException, cex:
5556
      result.cex = cex
5557
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
5558
    result.write(oprot)
5559
    oprot.writeMessageEnd()
5560
    oprot.trans.flush()
5561
 
5562
  def process_getItem(self, seqid, iprot, oprot):
5563
    args = getItem_args()
5564
    args.read(iprot)
5565
    iprot.readMessageEnd()
5566
    result = getItem_result()
5567
    try:
5568
      result.success = self._handler.getItem(args.item_id)
5569
    except CatalogServiceException, cex:
5570
      result.cex = cex
5571
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
5572
    result.write(oprot)
5573
    oprot.writeMessageEnd()
5574
    oprot.trans.flush()
5575
 
5576
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
5577
    args = getItemsByCatalogId_args()
5578
    args.read(iprot)
5579
    iprot.readMessageEnd()
5580
    result = getItemsByCatalogId_result()
5581
    try:
5582
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
5583
    except CatalogServiceException, cex:
5584
      result.cex = cex
5585
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
5586
    result.write(oprot)
5587
    oprot.writeMessageEnd()
5588
    oprot.trans.flush()
5589
 
5590
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
5591
    args = getValidItemsByCatalogId_args()
5592
    args.read(iprot)
5593
    iprot.readMessageEnd()
5594
    result = getValidItemsByCatalogId_result()
5595
    try:
5596
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
5597
    except CatalogServiceException, cex:
5598
      result.cex = cex
5599
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
5600
    result.write(oprot)
5601
    oprot.writeMessageEnd()
5602
    oprot.trans.flush()
5603
 
5604
  def process_getAllItems(self, seqid, iprot, oprot):
5605
    args = getAllItems_args()
5606
    args.read(iprot)
5607
    iprot.readMessageEnd()
5608
    result = getAllItems_result()
5609
    try:
5610
      result.success = self._handler.getAllItems(args.isActive)
5611
    except CatalogServiceException, cex:
5612
      result.cex = cex
5613
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
5614
    result.write(oprot)
5615
    oprot.writeMessageEnd()
5616
    oprot.trans.flush()
5617
 
5618
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
5619
    args = getAllItemsByStatus_args()
5620
    args.read(iprot)
5621
    iprot.readMessageEnd()
5622
    result = getAllItemsByStatus_result()
5623
    try:
5624
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
5625
    except CatalogServiceException, cex:
5626
      result.cex = cex
5627
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
5628
    result.write(oprot)
5629
    oprot.writeMessageEnd()
5630
    oprot.trans.flush()
5631
 
5632
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
5633
    args = markItemAsContentComplete_args()
5634
    args.read(iprot)
5635
    iprot.readMessageEnd()
5636
    result = markItemAsContentComplete_result()
5637
    try:
9253 rajveer 5638
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 5639
    except CatalogServiceException, cex:
5640
      result.cex = cex
5641
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
5642
    result.write(oprot)
5643
    oprot.writeMessageEnd()
5644
    oprot.trans.flush()
5645
 
5646
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
5647
    args = getAllItemsInRange_args()
5648
    args.read(iprot)
5649
    iprot.readMessageEnd()
5650
    result = getAllItemsInRange_result()
5651
    try:
5652
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
5653
    except CatalogServiceException, cex:
5654
      result.cex = cex
5655
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
5656
    result.write(oprot)
5657
    oprot.writeMessageEnd()
5658
    oprot.trans.flush()
5659
 
5660
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
5661
    args = getAllItemsByStatusInRange_args()
5662
    args.read(iprot)
5663
    iprot.readMessageEnd()
5664
    result = getAllItemsByStatusInRange_result()
5665
    try:
5666
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
5667
    except CatalogServiceException, cex:
5668
      result.cex = cex
5669
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
5670
    result.write(oprot)
5671
    oprot.writeMessageEnd()
5672
    oprot.trans.flush()
5673
 
5674
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
5675
    args = getItemCountByStatus_args()
5676
    args.read(iprot)
5677
    iprot.readMessageEnd()
5678
    result = getItemCountByStatus_result()
5679
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
5680
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
5681
    result.write(oprot)
5682
    oprot.writeMessageEnd()
5683
    oprot.trans.flush()
5684
 
5685
  def process_getBestSellers(self, seqid, iprot, oprot):
5686
    args = getBestSellers_args()
5687
    args.read(iprot)
5688
    iprot.readMessageEnd()
5689
    result = getBestSellers_result()
5690
    try:
5691
      result.success = self._handler.getBestSellers()
5692
    except CatalogServiceException, isex:
5693
      result.isex = isex
5694
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
5695
    result.write(oprot)
5696
    oprot.writeMessageEnd()
5697
    oprot.trans.flush()
5698
 
5699
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
5700
    args = getBestSellersCatalogIds_args()
5701
    args.read(iprot)
5702
    iprot.readMessageEnd()
5703
    result = getBestSellersCatalogIds_result()
5704
    try:
5705
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
5706
    except CatalogServiceException, cex:
5707
      result.cex = cex
5708
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
5709
    result.write(oprot)
5710
    oprot.writeMessageEnd()
5711
    oprot.trans.flush()
5712
 
5713
  def process_getBestSellersCount(self, seqid, iprot, oprot):
5714
    args = getBestSellersCount_args()
5715
    args.read(iprot)
5716
    iprot.readMessageEnd()
5717
    result = getBestSellersCount_result()
5718
    try:
5719
      result.success = self._handler.getBestSellersCount()
5720
    except CatalogServiceException, cex:
5721
      result.cex = cex
5722
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
5723
    result.write(oprot)
5724
    oprot.writeMessageEnd()
5725
    oprot.trans.flush()
5726
 
5727
  def process_getBestDeals(self, seqid, iprot, oprot):
5728
    args = getBestDeals_args()
5729
    args.read(iprot)
5730
    iprot.readMessageEnd()
5731
    result = getBestDeals_result()
5732
    try:
5733
      result.success = self._handler.getBestDeals()
5734
    except CatalogServiceException, isex:
5735
      result.isex = isex
5736
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
5737
    result.write(oprot)
5738
    oprot.writeMessageEnd()
5739
    oprot.trans.flush()
5740
 
5741
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
5742
    args = getBestDealsCatalogIds_args()
5743
    args.read(iprot)
5744
    iprot.readMessageEnd()
5745
    result = getBestDealsCatalogIds_result()
5746
    try:
5747
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
5748
    except CatalogServiceException, cex:
5749
      result.cex = cex
5750
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
5751
    result.write(oprot)
5752
    oprot.writeMessageEnd()
5753
    oprot.trans.flush()
5754
 
5755
  def process_getBestDealsCount(self, seqid, iprot, oprot):
5756
    args = getBestDealsCount_args()
5757
    args.read(iprot)
5758
    iprot.readMessageEnd()
5759
    result = getBestDealsCount_result()
5760
    try:
5761
      result.success = self._handler.getBestDealsCount()
5762
    except CatalogServiceException, cex:
5763
      result.cex = cex
5764
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
5765
    result.write(oprot)
5766
    oprot.writeMessageEnd()
5767
    oprot.trans.flush()
5768
 
5769
  def process_getComingSoon(self, seqid, iprot, oprot):
5770
    args = getComingSoon_args()
5771
    args.read(iprot)
5772
    iprot.readMessageEnd()
5773
    result = getComingSoon_result()
5774
    try:
5775
      result.success = self._handler.getComingSoon()
5776
    except CatalogServiceException, isex:
5777
      result.isex = isex
5778
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
5779
    result.write(oprot)
5780
    oprot.writeMessageEnd()
5781
    oprot.trans.flush()
5782
 
5783
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
5784
    args = getComingSoonCatalogIds_args()
5785
    args.read(iprot)
5786
    iprot.readMessageEnd()
5787
    result = getComingSoonCatalogIds_result()
5788
    try:
5789
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
5790
    except CatalogServiceException, cex:
5791
      result.cex = cex
5792
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
5793
    result.write(oprot)
5794
    oprot.writeMessageEnd()
5795
    oprot.trans.flush()
5796
 
5797
  def process_getComingSoonCount(self, seqid, iprot, oprot):
5798
    args = getComingSoonCount_args()
5799
    args.read(iprot)
5800
    iprot.readMessageEnd()
5801
    result = getComingSoonCount_result()
5802
    try:
5803
      result.success = self._handler.getComingSoonCount()
5804
    except CatalogServiceException, cex:
5805
      result.cex = cex
5806
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
5807
    result.write(oprot)
5808
    oprot.writeMessageEnd()
5809
    oprot.trans.flush()
5810
 
5811
  def process_getLatestArrivals(self, seqid, iprot, oprot):
5812
    args = getLatestArrivals_args()
5813
    args.read(iprot)
5814
    iprot.readMessageEnd()
5815
    result = getLatestArrivals_result()
5816
    try:
5817
      result.success = self._handler.getLatestArrivals()
5818
    except CatalogServiceException, isex:
5819
      result.isex = isex
5820
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
5821
    result.write(oprot)
5822
    oprot.writeMessageEnd()
5823
    oprot.trans.flush()
5824
 
5825
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
5826
    args = getLatestArrivalsCatalogIds_args()
5827
    args.read(iprot)
5828
    iprot.readMessageEnd()
5829
    result = getLatestArrivalsCatalogIds_result()
5830
    try:
5831
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
5832
    except CatalogServiceException, cex:
5833
      result.cex = cex
5834
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
5835
    result.write(oprot)
5836
    oprot.writeMessageEnd()
5837
    oprot.trans.flush()
5838
 
5839
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
5840
    args = getLatestArrivalsCount_args()
5841
    args.read(iprot)
5842
    iprot.readMessageEnd()
5843
    result = getLatestArrivalsCount_result()
5844
    try:
5845
      result.success = self._handler.getLatestArrivalsCount()
5846
    except CatalogServiceException, cex:
5847
      result.cex = cex
5848
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
5849
    result.write(oprot)
5850
    oprot.writeMessageEnd()
5851
    oprot.trans.flush()
5852
 
5853
  def process_generateNewEntityID(self, seqid, iprot, oprot):
5854
    args = generateNewEntityID_args()
5855
    args.read(iprot)
5856
    iprot.readMessageEnd()
5857
    result = generateNewEntityID_result()
5858
    result.success = self._handler.generateNewEntityID()
5859
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
5860
    result.write(oprot)
5861
    oprot.writeMessageEnd()
5862
    oprot.trans.flush()
5863
 
5864
  def process_addCategory(self, seqid, iprot, oprot):
5865
    args = addCategory_args()
5866
    args.read(iprot)
5867
    iprot.readMessageEnd()
5868
    result = addCategory_result()
5869
    result.success = self._handler.addCategory(args.category)
5870
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
5871
    result.write(oprot)
5872
    oprot.writeMessageEnd()
5873
    oprot.trans.flush()
5874
 
5875
  def process_getCategory(self, seqid, iprot, oprot):
5876
    args = getCategory_args()
5877
    args.read(iprot)
5878
    iprot.readMessageEnd()
5879
    result = getCategory_result()
5880
    result.success = self._handler.getCategory(args.id)
5881
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
5882
    result.write(oprot)
5883
    oprot.writeMessageEnd()
5884
    oprot.trans.flush()
5885
 
5886
  def process_getAllCategories(self, seqid, iprot, oprot):
5887
    args = getAllCategories_args()
5888
    args.read(iprot)
5889
    iprot.readMessageEnd()
5890
    result = getAllCategories_result()
5891
    result.success = self._handler.getAllCategories()
5892
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
5893
    result.write(oprot)
5894
    oprot.writeMessageEnd()
5895
    oprot.trans.flush()
5896
 
5897
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
5898
    args = getAllSimilarItems_args()
5899
    args.read(iprot)
5900
    iprot.readMessageEnd()
5901
    result = getAllSimilarItems_result()
5902
    result.success = self._handler.getAllSimilarItems(args.itemId)
5903
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
5904
    result.write(oprot)
5905
    oprot.writeMessageEnd()
5906
    oprot.trans.flush()
5907
 
5908
  def process_addSimilarItem(self, seqid, iprot, oprot):
5909
    args = addSimilarItem_args()
5910
    args.read(iprot)
5911
    iprot.readMessageEnd()
5912
    result = addSimilarItem_result()
5913
    try:
5914
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
5915
    except CatalogServiceException, cex:
5916
      result.cex = cex
5917
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
5918
    result.write(oprot)
5919
    oprot.writeMessageEnd()
5920
    oprot.trans.flush()
5921
 
6512 kshitij.so 5922
  def process_addTag(self, seqid, iprot, oprot):
5923
    args = addTag_args()
5924
    args.read(iprot)
5925
    iprot.readMessageEnd()
5926
    result = addTag_result()
5927
    result.success = self._handler.addTag(args.displayName, args.itemId)
5928
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
5929
    result.write(oprot)
5930
    oprot.writeMessageEnd()
5931
    oprot.trans.flush()
5932
 
5933
  def process_deleteEntityTag(self, seqid, iprot, oprot):
5934
    args = deleteEntityTag_args()
5935
    args.read(iprot)
5936
    iprot.readMessageEnd()
5937
    result = deleteEntityTag_result()
5938
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
5939
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
5940
    result.write(oprot)
5941
    oprot.writeMessageEnd()
5942
    oprot.trans.flush()
5943
 
5944
  def process_deleteTag(self, seqid, iprot, oprot):
5945
    args = deleteTag_args()
5946
    args.read(iprot)
5947
    iprot.readMessageEnd()
5948
    result = deleteTag_result()
5949
    result.success = self._handler.deleteTag(args.displayName)
5950
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
5951
    result.write(oprot)
5952
    oprot.writeMessageEnd()
5953
    oprot.trans.flush()
5954
 
5955
  def process_getAllTags(self, seqid, iprot, oprot):
5956
    args = getAllTags_args()
5957
    args.read(iprot)
5958
    iprot.readMessageEnd()
5959
    result = getAllTags_result()
5960
    result.success = self._handler.getAllTags()
5961
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
5962
    result.write(oprot)
5963
    oprot.writeMessageEnd()
5964
    oprot.trans.flush()
5965
 
5966
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
5967
    args = getAllEntitiesByTagName_args()
5968
    args.read(iprot)
5969
    iprot.readMessageEnd()
5970
    result = getAllEntitiesByTagName_result()
5971
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
5972
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
5973
    result.write(oprot)
5974
    oprot.writeMessageEnd()
5975
    oprot.trans.flush()
5976
 
6845 amit.gupta 5977
  def process_getAllEntityTags(self, seqid, iprot, oprot):
5978
    args = getAllEntityTags_args()
5979
    args.read(iprot)
5980
    iprot.readMessageEnd()
5981
    result = getAllEntityTags_result()
5982
    result.success = self._handler.getAllEntityTags()
5983
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
5984
    result.write(oprot)
5985
    oprot.writeMessageEnd()
5986
    oprot.trans.flush()
5987
 
6850 kshitij.so 5988
  def process_addBanner(self, seqid, iprot, oprot):
5989
    args = addBanner_args()
5990
    args.read(iprot)
5991
    iprot.readMessageEnd()
5992
    result = addBanner_result()
8590 kshitij.so 5993
    self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 5994
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
5995
    result.write(oprot)
5996
    oprot.writeMessageEnd()
5997
    oprot.trans.flush()
5998
 
8579 kshitij.so 5999
  def process_updateBanner(self, seqid, iprot, oprot):
6000
    args = updateBanner_args()
6001
    args.read(iprot)
6002
    iprot.readMessageEnd()
6003
    result = updateBanner_result()
6004
    result.success = self._handler.updateBanner(args.banner)
6005
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
6006
    result.write(oprot)
6007
    oprot.writeMessageEnd()
6008
    oprot.trans.flush()
6009
 
6850 kshitij.so 6010
  def process_getAllBanners(self, seqid, iprot, oprot):
6011
    args = getAllBanners_args()
6012
    args.read(iprot)
6013
    iprot.readMessageEnd()
6014
    result = getAllBanners_result()
6015
    result.success = self._handler.getAllBanners()
6016
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
6017
    result.write(oprot)
6018
    oprot.writeMessageEnd()
6019
    oprot.trans.flush()
6020
 
6021
  def process_deleteBanner(self, seqid, iprot, oprot):
6022
    args = deleteBanner_args()
6023
    args.read(iprot)
6024
    iprot.readMessageEnd()
6025
    result = deleteBanner_result()
9155 kshitij.so 6026
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 6027
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
6028
    result.write(oprot)
6029
    oprot.writeMessageEnd()
6030
    oprot.trans.flush()
6031
 
6032
  def process_getBannerDetails(self, seqid, iprot, oprot):
6033
    args = getBannerDetails_args()
6034
    args.read(iprot)
6035
    iprot.readMessageEnd()
6036
    result = getBannerDetails_result()
9155 kshitij.so 6037
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 6038
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
6039
    result.write(oprot)
6040
    oprot.writeMessageEnd()
6041
    oprot.trans.flush()
6042
 
6043
  def process_getActiveBanners(self, seqid, iprot, oprot):
6044
    args = getActiveBanners_args()
6045
    args.read(iprot)
6046
    iprot.readMessageEnd()
6047
    result = getActiveBanners_result()
6048
    result.success = self._handler.getActiveBanners()
6049
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
6050
    result.write(oprot)
6051
    oprot.writeMessageEnd()
6052
    oprot.trans.flush()
6053
 
6849 kshitij.so 6054
  def process_addBannerMap(self, seqid, iprot, oprot):
6055
    args = addBannerMap_args()
6056
    args.read(iprot)
6057
    iprot.readMessageEnd()
6058
    result = addBannerMap_result()
8579 kshitij.so 6059
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 6060
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
6061
    result.write(oprot)
6062
    oprot.writeMessageEnd()
6063
    oprot.trans.flush()
6064
 
8579 kshitij.so 6065
  def process_updateBannerMap(self, seqid, iprot, oprot):
6066
    args = updateBannerMap_args()
6067
    args.read(iprot)
6068
    iprot.readMessageEnd()
6069
    result = updateBannerMap_result()
6070
    result.success = self._handler.updateBannerMap(args.bannerMap)
6071
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
6072
    result.write(oprot)
6073
    oprot.writeMessageEnd()
6074
    oprot.trans.flush()
6075
 
6849 kshitij.so 6076
  def process_deleteBannerMap(self, seqid, iprot, oprot):
6077
    args = deleteBannerMap_args()
6078
    args.read(iprot)
6079
    iprot.readMessageEnd()
6080
    result = deleteBannerMap_result()
6081
    result.success = self._handler.deleteBannerMap(args.bannerName)
6082
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
6083
    result.write(oprot)
6084
    oprot.writeMessageEnd()
6085
    oprot.trans.flush()
6086
 
6087
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
6088
    args = getBannerMapDetails_args()
6089
    args.read(iprot)
6090
    iprot.readMessageEnd()
6091
    result = getBannerMapDetails_result()
9155 kshitij.so 6092
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 6093
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
6094
    result.write(oprot)
6095
    oprot.writeMessageEnd()
6096
    oprot.trans.flush()
6097
 
8579 kshitij.so 6098
  def process_addBannerUri(self, seqid, iprot, oprot):
6099
    args = addBannerUri_args()
6100
    args.read(iprot)
6101
    iprot.readMessageEnd()
6102
    result = addBannerUri_result()
6103
    self._handler.addBannerUri(args.bannerUriMappings)
6104
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
6105
    result.write(oprot)
6106
    oprot.writeMessageEnd()
6107
    oprot.trans.flush()
6108
 
6109
  def process_getUriMapping(self, seqid, iprot, oprot):
6110
    args = getUriMapping_args()
6111
    args.read(iprot)
6112
    iprot.readMessageEnd()
6113
    result = getUriMapping_result()
9155 kshitij.so 6114
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 6115
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
6116
    result.write(oprot)
6117
    oprot.writeMessageEnd()
6118
    oprot.trans.flush()
6119
 
6120
  def process_addCampaign(self, seqid, iprot, oprot):
6121
    args = addCampaign_args()
6122
    args.read(iprot)
6123
    iprot.readMessageEnd()
6124
    result = addCampaign_result()
6125
    self._handler.addCampaign(args.campaign)
6126
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
6127
    result.write(oprot)
6128
    oprot.writeMessageEnd()
6129
    oprot.trans.flush()
6130
 
6131
  def process_getCampaigns(self, seqid, iprot, oprot):
6132
    args = getCampaigns_args()
6133
    args.read(iprot)
6134
    iprot.readMessageEnd()
6135
    result = getCampaigns_result()
6136
    result.success = self._handler.getCampaigns(args.campaignName)
6137
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
6138
    result.write(oprot)
6139
    oprot.writeMessageEnd()
6140
    oprot.trans.flush()
6141
 
6142
  def process_deleteCampaign(self, seqid, iprot, oprot):
6143
    args = deleteCampaign_args()
6144
    args.read(iprot)
6145
    iprot.readMessageEnd()
6146
    result = deleteCampaign_result()
6147
    self._handler.deleteCampaign(args.campaignId)
6148
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
6149
    result.write(oprot)
6150
    oprot.writeMessageEnd()
6151
    oprot.trans.flush()
6152
 
6153
  def process_getAllCampaigns(self, seqid, iprot, oprot):
6154
    args = getAllCampaigns_args()
6155
    args.read(iprot)
6156
    iprot.readMessageEnd()
6157
    result = getAllCampaigns_result()
6158
    result.success = self._handler.getAllCampaigns()
6159
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
6160
    result.write(oprot)
6161
    oprot.writeMessageEnd()
6162
    oprot.trans.flush()
6163
 
9155 kshitij.so 6164
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
6165
    args = getActiveBannersForMobileSite_args()
6166
    args.read(iprot)
6167
    iprot.readMessageEnd()
6168
    result = getActiveBannersForMobileSite_result()
6169
    result.success = self._handler.getActiveBannersForMobileSite()
6170
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
6171
    result.write(oprot)
6172
    oprot.writeMessageEnd()
6173
    oprot.trans.flush()
6174
 
5944 mandeep.dh 6175
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
6176
    args = deleteSimilarItem_args()
6177
    args.read(iprot)
6178
    iprot.readMessageEnd()
6179
    result = deleteSimilarItem_result()
6180
    try:
6181
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
6182
    except CatalogServiceException, cex:
6183
      result.cex = cex
6184
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
6185
    result.write(oprot)
6186
    oprot.writeMessageEnd()
6187
    oprot.trans.flush()
6188
 
6189
  def process_checkSimilarItem(self, seqid, iprot, oprot):
6190
    args = checkSimilarItem_args()
6191
    args.read(iprot)
6192
    iprot.readMessageEnd()
6193
    result = checkSimilarItem_result()
6194
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
6195
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
6196
    result.write(oprot)
6197
    oprot.writeMessageEnd()
6198
    oprot.trans.flush()
6199
 
6200
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
6201
    args = validateRiskyStatus_args()
6202
    args.read(iprot)
6203
    iprot.readMessageEnd()
6204
    result = validateRiskyStatus_result()
6205
    self._handler.validateRiskyStatus(args.itemId)
6206
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
6207
    result.write(oprot)
6208
    oprot.writeMessageEnd()
6209
    oprot.trans.flush()
6210
 
6211
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
6212
    args = changeItemRiskyFlag_args()
6213
    args.read(iprot)
6214
    iprot.readMessageEnd()
6215
    result = changeItemRiskyFlag_result()
6216
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
6217
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
6218
    result.write(oprot)
6219
    oprot.writeMessageEnd()
6220
    oprot.trans.flush()
6221
 
6222
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
6223
    args = getItemsByRiskyFlag_args()
6224
    args.read(iprot)
6225
    iprot.readMessageEnd()
6226
    result = getItemsByRiskyFlag_result()
6227
    result.success = self._handler.getItemsByRiskyFlag()
6228
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
6229
    result.write(oprot)
6230
    oprot.writeMessageEnd()
6231
    oprot.trans.flush()
6232
 
6233
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
6234
    args = getItemsForMasterSheet_args()
6235
    args.read(iprot)
6236
    iprot.readMessageEnd()
6237
    result = getItemsForMasterSheet_result()
6238
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
6239
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
6240
    result.write(oprot)
6241
    oprot.writeMessageEnd()
6242
    oprot.trans.flush()
6243
 
6244
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
6245
    args = getSimilarItemsCatalogIds_args()
6246
    args.read(iprot)
6247
    iprot.readMessageEnd()
6248
    result = getSimilarItemsCatalogIds_result()
6249
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
6250
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
6251
    result.write(oprot)
6252
    oprot.writeMessageEnd()
6253
    oprot.trans.flush()
6254
 
6255
  def process_addProductNotification(self, seqid, iprot, oprot):
6256
    args = addProductNotification_args()
6257
    args.read(iprot)
6258
    iprot.readMessageEnd()
6259
    result = addProductNotification_result()
6260
    result.success = self._handler.addProductNotification(args.itemId, args.email)
6261
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
6262
    result.write(oprot)
6263
    oprot.writeMessageEnd()
6264
    oprot.trans.flush()
6265
 
6266
  def process_sendProductNotifications(self, seqid, iprot, oprot):
6267
    args = sendProductNotifications_args()
6268
    args.read(iprot)
6269
    iprot.readMessageEnd()
6270
    result = sendProductNotifications_result()
6271
    result.success = self._handler.sendProductNotifications()
6272
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
6273
    result.write(oprot)
6274
    oprot.writeMessageEnd()
6275
    oprot.trans.flush()
6276
 
6277
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
6278
    args = getAllBrandsByCategory_args()
6279
    args.read(iprot)
6280
    iprot.readMessageEnd()
6281
    result = getAllBrandsByCategory_result()
6282
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
6283
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
6284
    result.write(oprot)
6285
    oprot.writeMessageEnd()
6286
    oprot.trans.flush()
6287
 
6288
  def process_getAllBrands(self, seqid, iprot, oprot):
6289
    args = getAllBrands_args()
6290
    args.read(iprot)
6291
    iprot.readMessageEnd()
6292
    result = getAllBrands_result()
6293
    result.success = self._handler.getAllBrands()
6294
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
6295
    result.write(oprot)
6296
    oprot.writeMessageEnd()
6297
    oprot.trans.flush()
6298
 
6299
  def process_getAllSources(self, seqid, iprot, oprot):
6300
    args = getAllSources_args()
6301
    args.read(iprot)
6302
    iprot.readMessageEnd()
6303
    result = getAllSources_result()
6304
    result.success = self._handler.getAllSources()
6305
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
6306
    result.write(oprot)
6307
    oprot.writeMessageEnd()
6308
    oprot.trans.flush()
6309
 
6310
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
6311
    args = getItemPricingBySource_args()
6312
    args.read(iprot)
6313
    iprot.readMessageEnd()
6314
    result = getItemPricingBySource_result()
6315
    try:
6316
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
6317
    except CatalogServiceException, cex:
6318
      result.cex = cex
6319
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
6320
    result.write(oprot)
6321
    oprot.writeMessageEnd()
6322
    oprot.trans.flush()
6323
 
6324
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
6325
    args = addSourceItemPricing_args()
6326
    args.read(iprot)
6327
    iprot.readMessageEnd()
6328
    result = addSourceItemPricing_result()
6329
    try:
6330
      self._handler.addSourceItemPricing(args.sourceItemPricing)
6331
    except CatalogServiceException, cex:
6332
      result.cex = cex
6333
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
6334
    result.write(oprot)
6335
    oprot.writeMessageEnd()
6336
    oprot.trans.flush()
6337
 
6338
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
6339
    args = getAllSourcePricing_args()
6340
    args.read(iprot)
6341
    iprot.readMessageEnd()
6342
    result = getAllSourcePricing_result()
6343
    try:
6344
      result.success = self._handler.getAllSourcePricing(args.itemId)
6345
    except CatalogServiceException, cex:
6346
      result.cex = cex
6347
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
6348
    result.write(oprot)
6349
    oprot.writeMessageEnd()
6350
    oprot.trans.flush()
6351
 
6352
  def process_getItemForSource(self, seqid, iprot, oprot):
6353
    args = getItemForSource_args()
6354
    args.read(iprot)
6355
    iprot.readMessageEnd()
6356
    result = getItemForSource_result()
6357
    try:
6358
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
6359
    except CatalogServiceException, cex:
6360
      result.cex = cex
6361
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
6362
    result.write(oprot)
6363
    oprot.writeMessageEnd()
6364
    oprot.trans.flush()
6365
 
6366
  def process_searchItemsInRange(self, seqid, iprot, oprot):
6367
    args = searchItemsInRange_args()
6368
    args.read(iprot)
6369
    iprot.readMessageEnd()
6370
    result = searchItemsInRange_result()
6371
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
6372
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
6373
    result.write(oprot)
6374
    oprot.writeMessageEnd()
6375
    oprot.trans.flush()
6376
 
6377
  def process_getSearchResultCount(self, seqid, iprot, oprot):
6378
    args = getSearchResultCount_args()
6379
    args.read(iprot)
6380
    iprot.readMessageEnd()
6381
    result = getSearchResultCount_result()
6382
    result.success = self._handler.getSearchResultCount(args.searchTerms)
6383
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
6384
    result.write(oprot)
6385
    oprot.writeMessageEnd()
6386
    oprot.trans.flush()
6387
 
6388
  def process_getProductNotifications(self, seqid, iprot, oprot):
6389
    args = getProductNotifications_args()
6390
    args.read(iprot)
6391
    iprot.readMessageEnd()
6392
    result = getProductNotifications_result()
6393
    result.success = self._handler.getProductNotifications(args.startDateTime)
6394
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
6395
    result.write(oprot)
6396
    oprot.writeMessageEnd()
6397
    oprot.trans.flush()
6398
 
6399
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
6400
    args = getProductNotificationRequestCount_args()
6401
    args.read(iprot)
6402
    iprot.readMessageEnd()
6403
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 6404
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 6405
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
6406
    result.write(oprot)
6407
    oprot.writeMessageEnd()
6408
    oprot.trans.flush()
6409
 
6410
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
6411
    args = addAuthorizationLog_args()
6412
    args.read(iprot)
6413
    iprot.readMessageEnd()
6414
    result = addAuthorizationLog_result()
6415
    try:
6416
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
6417
    except CatalogServiceException, cex:
6418
      result.cex = cex
6419
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
6420
    result.write(oprot)
6421
    oprot.writeMessageEnd()
6422
    oprot.trans.flush()
6423
 
6424
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
6425
    args = addupdateVoucherForItem_args()
6426
    args.read(iprot)
6427
    iprot.readMessageEnd()
6428
    result = addupdateVoucherForItem_result()
6429
    try:
6430
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
6431
    except CatalogServiceException, cex:
6432
      result.cex = cex
6433
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
6434
    result.write(oprot)
6435
    oprot.writeMessageEnd()
6436
    oprot.trans.flush()
6437
 
6438
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
6439
    args = deleteVoucherForItem_args()
6440
    args.read(iprot)
6441
    iprot.readMessageEnd()
6442
    result = deleteVoucherForItem_result()
6443
    try:
6444
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
6445
    except CatalogServiceException, cex:
6446
      result.cex = cex
6447
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
6448
    result.write(oprot)
6449
    oprot.writeMessageEnd()
6450
    oprot.trans.flush()
6451
 
6452
  def process_getVoucherAmount(self, seqid, iprot, oprot):
6453
    args = getVoucherAmount_args()
6454
    args.read(iprot)
6455
    iprot.readMessageEnd()
6456
    result = getVoucherAmount_result()
6457
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
6458
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
6459
    result.write(oprot)
6460
    oprot.writeMessageEnd()
6461
    oprot.trans.flush()
6462
 
6463
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
6464
    args = getAllItemVouchers_args()
6465
    args.read(iprot)
6466
    iprot.readMessageEnd()
6467
    result = getAllItemVouchers_result()
6468
    result.success = self._handler.getAllItemVouchers(args.itemId)
6469
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
6470
    result.write(oprot)
6471
    oprot.writeMessageEnd()
6472
    oprot.trans.flush()
6473
 
6474
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
6475
    args = isValidCatalogItemId_args()
6476
    args.read(iprot)
6477
    iprot.readMessageEnd()
6478
    result = isValidCatalogItemId_result()
6479
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
6480
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
6481
    result.write(oprot)
6482
    oprot.writeMessageEnd()
6483
    oprot.trans.flush()
6484
 
6039 amit.gupta 6485
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
6486
    args = getVatPercentageForItem_args()
6487
    args.read(iprot)
6488
    iprot.readMessageEnd()
6489
    result = getVatPercentageForItem_result()
7340 amit.gupta 6490
    try:
6491
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
6492
    except CatalogServiceException, cex:
6493
      result.cex = cex
6039 amit.gupta 6494
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
6495
    result.write(oprot)
6496
    oprot.writeMessageEnd()
6497
    oprot.trans.flush()
5944 mandeep.dh 6498
 
6039 amit.gupta 6499
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
6500
    args = getVatAmountForItem_args()
6501
    args.read(iprot)
6502
    iprot.readMessageEnd()
6503
    result = getVatAmountForItem_result()
6504
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
6505
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
6506
    result.write(oprot)
6507
    oprot.writeMessageEnd()
6508
    oprot.trans.flush()
6509
 
6531 vikram.rag 6510
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
6511
    args = getAllIgnoredInventoryUpdateItemsList_args()
6512
    args.read(iprot)
6513
    iprot.readMessageEnd()
6514
    result = getAllIgnoredInventoryUpdateItemsList_result()
6515
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
6516
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
6517
    result.write(oprot)
6518
    oprot.writeMessageEnd()
6519
    oprot.trans.flush()
6039 amit.gupta 6520
 
6821 amar.kumar 6521
  def process_getAllAliveItems(self, seqid, iprot, oprot):
6522
    args = getAllAliveItems_args()
6523
    args.read(iprot)
6524
    iprot.readMessageEnd()
6525
    result = getAllAliveItems_result()
6526
    result.success = self._handler.getAllAliveItems()
6527
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
6528
    result.write(oprot)
6529
    oprot.writeMessageEnd()
6530
    oprot.trans.flush()
6531
 
6805 anupam.sin 6532
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
6533
    args = getInsuranceAmount_args()
6534
    args.read(iprot)
6535
    iprot.readMessageEnd()
6536
    result = getInsuranceAmount_result()
6921 anupam.sin 6537
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 6538
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
6539
    result.write(oprot)
6540
    oprot.writeMessageEnd()
6541
    oprot.trans.flush()
6531 vikram.rag 6542
 
6805 anupam.sin 6543
  def process_getInsurer(self, seqid, iprot, oprot):
6544
    args = getInsurer_args()
6545
    args.read(iprot)
6546
    iprot.readMessageEnd()
6547
    result = getInsurer_result()
6548
    result.success = self._handler.getInsurer(args.insurerId)
6549
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
6550
    result.write(oprot)
6551
    oprot.writeMessageEnd()
6552
    oprot.trans.flush()
6553
 
6838 vikram.rag 6554
  def process_getAllInsurers(self, seqid, iprot, oprot):
6555
    args = getAllInsurers_args()
6556
    args.read(iprot)
6557
    iprot.readMessageEnd()
6558
    result = getAllInsurers_result()
6559
    result.success = self._handler.getAllInsurers()
6560
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
6561
    result.write(oprot)
6562
    oprot.writeMessageEnd()
6563
    oprot.trans.flush()
6805 anupam.sin 6564
 
6962 rajveer 6565
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
6566
    args = updateInsuranceDeclaredAmount_args()
6567
    args.read(iprot)
6568
    iprot.readMessageEnd()
6569
    result = updateInsuranceDeclaredAmount_result()
6570
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
6571
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
6572
    result.write(oprot)
6573
    oprot.writeMessageEnd()
6574
    oprot.trans.flush()
6838 vikram.rag 6575
 
7190 amar.kumar 6576
  def process_getFreebieForItem(self, seqid, iprot, oprot):
6577
    args = getFreebieForItem_args()
6578
    args.read(iprot)
6579
    iprot.readMessageEnd()
6580
    result = getFreebieForItem_result()
6581
    result.success = self._handler.getFreebieForItem(args.itemId)
6582
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
6583
    result.write(oprot)
6584
    oprot.writeMessageEnd()
6585
    oprot.trans.flush()
6962 rajveer 6586
 
7190 amar.kumar 6587
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
6588
    args = addOrUpdateFreebieForItem_args()
6589
    args.read(iprot)
6590
    iprot.readMessageEnd()
6591
    result = addOrUpdateFreebieForItem_result()
6592
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
6593
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
6594
    result.write(oprot)
6595
    oprot.writeMessageEnd()
6596
    oprot.trans.flush()
6597
 
7272 amit.gupta 6598
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
6599
    args = addOrUpdateBrandInfo_args()
6600
    args.read(iprot)
6601
    iprot.readMessageEnd()
6602
    result = addOrUpdateBrandInfo_result()
6603
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
6604
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
6605
    result.write(oprot)
6606
    oprot.writeMessageEnd()
6607
    oprot.trans.flush()
6608
 
6609
  def process_getBrandInfo(self, seqid, iprot, oprot):
6610
    args = getBrandInfo_args()
6611
    args.read(iprot)
6612
    iprot.readMessageEnd()
6613
    result = getBrandInfo_result()
6614
    result.success = self._handler.getBrandInfo()
6615
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
6616
    result.write(oprot)
6617
    oprot.writeMessageEnd()
6618
    oprot.trans.flush()
6619
 
7256 rajveer 6620
  def process_getStorePricing(self, seqid, iprot, oprot):
6621
    args = getStorePricing_args()
6622
    args.read(iprot)
6623
    iprot.readMessageEnd()
6624
    result = getStorePricing_result()
6625
    result.success = self._handler.getStorePricing(args.itemId)
6626
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
6627
    result.write(oprot)
6628
    oprot.writeMessageEnd()
6629
    oprot.trans.flush()
7190 amar.kumar 6630
 
7306 rajveer 6631
  def process_getStorePricings(self, seqid, iprot, oprot):
6632
    args = getStorePricings_args()
6633
    args.read(iprot)
6634
    iprot.readMessageEnd()
6635
    result = getStorePricings_result()
6636
    result.success = self._handler.getStorePricings(args.itemIds)
6637
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
6638
    result.write(oprot)
6639
    oprot.writeMessageEnd()
6640
    oprot.trans.flush()
6641
 
7265 rajveer 6642
  def process_updateStorePricing(self, seqid, iprot, oprot):
6643
    args = updateStorePricing_args()
6644
    args.read(iprot)
6645
    iprot.readMessageEnd()
6646
    result = updateStorePricing_result()
7382 rajveer 6647
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 6648
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
6649
    result.write(oprot)
6650
    oprot.writeMessageEnd()
6651
    oprot.trans.flush()
7256 rajveer 6652
 
7281 kshitij.so 6653
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
6654
    args = getAllAmazonListedItems_args()
6655
    args.read(iprot)
6656
    iprot.readMessageEnd()
6657
    result = getAllAmazonListedItems_result()
6658
    result.success = self._handler.getAllAmazonListedItems()
6659
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
6660
    result.write(oprot)
6661
    oprot.writeMessageEnd()
6662
    oprot.trans.flush()
7265 rajveer 6663
 
8619 kshitij.so 6664
  def process_searchAmazonItems(self, seqid, iprot, oprot):
6665
    args = searchAmazonItems_args()
6666
    args.read(iprot)
6667
    iprot.readMessageEnd()
6668
    result = searchAmazonItems_result()
6669
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
6670
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
6671
    result.write(oprot)
6672
    oprot.writeMessageEnd()
6673
    oprot.trans.flush()
6674
 
6675
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
6676
    args = getAmazonSearchResultCount_args()
6677
    args.read(iprot)
6678
    iprot.readMessageEnd()
6679
    result = getAmazonSearchResultCount_result()
6680
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
6681
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
6682
    result.write(oprot)
6683
    oprot.writeMessageEnd()
6684
    oprot.trans.flush()
6685
 
6686
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
6687
    args = getCountForAmazonlistedItems_args()
6688
    args.read(iprot)
6689
    iprot.readMessageEnd()
6690
    result = getCountForAmazonlistedItems_result()
6691
    result.success = self._handler.getCountForAmazonlistedItems()
6692
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
6693
    result.write(oprot)
6694
    oprot.writeMessageEnd()
6695
    oprot.trans.flush()
6696
 
7281 kshitij.so 6697
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
6698
    args = getAmazonItemDetails_args()
6699
    args.read(iprot)
6700
    iprot.readMessageEnd()
6701
    result = getAmazonItemDetails_result()
6702
    result.success = self._handler.getAmazonItemDetails(args.itemId)
6703
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
6704
    result.write(oprot)
6705
    oprot.writeMessageEnd()
6706
    oprot.trans.flush()
6707
 
6708
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
6709
    args = updateAmazonItemDetails_args()
6710
    args.read(iprot)
6711
    iprot.readMessageEnd()
6712
    result = updateAmazonItemDetails_result()
8168 kshitij.so 6713
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 6714
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
6715
    result.write(oprot)
6716
    oprot.writeMessageEnd()
6717
    oprot.trans.flush()
6718
 
6719
  def process_addAmazonItem(self, seqid, iprot, oprot):
6720
    args = addAmazonItem_args()
6721
    args.read(iprot)
6722
    iprot.readMessageEnd()
6723
    result = addAmazonItem_result()
6724
    self._handler.addAmazonItem(args.amazonlisted)
6725
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
6726
    result.write(oprot)
6727
    oprot.writeMessageEnd()
6728
    oprot.trans.flush()
6729
 
7291 vikram.rag 6730
  def process_getAsinItems(self, seqid, iprot, oprot):
6731
    args = getAsinItems_args()
6732
    args.read(iprot)
6733
    iprot.readMessageEnd()
6734
    result = getAsinItems_result()
6735
    result.success = self._handler.getAsinItems()
6736
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
6737
    result.write(oprot)
6738
    oprot.writeMessageEnd()
6739
    oprot.trans.flush()
7281 kshitij.so 6740
 
7291 vikram.rag 6741
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
6742
    args = getAllFbaListedItems_args()
6743
    args.read(iprot)
6744
    iprot.readMessageEnd()
6745
    result = getAllFbaListedItems_result()
6746
    result.success = self._handler.getAllFbaListedItems()
6747
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
6748
    result.write(oprot)
6749
    oprot.writeMessageEnd()
6750
    oprot.trans.flush()
6751
 
6752
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
6753
    args = getAllNonFbaListedItems_args()
6754
    args.read(iprot)
6755
    iprot.readMessageEnd()
6756
    result = getAllNonFbaListedItems_result()
6757
    result.success = self._handler.getAllNonFbaListedItems()
6758
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
6759
    result.write(oprot)
6760
    oprot.writeMessageEnd()
6761
    oprot.trans.flush()
6762
 
7460 kshitij.so 6763
  def process_updateItemInventory(self, seqid, iprot, oprot):
6764
    args = updateItemInventory_args()
6765
    args.read(iprot)
6766
    iprot.readMessageEnd()
6767
    result = updateItemInventory_result()
6768
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
6769
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
6770
    result.write(oprot)
6771
    oprot.writeMessageEnd()
6772
    oprot.trans.flush()
7291 vikram.rag 6773
 
7770 kshitij.so 6774
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
6775
    args = updateTimestampForAmazonFeeds_args()
6776
    args.read(iprot)
6777
    iprot.readMessageEnd()
6778
    result = updateTimestampForAmazonFeeds_result()
6779
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
6780
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
6781
    result.write(oprot)
6782
    oprot.writeMessageEnd()
6783
    oprot.trans.flush()
7460 kshitij.so 6784
 
7897 amar.kumar 6785
  def process_getAllParentCategories(self, seqid, iprot, oprot):
6786
    args = getAllParentCategories_args()
6787
    args.read(iprot)
6788
    iprot.readMessageEnd()
6789
    result = getAllParentCategories_result()
6790
    result.success = self._handler.getAllParentCategories()
6791
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
6792
    result.write(oprot)
6793
    oprot.writeMessageEnd()
6794
    oprot.trans.flush()
7770 kshitij.so 6795
 
7977 kshitij.so 6796
  def process_addPageViewEvent(self, seqid, iprot, oprot):
6797
    args = addPageViewEvent_args()
6798
    args.read(iprot)
6799
    iprot.readMessageEnd()
6800
    result = addPageViewEvent_result()
6801
    self._handler.addPageViewEvent(args.pageViewEvents)
6802
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
6803
    result.write(oprot)
6804
    oprot.writeMessageEnd()
6805
    oprot.trans.flush()
7897 amar.kumar 6806
 
7977 kshitij.so 6807
  def process_addCartEvent(self, seqid, iprot, oprot):
6808
    args = addCartEvent_args()
6809
    args.read(iprot)
6810
    iprot.readMessageEnd()
6811
    result = addCartEvent_result()
6812
    self._handler.addCartEvent(args.cartEvents)
6813
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
6814
    result.write(oprot)
6815
    oprot.writeMessageEnd()
6816
    oprot.trans.flush()
6817
 
8182 amar.kumar 6818
  def process_addEbayItem(self, seqid, iprot, oprot):
6819
    args = addEbayItem_args()
6820
    args.read(iprot)
6821
    iprot.readMessageEnd()
6822
    result = addEbayItem_result()
6823
    self._handler.addEbayItem(args.ebayItem)
6824
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
6825
    result.write(oprot)
6826
    oprot.writeMessageEnd()
6827
    oprot.trans.flush()
6828
 
6829
  def process_getEbayItem(self, seqid, iprot, oprot):
6830
    args = getEbayItem_args()
6831
    args.read(iprot)
6832
    iprot.readMessageEnd()
6833
    result = getEbayItem_result()
6834
    result.success = self._handler.getEbayItem(args.listingId)
6835
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
6836
    result.write(oprot)
6837
    oprot.writeMessageEnd()
6838
    oprot.trans.flush()
6839
 
6840
  def process_updateEbayItem(self, seqid, iprot, oprot):
6841
    args = updateEbayItem_args()
6842
    args.read(iprot)
6843
    iprot.readMessageEnd()
6844
    result = updateEbayItem_result()
6845
    self._handler.updateEbayItem(args.ebayItem)
6846
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
6847
    result.write(oprot)
6848
    oprot.writeMessageEnd()
6849
    oprot.trans.flush()
6850
 
8139 kshitij.so 6851
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
6852
    args = getAmazonListedItems_args()
6853
    args.read(iprot)
6854
    iprot.readMessageEnd()
6855
    result = getAmazonListedItems_result()
6856
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
6857
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
6858
    result.write(oprot)
6859
    oprot.writeMessageEnd()
6860
    oprot.trans.flush()
7977 kshitij.so 6861
 
8168 kshitij.so 6862
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
6863
    args = updateAmazonAttributesInBulk_args()
6864
    args.read(iprot)
6865
    iprot.readMessageEnd()
6866
    result = updateAmazonAttributesInBulk_result()
6867
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
6868
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
6869
    result.write(oprot)
6870
    oprot.writeMessageEnd()
6871
    oprot.trans.flush()
8139 kshitij.so 6872
 
8379 vikram.rag 6873
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
6874
    args = getAllItemstoListOnFba_args()
6875
    args.read(iprot)
6876
    iprot.readMessageEnd()
6877
    result = getAllItemstoListOnFba_result()
6878
    result.success = self._handler.getAllItemstoListOnFba()
6879
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
6880
    result.write(oprot)
6881
    oprot.writeMessageEnd()
6882
    oprot.trans.flush()
8168 kshitij.so 6883
 
8379 vikram.rag 6884
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
6885
    args = getAllItemstoListOnNonFba_args()
6886
    args.read(iprot)
6887
    iprot.readMessageEnd()
6888
    result = getAllItemstoListOnNonFba_result()
6889
    result.success = self._handler.getAllItemstoListOnNonFba()
6890
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
6891
    result.write(oprot)
6892
    oprot.writeMessageEnd()
6893
    oprot.trans.flush()
6894
 
8619 kshitij.so 6895
  def process_updateAsin(self, seqid, iprot, oprot):
6896
    args = updateAsin_args()
6897
    args.read(iprot)
6898
    iprot.readMessageEnd()
6899
    result = updateAsin_result()
6900
    self._handler.updateAsin(args.item)
6901
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
6902
    result.write(oprot)
6903
    oprot.writeMessageEnd()
6904
    oprot.trans.flush()
8616 vikram.rag 6905
 
8739 vikram.rag 6906
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
6907
    args = addOrUpdateSnapdealItem_args()
6908
    args.read(iprot)
6909
    iprot.readMessageEnd()
6910
    result = addOrUpdateSnapdealItem_result()
6911
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
6912
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
6913
    result.write(oprot)
6914
    oprot.writeMessageEnd()
6915
    oprot.trans.flush()
8619 kshitij.so 6916
 
8739 vikram.rag 6917
  def process_getSnapdealItem(self, seqid, iprot, oprot):
6918
    args = getSnapdealItem_args()
6919
    args.read(iprot)
6920
    iprot.readMessageEnd()
6921
    result = getSnapdealItem_result()
6922
    result.success = self._handler.getSnapdealItem(args.item_id)
6923
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
6924
    result.write(oprot)
6925
    oprot.writeMessageEnd()
6926
    oprot.trans.flush()
6927
 
9242 kshitij.so 6928
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
6929
    args = getSnapdealItemDetails_args()
6930
    args.read(iprot)
6931
    iprot.readMessageEnd()
6932
    result = getSnapdealItemDetails_result()
6933
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
6934
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
6935
    result.write(oprot)
6936
    oprot.writeMessageEnd()
6937
    oprot.trans.flush()
6938
 
8739 vikram.rag 6939
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
6940
    args = getAllSnapdealItems_args()
6941
    args.read(iprot)
6942
    iprot.readMessageEnd()
6943
    result = getAllSnapdealItems_result()
6944
    result.success = self._handler.getAllSnapdealItems()
6945
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
6946
    result.write(oprot)
6947
    oprot.writeMessageEnd()
6948
    oprot.trans.flush()
6949
 
9242 kshitij.so 6950
  def process_getSnapdealItems(self, seqid, iprot, oprot):
6951
    args = getSnapdealItems_args()
6952
    args.read(iprot)
6953
    iprot.readMessageEnd()
6954
    result = getSnapdealItems_result()
6955
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
6956
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
6957
    result.write(oprot)
6958
    oprot.writeMessageEnd()
6959
    oprot.trans.flush()
8739 vikram.rag 6960
 
9242 kshitij.so 6961
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
6962
    args = searchSnapdealItems_args()
6963
    args.read(iprot)
6964
    iprot.readMessageEnd()
6965
    result = searchSnapdealItems_result()
6966
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
6967
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
6968
    result.write(oprot)
6969
    oprot.writeMessageEnd()
6970
    oprot.trans.flush()
6971
 
6972
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
6973
    args = getCountForSnapdealItems_args()
6974
    args.read(iprot)
6975
    iprot.readMessageEnd()
6976
    result = getCountForSnapdealItems_result()
6977
    result.success = self._handler.getCountForSnapdealItems()
6978
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
6979
    result.write(oprot)
6980
    oprot.writeMessageEnd()
6981
    oprot.trans.flush()
6982
 
6983
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
6984
    args = getSnapdealSearchResultCount_args()
6985
    args.read(iprot)
6986
    iprot.readMessageEnd()
6987
    result = getSnapdealSearchResultCount_result()
6988
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
6989
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
6990
    result.write(oprot)
6991
    oprot.writeMessageEnd()
6992
    oprot.trans.flush()
6993
 
9299 kshitij.so 6994
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
6995
    args = getPrefferedInsurerForItem_args()
6996
    args.read(iprot)
6997
    iprot.readMessageEnd()
6998
    result = getPrefferedInsurerForItem_result()
6999
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
7000
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
7001
    result.write(oprot)
7002
    oprot.writeMessageEnd()
7003
    oprot.trans.flush()
9242 kshitij.so 7004
 
9456 vikram.rag 7005
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
7006
    args = getSnapdealItembySkuAtSnapdeal_args()
7007
    args.read(iprot)
7008
    iprot.readMessageEnd()
7009
    result = getSnapdealItembySkuAtSnapdeal_result()
7010
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
7011
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
7012
    result.write(oprot)
7013
    oprot.writeMessageEnd()
7014
    oprot.trans.flush()
9299 kshitij.so 7015
 
9621 manish.sha 7016
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
7017
    args = getProductFeedSubmit_args()
7018
    args.read(iprot)
7019
    iprot.readMessageEnd()
7020
    result = getProductFeedSubmit_result()
7021
    try:
7022
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
7023
    except CatalogServiceException, cex:
7024
      result.cex = cex
7025
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
7026
    result.write(oprot)
7027
    oprot.writeMessageEnd()
7028
    oprot.trans.flush()
9456 vikram.rag 7029
 
9621 manish.sha 7030
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
7031
    args = addProductFeedSubmit_args()
7032
    args.read(iprot)
7033
    iprot.readMessageEnd()
7034
    result = addProductFeedSubmit_result()
7035
    try:
7036
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
7037
    except CatalogServiceException, cex:
7038
      result.cex = cex
7039
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
7040
    result.write(oprot)
7041
    oprot.writeMessageEnd()
7042
    oprot.trans.flush()
7043
 
7044
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
7045
    args = updateProductFeedSubmit_args()
7046
    args.read(iprot)
7047
    iprot.readMessageEnd()
7048
    result = updateProductFeedSubmit_result()
7049
    try:
7050
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
7051
    except CatalogServiceException, cex:
7052
      result.cex = cex
7053
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
7054
    result.write(oprot)
7055
    oprot.writeMessageEnd()
7056
    oprot.trans.flush()
7057
 
7058
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
7059
    args = deleteProductFeedSubmit_args()
7060
    args.read(iprot)
7061
    iprot.readMessageEnd()
7062
    result = deleteProductFeedSubmit_result()
7063
    try:
7064
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
7065
    except CatalogServiceException, cex:
7066
      result.cex = cex
7067
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
7068
    result.write(oprot)
7069
    oprot.writeMessageEnd()
7070
    oprot.trans.flush()
7071
 
7072
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
7073
    args = getAllProductFeedSubmit_args()
7074
    args.read(iprot)
7075
    iprot.readMessageEnd()
7076
    result = getAllProductFeedSubmit_result()
7077
    try:
7078
      result.success = self._handler.getAllProductFeedSubmit()
7079
    except CatalogServiceException, cex:
7080
      result.cex = cex
7081
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
7082
    result.write(oprot)
7083
    oprot.writeMessageEnd()
7084
    oprot.trans.flush()
7085
 
9724 kshitij.so 7086
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
7087
    args = getMarketplacedetailsForItem_args()
7088
    args.read(iprot)
7089
    iprot.readMessageEnd()
7090
    result = getMarketplacedetailsForItem_result()
7091
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
7092
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
7093
    result.write(oprot)
7094
    oprot.writeMessageEnd()
7095
    oprot.trans.flush()
9621 manish.sha 7096
 
9724 kshitij.so 7097
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
7098
    args = updateMarketplaceAttributesForItem_args()
7099
    args.read(iprot)
7100
    iprot.readMessageEnd()
7101
    result = updateMarketplaceAttributesForItem_result()
7102
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
7103
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
7104
    result.write(oprot)
7105
    oprot.writeMessageEnd()
7106
    oprot.trans.flush()
7107
 
7108
 
5944 mandeep.dh 7109
# HELPER FUNCTIONS AND STRUCTURES
7110
 
7111
class addItem_args:
7112
  """
7113
  Attributes:
7114
   - item
7115
  """
7116
 
7117
  thrift_spec = (
7118
    None, # 0
7119
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
7120
  )
7121
 
7122
  def __init__(self, item=None,):
7123
    self.item = item
7124
 
7125
  def read(self, iprot):
7126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7128
      return
7129
    iprot.readStructBegin()
7130
    while True:
7131
      (fname, ftype, fid) = iprot.readFieldBegin()
7132
      if ftype == TType.STOP:
7133
        break
7134
      if fid == 1:
7135
        if ftype == TType.STRUCT:
7136
          self.item = Item()
7137
          self.item.read(iprot)
7138
        else:
7139
          iprot.skip(ftype)
7140
      else:
7141
        iprot.skip(ftype)
7142
      iprot.readFieldEnd()
7143
    iprot.readStructEnd()
7144
 
7145
  def write(self, oprot):
7146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7148
      return
7149
    oprot.writeStructBegin('addItem_args')
7150
    if self.item is not None:
7151
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
7152
      self.item.write(oprot)
7153
      oprot.writeFieldEnd()
7154
    oprot.writeFieldStop()
7155
    oprot.writeStructEnd()
7156
 
7157
  def validate(self):
7158
    return
7159
 
7160
 
7161
  def __repr__(self):
7162
    L = ['%s=%r' % (key, value)
7163
      for key, value in self.__dict__.iteritems()]
7164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7165
 
7166
  def __eq__(self, other):
7167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7168
 
7169
  def __ne__(self, other):
7170
    return not (self == other)
7171
 
7172
class addItem_result:
7173
  """
7174
  Attributes:
7175
   - success
7176
   - cex
7177
  """
7178
 
7179
  thrift_spec = (
7180
    (0, TType.I64, 'success', None, None, ), # 0
7181
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7182
  )
7183
 
7184
  def __init__(self, success=None, cex=None,):
7185
    self.success = success
7186
    self.cex = cex
7187
 
7188
  def read(self, iprot):
7189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7191
      return
7192
    iprot.readStructBegin()
7193
    while True:
7194
      (fname, ftype, fid) = iprot.readFieldBegin()
7195
      if ftype == TType.STOP:
7196
        break
7197
      if fid == 0:
7198
        if ftype == TType.I64:
7199
          self.success = iprot.readI64();
7200
        else:
7201
          iprot.skip(ftype)
7202
      elif fid == 1:
7203
        if ftype == TType.STRUCT:
7204
          self.cex = CatalogServiceException()
7205
          self.cex.read(iprot)
7206
        else:
7207
          iprot.skip(ftype)
7208
      else:
7209
        iprot.skip(ftype)
7210
      iprot.readFieldEnd()
7211
    iprot.readStructEnd()
7212
 
7213
  def write(self, oprot):
7214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7216
      return
7217
    oprot.writeStructBegin('addItem_result')
7218
    if self.success is not None:
7219
      oprot.writeFieldBegin('success', TType.I64, 0)
7220
      oprot.writeI64(self.success)
7221
      oprot.writeFieldEnd()
7222
    if self.cex is not None:
7223
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7224
      self.cex.write(oprot)
7225
      oprot.writeFieldEnd()
7226
    oprot.writeFieldStop()
7227
    oprot.writeStructEnd()
7228
 
7229
  def validate(self):
7230
    return
7231
 
7232
 
7233
  def __repr__(self):
7234
    L = ['%s=%r' % (key, value)
7235
      for key, value in self.__dict__.iteritems()]
7236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7237
 
7238
  def __eq__(self, other):
7239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7240
 
7241
  def __ne__(self, other):
7242
    return not (self == other)
7243
 
7244
class updateItem_args:
7245
  """
7246
  Attributes:
7247
   - item
7248
  """
7249
 
7250
  thrift_spec = (
7251
    None, # 0
7252
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
7253
  )
7254
 
7255
  def __init__(self, item=None,):
7256
    self.item = item
7257
 
7258
  def read(self, iprot):
7259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7261
      return
7262
    iprot.readStructBegin()
7263
    while True:
7264
      (fname, ftype, fid) = iprot.readFieldBegin()
7265
      if ftype == TType.STOP:
7266
        break
7267
      if fid == 1:
7268
        if ftype == TType.STRUCT:
7269
          self.item = Item()
7270
          self.item.read(iprot)
7271
        else:
7272
          iprot.skip(ftype)
7273
      else:
7274
        iprot.skip(ftype)
7275
      iprot.readFieldEnd()
7276
    iprot.readStructEnd()
7277
 
7278
  def write(self, oprot):
7279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7281
      return
7282
    oprot.writeStructBegin('updateItem_args')
7283
    if self.item is not None:
7284
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
7285
      self.item.write(oprot)
7286
      oprot.writeFieldEnd()
7287
    oprot.writeFieldStop()
7288
    oprot.writeStructEnd()
7289
 
7290
  def validate(self):
7291
    return
7292
 
7293
 
7294
  def __repr__(self):
7295
    L = ['%s=%r' % (key, value)
7296
      for key, value in self.__dict__.iteritems()]
7297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7298
 
7299
  def __eq__(self, other):
7300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7301
 
7302
  def __ne__(self, other):
7303
    return not (self == other)
7304
 
7305
class updateItem_result:
7306
  """
7307
  Attributes:
7308
   - success
7309
   - cex
7310
  """
7311
 
7312
  thrift_spec = (
7313
    (0, TType.I64, 'success', None, None, ), # 0
7314
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7315
  )
7316
 
7317
  def __init__(self, success=None, cex=None,):
7318
    self.success = success
7319
    self.cex = cex
7320
 
7321
  def read(self, iprot):
7322
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7323
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7324
      return
7325
    iprot.readStructBegin()
7326
    while True:
7327
      (fname, ftype, fid) = iprot.readFieldBegin()
7328
      if ftype == TType.STOP:
7329
        break
7330
      if fid == 0:
7331
        if ftype == TType.I64:
7332
          self.success = iprot.readI64();
7333
        else:
7334
          iprot.skip(ftype)
7335
      elif fid == 1:
7336
        if ftype == TType.STRUCT:
7337
          self.cex = CatalogServiceException()
7338
          self.cex.read(iprot)
7339
        else:
7340
          iprot.skip(ftype)
7341
      else:
7342
        iprot.skip(ftype)
7343
      iprot.readFieldEnd()
7344
    iprot.readStructEnd()
7345
 
7346
  def write(self, oprot):
7347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7349
      return
7350
    oprot.writeStructBegin('updateItem_result')
7351
    if self.success is not None:
7352
      oprot.writeFieldBegin('success', TType.I64, 0)
7353
      oprot.writeI64(self.success)
7354
      oprot.writeFieldEnd()
7355
    if self.cex is not None:
7356
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7357
      self.cex.write(oprot)
7358
      oprot.writeFieldEnd()
7359
    oprot.writeFieldStop()
7360
    oprot.writeStructEnd()
7361
 
7362
  def validate(self):
7363
    return
7364
 
7365
 
7366
  def __repr__(self):
7367
    L = ['%s=%r' % (key, value)
7368
      for key, value in self.__dict__.iteritems()]
7369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7370
 
7371
  def __eq__(self, other):
7372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7373
 
7374
  def __ne__(self, other):
7375
    return not (self == other)
7376
 
7377
class isActive_args:
7378
  """
7379
  Attributes:
7380
   - itemId
7381
  """
7382
 
7383
  thrift_spec = (
7384
    None, # 0
7385
    (1, TType.I64, 'itemId', None, None, ), # 1
7386
  )
7387
 
7388
  def __init__(self, itemId=None,):
7389
    self.itemId = itemId
7390
 
7391
  def read(self, iprot):
7392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7394
      return
7395
    iprot.readStructBegin()
7396
    while True:
7397
      (fname, ftype, fid) = iprot.readFieldBegin()
7398
      if ftype == TType.STOP:
7399
        break
7400
      if fid == 1:
7401
        if ftype == TType.I64:
7402
          self.itemId = iprot.readI64();
7403
        else:
7404
          iprot.skip(ftype)
7405
      else:
7406
        iprot.skip(ftype)
7407
      iprot.readFieldEnd()
7408
    iprot.readStructEnd()
7409
 
7410
  def write(self, oprot):
7411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7413
      return
7414
    oprot.writeStructBegin('isActive_args')
7415
    if self.itemId is not None:
7416
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7417
      oprot.writeI64(self.itemId)
7418
      oprot.writeFieldEnd()
7419
    oprot.writeFieldStop()
7420
    oprot.writeStructEnd()
7421
 
7422
  def validate(self):
7423
    return
7424
 
7425
 
7426
  def __repr__(self):
7427
    L = ['%s=%r' % (key, value)
7428
      for key, value in self.__dict__.iteritems()]
7429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7430
 
7431
  def __eq__(self, other):
7432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7433
 
7434
  def __ne__(self, other):
7435
    return not (self == other)
7436
 
7437
class isActive_result:
7438
  """
7439
  Attributes:
7440
   - success
7441
   - isex
7442
  """
7443
 
7444
  thrift_spec = (
7445
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
7446
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7447
  )
7448
 
7449
  def __init__(self, success=None, isex=None,):
7450
    self.success = success
7451
    self.isex = isex
7452
 
7453
  def read(self, iprot):
7454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7456
      return
7457
    iprot.readStructBegin()
7458
    while True:
7459
      (fname, ftype, fid) = iprot.readFieldBegin()
7460
      if ftype == TType.STOP:
7461
        break
7462
      if fid == 0:
7463
        if ftype == TType.STRUCT:
7464
          self.success = ItemShippingInfo()
7465
          self.success.read(iprot)
7466
        else:
7467
          iprot.skip(ftype)
7468
      elif fid == 1:
7469
        if ftype == TType.STRUCT:
7470
          self.isex = CatalogServiceException()
7471
          self.isex.read(iprot)
7472
        else:
7473
          iprot.skip(ftype)
7474
      else:
7475
        iprot.skip(ftype)
7476
      iprot.readFieldEnd()
7477
    iprot.readStructEnd()
7478
 
7479
  def write(self, oprot):
7480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7482
      return
7483
    oprot.writeStructBegin('isActive_result')
7484
    if self.success is not None:
7485
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7486
      self.success.write(oprot)
7487
      oprot.writeFieldEnd()
7488
    if self.isex is not None:
7489
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7490
      self.isex.write(oprot)
7491
      oprot.writeFieldEnd()
7492
    oprot.writeFieldStop()
7493
    oprot.writeStructEnd()
7494
 
7495
  def validate(self):
7496
    return
7497
 
7498
 
7499
  def __repr__(self):
7500
    L = ['%s=%r' % (key, value)
7501
      for key, value in self.__dict__.iteritems()]
7502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7503
 
7504
  def __eq__(self, other):
7505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7506
 
7507
  def __ne__(self, other):
7508
    return not (self == other)
7509
 
7438 amit.gupta 7510
class getItemsStatus_args:
7511
  """
7512
  Attributes:
7513
   - itemIds
7514
  """
7515
 
7516
  thrift_spec = (
7517
    None, # 0
7518
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
7519
  )
7520
 
7521
  def __init__(self, itemIds=None,):
7522
    self.itemIds = itemIds
7523
 
7524
  def read(self, iprot):
7525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7527
      return
7528
    iprot.readStructBegin()
7529
    while True:
7530
      (fname, ftype, fid) = iprot.readFieldBegin()
7531
      if ftype == TType.STOP:
7532
        break
7533
      if fid == 1:
7534
        if ftype == TType.LIST:
7535
          self.itemIds = []
8590 kshitij.so 7536
          (_etype33, _size30) = iprot.readListBegin()
7537
          for _i34 in xrange(_size30):
7538
            _elem35 = iprot.readI64();
7539
            self.itemIds.append(_elem35)
7438 amit.gupta 7540
          iprot.readListEnd()
7541
        else:
7542
          iprot.skip(ftype)
7543
      else:
7544
        iprot.skip(ftype)
7545
      iprot.readFieldEnd()
7546
    iprot.readStructEnd()
7547
 
7548
  def write(self, oprot):
7549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7551
      return
7552
    oprot.writeStructBegin('getItemsStatus_args')
7553
    if self.itemIds is not None:
7554
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
7555
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 7556
      for iter36 in self.itemIds:
7557
        oprot.writeI64(iter36)
7438 amit.gupta 7558
      oprot.writeListEnd()
7559
      oprot.writeFieldEnd()
7560
    oprot.writeFieldStop()
7561
    oprot.writeStructEnd()
7562
 
7563
  def validate(self):
7564
    return
7565
 
7566
 
7567
  def __repr__(self):
7568
    L = ['%s=%r' % (key, value)
7569
      for key, value in self.__dict__.iteritems()]
7570
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7571
 
7572
  def __eq__(self, other):
7573
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7574
 
7575
  def __ne__(self, other):
7576
    return not (self == other)
7577
 
7578
class getItemsStatus_result:
7579
  """
7580
  Attributes:
7581
   - success
7582
   - isex
7583
  """
7584
 
7585
  thrift_spec = (
7586
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
7587
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7588
  )
7589
 
7590
  def __init__(self, success=None, isex=None,):
7591
    self.success = success
7592
    self.isex = isex
7593
 
7594
  def read(self, iprot):
7595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7597
      return
7598
    iprot.readStructBegin()
7599
    while True:
7600
      (fname, ftype, fid) = iprot.readFieldBegin()
7601
      if ftype == TType.STOP:
7602
        break
7603
      if fid == 0:
7604
        if ftype == TType.MAP:
7605
          self.success = {}
8590 kshitij.so 7606
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
7607
          for _i41 in xrange(_size37):
7608
            _key42 = iprot.readI64();
7609
            _val43 = iprot.readBool();
7610
            self.success[_key42] = _val43
7438 amit.gupta 7611
          iprot.readMapEnd()
7612
        else:
7613
          iprot.skip(ftype)
7614
      elif fid == 1:
7615
        if ftype == TType.STRUCT:
7616
          self.isex = CatalogServiceException()
7617
          self.isex.read(iprot)
7618
        else:
7619
          iprot.skip(ftype)
7620
      else:
7621
        iprot.skip(ftype)
7622
      iprot.readFieldEnd()
7623
    iprot.readStructEnd()
7624
 
7625
  def write(self, oprot):
7626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7628
      return
7629
    oprot.writeStructBegin('getItemsStatus_result')
7630
    if self.success is not None:
7631
      oprot.writeFieldBegin('success', TType.MAP, 0)
7632
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 7633
      for kiter44,viter45 in self.success.items():
7634
        oprot.writeI64(kiter44)
7635
        oprot.writeBool(viter45)
7438 amit.gupta 7636
      oprot.writeMapEnd()
7637
      oprot.writeFieldEnd()
7638
    if self.isex is not None:
7639
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7640
      self.isex.write(oprot)
7641
      oprot.writeFieldEnd()
7642
    oprot.writeFieldStop()
7643
    oprot.writeStructEnd()
7644
 
7645
  def validate(self):
7646
    return
7647
 
7648
 
7649
  def __repr__(self):
7650
    L = ['%s=%r' % (key, value)
7651
      for key, value in self.__dict__.iteritems()]
7652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7653
 
7654
  def __eq__(self, other):
7655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7656
 
7657
  def __ne__(self, other):
7658
    return not (self == other)
7659
 
5944 mandeep.dh 7660
class getItemStatusDescription_args:
7661
  """
7662
  Attributes:
7663
   - itemId
7664
  """
7665
 
7666
  thrift_spec = (
7667
    None, # 0
7668
    (1, TType.I64, 'itemId', None, None, ), # 1
7669
  )
7670
 
7671
  def __init__(self, itemId=None,):
7672
    self.itemId = itemId
7673
 
7674
  def read(self, iprot):
7675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7677
      return
7678
    iprot.readStructBegin()
7679
    while True:
7680
      (fname, ftype, fid) = iprot.readFieldBegin()
7681
      if ftype == TType.STOP:
7682
        break
7683
      if fid == 1:
7684
        if ftype == TType.I64:
7685
          self.itemId = iprot.readI64();
7686
        else:
7687
          iprot.skip(ftype)
7688
      else:
7689
        iprot.skip(ftype)
7690
      iprot.readFieldEnd()
7691
    iprot.readStructEnd()
7692
 
7693
  def write(self, oprot):
7694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7696
      return
7697
    oprot.writeStructBegin('getItemStatusDescription_args')
7698
    if self.itemId is not None:
7699
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7700
      oprot.writeI64(self.itemId)
7701
      oprot.writeFieldEnd()
7702
    oprot.writeFieldStop()
7703
    oprot.writeStructEnd()
7704
 
7705
  def validate(self):
7706
    return
7707
 
7708
 
7709
  def __repr__(self):
7710
    L = ['%s=%r' % (key, value)
7711
      for key, value in self.__dict__.iteritems()]
7712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7713
 
7714
  def __eq__(self, other):
7715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7716
 
7717
  def __ne__(self, other):
7718
    return not (self == other)
7719
 
7720
class getItemStatusDescription_result:
7721
  """
7722
  Attributes:
7723
   - success
7724
   - isex
7725
  """
7726
 
7727
  thrift_spec = (
7728
    (0, TType.STRING, 'success', None, None, ), # 0
7729
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7730
  )
7731
 
7732
  def __init__(self, success=None, isex=None,):
7733
    self.success = success
7734
    self.isex = isex
7735
 
7736
  def read(self, iprot):
7737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7739
      return
7740
    iprot.readStructBegin()
7741
    while True:
7742
      (fname, ftype, fid) = iprot.readFieldBegin()
7743
      if ftype == TType.STOP:
7744
        break
7745
      if fid == 0:
7746
        if ftype == TType.STRING:
7747
          self.success = iprot.readString();
7748
        else:
7749
          iprot.skip(ftype)
7750
      elif fid == 1:
7751
        if ftype == TType.STRUCT:
7752
          self.isex = CatalogServiceException()
7753
          self.isex.read(iprot)
7754
        else:
7755
          iprot.skip(ftype)
7756
      else:
7757
        iprot.skip(ftype)
7758
      iprot.readFieldEnd()
7759
    iprot.readStructEnd()
7760
 
7761
  def write(self, oprot):
7762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7764
      return
7765
    oprot.writeStructBegin('getItemStatusDescription_result')
7766
    if self.success is not None:
7767
      oprot.writeFieldBegin('success', TType.STRING, 0)
7768
      oprot.writeString(self.success)
7769
      oprot.writeFieldEnd()
7770
    if self.isex is not None:
7771
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7772
      self.isex.write(oprot)
7773
      oprot.writeFieldEnd()
7774
    oprot.writeFieldStop()
7775
    oprot.writeStructEnd()
7776
 
7777
  def validate(self):
7778
    return
7779
 
7780
 
7781
  def __repr__(self):
7782
    L = ['%s=%r' % (key, value)
7783
      for key, value in self.__dict__.iteritems()]
7784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7785
 
7786
  def __eq__(self, other):
7787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7788
 
7789
  def __ne__(self, other):
7790
    return not (self == other)
7791
 
7792
class startItemOn_args:
7793
  """
7794
  Attributes:
7795
   - item_id
7796
   - timestamp
7797
  """
7798
 
7799
  thrift_spec = (
7800
    None, # 0
7801
    (1, TType.I64, 'item_id', None, None, ), # 1
7802
    (2, TType.I64, 'timestamp', None, None, ), # 2
7803
  )
7804
 
7805
  def __init__(self, item_id=None, timestamp=None,):
7806
    self.item_id = item_id
7807
    self.timestamp = timestamp
7808
 
7809
  def read(self, iprot):
7810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7812
      return
7813
    iprot.readStructBegin()
7814
    while True:
7815
      (fname, ftype, fid) = iprot.readFieldBegin()
7816
      if ftype == TType.STOP:
7817
        break
7818
      if fid == 1:
7819
        if ftype == TType.I64:
7820
          self.item_id = iprot.readI64();
7821
        else:
7822
          iprot.skip(ftype)
7823
      elif fid == 2:
7824
        if ftype == TType.I64:
7825
          self.timestamp = iprot.readI64();
7826
        else:
7827
          iprot.skip(ftype)
7828
      else:
7829
        iprot.skip(ftype)
7830
      iprot.readFieldEnd()
7831
    iprot.readStructEnd()
7832
 
7833
  def write(self, oprot):
7834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7836
      return
7837
    oprot.writeStructBegin('startItemOn_args')
7838
    if self.item_id is not None:
7839
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7840
      oprot.writeI64(self.item_id)
7841
      oprot.writeFieldEnd()
7842
    if self.timestamp is not None:
7843
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
7844
      oprot.writeI64(self.timestamp)
7845
      oprot.writeFieldEnd()
7846
    oprot.writeFieldStop()
7847
    oprot.writeStructEnd()
7848
 
7849
  def validate(self):
7850
    return
7851
 
7852
 
7853
  def __repr__(self):
7854
    L = ['%s=%r' % (key, value)
7855
      for key, value in self.__dict__.iteritems()]
7856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7857
 
7858
  def __eq__(self, other):
7859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7860
 
7861
  def __ne__(self, other):
7862
    return not (self == other)
7863
 
7864
class startItemOn_result:
7865
  """
7866
  Attributes:
7867
   - cex
7868
  """
7869
 
7870
  thrift_spec = (
7871
    None, # 0
7872
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7873
  )
7874
 
7875
  def __init__(self, cex=None,):
7876
    self.cex = cex
7877
 
7878
  def read(self, iprot):
7879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7881
      return
7882
    iprot.readStructBegin()
7883
    while True:
7884
      (fname, ftype, fid) = iprot.readFieldBegin()
7885
      if ftype == TType.STOP:
7886
        break
7887
      if fid == 1:
7888
        if ftype == TType.STRUCT:
7889
          self.cex = CatalogServiceException()
7890
          self.cex.read(iprot)
7891
        else:
7892
          iprot.skip(ftype)
7893
      else:
7894
        iprot.skip(ftype)
7895
      iprot.readFieldEnd()
7896
    iprot.readStructEnd()
7897
 
7898
  def write(self, oprot):
7899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7901
      return
7902
    oprot.writeStructBegin('startItemOn_result')
7903
    if self.cex is not None:
7904
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7905
      self.cex.write(oprot)
7906
      oprot.writeFieldEnd()
7907
    oprot.writeFieldStop()
7908
    oprot.writeStructEnd()
7909
 
7910
  def validate(self):
7911
    return
7912
 
7913
 
7914
  def __repr__(self):
7915
    L = ['%s=%r' % (key, value)
7916
      for key, value in self.__dict__.iteritems()]
7917
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7918
 
7919
  def __eq__(self, other):
7920
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7921
 
7922
  def __ne__(self, other):
7923
    return not (self == other)
7924
 
7925
class retireItemOn_args:
7926
  """
7927
  Attributes:
7928
   - item_id
7929
   - timestamp
7930
  """
7931
 
7932
  thrift_spec = (
7933
    None, # 0
7934
    (1, TType.I64, 'item_id', None, None, ), # 1
7935
    (2, TType.I64, 'timestamp', None, None, ), # 2
7936
  )
7937
 
7938
  def __init__(self, item_id=None, timestamp=None,):
7939
    self.item_id = item_id
7940
    self.timestamp = timestamp
7941
 
7942
  def read(self, iprot):
7943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7945
      return
7946
    iprot.readStructBegin()
7947
    while True:
7948
      (fname, ftype, fid) = iprot.readFieldBegin()
7949
      if ftype == TType.STOP:
7950
        break
7951
      if fid == 1:
7952
        if ftype == TType.I64:
7953
          self.item_id = iprot.readI64();
7954
        else:
7955
          iprot.skip(ftype)
7956
      elif fid == 2:
7957
        if ftype == TType.I64:
7958
          self.timestamp = iprot.readI64();
7959
        else:
7960
          iprot.skip(ftype)
7961
      else:
7962
        iprot.skip(ftype)
7963
      iprot.readFieldEnd()
7964
    iprot.readStructEnd()
7965
 
7966
  def write(self, oprot):
7967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7969
      return
7970
    oprot.writeStructBegin('retireItemOn_args')
7971
    if self.item_id is not None:
7972
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7973
      oprot.writeI64(self.item_id)
7974
      oprot.writeFieldEnd()
7975
    if self.timestamp is not None:
7976
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
7977
      oprot.writeI64(self.timestamp)
7978
      oprot.writeFieldEnd()
7979
    oprot.writeFieldStop()
7980
    oprot.writeStructEnd()
7981
 
7982
  def validate(self):
7983
    return
7984
 
7985
 
7986
  def __repr__(self):
7987
    L = ['%s=%r' % (key, value)
7988
      for key, value in self.__dict__.iteritems()]
7989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7990
 
7991
  def __eq__(self, other):
7992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7993
 
7994
  def __ne__(self, other):
7995
    return not (self == other)
7996
 
7997
class retireItemOn_result:
7998
  """
7999
  Attributes:
8000
   - cex
8001
  """
8002
 
8003
  thrift_spec = (
8004
    None, # 0
8005
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8006
  )
8007
 
8008
  def __init__(self, cex=None,):
8009
    self.cex = cex
8010
 
8011
  def read(self, iprot):
8012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8014
      return
8015
    iprot.readStructBegin()
8016
    while True:
8017
      (fname, ftype, fid) = iprot.readFieldBegin()
8018
      if ftype == TType.STOP:
8019
        break
8020
      if fid == 1:
8021
        if ftype == TType.STRUCT:
8022
          self.cex = CatalogServiceException()
8023
          self.cex.read(iprot)
8024
        else:
8025
          iprot.skip(ftype)
8026
      else:
8027
        iprot.skip(ftype)
8028
      iprot.readFieldEnd()
8029
    iprot.readStructEnd()
8030
 
8031
  def write(self, oprot):
8032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8034
      return
8035
    oprot.writeStructBegin('retireItemOn_result')
8036
    if self.cex is not None:
8037
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8038
      self.cex.write(oprot)
8039
      oprot.writeFieldEnd()
8040
    oprot.writeFieldStop()
8041
    oprot.writeStructEnd()
8042
 
8043
  def validate(self):
8044
    return
8045
 
8046
 
8047
  def __repr__(self):
8048
    L = ['%s=%r' % (key, value)
8049
      for key, value in self.__dict__.iteritems()]
8050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8051
 
8052
  def __eq__(self, other):
8053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8054
 
8055
  def __ne__(self, other):
8056
    return not (self == other)
8057
 
8058
class changeItemStatus_args:
8059
  """
8060
  Attributes:
8061
   - item_id
8062
   - timestamp
8063
   - newstatus
8064
  """
8065
 
8066
  thrift_spec = (
8067
    None, # 0
8068
    (1, TType.I64, 'item_id', None, None, ), # 1
8069
    (2, TType.I64, 'timestamp', None, None, ), # 2
8070
    (3, TType.I32, 'newstatus', None, None, ), # 3
8071
  )
8072
 
8073
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
8074
    self.item_id = item_id
8075
    self.timestamp = timestamp
8076
    self.newstatus = newstatus
8077
 
8078
  def read(self, iprot):
8079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8081
      return
8082
    iprot.readStructBegin()
8083
    while True:
8084
      (fname, ftype, fid) = iprot.readFieldBegin()
8085
      if ftype == TType.STOP:
8086
        break
8087
      if fid == 1:
8088
        if ftype == TType.I64:
8089
          self.item_id = iprot.readI64();
8090
        else:
8091
          iprot.skip(ftype)
8092
      elif fid == 2:
8093
        if ftype == TType.I64:
8094
          self.timestamp = iprot.readI64();
8095
        else:
8096
          iprot.skip(ftype)
8097
      elif fid == 3:
8098
        if ftype == TType.I32:
8099
          self.newstatus = iprot.readI32();
8100
        else:
8101
          iprot.skip(ftype)
8102
      else:
8103
        iprot.skip(ftype)
8104
      iprot.readFieldEnd()
8105
    iprot.readStructEnd()
8106
 
8107
  def write(self, oprot):
8108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8110
      return
8111
    oprot.writeStructBegin('changeItemStatus_args')
8112
    if self.item_id is not None:
8113
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8114
      oprot.writeI64(self.item_id)
8115
      oprot.writeFieldEnd()
8116
    if self.timestamp is not None:
8117
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
8118
      oprot.writeI64(self.timestamp)
8119
      oprot.writeFieldEnd()
8120
    if self.newstatus is not None:
8121
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
8122
      oprot.writeI32(self.newstatus)
8123
      oprot.writeFieldEnd()
8124
    oprot.writeFieldStop()
8125
    oprot.writeStructEnd()
8126
 
8127
  def validate(self):
8128
    return
8129
 
8130
 
8131
  def __repr__(self):
8132
    L = ['%s=%r' % (key, value)
8133
      for key, value in self.__dict__.iteritems()]
8134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8135
 
8136
  def __eq__(self, other):
8137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8138
 
8139
  def __ne__(self, other):
8140
    return not (self == other)
8141
 
8142
class changeItemStatus_result:
8143
  """
8144
  Attributes:
8145
   - cex
8146
  """
8147
 
8148
  thrift_spec = (
8149
    None, # 0
8150
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8151
  )
8152
 
8153
  def __init__(self, cex=None,):
8154
    self.cex = cex
8155
 
8156
  def read(self, iprot):
8157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8159
      return
8160
    iprot.readStructBegin()
8161
    while True:
8162
      (fname, ftype, fid) = iprot.readFieldBegin()
8163
      if ftype == TType.STOP:
8164
        break
8165
      if fid == 1:
8166
        if ftype == TType.STRUCT:
8167
          self.cex = CatalogServiceException()
8168
          self.cex.read(iprot)
8169
        else:
8170
          iprot.skip(ftype)
8171
      else:
8172
        iprot.skip(ftype)
8173
      iprot.readFieldEnd()
8174
    iprot.readStructEnd()
8175
 
8176
  def write(self, oprot):
8177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8179
      return
8180
    oprot.writeStructBegin('changeItemStatus_result')
8181
    if self.cex is not None:
8182
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8183
      self.cex.write(oprot)
8184
      oprot.writeFieldEnd()
8185
    oprot.writeFieldStop()
8186
    oprot.writeStructEnd()
8187
 
8188
  def validate(self):
8189
    return
8190
 
8191
 
8192
  def __repr__(self):
8193
    L = ['%s=%r' % (key, value)
8194
      for key, value in self.__dict__.iteritems()]
8195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8196
 
8197
  def __eq__(self, other):
8198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8199
 
8200
  def __ne__(self, other):
8201
    return not (self == other)
8202
 
8203
class getItem_args:
8204
  """
8205
  Attributes:
8206
   - item_id
8207
  """
8208
 
8209
  thrift_spec = (
8210
    None, # 0
8211
    (1, TType.I64, 'item_id', None, None, ), # 1
8212
  )
8213
 
8214
  def __init__(self, item_id=None,):
8215
    self.item_id = item_id
8216
 
8217
  def read(self, iprot):
8218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8220
      return
8221
    iprot.readStructBegin()
8222
    while True:
8223
      (fname, ftype, fid) = iprot.readFieldBegin()
8224
      if ftype == TType.STOP:
8225
        break
8226
      if fid == 1:
8227
        if ftype == TType.I64:
8228
          self.item_id = iprot.readI64();
8229
        else:
8230
          iprot.skip(ftype)
8231
      else:
8232
        iprot.skip(ftype)
8233
      iprot.readFieldEnd()
8234
    iprot.readStructEnd()
8235
 
8236
  def write(self, oprot):
8237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8239
      return
8240
    oprot.writeStructBegin('getItem_args')
8241
    if self.item_id is not None:
8242
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8243
      oprot.writeI64(self.item_id)
8244
      oprot.writeFieldEnd()
8245
    oprot.writeFieldStop()
8246
    oprot.writeStructEnd()
8247
 
8248
  def validate(self):
8249
    return
8250
 
8251
 
8252
  def __repr__(self):
8253
    L = ['%s=%r' % (key, value)
8254
      for key, value in self.__dict__.iteritems()]
8255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8256
 
8257
  def __eq__(self, other):
8258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8259
 
8260
  def __ne__(self, other):
8261
    return not (self == other)
8262
 
8263
class getItem_result:
8264
  """
8265
  Attributes:
8266
   - success
8267
   - cex
8268
  """
8269
 
8270
  thrift_spec = (
8271
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8272
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8273
  )
8274
 
8275
  def __init__(self, success=None, cex=None,):
8276
    self.success = success
8277
    self.cex = cex
8278
 
8279
  def read(self, iprot):
8280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8282
      return
8283
    iprot.readStructBegin()
8284
    while True:
8285
      (fname, ftype, fid) = iprot.readFieldBegin()
8286
      if ftype == TType.STOP:
8287
        break
8288
      if fid == 0:
8289
        if ftype == TType.STRUCT:
8290
          self.success = Item()
8291
          self.success.read(iprot)
8292
        else:
8293
          iprot.skip(ftype)
8294
      elif fid == 1:
8295
        if ftype == TType.STRUCT:
8296
          self.cex = CatalogServiceException()
8297
          self.cex.read(iprot)
8298
        else:
8299
          iprot.skip(ftype)
8300
      else:
8301
        iprot.skip(ftype)
8302
      iprot.readFieldEnd()
8303
    iprot.readStructEnd()
8304
 
8305
  def write(self, oprot):
8306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8308
      return
8309
    oprot.writeStructBegin('getItem_result')
8310
    if self.success is not None:
8311
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8312
      self.success.write(oprot)
8313
      oprot.writeFieldEnd()
8314
    if self.cex is not None:
8315
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8316
      self.cex.write(oprot)
8317
      oprot.writeFieldEnd()
8318
    oprot.writeFieldStop()
8319
    oprot.writeStructEnd()
8320
 
8321
  def validate(self):
8322
    return
8323
 
8324
 
8325
  def __repr__(self):
8326
    L = ['%s=%r' % (key, value)
8327
      for key, value in self.__dict__.iteritems()]
8328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8329
 
8330
  def __eq__(self, other):
8331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8332
 
8333
  def __ne__(self, other):
8334
    return not (self == other)
8335
 
8336
class getItemsByCatalogId_args:
8337
  """
8338
  Attributes:
8339
   - catalog_item_id
8340
  """
8341
 
8342
  thrift_spec = (
8343
    None, # 0
8344
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
8345
  )
8346
 
8347
  def __init__(self, catalog_item_id=None,):
8348
    self.catalog_item_id = catalog_item_id
8349
 
8350
  def read(self, iprot):
8351
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8352
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8353
      return
8354
    iprot.readStructBegin()
8355
    while True:
8356
      (fname, ftype, fid) = iprot.readFieldBegin()
8357
      if ftype == TType.STOP:
8358
        break
8359
      if fid == 1:
8360
        if ftype == TType.I64:
8361
          self.catalog_item_id = iprot.readI64();
8362
        else:
8363
          iprot.skip(ftype)
8364
      else:
8365
        iprot.skip(ftype)
8366
      iprot.readFieldEnd()
8367
    iprot.readStructEnd()
8368
 
8369
  def write(self, oprot):
8370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8372
      return
8373
    oprot.writeStructBegin('getItemsByCatalogId_args')
8374
    if self.catalog_item_id is not None:
8375
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
8376
      oprot.writeI64(self.catalog_item_id)
8377
      oprot.writeFieldEnd()
8378
    oprot.writeFieldStop()
8379
    oprot.writeStructEnd()
8380
 
8381
  def validate(self):
8382
    return
8383
 
8384
 
8385
  def __repr__(self):
8386
    L = ['%s=%r' % (key, value)
8387
      for key, value in self.__dict__.iteritems()]
8388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8389
 
8390
  def __eq__(self, other):
8391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8392
 
8393
  def __ne__(self, other):
8394
    return not (self == other)
8395
 
8396
class getItemsByCatalogId_result:
8397
  """
8398
  Attributes:
8399
   - success
8400
   - cex
8401
  """
8402
 
8403
  thrift_spec = (
8404
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8405
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8406
  )
8407
 
8408
  def __init__(self, success=None, cex=None,):
8409
    self.success = success
8410
    self.cex = cex
8411
 
8412
  def read(self, iprot):
8413
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8414
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8415
      return
8416
    iprot.readStructBegin()
8417
    while True:
8418
      (fname, ftype, fid) = iprot.readFieldBegin()
8419
      if ftype == TType.STOP:
8420
        break
8421
      if fid == 0:
8422
        if ftype == TType.LIST:
8423
          self.success = []
8590 kshitij.so 8424
          (_etype49, _size46) = iprot.readListBegin()
8425
          for _i50 in xrange(_size46):
8426
            _elem51 = Item()
8427
            _elem51.read(iprot)
8428
            self.success.append(_elem51)
5944 mandeep.dh 8429
          iprot.readListEnd()
8430
        else:
8431
          iprot.skip(ftype)
8432
      elif fid == 1:
8433
        if ftype == TType.STRUCT:
8434
          self.cex = CatalogServiceException()
8435
          self.cex.read(iprot)
8436
        else:
8437
          iprot.skip(ftype)
8438
      else:
8439
        iprot.skip(ftype)
8440
      iprot.readFieldEnd()
8441
    iprot.readStructEnd()
8442
 
8443
  def write(self, oprot):
8444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8446
      return
8447
    oprot.writeStructBegin('getItemsByCatalogId_result')
8448
    if self.success is not None:
8449
      oprot.writeFieldBegin('success', TType.LIST, 0)
8450
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8451
      for iter52 in self.success:
8452
        iter52.write(oprot)
5944 mandeep.dh 8453
      oprot.writeListEnd()
8454
      oprot.writeFieldEnd()
8455
    if self.cex is not None:
8456
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8457
      self.cex.write(oprot)
8458
      oprot.writeFieldEnd()
8459
    oprot.writeFieldStop()
8460
    oprot.writeStructEnd()
8461
 
8462
  def validate(self):
8463
    return
8464
 
8465
 
8466
  def __repr__(self):
8467
    L = ['%s=%r' % (key, value)
8468
      for key, value in self.__dict__.iteritems()]
8469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8470
 
8471
  def __eq__(self, other):
8472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8473
 
8474
  def __ne__(self, other):
8475
    return not (self == other)
8476
 
8477
class getValidItemsByCatalogId_args:
8478
  """
8479
  Attributes:
8480
   - catalog_item_id
8481
  """
8482
 
8483
  thrift_spec = (
8484
    None, # 0
8485
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
8486
  )
8487
 
8488
  def __init__(self, catalog_item_id=None,):
8489
    self.catalog_item_id = catalog_item_id
8490
 
8491
  def read(self, iprot):
8492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8494
      return
8495
    iprot.readStructBegin()
8496
    while True:
8497
      (fname, ftype, fid) = iprot.readFieldBegin()
8498
      if ftype == TType.STOP:
8499
        break
8500
      if fid == 1:
8501
        if ftype == TType.I64:
8502
          self.catalog_item_id = iprot.readI64();
8503
        else:
8504
          iprot.skip(ftype)
8505
      else:
8506
        iprot.skip(ftype)
8507
      iprot.readFieldEnd()
8508
    iprot.readStructEnd()
8509
 
8510
  def write(self, oprot):
8511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8513
      return
8514
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
8515
    if self.catalog_item_id is not None:
8516
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
8517
      oprot.writeI64(self.catalog_item_id)
8518
      oprot.writeFieldEnd()
8519
    oprot.writeFieldStop()
8520
    oprot.writeStructEnd()
8521
 
8522
  def validate(self):
8523
    return
8524
 
8525
 
8526
  def __repr__(self):
8527
    L = ['%s=%r' % (key, value)
8528
      for key, value in self.__dict__.iteritems()]
8529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8530
 
8531
  def __eq__(self, other):
8532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8533
 
8534
  def __ne__(self, other):
8535
    return not (self == other)
8536
 
8537
class getValidItemsByCatalogId_result:
8538
  """
8539
  Attributes:
8540
   - success
8541
   - cex
8542
  """
8543
 
8544
  thrift_spec = (
8545
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8546
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8547
  )
8548
 
8549
  def __init__(self, success=None, cex=None,):
8550
    self.success = success
8551
    self.cex = cex
8552
 
8553
  def read(self, iprot):
8554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8556
      return
8557
    iprot.readStructBegin()
8558
    while True:
8559
      (fname, ftype, fid) = iprot.readFieldBegin()
8560
      if ftype == TType.STOP:
8561
        break
8562
      if fid == 0:
8563
        if ftype == TType.LIST:
8564
          self.success = []
8590 kshitij.so 8565
          (_etype56, _size53) = iprot.readListBegin()
8566
          for _i57 in xrange(_size53):
8567
            _elem58 = Item()
8568
            _elem58.read(iprot)
8569
            self.success.append(_elem58)
5944 mandeep.dh 8570
          iprot.readListEnd()
8571
        else:
8572
          iprot.skip(ftype)
8573
      elif fid == 1:
8574
        if ftype == TType.STRUCT:
8575
          self.cex = CatalogServiceException()
8576
          self.cex.read(iprot)
8577
        else:
8578
          iprot.skip(ftype)
8579
      else:
8580
        iprot.skip(ftype)
8581
      iprot.readFieldEnd()
8582
    iprot.readStructEnd()
8583
 
8584
  def write(self, oprot):
8585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8587
      return
8588
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
8589
    if self.success is not None:
8590
      oprot.writeFieldBegin('success', TType.LIST, 0)
8591
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8592
      for iter59 in self.success:
8593
        iter59.write(oprot)
5944 mandeep.dh 8594
      oprot.writeListEnd()
8595
      oprot.writeFieldEnd()
8596
    if self.cex is not None:
8597
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8598
      self.cex.write(oprot)
8599
      oprot.writeFieldEnd()
8600
    oprot.writeFieldStop()
8601
    oprot.writeStructEnd()
8602
 
8603
  def validate(self):
8604
    return
8605
 
8606
 
8607
  def __repr__(self):
8608
    L = ['%s=%r' % (key, value)
8609
      for key, value in self.__dict__.iteritems()]
8610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8611
 
8612
  def __eq__(self, other):
8613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8614
 
8615
  def __ne__(self, other):
8616
    return not (self == other)
8617
 
8618
class getAllItems_args:
8619
  """
8620
  Attributes:
8621
   - isActive
8622
  """
8623
 
8624
  thrift_spec = (
8625
    None, # 0
8626
    (1, TType.BOOL, 'isActive', None, None, ), # 1
8627
  )
8628
 
8629
  def __init__(self, isActive=None,):
8630
    self.isActive = isActive
8631
 
8632
  def read(self, iprot):
8633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8635
      return
8636
    iprot.readStructBegin()
8637
    while True:
8638
      (fname, ftype, fid) = iprot.readFieldBegin()
8639
      if ftype == TType.STOP:
8640
        break
8641
      if fid == 1:
8642
        if ftype == TType.BOOL:
8643
          self.isActive = iprot.readBool();
8644
        else:
8645
          iprot.skip(ftype)
8646
      else:
8647
        iprot.skip(ftype)
8648
      iprot.readFieldEnd()
8649
    iprot.readStructEnd()
8650
 
8651
  def write(self, oprot):
8652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8654
      return
8655
    oprot.writeStructBegin('getAllItems_args')
8656
    if self.isActive is not None:
8657
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
8658
      oprot.writeBool(self.isActive)
8659
      oprot.writeFieldEnd()
8660
    oprot.writeFieldStop()
8661
    oprot.writeStructEnd()
8662
 
8663
  def validate(self):
8664
    return
8665
 
8666
 
8667
  def __repr__(self):
8668
    L = ['%s=%r' % (key, value)
8669
      for key, value in self.__dict__.iteritems()]
8670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8671
 
8672
  def __eq__(self, other):
8673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8674
 
8675
  def __ne__(self, other):
8676
    return not (self == other)
8677
 
8678
class getAllItems_result:
8679
  """
8680
  Attributes:
8681
   - success
8682
   - cex
8683
  """
8684
 
8685
  thrift_spec = (
8686
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8687
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8688
  )
8689
 
8690
  def __init__(self, success=None, cex=None,):
8691
    self.success = success
8692
    self.cex = cex
8693
 
8694
  def read(self, iprot):
8695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8697
      return
8698
    iprot.readStructBegin()
8699
    while True:
8700
      (fname, ftype, fid) = iprot.readFieldBegin()
8701
      if ftype == TType.STOP:
8702
        break
8703
      if fid == 0:
8704
        if ftype == TType.LIST:
8705
          self.success = []
8590 kshitij.so 8706
          (_etype63, _size60) = iprot.readListBegin()
8707
          for _i64 in xrange(_size60):
8708
            _elem65 = Item()
8709
            _elem65.read(iprot)
8710
            self.success.append(_elem65)
5944 mandeep.dh 8711
          iprot.readListEnd()
8712
        else:
8713
          iprot.skip(ftype)
8714
      elif fid == 1:
8715
        if ftype == TType.STRUCT:
8716
          self.cex = CatalogServiceException()
8717
          self.cex.read(iprot)
8718
        else:
8719
          iprot.skip(ftype)
8720
      else:
8721
        iprot.skip(ftype)
8722
      iprot.readFieldEnd()
8723
    iprot.readStructEnd()
8724
 
8725
  def write(self, oprot):
8726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8728
      return
8729
    oprot.writeStructBegin('getAllItems_result')
8730
    if self.success is not None:
8731
      oprot.writeFieldBegin('success', TType.LIST, 0)
8732
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8733
      for iter66 in self.success:
8734
        iter66.write(oprot)
5944 mandeep.dh 8735
      oprot.writeListEnd()
8736
      oprot.writeFieldEnd()
8737
    if self.cex is not None:
8738
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8739
      self.cex.write(oprot)
8740
      oprot.writeFieldEnd()
8741
    oprot.writeFieldStop()
8742
    oprot.writeStructEnd()
8743
 
8744
  def validate(self):
8745
    return
8746
 
8747
 
8748
  def __repr__(self):
8749
    L = ['%s=%r' % (key, value)
8750
      for key, value in self.__dict__.iteritems()]
8751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8752
 
8753
  def __eq__(self, other):
8754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8755
 
8756
  def __ne__(self, other):
8757
    return not (self == other)
8758
 
8759
class getAllItemsByStatus_args:
8760
  """
8761
  Attributes:
8762
   - itemStatus
8763
  """
8764
 
8765
  thrift_spec = (
8766
    None, # 0
8767
    (1, TType.I32, 'itemStatus', None, None, ), # 1
8768
  )
8769
 
8770
  def __init__(self, itemStatus=None,):
8771
    self.itemStatus = itemStatus
8772
 
8773
  def read(self, iprot):
8774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8776
      return
8777
    iprot.readStructBegin()
8778
    while True:
8779
      (fname, ftype, fid) = iprot.readFieldBegin()
8780
      if ftype == TType.STOP:
8781
        break
8782
      if fid == 1:
8783
        if ftype == TType.I32:
8784
          self.itemStatus = iprot.readI32();
8785
        else:
8786
          iprot.skip(ftype)
8787
      else:
8788
        iprot.skip(ftype)
8789
      iprot.readFieldEnd()
8790
    iprot.readStructEnd()
8791
 
8792
  def write(self, oprot):
8793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8795
      return
8796
    oprot.writeStructBegin('getAllItemsByStatus_args')
8797
    if self.itemStatus is not None:
8798
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
8799
      oprot.writeI32(self.itemStatus)
8800
      oprot.writeFieldEnd()
8801
    oprot.writeFieldStop()
8802
    oprot.writeStructEnd()
8803
 
8804
  def validate(self):
8805
    return
8806
 
8807
 
8808
  def __repr__(self):
8809
    L = ['%s=%r' % (key, value)
8810
      for key, value in self.__dict__.iteritems()]
8811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8812
 
8813
  def __eq__(self, other):
8814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8815
 
8816
  def __ne__(self, other):
8817
    return not (self == other)
8818
 
8819
class getAllItemsByStatus_result:
8820
  """
8821
  Attributes:
8822
   - success
8823
   - cex
8824
  """
8825
 
8826
  thrift_spec = (
8827
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8828
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8829
  )
8830
 
8831
  def __init__(self, success=None, cex=None,):
8832
    self.success = success
8833
    self.cex = cex
8834
 
8835
  def read(self, iprot):
8836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8838
      return
8839
    iprot.readStructBegin()
8840
    while True:
8841
      (fname, ftype, fid) = iprot.readFieldBegin()
8842
      if ftype == TType.STOP:
8843
        break
8844
      if fid == 0:
8845
        if ftype == TType.LIST:
8846
          self.success = []
8590 kshitij.so 8847
          (_etype70, _size67) = iprot.readListBegin()
8848
          for _i71 in xrange(_size67):
8849
            _elem72 = Item()
8850
            _elem72.read(iprot)
8851
            self.success.append(_elem72)
5944 mandeep.dh 8852
          iprot.readListEnd()
8853
        else:
8854
          iprot.skip(ftype)
8855
      elif fid == 1:
8856
        if ftype == TType.STRUCT:
8857
          self.cex = CatalogServiceException()
8858
          self.cex.read(iprot)
8859
        else:
8860
          iprot.skip(ftype)
8861
      else:
8862
        iprot.skip(ftype)
8863
      iprot.readFieldEnd()
8864
    iprot.readStructEnd()
8865
 
8866
  def write(self, oprot):
8867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8869
      return
8870
    oprot.writeStructBegin('getAllItemsByStatus_result')
8871
    if self.success is not None:
8872
      oprot.writeFieldBegin('success', TType.LIST, 0)
8873
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8874
      for iter73 in self.success:
8875
        iter73.write(oprot)
5944 mandeep.dh 8876
      oprot.writeListEnd()
8877
      oprot.writeFieldEnd()
8878
    if self.cex is not None:
8879
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8880
      self.cex.write(oprot)
8881
      oprot.writeFieldEnd()
8882
    oprot.writeFieldStop()
8883
    oprot.writeStructEnd()
8884
 
8885
  def validate(self):
8886
    return
8887
 
8888
 
8889
  def __repr__(self):
8890
    L = ['%s=%r' % (key, value)
8891
      for key, value in self.__dict__.iteritems()]
8892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8893
 
8894
  def __eq__(self, other):
8895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8896
 
8897
  def __ne__(self, other):
8898
    return not (self == other)
8899
 
8900
class markItemAsContentComplete_args:
8901
  """
8902
  Attributes:
8903
   - entityId
8904
   - category
8905
   - brand
8906
   - modelName
8907
   - modelNumber
9253 rajveer 8908
   - isAndroid
5944 mandeep.dh 8909
  """
8910
 
8911
  thrift_spec = (
8912
    None, # 0
8913
    (1, TType.I64, 'entityId', None, None, ), # 1
8914
    (2, TType.I64, 'category', None, None, ), # 2
8915
    (3, TType.STRING, 'brand', None, None, ), # 3
8916
    (4, TType.STRING, 'modelName', None, None, ), # 4
8917
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 8918
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 8919
  )
8920
 
9253 rajveer 8921
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 8922
    self.entityId = entityId
8923
    self.category = category
8924
    self.brand = brand
8925
    self.modelName = modelName
8926
    self.modelNumber = modelNumber
9253 rajveer 8927
    self.isAndroid = isAndroid
5944 mandeep.dh 8928
 
8929
  def read(self, iprot):
8930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8932
      return
8933
    iprot.readStructBegin()
8934
    while True:
8935
      (fname, ftype, fid) = iprot.readFieldBegin()
8936
      if ftype == TType.STOP:
8937
        break
8938
      if fid == 1:
8939
        if ftype == TType.I64:
8940
          self.entityId = iprot.readI64();
8941
        else:
8942
          iprot.skip(ftype)
8943
      elif fid == 2:
8944
        if ftype == TType.I64:
8945
          self.category = iprot.readI64();
8946
        else:
8947
          iprot.skip(ftype)
8948
      elif fid == 3:
8949
        if ftype == TType.STRING:
8950
          self.brand = iprot.readString();
8951
        else:
8952
          iprot.skip(ftype)
8953
      elif fid == 4:
8954
        if ftype == TType.STRING:
8955
          self.modelName = iprot.readString();
8956
        else:
8957
          iprot.skip(ftype)
8958
      elif fid == 5:
8959
        if ftype == TType.STRING:
8960
          self.modelNumber = iprot.readString();
8961
        else:
8962
          iprot.skip(ftype)
9253 rajveer 8963
      elif fid == 6:
8964
        if ftype == TType.BOOL:
8965
          self.isAndroid = iprot.readBool();
8966
        else:
8967
          iprot.skip(ftype)
5944 mandeep.dh 8968
      else:
8969
        iprot.skip(ftype)
8970
      iprot.readFieldEnd()
8971
    iprot.readStructEnd()
8972
 
8973
  def write(self, oprot):
8974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8976
      return
8977
    oprot.writeStructBegin('markItemAsContentComplete_args')
8978
    if self.entityId is not None:
8979
      oprot.writeFieldBegin('entityId', TType.I64, 1)
8980
      oprot.writeI64(self.entityId)
8981
      oprot.writeFieldEnd()
8982
    if self.category is not None:
8983
      oprot.writeFieldBegin('category', TType.I64, 2)
8984
      oprot.writeI64(self.category)
8985
      oprot.writeFieldEnd()
8986
    if self.brand is not None:
8987
      oprot.writeFieldBegin('brand', TType.STRING, 3)
8988
      oprot.writeString(self.brand)
8989
      oprot.writeFieldEnd()
8990
    if self.modelName is not None:
8991
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
8992
      oprot.writeString(self.modelName)
8993
      oprot.writeFieldEnd()
8994
    if self.modelNumber is not None:
8995
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
8996
      oprot.writeString(self.modelNumber)
8997
      oprot.writeFieldEnd()
9253 rajveer 8998
    if self.isAndroid is not None:
8999
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
9000
      oprot.writeBool(self.isAndroid)
9001
      oprot.writeFieldEnd()
5944 mandeep.dh 9002
    oprot.writeFieldStop()
9003
    oprot.writeStructEnd()
9004
 
9005
  def validate(self):
9006
    return
9007
 
9008
 
9009
  def __repr__(self):
9010
    L = ['%s=%r' % (key, value)
9011
      for key, value in self.__dict__.iteritems()]
9012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9013
 
9014
  def __eq__(self, other):
9015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9016
 
9017
  def __ne__(self, other):
9018
    return not (self == other)
9019
 
9020
class markItemAsContentComplete_result:
9021
  """
9022
  Attributes:
9023
   - success
9024
   - cex
9025
  """
9026
 
9027
  thrift_spec = (
9028
    (0, TType.BOOL, 'success', None, None, ), # 0
9029
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9030
  )
9031
 
9032
  def __init__(self, success=None, cex=None,):
9033
    self.success = success
9034
    self.cex = cex
9035
 
9036
  def read(self, iprot):
9037
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9038
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9039
      return
9040
    iprot.readStructBegin()
9041
    while True:
9042
      (fname, ftype, fid) = iprot.readFieldBegin()
9043
      if ftype == TType.STOP:
9044
        break
9045
      if fid == 0:
9046
        if ftype == TType.BOOL:
9047
          self.success = iprot.readBool();
9048
        else:
9049
          iprot.skip(ftype)
9050
      elif fid == 1:
9051
        if ftype == TType.STRUCT:
9052
          self.cex = CatalogServiceException()
9053
          self.cex.read(iprot)
9054
        else:
9055
          iprot.skip(ftype)
9056
      else:
9057
        iprot.skip(ftype)
9058
      iprot.readFieldEnd()
9059
    iprot.readStructEnd()
9060
 
9061
  def write(self, oprot):
9062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9064
      return
9065
    oprot.writeStructBegin('markItemAsContentComplete_result')
9066
    if self.success is not None:
9067
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9068
      oprot.writeBool(self.success)
9069
      oprot.writeFieldEnd()
9070
    if self.cex is not None:
9071
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9072
      self.cex.write(oprot)
9073
      oprot.writeFieldEnd()
9074
    oprot.writeFieldStop()
9075
    oprot.writeStructEnd()
9076
 
9077
  def validate(self):
9078
    return
9079
 
9080
 
9081
  def __repr__(self):
9082
    L = ['%s=%r' % (key, value)
9083
      for key, value in self.__dict__.iteritems()]
9084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9085
 
9086
  def __eq__(self, other):
9087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9088
 
9089
  def __ne__(self, other):
9090
    return not (self == other)
9091
 
9092
class getAllItemsInRange_args:
9093
  """
9094
  Attributes:
9095
   - offset
9096
   - limit
9097
  """
9098
 
9099
  thrift_spec = (
9100
    None, # 0
9101
    (1, TType.I64, 'offset', None, None, ), # 1
9102
    (2, TType.I64, 'limit', None, None, ), # 2
9103
  )
9104
 
9105
  def __init__(self, offset=None, limit=None,):
9106
    self.offset = offset
9107
    self.limit = limit
9108
 
9109
  def read(self, iprot):
9110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9112
      return
9113
    iprot.readStructBegin()
9114
    while True:
9115
      (fname, ftype, fid) = iprot.readFieldBegin()
9116
      if ftype == TType.STOP:
9117
        break
9118
      if fid == 1:
9119
        if ftype == TType.I64:
9120
          self.offset = iprot.readI64();
9121
        else:
9122
          iprot.skip(ftype)
9123
      elif fid == 2:
9124
        if ftype == TType.I64:
9125
          self.limit = iprot.readI64();
9126
        else:
9127
          iprot.skip(ftype)
9128
      else:
9129
        iprot.skip(ftype)
9130
      iprot.readFieldEnd()
9131
    iprot.readStructEnd()
9132
 
9133
  def write(self, oprot):
9134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9136
      return
9137
    oprot.writeStructBegin('getAllItemsInRange_args')
9138
    if self.offset is not None:
9139
      oprot.writeFieldBegin('offset', TType.I64, 1)
9140
      oprot.writeI64(self.offset)
9141
      oprot.writeFieldEnd()
9142
    if self.limit is not None:
9143
      oprot.writeFieldBegin('limit', TType.I64, 2)
9144
      oprot.writeI64(self.limit)
9145
      oprot.writeFieldEnd()
9146
    oprot.writeFieldStop()
9147
    oprot.writeStructEnd()
9148
 
9149
  def validate(self):
9150
    return
9151
 
9152
 
9153
  def __repr__(self):
9154
    L = ['%s=%r' % (key, value)
9155
      for key, value in self.__dict__.iteritems()]
9156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9157
 
9158
  def __eq__(self, other):
9159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9160
 
9161
  def __ne__(self, other):
9162
    return not (self == other)
9163
 
9164
class getAllItemsInRange_result:
9165
  """
9166
  Attributes:
9167
   - success
9168
   - cex
9169
  """
9170
 
9171
  thrift_spec = (
9172
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9173
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9174
  )
9175
 
9176
  def __init__(self, success=None, cex=None,):
9177
    self.success = success
9178
    self.cex = cex
9179
 
9180
  def read(self, iprot):
9181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9183
      return
9184
    iprot.readStructBegin()
9185
    while True:
9186
      (fname, ftype, fid) = iprot.readFieldBegin()
9187
      if ftype == TType.STOP:
9188
        break
9189
      if fid == 0:
9190
        if ftype == TType.LIST:
9191
          self.success = []
8590 kshitij.so 9192
          (_etype77, _size74) = iprot.readListBegin()
9193
          for _i78 in xrange(_size74):
9194
            _elem79 = Item()
9195
            _elem79.read(iprot)
9196
            self.success.append(_elem79)
5944 mandeep.dh 9197
          iprot.readListEnd()
9198
        else:
9199
          iprot.skip(ftype)
9200
      elif fid == 1:
9201
        if ftype == TType.STRUCT:
9202
          self.cex = CatalogServiceException()
9203
          self.cex.read(iprot)
9204
        else:
9205
          iprot.skip(ftype)
9206
      else:
9207
        iprot.skip(ftype)
9208
      iprot.readFieldEnd()
9209
    iprot.readStructEnd()
9210
 
9211
  def write(self, oprot):
9212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9214
      return
9215
    oprot.writeStructBegin('getAllItemsInRange_result')
9216
    if self.success is not None:
9217
      oprot.writeFieldBegin('success', TType.LIST, 0)
9218
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9219
      for iter80 in self.success:
9220
        iter80.write(oprot)
5944 mandeep.dh 9221
      oprot.writeListEnd()
9222
      oprot.writeFieldEnd()
9223
    if self.cex is not None:
9224
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9225
      self.cex.write(oprot)
9226
      oprot.writeFieldEnd()
9227
    oprot.writeFieldStop()
9228
    oprot.writeStructEnd()
9229
 
9230
  def validate(self):
9231
    return
9232
 
9233
 
9234
  def __repr__(self):
9235
    L = ['%s=%r' % (key, value)
9236
      for key, value in self.__dict__.iteritems()]
9237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9238
 
9239
  def __eq__(self, other):
9240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9241
 
9242
  def __ne__(self, other):
9243
    return not (self == other)
9244
 
9245
class getAllItemsByStatusInRange_args:
9246
  """
9247
  Attributes:
9248
   - itemStatus
9249
   - offset
9250
   - limit
9251
  """
9252
 
9253
  thrift_spec = (
9254
    None, # 0
9255
    (1, TType.I32, 'itemStatus', None, None, ), # 1
9256
    (2, TType.I64, 'offset', None, None, ), # 2
9257
    (3, TType.I64, 'limit', None, None, ), # 3
9258
  )
9259
 
9260
  def __init__(self, itemStatus=None, offset=None, limit=None,):
9261
    self.itemStatus = itemStatus
9262
    self.offset = offset
9263
    self.limit = limit
9264
 
9265
  def read(self, iprot):
9266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9268
      return
9269
    iprot.readStructBegin()
9270
    while True:
9271
      (fname, ftype, fid) = iprot.readFieldBegin()
9272
      if ftype == TType.STOP:
9273
        break
9274
      if fid == 1:
9275
        if ftype == TType.I32:
9276
          self.itemStatus = iprot.readI32();
9277
        else:
9278
          iprot.skip(ftype)
9279
      elif fid == 2:
9280
        if ftype == TType.I64:
9281
          self.offset = iprot.readI64();
9282
        else:
9283
          iprot.skip(ftype)
9284
      elif fid == 3:
9285
        if ftype == TType.I64:
9286
          self.limit = iprot.readI64();
9287
        else:
9288
          iprot.skip(ftype)
9289
      else:
9290
        iprot.skip(ftype)
9291
      iprot.readFieldEnd()
9292
    iprot.readStructEnd()
9293
 
9294
  def write(self, oprot):
9295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9297
      return
9298
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
9299
    if self.itemStatus is not None:
9300
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
9301
      oprot.writeI32(self.itemStatus)
9302
      oprot.writeFieldEnd()
9303
    if self.offset is not None:
9304
      oprot.writeFieldBegin('offset', TType.I64, 2)
9305
      oprot.writeI64(self.offset)
9306
      oprot.writeFieldEnd()
9307
    if self.limit is not None:
9308
      oprot.writeFieldBegin('limit', TType.I64, 3)
9309
      oprot.writeI64(self.limit)
9310
      oprot.writeFieldEnd()
9311
    oprot.writeFieldStop()
9312
    oprot.writeStructEnd()
9313
 
9314
  def validate(self):
9315
    return
9316
 
9317
 
9318
  def __repr__(self):
9319
    L = ['%s=%r' % (key, value)
9320
      for key, value in self.__dict__.iteritems()]
9321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9322
 
9323
  def __eq__(self, other):
9324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9325
 
9326
  def __ne__(self, other):
9327
    return not (self == other)
9328
 
9329
class getAllItemsByStatusInRange_result:
9330
  """
9331
  Attributes:
9332
   - success
9333
   - cex
9334
  """
9335
 
9336
  thrift_spec = (
9337
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9338
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9339
  )
9340
 
9341
  def __init__(self, success=None, cex=None,):
9342
    self.success = success
9343
    self.cex = cex
9344
 
9345
  def read(self, iprot):
9346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9348
      return
9349
    iprot.readStructBegin()
9350
    while True:
9351
      (fname, ftype, fid) = iprot.readFieldBegin()
9352
      if ftype == TType.STOP:
9353
        break
9354
      if fid == 0:
9355
        if ftype == TType.LIST:
9356
          self.success = []
8590 kshitij.so 9357
          (_etype84, _size81) = iprot.readListBegin()
9358
          for _i85 in xrange(_size81):
9359
            _elem86 = Item()
9360
            _elem86.read(iprot)
9361
            self.success.append(_elem86)
5944 mandeep.dh 9362
          iprot.readListEnd()
9363
        else:
9364
          iprot.skip(ftype)
9365
      elif fid == 1:
9366
        if ftype == TType.STRUCT:
9367
          self.cex = CatalogServiceException()
9368
          self.cex.read(iprot)
9369
        else:
9370
          iprot.skip(ftype)
9371
      else:
9372
        iprot.skip(ftype)
9373
      iprot.readFieldEnd()
9374
    iprot.readStructEnd()
9375
 
9376
  def write(self, oprot):
9377
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9378
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9379
      return
9380
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
9381
    if self.success is not None:
9382
      oprot.writeFieldBegin('success', TType.LIST, 0)
9383
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9384
      for iter87 in self.success:
9385
        iter87.write(oprot)
5944 mandeep.dh 9386
      oprot.writeListEnd()
9387
      oprot.writeFieldEnd()
9388
    if self.cex is not None:
9389
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9390
      self.cex.write(oprot)
9391
      oprot.writeFieldEnd()
9392
    oprot.writeFieldStop()
9393
    oprot.writeStructEnd()
9394
 
9395
  def validate(self):
9396
    return
9397
 
9398
 
9399
  def __repr__(self):
9400
    L = ['%s=%r' % (key, value)
9401
      for key, value in self.__dict__.iteritems()]
9402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9403
 
9404
  def __eq__(self, other):
9405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9406
 
9407
  def __ne__(self, other):
9408
    return not (self == other)
9409
 
9410
class getItemCountByStatus_args:
9411
  """
9412
  Attributes:
9413
   - useStatus
9414
   - itemStatus
9415
  """
9416
 
9417
  thrift_spec = (
9418
    None, # 0
9419
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
9420
    (2, TType.I32, 'itemStatus', None, None, ), # 2
9421
  )
9422
 
9423
  def __init__(self, useStatus=None, itemStatus=None,):
9424
    self.useStatus = useStatus
9425
    self.itemStatus = itemStatus
9426
 
9427
  def read(self, iprot):
9428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9430
      return
9431
    iprot.readStructBegin()
9432
    while True:
9433
      (fname, ftype, fid) = iprot.readFieldBegin()
9434
      if ftype == TType.STOP:
9435
        break
9436
      if fid == 1:
9437
        if ftype == TType.BOOL:
9438
          self.useStatus = iprot.readBool();
9439
        else:
9440
          iprot.skip(ftype)
9441
      elif fid == 2:
9442
        if ftype == TType.I32:
9443
          self.itemStatus = iprot.readI32();
9444
        else:
9445
          iprot.skip(ftype)
9446
      else:
9447
        iprot.skip(ftype)
9448
      iprot.readFieldEnd()
9449
    iprot.readStructEnd()
9450
 
9451
  def write(self, oprot):
9452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9454
      return
9455
    oprot.writeStructBegin('getItemCountByStatus_args')
9456
    if self.useStatus is not None:
9457
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
9458
      oprot.writeBool(self.useStatus)
9459
      oprot.writeFieldEnd()
9460
    if self.itemStatus is not None:
9461
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
9462
      oprot.writeI32(self.itemStatus)
9463
      oprot.writeFieldEnd()
9464
    oprot.writeFieldStop()
9465
    oprot.writeStructEnd()
9466
 
9467
  def validate(self):
9468
    return
9469
 
9470
 
9471
  def __repr__(self):
9472
    L = ['%s=%r' % (key, value)
9473
      for key, value in self.__dict__.iteritems()]
9474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9475
 
9476
  def __eq__(self, other):
9477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9478
 
9479
  def __ne__(self, other):
9480
    return not (self == other)
9481
 
9482
class getItemCountByStatus_result:
9483
  """
9484
  Attributes:
9485
   - success
9486
  """
9487
 
9488
  thrift_spec = (
9489
    (0, TType.I32, 'success', None, None, ), # 0
9490
  )
9491
 
9492
  def __init__(self, success=None,):
9493
    self.success = success
9494
 
9495
  def read(self, iprot):
9496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9498
      return
9499
    iprot.readStructBegin()
9500
    while True:
9501
      (fname, ftype, fid) = iprot.readFieldBegin()
9502
      if ftype == TType.STOP:
9503
        break
9504
      if fid == 0:
9505
        if ftype == TType.I32:
9506
          self.success = iprot.readI32();
9507
        else:
9508
          iprot.skip(ftype)
9509
      else:
9510
        iprot.skip(ftype)
9511
      iprot.readFieldEnd()
9512
    iprot.readStructEnd()
9513
 
9514
  def write(self, oprot):
9515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9517
      return
9518
    oprot.writeStructBegin('getItemCountByStatus_result')
9519
    if self.success is not None:
9520
      oprot.writeFieldBegin('success', TType.I32, 0)
9521
      oprot.writeI32(self.success)
9522
      oprot.writeFieldEnd()
9523
    oprot.writeFieldStop()
9524
    oprot.writeStructEnd()
9525
 
9526
  def validate(self):
9527
    return
9528
 
9529
 
9530
  def __repr__(self):
9531
    L = ['%s=%r' % (key, value)
9532
      for key, value in self.__dict__.iteritems()]
9533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9534
 
9535
  def __eq__(self, other):
9536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9537
 
9538
  def __ne__(self, other):
9539
    return not (self == other)
9540
 
9541
class getBestSellers_args:
9542
 
9543
  thrift_spec = (
9544
  )
9545
 
9546
  def read(self, iprot):
9547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9549
      return
9550
    iprot.readStructBegin()
9551
    while True:
9552
      (fname, ftype, fid) = iprot.readFieldBegin()
9553
      if ftype == TType.STOP:
9554
        break
9555
      else:
9556
        iprot.skip(ftype)
9557
      iprot.readFieldEnd()
9558
    iprot.readStructEnd()
9559
 
9560
  def write(self, oprot):
9561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9563
      return
9564
    oprot.writeStructBegin('getBestSellers_args')
9565
    oprot.writeFieldStop()
9566
    oprot.writeStructEnd()
9567
 
9568
  def validate(self):
9569
    return
9570
 
9571
 
9572
  def __repr__(self):
9573
    L = ['%s=%r' % (key, value)
9574
      for key, value in self.__dict__.iteritems()]
9575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9576
 
9577
  def __eq__(self, other):
9578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9579
 
9580
  def __ne__(self, other):
9581
    return not (self == other)
9582
 
9583
class getBestSellers_result:
9584
  """
9585
  Attributes:
9586
   - success
9587
   - isex
9588
  """
9589
 
9590
  thrift_spec = (
9591
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9592
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9593
  )
9594
 
9595
  def __init__(self, success=None, isex=None,):
9596
    self.success = success
9597
    self.isex = isex
9598
 
9599
  def read(self, iprot):
9600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9602
      return
9603
    iprot.readStructBegin()
9604
    while True:
9605
      (fname, ftype, fid) = iprot.readFieldBegin()
9606
      if ftype == TType.STOP:
9607
        break
9608
      if fid == 0:
9609
        if ftype == TType.LIST:
9610
          self.success = []
8590 kshitij.so 9611
          (_etype91, _size88) = iprot.readListBegin()
9612
          for _i92 in xrange(_size88):
9613
            _elem93 = Item()
9614
            _elem93.read(iprot)
9615
            self.success.append(_elem93)
5944 mandeep.dh 9616
          iprot.readListEnd()
9617
        else:
9618
          iprot.skip(ftype)
9619
      elif fid == 1:
9620
        if ftype == TType.STRUCT:
9621
          self.isex = CatalogServiceException()
9622
          self.isex.read(iprot)
9623
        else:
9624
          iprot.skip(ftype)
9625
      else:
9626
        iprot.skip(ftype)
9627
      iprot.readFieldEnd()
9628
    iprot.readStructEnd()
9629
 
9630
  def write(self, oprot):
9631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9633
      return
9634
    oprot.writeStructBegin('getBestSellers_result')
9635
    if self.success is not None:
9636
      oprot.writeFieldBegin('success', TType.LIST, 0)
9637
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9638
      for iter94 in self.success:
9639
        iter94.write(oprot)
5944 mandeep.dh 9640
      oprot.writeListEnd()
9641
      oprot.writeFieldEnd()
9642
    if self.isex is not None:
9643
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9644
      self.isex.write(oprot)
9645
      oprot.writeFieldEnd()
9646
    oprot.writeFieldStop()
9647
    oprot.writeStructEnd()
9648
 
9649
  def validate(self):
9650
    return
9651
 
9652
 
9653
  def __repr__(self):
9654
    L = ['%s=%r' % (key, value)
9655
      for key, value in self.__dict__.iteritems()]
9656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9657
 
9658
  def __eq__(self, other):
9659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9660
 
9661
  def __ne__(self, other):
9662
    return not (self == other)
9663
 
9664
class getBestSellersCatalogIds_args:
9665
  """
9666
  Attributes:
9667
   - beginIndex
9668
   - totalItems
9669
   - brand
9670
   - category
9671
  """
9672
 
9673
  thrift_spec = (
9674
    None, # 0
9675
    (1, TType.I64, 'beginIndex', None, None, ), # 1
9676
    (2, TType.I64, 'totalItems', None, None, ), # 2
9677
    (3, TType.STRING, 'brand', None, None, ), # 3
9678
    (4, TType.I64, 'category', None, None, ), # 4
9679
  )
9680
 
9681
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
9682
    self.beginIndex = beginIndex
9683
    self.totalItems = totalItems
9684
    self.brand = brand
9685
    self.category = category
9686
 
9687
  def read(self, iprot):
9688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9690
      return
9691
    iprot.readStructBegin()
9692
    while True:
9693
      (fname, ftype, fid) = iprot.readFieldBegin()
9694
      if ftype == TType.STOP:
9695
        break
9696
      if fid == 1:
9697
        if ftype == TType.I64:
9698
          self.beginIndex = iprot.readI64();
9699
        else:
9700
          iprot.skip(ftype)
9701
      elif fid == 2:
9702
        if ftype == TType.I64:
9703
          self.totalItems = iprot.readI64();
9704
        else:
9705
          iprot.skip(ftype)
9706
      elif fid == 3:
9707
        if ftype == TType.STRING:
9708
          self.brand = iprot.readString();
9709
        else:
9710
          iprot.skip(ftype)
9711
      elif fid == 4:
9712
        if ftype == TType.I64:
9713
          self.category = iprot.readI64();
9714
        else:
9715
          iprot.skip(ftype)
9716
      else:
9717
        iprot.skip(ftype)
9718
      iprot.readFieldEnd()
9719
    iprot.readStructEnd()
9720
 
9721
  def write(self, oprot):
9722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9724
      return
9725
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
9726
    if self.beginIndex is not None:
9727
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
9728
      oprot.writeI64(self.beginIndex)
9729
      oprot.writeFieldEnd()
9730
    if self.totalItems is not None:
9731
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
9732
      oprot.writeI64(self.totalItems)
9733
      oprot.writeFieldEnd()
9734
    if self.brand is not None:
9735
      oprot.writeFieldBegin('brand', TType.STRING, 3)
9736
      oprot.writeString(self.brand)
9737
      oprot.writeFieldEnd()
9738
    if self.category is not None:
9739
      oprot.writeFieldBegin('category', TType.I64, 4)
9740
      oprot.writeI64(self.category)
9741
      oprot.writeFieldEnd()
9742
    oprot.writeFieldStop()
9743
    oprot.writeStructEnd()
9744
 
9745
  def validate(self):
9746
    return
9747
 
9748
 
9749
  def __repr__(self):
9750
    L = ['%s=%r' % (key, value)
9751
      for key, value in self.__dict__.iteritems()]
9752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9753
 
9754
  def __eq__(self, other):
9755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9756
 
9757
  def __ne__(self, other):
9758
    return not (self == other)
9759
 
9760
class getBestSellersCatalogIds_result:
9761
  """
9762
  Attributes:
9763
   - success
9764
   - cex
9765
  """
9766
 
9767
  thrift_spec = (
9768
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9769
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9770
  )
9771
 
9772
  def __init__(self, success=None, cex=None,):
9773
    self.success = success
9774
    self.cex = cex
9775
 
9776
  def read(self, iprot):
9777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9779
      return
9780
    iprot.readStructBegin()
9781
    while True:
9782
      (fname, ftype, fid) = iprot.readFieldBegin()
9783
      if ftype == TType.STOP:
9784
        break
9785
      if fid == 0:
9786
        if ftype == TType.LIST:
9787
          self.success = []
8590 kshitij.so 9788
          (_etype98, _size95) = iprot.readListBegin()
9789
          for _i99 in xrange(_size95):
9790
            _elem100 = iprot.readI64();
9791
            self.success.append(_elem100)
5944 mandeep.dh 9792
          iprot.readListEnd()
9793
        else:
9794
          iprot.skip(ftype)
9795
      elif fid == 1:
9796
        if ftype == TType.STRUCT:
9797
          self.cex = CatalogServiceException()
9798
          self.cex.read(iprot)
9799
        else:
9800
          iprot.skip(ftype)
9801
      else:
9802
        iprot.skip(ftype)
9803
      iprot.readFieldEnd()
9804
    iprot.readStructEnd()
9805
 
9806
  def write(self, oprot):
9807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9809
      return
9810
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
9811
    if self.success is not None:
9812
      oprot.writeFieldBegin('success', TType.LIST, 0)
9813
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 9814
      for iter101 in self.success:
9815
        oprot.writeI64(iter101)
5944 mandeep.dh 9816
      oprot.writeListEnd()
9817
      oprot.writeFieldEnd()
9818
    if self.cex is not None:
9819
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9820
      self.cex.write(oprot)
9821
      oprot.writeFieldEnd()
9822
    oprot.writeFieldStop()
9823
    oprot.writeStructEnd()
9824
 
9825
  def validate(self):
9826
    return
9827
 
9828
 
9829
  def __repr__(self):
9830
    L = ['%s=%r' % (key, value)
9831
      for key, value in self.__dict__.iteritems()]
9832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9833
 
9834
  def __eq__(self, other):
9835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9836
 
9837
  def __ne__(self, other):
9838
    return not (self == other)
9839
 
9840
class getBestSellersCount_args:
9841
 
9842
  thrift_spec = (
9843
  )
9844
 
9845
  def read(self, iprot):
9846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9848
      return
9849
    iprot.readStructBegin()
9850
    while True:
9851
      (fname, ftype, fid) = iprot.readFieldBegin()
9852
      if ftype == TType.STOP:
9853
        break
9854
      else:
9855
        iprot.skip(ftype)
9856
      iprot.readFieldEnd()
9857
    iprot.readStructEnd()
9858
 
9859
  def write(self, oprot):
9860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9862
      return
9863
    oprot.writeStructBegin('getBestSellersCount_args')
9864
    oprot.writeFieldStop()
9865
    oprot.writeStructEnd()
9866
 
9867
  def validate(self):
9868
    return
9869
 
9870
 
9871
  def __repr__(self):
9872
    L = ['%s=%r' % (key, value)
9873
      for key, value in self.__dict__.iteritems()]
9874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9875
 
9876
  def __eq__(self, other):
9877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9878
 
9879
  def __ne__(self, other):
9880
    return not (self == other)
9881
 
9882
class getBestSellersCount_result:
9883
  """
9884
  Attributes:
9885
   - success
9886
   - cex
9887
  """
9888
 
9889
  thrift_spec = (
9890
    (0, TType.I64, 'success', None, None, ), # 0
9891
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9892
  )
9893
 
9894
  def __init__(self, success=None, cex=None,):
9895
    self.success = success
9896
    self.cex = cex
9897
 
9898
  def read(self, iprot):
9899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9901
      return
9902
    iprot.readStructBegin()
9903
    while True:
9904
      (fname, ftype, fid) = iprot.readFieldBegin()
9905
      if ftype == TType.STOP:
9906
        break
9907
      if fid == 0:
9908
        if ftype == TType.I64:
9909
          self.success = iprot.readI64();
9910
        else:
9911
          iprot.skip(ftype)
9912
      elif fid == 1:
9913
        if ftype == TType.STRUCT:
9914
          self.cex = CatalogServiceException()
9915
          self.cex.read(iprot)
9916
        else:
9917
          iprot.skip(ftype)
9918
      else:
9919
        iprot.skip(ftype)
9920
      iprot.readFieldEnd()
9921
    iprot.readStructEnd()
9922
 
9923
  def write(self, oprot):
9924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9926
      return
9927
    oprot.writeStructBegin('getBestSellersCount_result')
9928
    if self.success is not None:
9929
      oprot.writeFieldBegin('success', TType.I64, 0)
9930
      oprot.writeI64(self.success)
9931
      oprot.writeFieldEnd()
9932
    if self.cex is not None:
9933
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9934
      self.cex.write(oprot)
9935
      oprot.writeFieldEnd()
9936
    oprot.writeFieldStop()
9937
    oprot.writeStructEnd()
9938
 
9939
  def validate(self):
9940
    return
9941
 
9942
 
9943
  def __repr__(self):
9944
    L = ['%s=%r' % (key, value)
9945
      for key, value in self.__dict__.iteritems()]
9946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9947
 
9948
  def __eq__(self, other):
9949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9950
 
9951
  def __ne__(self, other):
9952
    return not (self == other)
9953
 
9954
class getBestDeals_args:
9955
 
9956
  thrift_spec = (
9957
  )
9958
 
9959
  def read(self, iprot):
9960
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9961
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9962
      return
9963
    iprot.readStructBegin()
9964
    while True:
9965
      (fname, ftype, fid) = iprot.readFieldBegin()
9966
      if ftype == TType.STOP:
9967
        break
9968
      else:
9969
        iprot.skip(ftype)
9970
      iprot.readFieldEnd()
9971
    iprot.readStructEnd()
9972
 
9973
  def write(self, oprot):
9974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9976
      return
9977
    oprot.writeStructBegin('getBestDeals_args')
9978
    oprot.writeFieldStop()
9979
    oprot.writeStructEnd()
9980
 
9981
  def validate(self):
9982
    return
9983
 
9984
 
9985
  def __repr__(self):
9986
    L = ['%s=%r' % (key, value)
9987
      for key, value in self.__dict__.iteritems()]
9988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9989
 
9990
  def __eq__(self, other):
9991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9992
 
9993
  def __ne__(self, other):
9994
    return not (self == other)
9995
 
9996
class getBestDeals_result:
9997
  """
9998
  Attributes:
9999
   - success
10000
   - isex
10001
  """
10002
 
10003
  thrift_spec = (
10004
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10005
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10006
  )
10007
 
10008
  def __init__(self, success=None, isex=None,):
10009
    self.success = success
10010
    self.isex = isex
10011
 
10012
  def read(self, iprot):
10013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10015
      return
10016
    iprot.readStructBegin()
10017
    while True:
10018
      (fname, ftype, fid) = iprot.readFieldBegin()
10019
      if ftype == TType.STOP:
10020
        break
10021
      if fid == 0:
10022
        if ftype == TType.LIST:
10023
          self.success = []
8590 kshitij.so 10024
          (_etype105, _size102) = iprot.readListBegin()
10025
          for _i106 in xrange(_size102):
10026
            _elem107 = Item()
10027
            _elem107.read(iprot)
10028
            self.success.append(_elem107)
5944 mandeep.dh 10029
          iprot.readListEnd()
10030
        else:
10031
          iprot.skip(ftype)
10032
      elif fid == 1:
10033
        if ftype == TType.STRUCT:
10034
          self.isex = CatalogServiceException()
10035
          self.isex.read(iprot)
10036
        else:
10037
          iprot.skip(ftype)
10038
      else:
10039
        iprot.skip(ftype)
10040
      iprot.readFieldEnd()
10041
    iprot.readStructEnd()
10042
 
10043
  def write(self, oprot):
10044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10046
      return
10047
    oprot.writeStructBegin('getBestDeals_result')
10048
    if self.success is not None:
10049
      oprot.writeFieldBegin('success', TType.LIST, 0)
10050
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10051
      for iter108 in self.success:
10052
        iter108.write(oprot)
5944 mandeep.dh 10053
      oprot.writeListEnd()
10054
      oprot.writeFieldEnd()
10055
    if self.isex is not None:
10056
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10057
      self.isex.write(oprot)
10058
      oprot.writeFieldEnd()
10059
    oprot.writeFieldStop()
10060
    oprot.writeStructEnd()
10061
 
10062
  def validate(self):
10063
    return
10064
 
10065
 
10066
  def __repr__(self):
10067
    L = ['%s=%r' % (key, value)
10068
      for key, value in self.__dict__.iteritems()]
10069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10070
 
10071
  def __eq__(self, other):
10072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10073
 
10074
  def __ne__(self, other):
10075
    return not (self == other)
10076
 
10077
class getBestDealsCatalogIds_args:
10078
  """
10079
  Attributes:
10080
   - beginIndex
10081
   - totalItems
10082
   - brand
10083
   - category
10084
  """
10085
 
10086
  thrift_spec = (
10087
    None, # 0
10088
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10089
    (2, TType.I64, 'totalItems', None, None, ), # 2
10090
    (3, TType.STRING, 'brand', None, None, ), # 3
10091
    (4, TType.I64, 'category', None, None, ), # 4
10092
  )
10093
 
10094
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
10095
    self.beginIndex = beginIndex
10096
    self.totalItems = totalItems
10097
    self.brand = brand
10098
    self.category = category
10099
 
10100
  def read(self, iprot):
10101
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10102
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10103
      return
10104
    iprot.readStructBegin()
10105
    while True:
10106
      (fname, ftype, fid) = iprot.readFieldBegin()
10107
      if ftype == TType.STOP:
10108
        break
10109
      if fid == 1:
10110
        if ftype == TType.I64:
10111
          self.beginIndex = iprot.readI64();
10112
        else:
10113
          iprot.skip(ftype)
10114
      elif fid == 2:
10115
        if ftype == TType.I64:
10116
          self.totalItems = iprot.readI64();
10117
        else:
10118
          iprot.skip(ftype)
10119
      elif fid == 3:
10120
        if ftype == TType.STRING:
10121
          self.brand = iprot.readString();
10122
        else:
10123
          iprot.skip(ftype)
10124
      elif fid == 4:
10125
        if ftype == TType.I64:
10126
          self.category = iprot.readI64();
10127
        else:
10128
          iprot.skip(ftype)
10129
      else:
10130
        iprot.skip(ftype)
10131
      iprot.readFieldEnd()
10132
    iprot.readStructEnd()
10133
 
10134
  def write(self, oprot):
10135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10137
      return
10138
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
10139
    if self.beginIndex is not None:
10140
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10141
      oprot.writeI64(self.beginIndex)
10142
      oprot.writeFieldEnd()
10143
    if self.totalItems is not None:
10144
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10145
      oprot.writeI64(self.totalItems)
10146
      oprot.writeFieldEnd()
10147
    if self.brand is not None:
10148
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10149
      oprot.writeString(self.brand)
10150
      oprot.writeFieldEnd()
10151
    if self.category is not None:
10152
      oprot.writeFieldBegin('category', TType.I64, 4)
10153
      oprot.writeI64(self.category)
10154
      oprot.writeFieldEnd()
10155
    oprot.writeFieldStop()
10156
    oprot.writeStructEnd()
10157
 
10158
  def validate(self):
10159
    return
10160
 
10161
 
10162
  def __repr__(self):
10163
    L = ['%s=%r' % (key, value)
10164
      for key, value in self.__dict__.iteritems()]
10165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10166
 
10167
  def __eq__(self, other):
10168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10169
 
10170
  def __ne__(self, other):
10171
    return not (self == other)
10172
 
10173
class getBestDealsCatalogIds_result:
10174
  """
10175
  Attributes:
10176
   - success
10177
   - cex
10178
  """
10179
 
10180
  thrift_spec = (
10181
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10182
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10183
  )
10184
 
10185
  def __init__(self, success=None, cex=None,):
10186
    self.success = success
10187
    self.cex = cex
10188
 
10189
  def read(self, iprot):
10190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10192
      return
10193
    iprot.readStructBegin()
10194
    while True:
10195
      (fname, ftype, fid) = iprot.readFieldBegin()
10196
      if ftype == TType.STOP:
10197
        break
10198
      if fid == 0:
10199
        if ftype == TType.LIST:
10200
          self.success = []
8590 kshitij.so 10201
          (_etype112, _size109) = iprot.readListBegin()
10202
          for _i113 in xrange(_size109):
10203
            _elem114 = iprot.readI64();
10204
            self.success.append(_elem114)
5944 mandeep.dh 10205
          iprot.readListEnd()
10206
        else:
10207
          iprot.skip(ftype)
10208
      elif fid == 1:
10209
        if ftype == TType.STRUCT:
10210
          self.cex = CatalogServiceException()
10211
          self.cex.read(iprot)
10212
        else:
10213
          iprot.skip(ftype)
10214
      else:
10215
        iprot.skip(ftype)
10216
      iprot.readFieldEnd()
10217
    iprot.readStructEnd()
10218
 
10219
  def write(self, oprot):
10220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10222
      return
10223
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
10224
    if self.success is not None:
10225
      oprot.writeFieldBegin('success', TType.LIST, 0)
10226
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10227
      for iter115 in self.success:
10228
        oprot.writeI64(iter115)
5944 mandeep.dh 10229
      oprot.writeListEnd()
10230
      oprot.writeFieldEnd()
10231
    if self.cex is not None:
10232
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10233
      self.cex.write(oprot)
10234
      oprot.writeFieldEnd()
10235
    oprot.writeFieldStop()
10236
    oprot.writeStructEnd()
10237
 
10238
  def validate(self):
10239
    return
10240
 
10241
 
10242
  def __repr__(self):
10243
    L = ['%s=%r' % (key, value)
10244
      for key, value in self.__dict__.iteritems()]
10245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10246
 
10247
  def __eq__(self, other):
10248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10249
 
10250
  def __ne__(self, other):
10251
    return not (self == other)
10252
 
10253
class getBestDealsCount_args:
10254
 
10255
  thrift_spec = (
10256
  )
10257
 
10258
  def read(self, iprot):
10259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10261
      return
10262
    iprot.readStructBegin()
10263
    while True:
10264
      (fname, ftype, fid) = iprot.readFieldBegin()
10265
      if ftype == TType.STOP:
10266
        break
10267
      else:
10268
        iprot.skip(ftype)
10269
      iprot.readFieldEnd()
10270
    iprot.readStructEnd()
10271
 
10272
  def write(self, oprot):
10273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10275
      return
10276
    oprot.writeStructBegin('getBestDealsCount_args')
10277
    oprot.writeFieldStop()
10278
    oprot.writeStructEnd()
10279
 
10280
  def validate(self):
10281
    return
10282
 
10283
 
10284
  def __repr__(self):
10285
    L = ['%s=%r' % (key, value)
10286
      for key, value in self.__dict__.iteritems()]
10287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10288
 
10289
  def __eq__(self, other):
10290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10291
 
10292
  def __ne__(self, other):
10293
    return not (self == other)
10294
 
10295
class getBestDealsCount_result:
10296
  """
10297
  Attributes:
10298
   - success
10299
   - cex
10300
  """
10301
 
10302
  thrift_spec = (
10303
    (0, TType.I64, 'success', None, None, ), # 0
10304
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10305
  )
10306
 
10307
  def __init__(self, success=None, cex=None,):
10308
    self.success = success
10309
    self.cex = cex
10310
 
10311
  def read(self, iprot):
10312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10314
      return
10315
    iprot.readStructBegin()
10316
    while True:
10317
      (fname, ftype, fid) = iprot.readFieldBegin()
10318
      if ftype == TType.STOP:
10319
        break
10320
      if fid == 0:
10321
        if ftype == TType.I64:
10322
          self.success = iprot.readI64();
10323
        else:
10324
          iprot.skip(ftype)
10325
      elif fid == 1:
10326
        if ftype == TType.STRUCT:
10327
          self.cex = CatalogServiceException()
10328
          self.cex.read(iprot)
10329
        else:
10330
          iprot.skip(ftype)
10331
      else:
10332
        iprot.skip(ftype)
10333
      iprot.readFieldEnd()
10334
    iprot.readStructEnd()
10335
 
10336
  def write(self, oprot):
10337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10339
      return
10340
    oprot.writeStructBegin('getBestDealsCount_result')
10341
    if self.success is not None:
10342
      oprot.writeFieldBegin('success', TType.I64, 0)
10343
      oprot.writeI64(self.success)
10344
      oprot.writeFieldEnd()
10345
    if self.cex is not None:
10346
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10347
      self.cex.write(oprot)
10348
      oprot.writeFieldEnd()
10349
    oprot.writeFieldStop()
10350
    oprot.writeStructEnd()
10351
 
10352
  def validate(self):
10353
    return
10354
 
10355
 
10356
  def __repr__(self):
10357
    L = ['%s=%r' % (key, value)
10358
      for key, value in self.__dict__.iteritems()]
10359
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10360
 
10361
  def __eq__(self, other):
10362
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10363
 
10364
  def __ne__(self, other):
10365
    return not (self == other)
10366
 
10367
class getComingSoon_args:
10368
 
10369
  thrift_spec = (
10370
  )
10371
 
10372
  def read(self, iprot):
10373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10375
      return
10376
    iprot.readStructBegin()
10377
    while True:
10378
      (fname, ftype, fid) = iprot.readFieldBegin()
10379
      if ftype == TType.STOP:
10380
        break
10381
      else:
10382
        iprot.skip(ftype)
10383
      iprot.readFieldEnd()
10384
    iprot.readStructEnd()
10385
 
10386
  def write(self, oprot):
10387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10389
      return
10390
    oprot.writeStructBegin('getComingSoon_args')
10391
    oprot.writeFieldStop()
10392
    oprot.writeStructEnd()
10393
 
10394
  def validate(self):
10395
    return
10396
 
10397
 
10398
  def __repr__(self):
10399
    L = ['%s=%r' % (key, value)
10400
      for key, value in self.__dict__.iteritems()]
10401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10402
 
10403
  def __eq__(self, other):
10404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10405
 
10406
  def __ne__(self, other):
10407
    return not (self == other)
10408
 
10409
class getComingSoon_result:
10410
  """
10411
  Attributes:
10412
   - success
10413
   - isex
10414
  """
10415
 
10416
  thrift_spec = (
10417
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10418
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10419
  )
10420
 
10421
  def __init__(self, success=None, isex=None,):
10422
    self.success = success
10423
    self.isex = isex
10424
 
10425
  def read(self, iprot):
10426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10428
      return
10429
    iprot.readStructBegin()
10430
    while True:
10431
      (fname, ftype, fid) = iprot.readFieldBegin()
10432
      if ftype == TType.STOP:
10433
        break
10434
      if fid == 0:
10435
        if ftype == TType.LIST:
10436
          self.success = []
8590 kshitij.so 10437
          (_etype119, _size116) = iprot.readListBegin()
10438
          for _i120 in xrange(_size116):
10439
            _elem121 = Item()
10440
            _elem121.read(iprot)
10441
            self.success.append(_elem121)
5944 mandeep.dh 10442
          iprot.readListEnd()
10443
        else:
10444
          iprot.skip(ftype)
10445
      elif fid == 1:
10446
        if ftype == TType.STRUCT:
10447
          self.isex = CatalogServiceException()
10448
          self.isex.read(iprot)
10449
        else:
10450
          iprot.skip(ftype)
10451
      else:
10452
        iprot.skip(ftype)
10453
      iprot.readFieldEnd()
10454
    iprot.readStructEnd()
10455
 
10456
  def write(self, oprot):
10457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10459
      return
10460
    oprot.writeStructBegin('getComingSoon_result')
10461
    if self.success is not None:
10462
      oprot.writeFieldBegin('success', TType.LIST, 0)
10463
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10464
      for iter122 in self.success:
10465
        iter122.write(oprot)
5944 mandeep.dh 10466
      oprot.writeListEnd()
10467
      oprot.writeFieldEnd()
10468
    if self.isex is not None:
10469
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10470
      self.isex.write(oprot)
10471
      oprot.writeFieldEnd()
10472
    oprot.writeFieldStop()
10473
    oprot.writeStructEnd()
10474
 
10475
  def validate(self):
10476
    return
10477
 
10478
 
10479
  def __repr__(self):
10480
    L = ['%s=%r' % (key, value)
10481
      for key, value in self.__dict__.iteritems()]
10482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10483
 
10484
  def __eq__(self, other):
10485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10486
 
10487
  def __ne__(self, other):
10488
    return not (self == other)
10489
 
10490
class getComingSoonCatalogIds_args:
10491
  """
10492
  Attributes:
10493
   - beginIndex
10494
   - totalItems
10495
   - brand
10496
   - category
10497
  """
10498
 
10499
  thrift_spec = (
10500
    None, # 0
10501
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10502
    (2, TType.I64, 'totalItems', None, None, ), # 2
10503
    (3, TType.STRING, 'brand', None, None, ), # 3
10504
    (4, TType.I64, 'category', None, None, ), # 4
10505
  )
10506
 
10507
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
10508
    self.beginIndex = beginIndex
10509
    self.totalItems = totalItems
10510
    self.brand = brand
10511
    self.category = category
10512
 
10513
  def read(self, iprot):
10514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10516
      return
10517
    iprot.readStructBegin()
10518
    while True:
10519
      (fname, ftype, fid) = iprot.readFieldBegin()
10520
      if ftype == TType.STOP:
10521
        break
10522
      if fid == 1:
10523
        if ftype == TType.I64:
10524
          self.beginIndex = iprot.readI64();
10525
        else:
10526
          iprot.skip(ftype)
10527
      elif fid == 2:
10528
        if ftype == TType.I64:
10529
          self.totalItems = iprot.readI64();
10530
        else:
10531
          iprot.skip(ftype)
10532
      elif fid == 3:
10533
        if ftype == TType.STRING:
10534
          self.brand = iprot.readString();
10535
        else:
10536
          iprot.skip(ftype)
10537
      elif fid == 4:
10538
        if ftype == TType.I64:
10539
          self.category = iprot.readI64();
10540
        else:
10541
          iprot.skip(ftype)
10542
      else:
10543
        iprot.skip(ftype)
10544
      iprot.readFieldEnd()
10545
    iprot.readStructEnd()
10546
 
10547
  def write(self, oprot):
10548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10550
      return
10551
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
10552
    if self.beginIndex is not None:
10553
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10554
      oprot.writeI64(self.beginIndex)
10555
      oprot.writeFieldEnd()
10556
    if self.totalItems is not None:
10557
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10558
      oprot.writeI64(self.totalItems)
10559
      oprot.writeFieldEnd()
10560
    if self.brand is not None:
10561
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10562
      oprot.writeString(self.brand)
10563
      oprot.writeFieldEnd()
10564
    if self.category is not None:
10565
      oprot.writeFieldBegin('category', TType.I64, 4)
10566
      oprot.writeI64(self.category)
10567
      oprot.writeFieldEnd()
10568
    oprot.writeFieldStop()
10569
    oprot.writeStructEnd()
10570
 
10571
  def validate(self):
10572
    return
10573
 
10574
 
10575
  def __repr__(self):
10576
    L = ['%s=%r' % (key, value)
10577
      for key, value in self.__dict__.iteritems()]
10578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10579
 
10580
  def __eq__(self, other):
10581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10582
 
10583
  def __ne__(self, other):
10584
    return not (self == other)
10585
 
10586
class getComingSoonCatalogIds_result:
10587
  """
10588
  Attributes:
10589
   - success
10590
   - cex
10591
  """
10592
 
10593
  thrift_spec = (
10594
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10595
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10596
  )
10597
 
10598
  def __init__(self, success=None, cex=None,):
10599
    self.success = success
10600
    self.cex = cex
10601
 
10602
  def read(self, iprot):
10603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10605
      return
10606
    iprot.readStructBegin()
10607
    while True:
10608
      (fname, ftype, fid) = iprot.readFieldBegin()
10609
      if ftype == TType.STOP:
10610
        break
10611
      if fid == 0:
10612
        if ftype == TType.LIST:
10613
          self.success = []
8590 kshitij.so 10614
          (_etype126, _size123) = iprot.readListBegin()
10615
          for _i127 in xrange(_size123):
10616
            _elem128 = iprot.readI64();
10617
            self.success.append(_elem128)
5944 mandeep.dh 10618
          iprot.readListEnd()
10619
        else:
10620
          iprot.skip(ftype)
10621
      elif fid == 1:
10622
        if ftype == TType.STRUCT:
10623
          self.cex = CatalogServiceException()
10624
          self.cex.read(iprot)
10625
        else:
10626
          iprot.skip(ftype)
10627
      else:
10628
        iprot.skip(ftype)
10629
      iprot.readFieldEnd()
10630
    iprot.readStructEnd()
10631
 
10632
  def write(self, oprot):
10633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10635
      return
10636
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
10637
    if self.success is not None:
10638
      oprot.writeFieldBegin('success', TType.LIST, 0)
10639
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10640
      for iter129 in self.success:
10641
        oprot.writeI64(iter129)
5944 mandeep.dh 10642
      oprot.writeListEnd()
10643
      oprot.writeFieldEnd()
10644
    if self.cex is not None:
10645
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10646
      self.cex.write(oprot)
10647
      oprot.writeFieldEnd()
10648
    oprot.writeFieldStop()
10649
    oprot.writeStructEnd()
10650
 
10651
  def validate(self):
10652
    return
10653
 
10654
 
10655
  def __repr__(self):
10656
    L = ['%s=%r' % (key, value)
10657
      for key, value in self.__dict__.iteritems()]
10658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10659
 
10660
  def __eq__(self, other):
10661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10662
 
10663
  def __ne__(self, other):
10664
    return not (self == other)
10665
 
10666
class getComingSoonCount_args:
10667
 
10668
  thrift_spec = (
10669
  )
10670
 
10671
  def read(self, iprot):
10672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10674
      return
10675
    iprot.readStructBegin()
10676
    while True:
10677
      (fname, ftype, fid) = iprot.readFieldBegin()
10678
      if ftype == TType.STOP:
10679
        break
10680
      else:
10681
        iprot.skip(ftype)
10682
      iprot.readFieldEnd()
10683
    iprot.readStructEnd()
10684
 
10685
  def write(self, oprot):
10686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10688
      return
10689
    oprot.writeStructBegin('getComingSoonCount_args')
10690
    oprot.writeFieldStop()
10691
    oprot.writeStructEnd()
10692
 
10693
  def validate(self):
10694
    return
10695
 
10696
 
10697
  def __repr__(self):
10698
    L = ['%s=%r' % (key, value)
10699
      for key, value in self.__dict__.iteritems()]
10700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10701
 
10702
  def __eq__(self, other):
10703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10704
 
10705
  def __ne__(self, other):
10706
    return not (self == other)
10707
 
10708
class getComingSoonCount_result:
10709
  """
10710
  Attributes:
10711
   - success
10712
   - cex
10713
  """
10714
 
10715
  thrift_spec = (
10716
    (0, TType.I64, 'success', None, None, ), # 0
10717
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10718
  )
10719
 
10720
  def __init__(self, success=None, cex=None,):
10721
    self.success = success
10722
    self.cex = cex
10723
 
10724
  def read(self, iprot):
10725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10727
      return
10728
    iprot.readStructBegin()
10729
    while True:
10730
      (fname, ftype, fid) = iprot.readFieldBegin()
10731
      if ftype == TType.STOP:
10732
        break
10733
      if fid == 0:
10734
        if ftype == TType.I64:
10735
          self.success = iprot.readI64();
10736
        else:
10737
          iprot.skip(ftype)
10738
      elif fid == 1:
10739
        if ftype == TType.STRUCT:
10740
          self.cex = CatalogServiceException()
10741
          self.cex.read(iprot)
10742
        else:
10743
          iprot.skip(ftype)
10744
      else:
10745
        iprot.skip(ftype)
10746
      iprot.readFieldEnd()
10747
    iprot.readStructEnd()
10748
 
10749
  def write(self, oprot):
10750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10752
      return
10753
    oprot.writeStructBegin('getComingSoonCount_result')
10754
    if self.success is not None:
10755
      oprot.writeFieldBegin('success', TType.I64, 0)
10756
      oprot.writeI64(self.success)
10757
      oprot.writeFieldEnd()
10758
    if self.cex is not None:
10759
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10760
      self.cex.write(oprot)
10761
      oprot.writeFieldEnd()
10762
    oprot.writeFieldStop()
10763
    oprot.writeStructEnd()
10764
 
10765
  def validate(self):
10766
    return
10767
 
10768
 
10769
  def __repr__(self):
10770
    L = ['%s=%r' % (key, value)
10771
      for key, value in self.__dict__.iteritems()]
10772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10773
 
10774
  def __eq__(self, other):
10775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10776
 
10777
  def __ne__(self, other):
10778
    return not (self == other)
10779
 
10780
class getLatestArrivals_args:
10781
 
10782
  thrift_spec = (
10783
  )
10784
 
10785
  def read(self, iprot):
10786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10788
      return
10789
    iprot.readStructBegin()
10790
    while True:
10791
      (fname, ftype, fid) = iprot.readFieldBegin()
10792
      if ftype == TType.STOP:
10793
        break
10794
      else:
10795
        iprot.skip(ftype)
10796
      iprot.readFieldEnd()
10797
    iprot.readStructEnd()
10798
 
10799
  def write(self, oprot):
10800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10802
      return
10803
    oprot.writeStructBegin('getLatestArrivals_args')
10804
    oprot.writeFieldStop()
10805
    oprot.writeStructEnd()
10806
 
10807
  def validate(self):
10808
    return
10809
 
10810
 
10811
  def __repr__(self):
10812
    L = ['%s=%r' % (key, value)
10813
      for key, value in self.__dict__.iteritems()]
10814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10815
 
10816
  def __eq__(self, other):
10817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10818
 
10819
  def __ne__(self, other):
10820
    return not (self == other)
10821
 
10822
class getLatestArrivals_result:
10823
  """
10824
  Attributes:
10825
   - success
10826
   - isex
10827
  """
10828
 
10829
  thrift_spec = (
10830
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10831
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10832
  )
10833
 
10834
  def __init__(self, success=None, isex=None,):
10835
    self.success = success
10836
    self.isex = isex
10837
 
10838
  def read(self, iprot):
10839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10841
      return
10842
    iprot.readStructBegin()
10843
    while True:
10844
      (fname, ftype, fid) = iprot.readFieldBegin()
10845
      if ftype == TType.STOP:
10846
        break
10847
      if fid == 0:
10848
        if ftype == TType.LIST:
10849
          self.success = []
8590 kshitij.so 10850
          (_etype133, _size130) = iprot.readListBegin()
10851
          for _i134 in xrange(_size130):
10852
            _elem135 = Item()
10853
            _elem135.read(iprot)
10854
            self.success.append(_elem135)
5944 mandeep.dh 10855
          iprot.readListEnd()
10856
        else:
10857
          iprot.skip(ftype)
10858
      elif fid == 1:
10859
        if ftype == TType.STRUCT:
10860
          self.isex = CatalogServiceException()
10861
          self.isex.read(iprot)
10862
        else:
10863
          iprot.skip(ftype)
10864
      else:
10865
        iprot.skip(ftype)
10866
      iprot.readFieldEnd()
10867
    iprot.readStructEnd()
10868
 
10869
  def write(self, oprot):
10870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10872
      return
10873
    oprot.writeStructBegin('getLatestArrivals_result')
10874
    if self.success is not None:
10875
      oprot.writeFieldBegin('success', TType.LIST, 0)
10876
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10877
      for iter136 in self.success:
10878
        iter136.write(oprot)
5944 mandeep.dh 10879
      oprot.writeListEnd()
10880
      oprot.writeFieldEnd()
10881
    if self.isex is not None:
10882
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10883
      self.isex.write(oprot)
10884
      oprot.writeFieldEnd()
10885
    oprot.writeFieldStop()
10886
    oprot.writeStructEnd()
10887
 
10888
  def validate(self):
10889
    return
10890
 
10891
 
10892
  def __repr__(self):
10893
    L = ['%s=%r' % (key, value)
10894
      for key, value in self.__dict__.iteritems()]
10895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10896
 
10897
  def __eq__(self, other):
10898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10899
 
10900
  def __ne__(self, other):
10901
    return not (self == other)
10902
 
10903
class getLatestArrivalsCatalogIds_args:
10904
  """
10905
  Attributes:
10906
   - beginIndex
10907
   - totalItems
10908
   - brand
10909
   - categories
10910
  """
10911
 
10912
  thrift_spec = (
10913
    None, # 0
10914
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10915
    (2, TType.I64, 'totalItems', None, None, ), # 2
10916
    (3, TType.STRING, 'brand', None, None, ), # 3
10917
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
10918
  )
10919
 
10920
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
10921
    self.beginIndex = beginIndex
10922
    self.totalItems = totalItems
10923
    self.brand = brand
10924
    self.categories = categories
10925
 
10926
  def read(self, iprot):
10927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10929
      return
10930
    iprot.readStructBegin()
10931
    while True:
10932
      (fname, ftype, fid) = iprot.readFieldBegin()
10933
      if ftype == TType.STOP:
10934
        break
10935
      if fid == 1:
10936
        if ftype == TType.I64:
10937
          self.beginIndex = iprot.readI64();
10938
        else:
10939
          iprot.skip(ftype)
10940
      elif fid == 2:
10941
        if ftype == TType.I64:
10942
          self.totalItems = iprot.readI64();
10943
        else:
10944
          iprot.skip(ftype)
10945
      elif fid == 3:
10946
        if ftype == TType.STRING:
10947
          self.brand = iprot.readString();
10948
        else:
10949
          iprot.skip(ftype)
10950
      elif fid == 4:
10951
        if ftype == TType.LIST:
10952
          self.categories = []
8590 kshitij.so 10953
          (_etype140, _size137) = iprot.readListBegin()
10954
          for _i141 in xrange(_size137):
10955
            _elem142 = iprot.readI64();
10956
            self.categories.append(_elem142)
5944 mandeep.dh 10957
          iprot.readListEnd()
10958
        else:
10959
          iprot.skip(ftype)
10960
      else:
10961
        iprot.skip(ftype)
10962
      iprot.readFieldEnd()
10963
    iprot.readStructEnd()
10964
 
10965
  def write(self, oprot):
10966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10968
      return
10969
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
10970
    if self.beginIndex is not None:
10971
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10972
      oprot.writeI64(self.beginIndex)
10973
      oprot.writeFieldEnd()
10974
    if self.totalItems is not None:
10975
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10976
      oprot.writeI64(self.totalItems)
10977
      oprot.writeFieldEnd()
10978
    if self.brand is not None:
10979
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10980
      oprot.writeString(self.brand)
10981
      oprot.writeFieldEnd()
10982
    if self.categories is not None:
10983
      oprot.writeFieldBegin('categories', TType.LIST, 4)
10984
      oprot.writeListBegin(TType.I64, len(self.categories))
8590 kshitij.so 10985
      for iter143 in self.categories:
10986
        oprot.writeI64(iter143)
5944 mandeep.dh 10987
      oprot.writeListEnd()
10988
      oprot.writeFieldEnd()
10989
    oprot.writeFieldStop()
10990
    oprot.writeStructEnd()
10991
 
10992
  def validate(self):
10993
    return
10994
 
10995
 
10996
  def __repr__(self):
10997
    L = ['%s=%r' % (key, value)
10998
      for key, value in self.__dict__.iteritems()]
10999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11000
 
11001
  def __eq__(self, other):
11002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11003
 
11004
  def __ne__(self, other):
11005
    return not (self == other)
11006
 
11007
class getLatestArrivalsCatalogIds_result:
11008
  """
11009
  Attributes:
11010
   - success
11011
   - cex
11012
  """
11013
 
11014
  thrift_spec = (
11015
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11016
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11017
  )
11018
 
11019
  def __init__(self, success=None, cex=None,):
11020
    self.success = success
11021
    self.cex = cex
11022
 
11023
  def read(self, iprot):
11024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11026
      return
11027
    iprot.readStructBegin()
11028
    while True:
11029
      (fname, ftype, fid) = iprot.readFieldBegin()
11030
      if ftype == TType.STOP:
11031
        break
11032
      if fid == 0:
11033
        if ftype == TType.LIST:
11034
          self.success = []
8590 kshitij.so 11035
          (_etype147, _size144) = iprot.readListBegin()
11036
          for _i148 in xrange(_size144):
11037
            _elem149 = iprot.readI64();
11038
            self.success.append(_elem149)
5944 mandeep.dh 11039
          iprot.readListEnd()
11040
        else:
11041
          iprot.skip(ftype)
11042
      elif fid == 1:
11043
        if ftype == TType.STRUCT:
11044
          self.cex = CatalogServiceException()
11045
          self.cex.read(iprot)
11046
        else:
11047
          iprot.skip(ftype)
11048
      else:
11049
        iprot.skip(ftype)
11050
      iprot.readFieldEnd()
11051
    iprot.readStructEnd()
11052
 
11053
  def write(self, oprot):
11054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11056
      return
11057
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
11058
    if self.success is not None:
11059
      oprot.writeFieldBegin('success', TType.LIST, 0)
11060
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 11061
      for iter150 in self.success:
11062
        oprot.writeI64(iter150)
5944 mandeep.dh 11063
      oprot.writeListEnd()
11064
      oprot.writeFieldEnd()
11065
    if self.cex is not None:
11066
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11067
      self.cex.write(oprot)
11068
      oprot.writeFieldEnd()
11069
    oprot.writeFieldStop()
11070
    oprot.writeStructEnd()
11071
 
11072
  def validate(self):
11073
    return
11074
 
11075
 
11076
  def __repr__(self):
11077
    L = ['%s=%r' % (key, value)
11078
      for key, value in self.__dict__.iteritems()]
11079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11080
 
11081
  def __eq__(self, other):
11082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11083
 
11084
  def __ne__(self, other):
11085
    return not (self == other)
11086
 
11087
class getLatestArrivalsCount_args:
11088
 
11089
  thrift_spec = (
11090
  )
11091
 
11092
  def read(self, iprot):
11093
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11094
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11095
      return
11096
    iprot.readStructBegin()
11097
    while True:
11098
      (fname, ftype, fid) = iprot.readFieldBegin()
11099
      if ftype == TType.STOP:
11100
        break
11101
      else:
11102
        iprot.skip(ftype)
11103
      iprot.readFieldEnd()
11104
    iprot.readStructEnd()
11105
 
11106
  def write(self, oprot):
11107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11109
      return
11110
    oprot.writeStructBegin('getLatestArrivalsCount_args')
11111
    oprot.writeFieldStop()
11112
    oprot.writeStructEnd()
11113
 
11114
  def validate(self):
11115
    return
11116
 
11117
 
11118
  def __repr__(self):
11119
    L = ['%s=%r' % (key, value)
11120
      for key, value in self.__dict__.iteritems()]
11121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11122
 
11123
  def __eq__(self, other):
11124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11125
 
11126
  def __ne__(self, other):
11127
    return not (self == other)
11128
 
11129
class getLatestArrivalsCount_result:
11130
  """
11131
  Attributes:
11132
   - success
11133
   - cex
11134
  """
11135
 
11136
  thrift_spec = (
11137
    (0, TType.I64, 'success', None, None, ), # 0
11138
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11139
  )
11140
 
11141
  def __init__(self, success=None, cex=None,):
11142
    self.success = success
11143
    self.cex = cex
11144
 
11145
  def read(self, iprot):
11146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11148
      return
11149
    iprot.readStructBegin()
11150
    while True:
11151
      (fname, ftype, fid) = iprot.readFieldBegin()
11152
      if ftype == TType.STOP:
11153
        break
11154
      if fid == 0:
11155
        if ftype == TType.I64:
11156
          self.success = iprot.readI64();
11157
        else:
11158
          iprot.skip(ftype)
11159
      elif fid == 1:
11160
        if ftype == TType.STRUCT:
11161
          self.cex = CatalogServiceException()
11162
          self.cex.read(iprot)
11163
        else:
11164
          iprot.skip(ftype)
11165
      else:
11166
        iprot.skip(ftype)
11167
      iprot.readFieldEnd()
11168
    iprot.readStructEnd()
11169
 
11170
  def write(self, oprot):
11171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11173
      return
11174
    oprot.writeStructBegin('getLatestArrivalsCount_result')
11175
    if self.success is not None:
11176
      oprot.writeFieldBegin('success', TType.I64, 0)
11177
      oprot.writeI64(self.success)
11178
      oprot.writeFieldEnd()
11179
    if self.cex is not None:
11180
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11181
      self.cex.write(oprot)
11182
      oprot.writeFieldEnd()
11183
    oprot.writeFieldStop()
11184
    oprot.writeStructEnd()
11185
 
11186
  def validate(self):
11187
    return
11188
 
11189
 
11190
  def __repr__(self):
11191
    L = ['%s=%r' % (key, value)
11192
      for key, value in self.__dict__.iteritems()]
11193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11194
 
11195
  def __eq__(self, other):
11196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11197
 
11198
  def __ne__(self, other):
11199
    return not (self == other)
11200
 
11201
class generateNewEntityID_args:
11202
 
11203
  thrift_spec = (
11204
  )
11205
 
11206
  def read(self, iprot):
11207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11209
      return
11210
    iprot.readStructBegin()
11211
    while True:
11212
      (fname, ftype, fid) = iprot.readFieldBegin()
11213
      if ftype == TType.STOP:
11214
        break
11215
      else:
11216
        iprot.skip(ftype)
11217
      iprot.readFieldEnd()
11218
    iprot.readStructEnd()
11219
 
11220
  def write(self, oprot):
11221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11223
      return
11224
    oprot.writeStructBegin('generateNewEntityID_args')
11225
    oprot.writeFieldStop()
11226
    oprot.writeStructEnd()
11227
 
11228
  def validate(self):
11229
    return
11230
 
11231
 
11232
  def __repr__(self):
11233
    L = ['%s=%r' % (key, value)
11234
      for key, value in self.__dict__.iteritems()]
11235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11236
 
11237
  def __eq__(self, other):
11238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11239
 
11240
  def __ne__(self, other):
11241
    return not (self == other)
11242
 
11243
class generateNewEntityID_result:
11244
  """
11245
  Attributes:
11246
   - success
11247
  """
11248
 
11249
  thrift_spec = (
11250
    (0, TType.I64, 'success', None, None, ), # 0
11251
  )
11252
 
11253
  def __init__(self, success=None,):
11254
    self.success = success
11255
 
11256
  def read(self, iprot):
11257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11259
      return
11260
    iprot.readStructBegin()
11261
    while True:
11262
      (fname, ftype, fid) = iprot.readFieldBegin()
11263
      if ftype == TType.STOP:
11264
        break
11265
      if fid == 0:
11266
        if ftype == TType.I64:
11267
          self.success = iprot.readI64();
11268
        else:
11269
          iprot.skip(ftype)
11270
      else:
11271
        iprot.skip(ftype)
11272
      iprot.readFieldEnd()
11273
    iprot.readStructEnd()
11274
 
11275
  def write(self, oprot):
11276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11278
      return
11279
    oprot.writeStructBegin('generateNewEntityID_result')
11280
    if self.success is not None:
11281
      oprot.writeFieldBegin('success', TType.I64, 0)
11282
      oprot.writeI64(self.success)
11283
      oprot.writeFieldEnd()
11284
    oprot.writeFieldStop()
11285
    oprot.writeStructEnd()
11286
 
11287
  def validate(self):
11288
    return
11289
 
11290
 
11291
  def __repr__(self):
11292
    L = ['%s=%r' % (key, value)
11293
      for key, value in self.__dict__.iteritems()]
11294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11295
 
11296
  def __eq__(self, other):
11297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11298
 
11299
  def __ne__(self, other):
11300
    return not (self == other)
11301
 
11302
class addCategory_args:
11303
  """
11304
  Attributes:
11305
   - category
11306
  """
11307
 
11308
  thrift_spec = (
11309
    None, # 0
11310
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
11311
  )
11312
 
11313
  def __init__(self, category=None,):
11314
    self.category = category
11315
 
11316
  def read(self, iprot):
11317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11319
      return
11320
    iprot.readStructBegin()
11321
    while True:
11322
      (fname, ftype, fid) = iprot.readFieldBegin()
11323
      if ftype == TType.STOP:
11324
        break
11325
      if fid == 1:
11326
        if ftype == TType.STRUCT:
11327
          self.category = Category()
11328
          self.category.read(iprot)
11329
        else:
11330
          iprot.skip(ftype)
11331
      else:
11332
        iprot.skip(ftype)
11333
      iprot.readFieldEnd()
11334
    iprot.readStructEnd()
11335
 
11336
  def write(self, oprot):
11337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11339
      return
11340
    oprot.writeStructBegin('addCategory_args')
11341
    if self.category is not None:
11342
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
11343
      self.category.write(oprot)
11344
      oprot.writeFieldEnd()
11345
    oprot.writeFieldStop()
11346
    oprot.writeStructEnd()
11347
 
11348
  def validate(self):
11349
    return
11350
 
11351
 
11352
  def __repr__(self):
11353
    L = ['%s=%r' % (key, value)
11354
      for key, value in self.__dict__.iteritems()]
11355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11356
 
11357
  def __eq__(self, other):
11358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11359
 
11360
  def __ne__(self, other):
11361
    return not (self == other)
11362
 
11363
class addCategory_result:
11364
  """
11365
  Attributes:
11366
   - success
11367
  """
11368
 
11369
  thrift_spec = (
11370
    (0, TType.BOOL, 'success', None, None, ), # 0
11371
  )
11372
 
11373
  def __init__(self, success=None,):
11374
    self.success = success
11375
 
11376
  def read(self, iprot):
11377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11379
      return
11380
    iprot.readStructBegin()
11381
    while True:
11382
      (fname, ftype, fid) = iprot.readFieldBegin()
11383
      if ftype == TType.STOP:
11384
        break
11385
      if fid == 0:
11386
        if ftype == TType.BOOL:
11387
          self.success = iprot.readBool();
11388
        else:
11389
          iprot.skip(ftype)
11390
      else:
11391
        iprot.skip(ftype)
11392
      iprot.readFieldEnd()
11393
    iprot.readStructEnd()
11394
 
11395
  def write(self, oprot):
11396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11398
      return
11399
    oprot.writeStructBegin('addCategory_result')
11400
    if self.success is not None:
11401
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11402
      oprot.writeBool(self.success)
11403
      oprot.writeFieldEnd()
11404
    oprot.writeFieldStop()
11405
    oprot.writeStructEnd()
11406
 
11407
  def validate(self):
11408
    return
11409
 
11410
 
11411
  def __repr__(self):
11412
    L = ['%s=%r' % (key, value)
11413
      for key, value in self.__dict__.iteritems()]
11414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11415
 
11416
  def __eq__(self, other):
11417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11418
 
11419
  def __ne__(self, other):
11420
    return not (self == other)
11421
 
11422
class getCategory_args:
11423
  """
11424
  Attributes:
11425
   - id
11426
  """
11427
 
11428
  thrift_spec = (
11429
    None, # 0
11430
    (1, TType.I64, 'id', None, None, ), # 1
11431
  )
11432
 
11433
  def __init__(self, id=None,):
11434
    self.id = id
11435
 
11436
  def read(self, iprot):
11437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11439
      return
11440
    iprot.readStructBegin()
11441
    while True:
11442
      (fname, ftype, fid) = iprot.readFieldBegin()
11443
      if ftype == TType.STOP:
11444
        break
11445
      if fid == 1:
11446
        if ftype == TType.I64:
11447
          self.id = iprot.readI64();
11448
        else:
11449
          iprot.skip(ftype)
11450
      else:
11451
        iprot.skip(ftype)
11452
      iprot.readFieldEnd()
11453
    iprot.readStructEnd()
11454
 
11455
  def write(self, oprot):
11456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11458
      return
11459
    oprot.writeStructBegin('getCategory_args')
11460
    if self.id is not None:
11461
      oprot.writeFieldBegin('id', TType.I64, 1)
11462
      oprot.writeI64(self.id)
11463
      oprot.writeFieldEnd()
11464
    oprot.writeFieldStop()
11465
    oprot.writeStructEnd()
11466
 
11467
  def validate(self):
11468
    return
11469
 
11470
 
11471
  def __repr__(self):
11472
    L = ['%s=%r' % (key, value)
11473
      for key, value in self.__dict__.iteritems()]
11474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11475
 
11476
  def __eq__(self, other):
11477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11478
 
11479
  def __ne__(self, other):
11480
    return not (self == other)
11481
 
11482
class getCategory_result:
11483
  """
11484
  Attributes:
11485
   - success
11486
  """
11487
 
11488
  thrift_spec = (
11489
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
11490
  )
11491
 
11492
  def __init__(self, success=None,):
11493
    self.success = success
11494
 
11495
  def read(self, iprot):
11496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11498
      return
11499
    iprot.readStructBegin()
11500
    while True:
11501
      (fname, ftype, fid) = iprot.readFieldBegin()
11502
      if ftype == TType.STOP:
11503
        break
11504
      if fid == 0:
11505
        if ftype == TType.STRUCT:
11506
          self.success = Category()
11507
          self.success.read(iprot)
11508
        else:
11509
          iprot.skip(ftype)
11510
      else:
11511
        iprot.skip(ftype)
11512
      iprot.readFieldEnd()
11513
    iprot.readStructEnd()
11514
 
11515
  def write(self, oprot):
11516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11518
      return
11519
    oprot.writeStructBegin('getCategory_result')
11520
    if self.success is not None:
11521
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11522
      self.success.write(oprot)
11523
      oprot.writeFieldEnd()
11524
    oprot.writeFieldStop()
11525
    oprot.writeStructEnd()
11526
 
11527
  def validate(self):
11528
    return
11529
 
11530
 
11531
  def __repr__(self):
11532
    L = ['%s=%r' % (key, value)
11533
      for key, value in self.__dict__.iteritems()]
11534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11535
 
11536
  def __eq__(self, other):
11537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11538
 
11539
  def __ne__(self, other):
11540
    return not (self == other)
11541
 
11542
class getAllCategories_args:
11543
 
11544
  thrift_spec = (
11545
  )
11546
 
11547
  def read(self, iprot):
11548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11550
      return
11551
    iprot.readStructBegin()
11552
    while True:
11553
      (fname, ftype, fid) = iprot.readFieldBegin()
11554
      if ftype == TType.STOP:
11555
        break
11556
      else:
11557
        iprot.skip(ftype)
11558
      iprot.readFieldEnd()
11559
    iprot.readStructEnd()
11560
 
11561
  def write(self, oprot):
11562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11564
      return
11565
    oprot.writeStructBegin('getAllCategories_args')
11566
    oprot.writeFieldStop()
11567
    oprot.writeStructEnd()
11568
 
11569
  def validate(self):
11570
    return
11571
 
11572
 
11573
  def __repr__(self):
11574
    L = ['%s=%r' % (key, value)
11575
      for key, value in self.__dict__.iteritems()]
11576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11577
 
11578
  def __eq__(self, other):
11579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11580
 
11581
  def __ne__(self, other):
11582
    return not (self == other)
11583
 
11584
class getAllCategories_result:
11585
  """
11586
  Attributes:
11587
   - success
11588
  """
11589
 
11590
  thrift_spec = (
11591
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
11592
  )
11593
 
11594
  def __init__(self, success=None,):
11595
    self.success = success
11596
 
11597
  def read(self, iprot):
11598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11600
      return
11601
    iprot.readStructBegin()
11602
    while True:
11603
      (fname, ftype, fid) = iprot.readFieldBegin()
11604
      if ftype == TType.STOP:
11605
        break
11606
      if fid == 0:
11607
        if ftype == TType.LIST:
11608
          self.success = []
8590 kshitij.so 11609
          (_etype154, _size151) = iprot.readListBegin()
11610
          for _i155 in xrange(_size151):
11611
            _elem156 = Category()
11612
            _elem156.read(iprot)
11613
            self.success.append(_elem156)
5944 mandeep.dh 11614
          iprot.readListEnd()
11615
        else:
11616
          iprot.skip(ftype)
11617
      else:
11618
        iprot.skip(ftype)
11619
      iprot.readFieldEnd()
11620
    iprot.readStructEnd()
11621
 
11622
  def write(self, oprot):
11623
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11624
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11625
      return
11626
    oprot.writeStructBegin('getAllCategories_result')
11627
    if self.success is not None:
11628
      oprot.writeFieldBegin('success', TType.LIST, 0)
11629
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11630
      for iter157 in self.success:
11631
        iter157.write(oprot)
5944 mandeep.dh 11632
      oprot.writeListEnd()
11633
      oprot.writeFieldEnd()
11634
    oprot.writeFieldStop()
11635
    oprot.writeStructEnd()
11636
 
11637
  def validate(self):
11638
    return
11639
 
11640
 
11641
  def __repr__(self):
11642
    L = ['%s=%r' % (key, value)
11643
      for key, value in self.__dict__.iteritems()]
11644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11645
 
11646
  def __eq__(self, other):
11647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11648
 
11649
  def __ne__(self, other):
11650
    return not (self == other)
11651
 
11652
class getAllSimilarItems_args:
11653
  """
11654
  Attributes:
11655
   - itemId
11656
  """
11657
 
11658
  thrift_spec = (
11659
    None, # 0
11660
    (1, TType.I64, 'itemId', None, None, ), # 1
11661
  )
11662
 
11663
  def __init__(self, itemId=None,):
11664
    self.itemId = itemId
11665
 
11666
  def read(self, iprot):
11667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11669
      return
11670
    iprot.readStructBegin()
11671
    while True:
11672
      (fname, ftype, fid) = iprot.readFieldBegin()
11673
      if ftype == TType.STOP:
11674
        break
11675
      if fid == 1:
11676
        if ftype == TType.I64:
11677
          self.itemId = iprot.readI64();
11678
        else:
11679
          iprot.skip(ftype)
11680
      else:
11681
        iprot.skip(ftype)
11682
      iprot.readFieldEnd()
11683
    iprot.readStructEnd()
11684
 
11685
  def write(self, oprot):
11686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11688
      return
11689
    oprot.writeStructBegin('getAllSimilarItems_args')
11690
    if self.itemId is not None:
11691
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11692
      oprot.writeI64(self.itemId)
11693
      oprot.writeFieldEnd()
11694
    oprot.writeFieldStop()
11695
    oprot.writeStructEnd()
11696
 
11697
  def validate(self):
11698
    return
11699
 
11700
 
11701
  def __repr__(self):
11702
    L = ['%s=%r' % (key, value)
11703
      for key, value in self.__dict__.iteritems()]
11704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11705
 
11706
  def __eq__(self, other):
11707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11708
 
11709
  def __ne__(self, other):
11710
    return not (self == other)
11711
 
11712
class getAllSimilarItems_result:
11713
  """
11714
  Attributes:
11715
   - success
11716
  """
11717
 
11718
  thrift_spec = (
11719
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11720
  )
11721
 
11722
  def __init__(self, success=None,):
11723
    self.success = success
11724
 
11725
  def read(self, iprot):
11726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11728
      return
11729
    iprot.readStructBegin()
11730
    while True:
11731
      (fname, ftype, fid) = iprot.readFieldBegin()
11732
      if ftype == TType.STOP:
11733
        break
11734
      if fid == 0:
11735
        if ftype == TType.LIST:
11736
          self.success = []
8590 kshitij.so 11737
          (_etype161, _size158) = iprot.readListBegin()
11738
          for _i162 in xrange(_size158):
11739
            _elem163 = Item()
11740
            _elem163.read(iprot)
11741
            self.success.append(_elem163)
5944 mandeep.dh 11742
          iprot.readListEnd()
11743
        else:
11744
          iprot.skip(ftype)
11745
      else:
11746
        iprot.skip(ftype)
11747
      iprot.readFieldEnd()
11748
    iprot.readStructEnd()
11749
 
11750
  def write(self, oprot):
11751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11753
      return
11754
    oprot.writeStructBegin('getAllSimilarItems_result')
11755
    if self.success is not None:
11756
      oprot.writeFieldBegin('success', TType.LIST, 0)
11757
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11758
      for iter164 in self.success:
11759
        iter164.write(oprot)
5944 mandeep.dh 11760
      oprot.writeListEnd()
11761
      oprot.writeFieldEnd()
11762
    oprot.writeFieldStop()
11763
    oprot.writeStructEnd()
11764
 
11765
  def validate(self):
11766
    return
11767
 
11768
 
11769
  def __repr__(self):
11770
    L = ['%s=%r' % (key, value)
11771
      for key, value in self.__dict__.iteritems()]
11772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11773
 
11774
  def __eq__(self, other):
11775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11776
 
11777
  def __ne__(self, other):
11778
    return not (self == other)
11779
 
11780
class addSimilarItem_args:
11781
  """
11782
  Attributes:
11783
   - itemId
11784
   - catalogItemId
11785
  """
11786
 
11787
  thrift_spec = (
11788
    None, # 0
11789
    (1, TType.I64, 'itemId', None, None, ), # 1
11790
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
11791
  )
11792
 
11793
  def __init__(self, itemId=None, catalogItemId=None,):
11794
    self.itemId = itemId
11795
    self.catalogItemId = catalogItemId
11796
 
11797
  def read(self, iprot):
11798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11800
      return
11801
    iprot.readStructBegin()
11802
    while True:
11803
      (fname, ftype, fid) = iprot.readFieldBegin()
11804
      if ftype == TType.STOP:
11805
        break
11806
      if fid == 1:
11807
        if ftype == TType.I64:
11808
          self.itemId = iprot.readI64();
11809
        else:
11810
          iprot.skip(ftype)
11811
      elif fid == 2:
11812
        if ftype == TType.I64:
11813
          self.catalogItemId = iprot.readI64();
11814
        else:
11815
          iprot.skip(ftype)
11816
      else:
11817
        iprot.skip(ftype)
11818
      iprot.readFieldEnd()
11819
    iprot.readStructEnd()
11820
 
11821
  def write(self, oprot):
11822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11824
      return
11825
    oprot.writeStructBegin('addSimilarItem_args')
11826
    if self.itemId is not None:
11827
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11828
      oprot.writeI64(self.itemId)
11829
      oprot.writeFieldEnd()
11830
    if self.catalogItemId is not None:
11831
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
11832
      oprot.writeI64(self.catalogItemId)
11833
      oprot.writeFieldEnd()
11834
    oprot.writeFieldStop()
11835
    oprot.writeStructEnd()
11836
 
11837
  def validate(self):
11838
    return
11839
 
11840
 
11841
  def __repr__(self):
11842
    L = ['%s=%r' % (key, value)
11843
      for key, value in self.__dict__.iteritems()]
11844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11845
 
11846
  def __eq__(self, other):
11847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11848
 
11849
  def __ne__(self, other):
11850
    return not (self == other)
11851
 
11852
class addSimilarItem_result:
11853
  """
11854
  Attributes:
11855
   - success
11856
   - cex
11857
  """
11858
 
11859
  thrift_spec = (
11860
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
11861
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11862
  )
11863
 
11864
  def __init__(self, success=None, cex=None,):
11865
    self.success = success
11866
    self.cex = cex
11867
 
11868
  def read(self, iprot):
11869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11871
      return
11872
    iprot.readStructBegin()
11873
    while True:
11874
      (fname, ftype, fid) = iprot.readFieldBegin()
11875
      if ftype == TType.STOP:
11876
        break
11877
      if fid == 0:
11878
        if ftype == TType.STRUCT:
11879
          self.success = Item()
11880
          self.success.read(iprot)
11881
        else:
11882
          iprot.skip(ftype)
11883
      elif fid == 1:
11884
        if ftype == TType.STRUCT:
11885
          self.cex = CatalogServiceException()
11886
          self.cex.read(iprot)
11887
        else:
11888
          iprot.skip(ftype)
11889
      else:
11890
        iprot.skip(ftype)
11891
      iprot.readFieldEnd()
11892
    iprot.readStructEnd()
11893
 
11894
  def write(self, oprot):
11895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11897
      return
11898
    oprot.writeStructBegin('addSimilarItem_result')
11899
    if self.success is not None:
11900
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11901
      self.success.write(oprot)
11902
      oprot.writeFieldEnd()
11903
    if self.cex is not None:
11904
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11905
      self.cex.write(oprot)
11906
      oprot.writeFieldEnd()
11907
    oprot.writeFieldStop()
11908
    oprot.writeStructEnd()
11909
 
11910
  def validate(self):
11911
    return
11912
 
11913
 
11914
  def __repr__(self):
11915
    L = ['%s=%r' % (key, value)
11916
      for key, value in self.__dict__.iteritems()]
11917
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11918
 
11919
  def __eq__(self, other):
11920
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11921
 
11922
  def __ne__(self, other):
11923
    return not (self == other)
11924
 
6512 kshitij.so 11925
class addTag_args:
11926
  """
11927
  Attributes:
11928
   - displayName
11929
   - itemId
11930
  """
11931
 
11932
  thrift_spec = (
11933
    None, # 0
11934
    (1, TType.STRING, 'displayName', None, None, ), # 1
11935
    (2, TType.I64, 'itemId', None, None, ), # 2
11936
  )
11937
 
11938
  def __init__(self, displayName=None, itemId=None,):
11939
    self.displayName = displayName
11940
    self.itemId = itemId
11941
 
11942
  def read(self, iprot):
11943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11945
      return
11946
    iprot.readStructBegin()
11947
    while True:
11948
      (fname, ftype, fid) = iprot.readFieldBegin()
11949
      if ftype == TType.STOP:
11950
        break
11951
      if fid == 1:
11952
        if ftype == TType.STRING:
11953
          self.displayName = iprot.readString();
11954
        else:
11955
          iprot.skip(ftype)
11956
      elif fid == 2:
11957
        if ftype == TType.I64:
11958
          self.itemId = iprot.readI64();
11959
        else:
11960
          iprot.skip(ftype)
11961
      else:
11962
        iprot.skip(ftype)
11963
      iprot.readFieldEnd()
11964
    iprot.readStructEnd()
11965
 
11966
  def write(self, oprot):
11967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11969
      return
11970
    oprot.writeStructBegin('addTag_args')
11971
    if self.displayName is not None:
11972
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
11973
      oprot.writeString(self.displayName)
11974
      oprot.writeFieldEnd()
11975
    if self.itemId is not None:
11976
      oprot.writeFieldBegin('itemId', TType.I64, 2)
11977
      oprot.writeI64(self.itemId)
11978
      oprot.writeFieldEnd()
11979
    oprot.writeFieldStop()
11980
    oprot.writeStructEnd()
11981
 
11982
  def validate(self):
11983
    return
11984
 
11985
 
11986
  def __repr__(self):
11987
    L = ['%s=%r' % (key, value)
11988
      for key, value in self.__dict__.iteritems()]
11989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11990
 
11991
  def __eq__(self, other):
11992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11993
 
11994
  def __ne__(self, other):
11995
    return not (self == other)
11996
 
11997
class addTag_result:
11998
  """
11999
  Attributes:
12000
   - success
12001
  """
12002
 
12003
  thrift_spec = (
12004
    (0, TType.BOOL, 'success', None, None, ), # 0
12005
  )
12006
 
12007
  def __init__(self, success=None,):
12008
    self.success = success
12009
 
12010
  def read(self, iprot):
12011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12013
      return
12014
    iprot.readStructBegin()
12015
    while True:
12016
      (fname, ftype, fid) = iprot.readFieldBegin()
12017
      if ftype == TType.STOP:
12018
        break
12019
      if fid == 0:
12020
        if ftype == TType.BOOL:
12021
          self.success = iprot.readBool();
12022
        else:
12023
          iprot.skip(ftype)
12024
      else:
12025
        iprot.skip(ftype)
12026
      iprot.readFieldEnd()
12027
    iprot.readStructEnd()
12028
 
12029
  def write(self, oprot):
12030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12032
      return
12033
    oprot.writeStructBegin('addTag_result')
12034
    if self.success is not None:
12035
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12036
      oprot.writeBool(self.success)
12037
      oprot.writeFieldEnd()
12038
    oprot.writeFieldStop()
12039
    oprot.writeStructEnd()
12040
 
12041
  def validate(self):
12042
    return
12043
 
12044
 
12045
  def __repr__(self):
12046
    L = ['%s=%r' % (key, value)
12047
      for key, value in self.__dict__.iteritems()]
12048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12049
 
12050
  def __eq__(self, other):
12051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12052
 
12053
  def __ne__(self, other):
12054
    return not (self == other)
12055
 
12056
class deleteEntityTag_args:
12057
  """
12058
  Attributes:
12059
   - displayName
12060
   - itemId
12061
  """
12062
 
12063
  thrift_spec = (
12064
    None, # 0
12065
    (1, TType.STRING, 'displayName', None, None, ), # 1
12066
    (2, TType.I64, 'itemId', None, None, ), # 2
12067
  )
12068
 
12069
  def __init__(self, displayName=None, itemId=None,):
12070
    self.displayName = displayName
12071
    self.itemId = itemId
12072
 
12073
  def read(self, iprot):
12074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12076
      return
12077
    iprot.readStructBegin()
12078
    while True:
12079
      (fname, ftype, fid) = iprot.readFieldBegin()
12080
      if ftype == TType.STOP:
12081
        break
12082
      if fid == 1:
12083
        if ftype == TType.STRING:
12084
          self.displayName = iprot.readString();
12085
        else:
12086
          iprot.skip(ftype)
12087
      elif fid == 2:
12088
        if ftype == TType.I64:
12089
          self.itemId = iprot.readI64();
12090
        else:
12091
          iprot.skip(ftype)
12092
      else:
12093
        iprot.skip(ftype)
12094
      iprot.readFieldEnd()
12095
    iprot.readStructEnd()
12096
 
12097
  def write(self, oprot):
12098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12100
      return
12101
    oprot.writeStructBegin('deleteEntityTag_args')
12102
    if self.displayName is not None:
12103
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12104
      oprot.writeString(self.displayName)
12105
      oprot.writeFieldEnd()
12106
    if self.itemId is not None:
12107
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12108
      oprot.writeI64(self.itemId)
12109
      oprot.writeFieldEnd()
12110
    oprot.writeFieldStop()
12111
    oprot.writeStructEnd()
12112
 
12113
  def validate(self):
12114
    return
12115
 
12116
 
12117
  def __repr__(self):
12118
    L = ['%s=%r' % (key, value)
12119
      for key, value in self.__dict__.iteritems()]
12120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12121
 
12122
  def __eq__(self, other):
12123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12124
 
12125
  def __ne__(self, other):
12126
    return not (self == other)
12127
 
12128
class deleteEntityTag_result:
12129
  """
12130
  Attributes:
12131
   - success
12132
  """
12133
 
12134
  thrift_spec = (
12135
    (0, TType.BOOL, 'success', None, None, ), # 0
12136
  )
12137
 
12138
  def __init__(self, success=None,):
12139
    self.success = success
12140
 
12141
  def read(self, iprot):
12142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12144
      return
12145
    iprot.readStructBegin()
12146
    while True:
12147
      (fname, ftype, fid) = iprot.readFieldBegin()
12148
      if ftype == TType.STOP:
12149
        break
12150
      if fid == 0:
12151
        if ftype == TType.BOOL:
12152
          self.success = iprot.readBool();
12153
        else:
12154
          iprot.skip(ftype)
12155
      else:
12156
        iprot.skip(ftype)
12157
      iprot.readFieldEnd()
12158
    iprot.readStructEnd()
12159
 
12160
  def write(self, oprot):
12161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12163
      return
12164
    oprot.writeStructBegin('deleteEntityTag_result')
12165
    if self.success is not None:
12166
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12167
      oprot.writeBool(self.success)
12168
      oprot.writeFieldEnd()
12169
    oprot.writeFieldStop()
12170
    oprot.writeStructEnd()
12171
 
12172
  def validate(self):
12173
    return
12174
 
12175
 
12176
  def __repr__(self):
12177
    L = ['%s=%r' % (key, value)
12178
      for key, value in self.__dict__.iteritems()]
12179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12180
 
12181
  def __eq__(self, other):
12182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12183
 
12184
  def __ne__(self, other):
12185
    return not (self == other)
12186
 
12187
class deleteTag_args:
12188
  """
12189
  Attributes:
12190
   - displayName
12191
  """
12192
 
12193
  thrift_spec = (
12194
    None, # 0
12195
    (1, TType.STRING, 'displayName', None, None, ), # 1
12196
  )
12197
 
12198
  def __init__(self, displayName=None,):
12199
    self.displayName = displayName
12200
 
12201
  def read(self, iprot):
12202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12204
      return
12205
    iprot.readStructBegin()
12206
    while True:
12207
      (fname, ftype, fid) = iprot.readFieldBegin()
12208
      if ftype == TType.STOP:
12209
        break
12210
      if fid == 1:
12211
        if ftype == TType.STRING:
12212
          self.displayName = iprot.readString();
12213
        else:
12214
          iprot.skip(ftype)
12215
      else:
12216
        iprot.skip(ftype)
12217
      iprot.readFieldEnd()
12218
    iprot.readStructEnd()
12219
 
12220
  def write(self, oprot):
12221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12223
      return
12224
    oprot.writeStructBegin('deleteTag_args')
12225
    if self.displayName is not None:
12226
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12227
      oprot.writeString(self.displayName)
12228
      oprot.writeFieldEnd()
12229
    oprot.writeFieldStop()
12230
    oprot.writeStructEnd()
12231
 
12232
  def validate(self):
12233
    return
12234
 
12235
 
12236
  def __repr__(self):
12237
    L = ['%s=%r' % (key, value)
12238
      for key, value in self.__dict__.iteritems()]
12239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12240
 
12241
  def __eq__(self, other):
12242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12243
 
12244
  def __ne__(self, other):
12245
    return not (self == other)
12246
 
12247
class deleteTag_result:
12248
  """
12249
  Attributes:
12250
   - success
12251
  """
12252
 
12253
  thrift_spec = (
12254
    (0, TType.BOOL, 'success', None, None, ), # 0
12255
  )
12256
 
12257
  def __init__(self, success=None,):
12258
    self.success = success
12259
 
12260
  def read(self, iprot):
12261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12263
      return
12264
    iprot.readStructBegin()
12265
    while True:
12266
      (fname, ftype, fid) = iprot.readFieldBegin()
12267
      if ftype == TType.STOP:
12268
        break
12269
      if fid == 0:
12270
        if ftype == TType.BOOL:
12271
          self.success = iprot.readBool();
12272
        else:
12273
          iprot.skip(ftype)
12274
      else:
12275
        iprot.skip(ftype)
12276
      iprot.readFieldEnd()
12277
    iprot.readStructEnd()
12278
 
12279
  def write(self, oprot):
12280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12282
      return
12283
    oprot.writeStructBegin('deleteTag_result')
12284
    if self.success is not None:
12285
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12286
      oprot.writeBool(self.success)
12287
      oprot.writeFieldEnd()
12288
    oprot.writeFieldStop()
12289
    oprot.writeStructEnd()
12290
 
12291
  def validate(self):
12292
    return
12293
 
12294
 
12295
  def __repr__(self):
12296
    L = ['%s=%r' % (key, value)
12297
      for key, value in self.__dict__.iteritems()]
12298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12299
 
12300
  def __eq__(self, other):
12301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12302
 
12303
  def __ne__(self, other):
12304
    return not (self == other)
12305
 
12306
class getAllTags_args:
12307
 
12308
  thrift_spec = (
12309
  )
12310
 
12311
  def read(self, iprot):
12312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12314
      return
12315
    iprot.readStructBegin()
12316
    while True:
12317
      (fname, ftype, fid) = iprot.readFieldBegin()
12318
      if ftype == TType.STOP:
12319
        break
12320
      else:
12321
        iprot.skip(ftype)
12322
      iprot.readFieldEnd()
12323
    iprot.readStructEnd()
12324
 
12325
  def write(self, oprot):
12326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12328
      return
12329
    oprot.writeStructBegin('getAllTags_args')
12330
    oprot.writeFieldStop()
12331
    oprot.writeStructEnd()
12332
 
12333
  def validate(self):
12334
    return
12335
 
12336
 
12337
  def __repr__(self):
12338
    L = ['%s=%r' % (key, value)
12339
      for key, value in self.__dict__.iteritems()]
12340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12341
 
12342
  def __eq__(self, other):
12343
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12344
 
12345
  def __ne__(self, other):
12346
    return not (self == other)
12347
 
12348
class getAllTags_result:
12349
  """
12350
  Attributes:
12351
   - success
12352
  """
12353
 
12354
  thrift_spec = (
12355
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12356
  )
12357
 
12358
  def __init__(self, success=None,):
12359
    self.success = success
12360
 
12361
  def read(self, iprot):
12362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12364
      return
12365
    iprot.readStructBegin()
12366
    while True:
12367
      (fname, ftype, fid) = iprot.readFieldBegin()
12368
      if ftype == TType.STOP:
12369
        break
12370
      if fid == 0:
12371
        if ftype == TType.LIST:
12372
          self.success = []
8590 kshitij.so 12373
          (_etype168, _size165) = iprot.readListBegin()
12374
          for _i169 in xrange(_size165):
12375
            _elem170 = iprot.readString();
12376
            self.success.append(_elem170)
6512 kshitij.so 12377
          iprot.readListEnd()
12378
        else:
12379
          iprot.skip(ftype)
12380
      else:
12381
        iprot.skip(ftype)
12382
      iprot.readFieldEnd()
12383
    iprot.readStructEnd()
12384
 
12385
  def write(self, oprot):
12386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12388
      return
12389
    oprot.writeStructBegin('getAllTags_result')
12390
    if self.success is not None:
12391
      oprot.writeFieldBegin('success', TType.LIST, 0)
12392
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 12393
      for iter171 in self.success:
12394
        oprot.writeString(iter171)
6512 kshitij.so 12395
      oprot.writeListEnd()
12396
      oprot.writeFieldEnd()
12397
    oprot.writeFieldStop()
12398
    oprot.writeStructEnd()
12399
 
12400
  def validate(self):
12401
    return
12402
 
12403
 
12404
  def __repr__(self):
12405
    L = ['%s=%r' % (key, value)
12406
      for key, value in self.__dict__.iteritems()]
12407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12408
 
12409
  def __eq__(self, other):
12410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12411
 
12412
  def __ne__(self, other):
12413
    return not (self == other)
12414
 
12415
class getAllEntitiesByTagName_args:
12416
  """
12417
  Attributes:
12418
   - displayName
12419
  """
12420
 
12421
  thrift_spec = (
12422
    None, # 0
12423
    (1, TType.STRING, 'displayName', None, None, ), # 1
12424
  )
12425
 
12426
  def __init__(self, displayName=None,):
12427
    self.displayName = displayName
12428
 
12429
  def read(self, iprot):
12430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12432
      return
12433
    iprot.readStructBegin()
12434
    while True:
12435
      (fname, ftype, fid) = iprot.readFieldBegin()
12436
      if ftype == TType.STOP:
12437
        break
12438
      if fid == 1:
12439
        if ftype == TType.STRING:
12440
          self.displayName = iprot.readString();
12441
        else:
12442
          iprot.skip(ftype)
12443
      else:
12444
        iprot.skip(ftype)
12445
      iprot.readFieldEnd()
12446
    iprot.readStructEnd()
12447
 
12448
  def write(self, oprot):
12449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12451
      return
12452
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
12453
    if self.displayName is not None:
12454
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12455
      oprot.writeString(self.displayName)
12456
      oprot.writeFieldEnd()
12457
    oprot.writeFieldStop()
12458
    oprot.writeStructEnd()
12459
 
12460
  def validate(self):
12461
    return
12462
 
12463
 
12464
  def __repr__(self):
12465
    L = ['%s=%r' % (key, value)
12466
      for key, value in self.__dict__.iteritems()]
12467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12468
 
12469
  def __eq__(self, other):
12470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12471
 
12472
  def __ne__(self, other):
12473
    return not (self == other)
12474
 
12475
class getAllEntitiesByTagName_result:
12476
  """
12477
  Attributes:
12478
   - success
12479
  """
12480
 
12481
  thrift_spec = (
12482
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12483
  )
12484
 
12485
  def __init__(self, success=None,):
12486
    self.success = success
12487
 
12488
  def read(self, iprot):
12489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12491
      return
12492
    iprot.readStructBegin()
12493
    while True:
12494
      (fname, ftype, fid) = iprot.readFieldBegin()
12495
      if ftype == TType.STOP:
12496
        break
12497
      if fid == 0:
12498
        if ftype == TType.LIST:
12499
          self.success = []
8590 kshitij.so 12500
          (_etype175, _size172) = iprot.readListBegin()
12501
          for _i176 in xrange(_size172):
12502
            _elem177 = iprot.readI64();
12503
            self.success.append(_elem177)
6512 kshitij.so 12504
          iprot.readListEnd()
12505
        else:
12506
          iprot.skip(ftype)
12507
      else:
12508
        iprot.skip(ftype)
12509
      iprot.readFieldEnd()
12510
    iprot.readStructEnd()
12511
 
12512
  def write(self, oprot):
12513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12515
      return
12516
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
12517
    if self.success is not None:
12518
      oprot.writeFieldBegin('success', TType.LIST, 0)
12519
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 12520
      for iter178 in self.success:
12521
        oprot.writeI64(iter178)
6512 kshitij.so 12522
      oprot.writeListEnd()
12523
      oprot.writeFieldEnd()
12524
    oprot.writeFieldStop()
12525
    oprot.writeStructEnd()
12526
 
12527
  def validate(self):
12528
    return
12529
 
12530
 
12531
  def __repr__(self):
12532
    L = ['%s=%r' % (key, value)
12533
      for key, value in self.__dict__.iteritems()]
12534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12535
 
12536
  def __eq__(self, other):
12537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12538
 
12539
  def __ne__(self, other):
12540
    return not (self == other)
12541
 
6845 amit.gupta 12542
class getAllEntityTags_args:
12543
 
12544
  thrift_spec = (
12545
  )
12546
 
12547
  def read(self, iprot):
12548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12550
      return
12551
    iprot.readStructBegin()
12552
    while True:
12553
      (fname, ftype, fid) = iprot.readFieldBegin()
12554
      if ftype == TType.STOP:
12555
        break
12556
      else:
12557
        iprot.skip(ftype)
12558
      iprot.readFieldEnd()
12559
    iprot.readStructEnd()
12560
 
12561
  def write(self, oprot):
12562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12564
      return
12565
    oprot.writeStructBegin('getAllEntityTags_args')
12566
    oprot.writeFieldStop()
12567
    oprot.writeStructEnd()
12568
 
12569
  def validate(self):
12570
    return
12571
 
12572
 
12573
  def __repr__(self):
12574
    L = ['%s=%r' % (key, value)
12575
      for key, value in self.__dict__.iteritems()]
12576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12577
 
12578
  def __eq__(self, other):
12579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12580
 
12581
  def __ne__(self, other):
12582
    return not (self == other)
12583
 
12584
class getAllEntityTags_result:
12585
  """
12586
  Attributes:
12587
   - success
12588
  """
12589
 
12590
  thrift_spec = (
12591
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
12592
  )
12593
 
12594
  def __init__(self, success=None,):
12595
    self.success = success
12596
 
12597
  def read(self, iprot):
12598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12600
      return
12601
    iprot.readStructBegin()
12602
    while True:
12603
      (fname, ftype, fid) = iprot.readFieldBegin()
12604
      if ftype == TType.STOP:
12605
        break
12606
      if fid == 0:
12607
        if ftype == TType.MAP:
12608
          self.success = {}
8590 kshitij.so 12609
          (_ktype180, _vtype181, _size179 ) = iprot.readMapBegin() 
12610
          for _i183 in xrange(_size179):
12611
            _key184 = iprot.readI64();
12612
            _val185 = []
12613
            (_etype189, _size186) = iprot.readListBegin()
12614
            for _i190 in xrange(_size186):
12615
              _elem191 = iprot.readString();
12616
              _val185.append(_elem191)
6845 amit.gupta 12617
            iprot.readListEnd()
8590 kshitij.so 12618
            self.success[_key184] = _val185
6845 amit.gupta 12619
          iprot.readMapEnd()
12620
        else:
12621
          iprot.skip(ftype)
12622
      else:
12623
        iprot.skip(ftype)
12624
      iprot.readFieldEnd()
12625
    iprot.readStructEnd()
12626
 
12627
  def write(self, oprot):
12628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12630
      return
12631
    oprot.writeStructBegin('getAllEntityTags_result')
12632
    if self.success is not None:
12633
      oprot.writeFieldBegin('success', TType.MAP, 0)
12634
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
8590 kshitij.so 12635
      for kiter192,viter193 in self.success.items():
12636
        oprot.writeI64(kiter192)
12637
        oprot.writeListBegin(TType.STRING, len(viter193))
12638
        for iter194 in viter193:
12639
          oprot.writeString(iter194)
6845 amit.gupta 12640
        oprot.writeListEnd()
12641
      oprot.writeMapEnd()
12642
      oprot.writeFieldEnd()
12643
    oprot.writeFieldStop()
12644
    oprot.writeStructEnd()
12645
 
12646
  def validate(self):
12647
    return
12648
 
12649
 
12650
  def __repr__(self):
12651
    L = ['%s=%r' % (key, value)
12652
      for key, value in self.__dict__.iteritems()]
12653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12654
 
12655
  def __eq__(self, other):
12656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12657
 
12658
  def __ne__(self, other):
12659
    return not (self == other)
12660
 
6850 kshitij.so 12661
class addBanner_args:
12662
  """
12663
  Attributes:
8590 kshitij.so 12664
   - bannerCongregate
6850 kshitij.so 12665
  """
12666
 
12667
  thrift_spec = (
12668
    None, # 0
8590 kshitij.so 12669
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 12670
  )
12671
 
8590 kshitij.so 12672
  def __init__(self, bannerCongregate=None,):
12673
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 12674
 
12675
  def read(self, iprot):
12676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12678
      return
12679
    iprot.readStructBegin()
12680
    while True:
12681
      (fname, ftype, fid) = iprot.readFieldBegin()
12682
      if ftype == TType.STOP:
12683
        break
12684
      if fid == 1:
8579 kshitij.so 12685
        if ftype == TType.STRUCT:
8590 kshitij.so 12686
          self.bannerCongregate = BannerCongregate()
12687
          self.bannerCongregate.read(iprot)
6850 kshitij.so 12688
        else:
12689
          iprot.skip(ftype)
8579 kshitij.so 12690
      else:
12691
        iprot.skip(ftype)
12692
      iprot.readFieldEnd()
12693
    iprot.readStructEnd()
12694
 
12695
  def write(self, oprot):
12696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12698
      return
12699
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 12700
    if self.bannerCongregate is not None:
12701
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
12702
      self.bannerCongregate.write(oprot)
8579 kshitij.so 12703
      oprot.writeFieldEnd()
12704
    oprot.writeFieldStop()
12705
    oprot.writeStructEnd()
12706
 
12707
  def validate(self):
12708
    return
12709
 
12710
 
12711
  def __repr__(self):
12712
    L = ['%s=%r' % (key, value)
12713
      for key, value in self.__dict__.iteritems()]
12714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12715
 
12716
  def __eq__(self, other):
12717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12718
 
12719
  def __ne__(self, other):
12720
    return not (self == other)
12721
 
12722
class addBanner_result:
12723
 
12724
  thrift_spec = (
12725
  )
12726
 
12727
  def read(self, iprot):
12728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12730
      return
12731
    iprot.readStructBegin()
12732
    while True:
12733
      (fname, ftype, fid) = iprot.readFieldBegin()
12734
      if ftype == TType.STOP:
12735
        break
12736
      else:
12737
        iprot.skip(ftype)
12738
      iprot.readFieldEnd()
12739
    iprot.readStructEnd()
12740
 
12741
  def write(self, oprot):
12742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12744
      return
12745
    oprot.writeStructBegin('addBanner_result')
12746
    oprot.writeFieldStop()
12747
    oprot.writeStructEnd()
12748
 
12749
  def validate(self):
12750
    return
12751
 
12752
 
12753
  def __repr__(self):
12754
    L = ['%s=%r' % (key, value)
12755
      for key, value in self.__dict__.iteritems()]
12756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12757
 
12758
  def __eq__(self, other):
12759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12760
 
12761
  def __ne__(self, other):
12762
    return not (self == other)
12763
 
12764
class updateBanner_args:
12765
  """
12766
  Attributes:
12767
   - banner
12768
  """
12769
 
12770
  thrift_spec = (
12771
    None, # 0
12772
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
12773
  )
12774
 
12775
  def __init__(self, banner=None,):
12776
    self.banner = banner
12777
 
12778
  def read(self, iprot):
12779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12781
      return
12782
    iprot.readStructBegin()
12783
    while True:
12784
      (fname, ftype, fid) = iprot.readFieldBegin()
12785
      if ftype == TType.STOP:
12786
        break
12787
      if fid == 1:
12788
        if ftype == TType.STRUCT:
12789
          self.banner = Banner()
12790
          self.banner.read(iprot)
6850 kshitij.so 12791
        else:
12792
          iprot.skip(ftype)
12793
      else:
12794
        iprot.skip(ftype)
12795
      iprot.readFieldEnd()
12796
    iprot.readStructEnd()
12797
 
12798
  def write(self, oprot):
12799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12801
      return
8579 kshitij.so 12802
    oprot.writeStructBegin('updateBanner_args')
12803
    if self.banner is not None:
12804
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
12805
      self.banner.write(oprot)
6850 kshitij.so 12806
      oprot.writeFieldEnd()
12807
    oprot.writeFieldStop()
12808
    oprot.writeStructEnd()
12809
 
12810
  def validate(self):
12811
    return
12812
 
12813
 
12814
  def __repr__(self):
12815
    L = ['%s=%r' % (key, value)
12816
      for key, value in self.__dict__.iteritems()]
12817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12818
 
12819
  def __eq__(self, other):
12820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12821
 
12822
  def __ne__(self, other):
12823
    return not (self == other)
12824
 
8579 kshitij.so 12825
class updateBanner_result:
6850 kshitij.so 12826
  """
12827
  Attributes:
12828
   - success
12829
  """
12830
 
12831
  thrift_spec = (
12832
    (0, TType.BOOL, 'success', None, None, ), # 0
12833
  )
12834
 
12835
  def __init__(self, success=None,):
12836
    self.success = success
12837
 
12838
  def read(self, iprot):
12839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12841
      return
12842
    iprot.readStructBegin()
12843
    while True:
12844
      (fname, ftype, fid) = iprot.readFieldBegin()
12845
      if ftype == TType.STOP:
12846
        break
12847
      if fid == 0:
12848
        if ftype == TType.BOOL:
12849
          self.success = iprot.readBool();
12850
        else:
12851
          iprot.skip(ftype)
12852
      else:
12853
        iprot.skip(ftype)
12854
      iprot.readFieldEnd()
12855
    iprot.readStructEnd()
12856
 
12857
  def write(self, oprot):
12858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12860
      return
8579 kshitij.so 12861
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 12862
    if self.success is not None:
12863
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12864
      oprot.writeBool(self.success)
12865
      oprot.writeFieldEnd()
12866
    oprot.writeFieldStop()
12867
    oprot.writeStructEnd()
12868
 
12869
  def validate(self):
12870
    return
12871
 
12872
 
12873
  def __repr__(self):
12874
    L = ['%s=%r' % (key, value)
12875
      for key, value in self.__dict__.iteritems()]
12876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12877
 
12878
  def __eq__(self, other):
12879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12880
 
12881
  def __ne__(self, other):
12882
    return not (self == other)
12883
 
12884
class getAllBanners_args:
12885
 
12886
  thrift_spec = (
12887
  )
12888
 
12889
  def read(self, iprot):
12890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12892
      return
12893
    iprot.readStructBegin()
12894
    while True:
12895
      (fname, ftype, fid) = iprot.readFieldBegin()
12896
      if ftype == TType.STOP:
12897
        break
12898
      else:
12899
        iprot.skip(ftype)
12900
      iprot.readFieldEnd()
12901
    iprot.readStructEnd()
12902
 
12903
  def write(self, oprot):
12904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12906
      return
12907
    oprot.writeStructBegin('getAllBanners_args')
12908
    oprot.writeFieldStop()
12909
    oprot.writeStructEnd()
12910
 
12911
  def validate(self):
12912
    return
12913
 
12914
 
12915
  def __repr__(self):
12916
    L = ['%s=%r' % (key, value)
12917
      for key, value in self.__dict__.iteritems()]
12918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12919
 
12920
  def __eq__(self, other):
12921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12922
 
12923
  def __ne__(self, other):
12924
    return not (self == other)
12925
 
12926
class getAllBanners_result:
12927
  """
12928
  Attributes:
12929
   - success
12930
  """
12931
 
12932
  thrift_spec = (
8579 kshitij.so 12933
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 12934
  )
12935
 
12936
  def __init__(self, success=None,):
12937
    self.success = success
12938
 
12939
  def read(self, iprot):
12940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12942
      return
12943
    iprot.readStructBegin()
12944
    while True:
12945
      (fname, ftype, fid) = iprot.readFieldBegin()
12946
      if ftype == TType.STOP:
12947
        break
12948
      if fid == 0:
12949
        if ftype == TType.LIST:
12950
          self.success = []
8590 kshitij.so 12951
          (_etype198, _size195) = iprot.readListBegin()
12952
          for _i199 in xrange(_size195):
12953
            _elem200 = Banner()
12954
            _elem200.read(iprot)
12955
            self.success.append(_elem200)
6850 kshitij.so 12956
          iprot.readListEnd()
12957
        else:
12958
          iprot.skip(ftype)
12959
      else:
12960
        iprot.skip(ftype)
12961
      iprot.readFieldEnd()
12962
    iprot.readStructEnd()
12963
 
12964
  def write(self, oprot):
12965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12967
      return
12968
    oprot.writeStructBegin('getAllBanners_result')
12969
    if self.success is not None:
12970
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 12971
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 12972
      for iter201 in self.success:
12973
        iter201.write(oprot)
6850 kshitij.so 12974
      oprot.writeListEnd()
12975
      oprot.writeFieldEnd()
12976
    oprot.writeFieldStop()
12977
    oprot.writeStructEnd()
12978
 
12979
  def validate(self):
12980
    return
12981
 
12982
 
12983
  def __repr__(self):
12984
    L = ['%s=%r' % (key, value)
12985
      for key, value in self.__dict__.iteritems()]
12986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12987
 
12988
  def __eq__(self, other):
12989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12990
 
12991
  def __ne__(self, other):
12992
    return not (self == other)
12993
 
12994
class deleteBanner_args:
12995
  """
12996
  Attributes:
12997
   - bannerName
9155 kshitij.so 12998
   - bannerType
6850 kshitij.so 12999
  """
13000
 
13001
  thrift_spec = (
13002
    None, # 0
13003
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13004
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 13005
  )
13006
 
9155 kshitij.so 13007
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 13008
    self.bannerName = bannerName
9155 kshitij.so 13009
    self.bannerType = bannerType
6850 kshitij.so 13010
 
13011
  def read(self, iprot):
13012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13014
      return
13015
    iprot.readStructBegin()
13016
    while True:
13017
      (fname, ftype, fid) = iprot.readFieldBegin()
13018
      if ftype == TType.STOP:
13019
        break
13020
      if fid == 1:
13021
        if ftype == TType.STRING:
13022
          self.bannerName = iprot.readString();
13023
        else:
13024
          iprot.skip(ftype)
9155 kshitij.so 13025
      elif fid == 2:
13026
        if ftype == TType.I32:
13027
          self.bannerType = iprot.readI32();
13028
        else:
13029
          iprot.skip(ftype)
6850 kshitij.so 13030
      else:
13031
        iprot.skip(ftype)
13032
      iprot.readFieldEnd()
13033
    iprot.readStructEnd()
13034
 
13035
  def write(self, oprot):
13036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13038
      return
13039
    oprot.writeStructBegin('deleteBanner_args')
13040
    if self.bannerName is not None:
13041
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13042
      oprot.writeString(self.bannerName)
13043
      oprot.writeFieldEnd()
9155 kshitij.so 13044
    if self.bannerType is not None:
13045
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13046
      oprot.writeI32(self.bannerType)
13047
      oprot.writeFieldEnd()
6850 kshitij.so 13048
    oprot.writeFieldStop()
13049
    oprot.writeStructEnd()
13050
 
13051
  def validate(self):
13052
    return
13053
 
13054
 
13055
  def __repr__(self):
13056
    L = ['%s=%r' % (key, value)
13057
      for key, value in self.__dict__.iteritems()]
13058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13059
 
13060
  def __eq__(self, other):
13061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13062
 
13063
  def __ne__(self, other):
13064
    return not (self == other)
13065
 
13066
class deleteBanner_result:
13067
  """
13068
  Attributes:
13069
   - success
13070
  """
13071
 
13072
  thrift_spec = (
13073
    (0, TType.BOOL, 'success', None, None, ), # 0
13074
  )
13075
 
13076
  def __init__(self, success=None,):
13077
    self.success = success
13078
 
13079
  def read(self, iprot):
13080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13082
      return
13083
    iprot.readStructBegin()
13084
    while True:
13085
      (fname, ftype, fid) = iprot.readFieldBegin()
13086
      if ftype == TType.STOP:
13087
        break
13088
      if fid == 0:
13089
        if ftype == TType.BOOL:
13090
          self.success = iprot.readBool();
13091
        else:
13092
          iprot.skip(ftype)
13093
      else:
13094
        iprot.skip(ftype)
13095
      iprot.readFieldEnd()
13096
    iprot.readStructEnd()
13097
 
13098
  def write(self, oprot):
13099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13101
      return
13102
    oprot.writeStructBegin('deleteBanner_result')
13103
    if self.success is not None:
13104
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13105
      oprot.writeBool(self.success)
13106
      oprot.writeFieldEnd()
13107
    oprot.writeFieldStop()
13108
    oprot.writeStructEnd()
13109
 
13110
  def validate(self):
13111
    return
13112
 
13113
 
13114
  def __repr__(self):
13115
    L = ['%s=%r' % (key, value)
13116
      for key, value in self.__dict__.iteritems()]
13117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13118
 
13119
  def __eq__(self, other):
13120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13121
 
13122
  def __ne__(self, other):
13123
    return not (self == other)
13124
 
13125
class getBannerDetails_args:
13126
  """
13127
  Attributes:
13128
   - bannerName
9155 kshitij.so 13129
   - bannerType
6850 kshitij.so 13130
  """
13131
 
13132
  thrift_spec = (
13133
    None, # 0
13134
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13135
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 13136
  )
13137
 
9155 kshitij.so 13138
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 13139
    self.bannerName = bannerName
9155 kshitij.so 13140
    self.bannerType = bannerType
6850 kshitij.so 13141
 
13142
  def read(self, iprot):
13143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13145
      return
13146
    iprot.readStructBegin()
13147
    while True:
13148
      (fname, ftype, fid) = iprot.readFieldBegin()
13149
      if ftype == TType.STOP:
13150
        break
13151
      if fid == 1:
13152
        if ftype == TType.STRING:
13153
          self.bannerName = iprot.readString();
13154
        else:
13155
          iprot.skip(ftype)
9155 kshitij.so 13156
      elif fid == 2:
13157
        if ftype == TType.I32:
13158
          self.bannerType = iprot.readI32();
13159
        else:
13160
          iprot.skip(ftype)
6850 kshitij.so 13161
      else:
13162
        iprot.skip(ftype)
13163
      iprot.readFieldEnd()
13164
    iprot.readStructEnd()
13165
 
13166
  def write(self, oprot):
13167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13169
      return
13170
    oprot.writeStructBegin('getBannerDetails_args')
13171
    if self.bannerName is not None:
13172
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13173
      oprot.writeString(self.bannerName)
13174
      oprot.writeFieldEnd()
9155 kshitij.so 13175
    if self.bannerType is not None:
13176
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13177
      oprot.writeI32(self.bannerType)
13178
      oprot.writeFieldEnd()
6850 kshitij.so 13179
    oprot.writeFieldStop()
13180
    oprot.writeStructEnd()
13181
 
13182
  def validate(self):
13183
    return
13184
 
13185
 
13186
  def __repr__(self):
13187
    L = ['%s=%r' % (key, value)
13188
      for key, value in self.__dict__.iteritems()]
13189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13190
 
13191
  def __eq__(self, other):
13192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13193
 
13194
  def __ne__(self, other):
13195
    return not (self == other)
13196
 
13197
class getBannerDetails_result:
13198
  """
13199
  Attributes:
13200
   - success
13201
  """
13202
 
13203
  thrift_spec = (
13204
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
13205
  )
13206
 
13207
  def __init__(self, success=None,):
13208
    self.success = success
13209
 
13210
  def read(self, iprot):
13211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13213
      return
13214
    iprot.readStructBegin()
13215
    while True:
13216
      (fname, ftype, fid) = iprot.readFieldBegin()
13217
      if ftype == TType.STOP:
13218
        break
13219
      if fid == 0:
13220
        if ftype == TType.STRUCT:
13221
          self.success = Banner()
13222
          self.success.read(iprot)
13223
        else:
13224
          iprot.skip(ftype)
13225
      else:
13226
        iprot.skip(ftype)
13227
      iprot.readFieldEnd()
13228
    iprot.readStructEnd()
13229
 
13230
  def write(self, oprot):
13231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13233
      return
13234
    oprot.writeStructBegin('getBannerDetails_result')
13235
    if self.success is not None:
13236
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13237
      self.success.write(oprot)
13238
      oprot.writeFieldEnd()
13239
    oprot.writeFieldStop()
13240
    oprot.writeStructEnd()
13241
 
13242
  def validate(self):
13243
    return
13244
 
13245
 
13246
  def __repr__(self):
13247
    L = ['%s=%r' % (key, value)
13248
      for key, value in self.__dict__.iteritems()]
13249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13250
 
13251
  def __eq__(self, other):
13252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13253
 
13254
  def __ne__(self, other):
13255
    return not (self == other)
13256
 
13257
class getActiveBanners_args:
13258
 
13259
  thrift_spec = (
13260
  )
13261
 
13262
  def read(self, iprot):
13263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13265
      return
13266
    iprot.readStructBegin()
13267
    while True:
13268
      (fname, ftype, fid) = iprot.readFieldBegin()
13269
      if ftype == TType.STOP:
13270
        break
13271
      else:
13272
        iprot.skip(ftype)
13273
      iprot.readFieldEnd()
13274
    iprot.readStructEnd()
13275
 
13276
  def write(self, oprot):
13277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13279
      return
13280
    oprot.writeStructBegin('getActiveBanners_args')
13281
    oprot.writeFieldStop()
13282
    oprot.writeStructEnd()
13283
 
13284
  def validate(self):
13285
    return
13286
 
13287
 
13288
  def __repr__(self):
13289
    L = ['%s=%r' % (key, value)
13290
      for key, value in self.__dict__.iteritems()]
13291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13292
 
13293
  def __eq__(self, other):
13294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13295
 
13296
  def __ne__(self, other):
13297
    return not (self == other)
13298
 
13299
class getActiveBanners_result:
13300
  """
13301
  Attributes:
13302
   - success
13303
  """
13304
 
13305
  thrift_spec = (
8579 kshitij.so 13306
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 13307
  )
13308
 
13309
  def __init__(self, success=None,):
13310
    self.success = success
13311
 
13312
  def read(self, iprot):
13313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13315
      return
13316
    iprot.readStructBegin()
13317
    while True:
13318
      (fname, ftype, fid) = iprot.readFieldBegin()
13319
      if ftype == TType.STOP:
13320
        break
13321
      if fid == 0:
8579 kshitij.so 13322
        if ftype == TType.MAP:
13323
          self.success = {}
8590 kshitij.so 13324
          (_ktype203, _vtype204, _size202 ) = iprot.readMapBegin() 
13325
          for _i206 in xrange(_size202):
13326
            _key207 = iprot.readString();
13327
            _val208 = []
13328
            (_etype212, _size209) = iprot.readListBegin()
13329
            for _i213 in xrange(_size209):
13330
              _elem214 = Banner()
13331
              _elem214.read(iprot)
13332
              _val208.append(_elem214)
8579 kshitij.so 13333
            iprot.readListEnd()
8590 kshitij.so 13334
            self.success[_key207] = _val208
8579 kshitij.so 13335
          iprot.readMapEnd()
6850 kshitij.so 13336
        else:
13337
          iprot.skip(ftype)
13338
      else:
13339
        iprot.skip(ftype)
13340
      iprot.readFieldEnd()
13341
    iprot.readStructEnd()
13342
 
13343
  def write(self, oprot):
13344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13346
      return
13347
    oprot.writeStructBegin('getActiveBanners_result')
13348
    if self.success is not None:
8579 kshitij.so 13349
      oprot.writeFieldBegin('success', TType.MAP, 0)
13350
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
8590 kshitij.so 13351
      for kiter215,viter216 in self.success.items():
13352
        oprot.writeString(kiter215)
13353
        oprot.writeListBegin(TType.STRUCT, len(viter216))
13354
        for iter217 in viter216:
13355
          iter217.write(oprot)
8579 kshitij.so 13356
        oprot.writeListEnd()
13357
      oprot.writeMapEnd()
6850 kshitij.so 13358
      oprot.writeFieldEnd()
13359
    oprot.writeFieldStop()
13360
    oprot.writeStructEnd()
13361
 
13362
  def validate(self):
13363
    return
13364
 
13365
 
13366
  def __repr__(self):
13367
    L = ['%s=%r' % (key, value)
13368
      for key, value in self.__dict__.iteritems()]
13369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13370
 
13371
  def __eq__(self, other):
13372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13373
 
13374
  def __ne__(self, other):
13375
    return not (self == other)
13376
 
6849 kshitij.so 13377
class addBannerMap_args:
13378
  """
13379
  Attributes:
8579 kshitij.so 13380
   - bannerMaps
6849 kshitij.so 13381
  """
13382
 
13383
  thrift_spec = (
13384
    None, # 0
8579 kshitij.so 13385
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 13386
  )
13387
 
8579 kshitij.so 13388
  def __init__(self, bannerMaps=None,):
13389
    self.bannerMaps = bannerMaps
6849 kshitij.so 13390
 
13391
  def read(self, iprot):
13392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13394
      return
13395
    iprot.readStructBegin()
13396
    while True:
13397
      (fname, ftype, fid) = iprot.readFieldBegin()
13398
      if ftype == TType.STOP:
13399
        break
13400
      if fid == 1:
8579 kshitij.so 13401
        if ftype == TType.LIST:
13402
          self.bannerMaps = []
8590 kshitij.so 13403
          (_etype221, _size218) = iprot.readListBegin()
13404
          for _i222 in xrange(_size218):
13405
            _elem223 = BannerMap()
13406
            _elem223.read(iprot)
13407
            self.bannerMaps.append(_elem223)
8579 kshitij.so 13408
          iprot.readListEnd()
6849 kshitij.so 13409
        else:
13410
          iprot.skip(ftype)
8579 kshitij.so 13411
      else:
13412
        iprot.skip(ftype)
13413
      iprot.readFieldEnd()
13414
    iprot.readStructEnd()
13415
 
13416
  def write(self, oprot):
13417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13419
      return
13420
    oprot.writeStructBegin('addBannerMap_args')
13421
    if self.bannerMaps is not None:
13422
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
13423
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
8590 kshitij.so 13424
      for iter224 in self.bannerMaps:
13425
        iter224.write(oprot)
8579 kshitij.so 13426
      oprot.writeListEnd()
13427
      oprot.writeFieldEnd()
13428
    oprot.writeFieldStop()
13429
    oprot.writeStructEnd()
13430
 
13431
  def validate(self):
13432
    return
13433
 
13434
 
13435
  def __repr__(self):
13436
    L = ['%s=%r' % (key, value)
13437
      for key, value in self.__dict__.iteritems()]
13438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13439
 
13440
  def __eq__(self, other):
13441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13442
 
13443
  def __ne__(self, other):
13444
    return not (self == other)
13445
 
13446
class addBannerMap_result:
13447
  """
13448
  Attributes:
13449
   - success
13450
  """
13451
 
13452
  thrift_spec = (
13453
    (0, TType.BOOL, 'success', None, None, ), # 0
13454
  )
13455
 
13456
  def __init__(self, success=None,):
13457
    self.success = success
13458
 
13459
  def read(self, iprot):
13460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13462
      return
13463
    iprot.readStructBegin()
13464
    while True:
13465
      (fname, ftype, fid) = iprot.readFieldBegin()
13466
      if ftype == TType.STOP:
13467
        break
13468
      if fid == 0:
13469
        if ftype == TType.BOOL:
13470
          self.success = iprot.readBool();
6849 kshitij.so 13471
        else:
13472
          iprot.skip(ftype)
8579 kshitij.so 13473
      else:
13474
        iprot.skip(ftype)
13475
      iprot.readFieldEnd()
13476
    iprot.readStructEnd()
13477
 
13478
  def write(self, oprot):
13479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13481
      return
13482
    oprot.writeStructBegin('addBannerMap_result')
13483
    if self.success is not None:
13484
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13485
      oprot.writeBool(self.success)
13486
      oprot.writeFieldEnd()
13487
    oprot.writeFieldStop()
13488
    oprot.writeStructEnd()
13489
 
13490
  def validate(self):
13491
    return
13492
 
13493
 
13494
  def __repr__(self):
13495
    L = ['%s=%r' % (key, value)
13496
      for key, value in self.__dict__.iteritems()]
13497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13498
 
13499
  def __eq__(self, other):
13500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13501
 
13502
  def __ne__(self, other):
13503
    return not (self == other)
13504
 
13505
class updateBannerMap_args:
13506
  """
13507
  Attributes:
13508
   - bannerMap
13509
  """
13510
 
13511
  thrift_spec = (
13512
    None, # 0
13513
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
13514
  )
13515
 
13516
  def __init__(self, bannerMap=None,):
13517
    self.bannerMap = bannerMap
13518
 
13519
  def read(self, iprot):
13520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13522
      return
13523
    iprot.readStructBegin()
13524
    while True:
13525
      (fname, ftype, fid) = iprot.readFieldBegin()
13526
      if ftype == TType.STOP:
13527
        break
13528
      if fid == 1:
13529
        if ftype == TType.STRUCT:
13530
          self.bannerMap = BannerMap()
13531
          self.bannerMap.read(iprot)
6849 kshitij.so 13532
        else:
13533
          iprot.skip(ftype)
13534
      else:
13535
        iprot.skip(ftype)
13536
      iprot.readFieldEnd()
13537
    iprot.readStructEnd()
13538
 
13539
  def write(self, oprot):
13540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13542
      return
8579 kshitij.so 13543
    oprot.writeStructBegin('updateBannerMap_args')
13544
    if self.bannerMap is not None:
13545
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
13546
      self.bannerMap.write(oprot)
6849 kshitij.so 13547
      oprot.writeFieldEnd()
13548
    oprot.writeFieldStop()
13549
    oprot.writeStructEnd()
13550
 
13551
  def validate(self):
13552
    return
13553
 
13554
 
13555
  def __repr__(self):
13556
    L = ['%s=%r' % (key, value)
13557
      for key, value in self.__dict__.iteritems()]
13558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13559
 
13560
  def __eq__(self, other):
13561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13562
 
13563
  def __ne__(self, other):
13564
    return not (self == other)
13565
 
8579 kshitij.so 13566
class updateBannerMap_result:
6849 kshitij.so 13567
  """
13568
  Attributes:
13569
   - success
13570
  """
13571
 
13572
  thrift_spec = (
13573
    (0, TType.BOOL, 'success', None, None, ), # 0
13574
  )
13575
 
13576
  def __init__(self, success=None,):
13577
    self.success = success
13578
 
13579
  def read(self, iprot):
13580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13582
      return
13583
    iprot.readStructBegin()
13584
    while True:
13585
      (fname, ftype, fid) = iprot.readFieldBegin()
13586
      if ftype == TType.STOP:
13587
        break
13588
      if fid == 0:
13589
        if ftype == TType.BOOL:
13590
          self.success = iprot.readBool();
13591
        else:
13592
          iprot.skip(ftype)
13593
      else:
13594
        iprot.skip(ftype)
13595
      iprot.readFieldEnd()
13596
    iprot.readStructEnd()
13597
 
13598
  def write(self, oprot):
13599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13601
      return
8579 kshitij.so 13602
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 13603
    if self.success is not None:
13604
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13605
      oprot.writeBool(self.success)
13606
      oprot.writeFieldEnd()
13607
    oprot.writeFieldStop()
13608
    oprot.writeStructEnd()
13609
 
13610
  def validate(self):
13611
    return
13612
 
13613
 
13614
  def __repr__(self):
13615
    L = ['%s=%r' % (key, value)
13616
      for key, value in self.__dict__.iteritems()]
13617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13618
 
13619
  def __eq__(self, other):
13620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13621
 
13622
  def __ne__(self, other):
13623
    return not (self == other)
13624
 
13625
class deleteBannerMap_args:
13626
  """
13627
  Attributes:
13628
   - bannerName
13629
  """
13630
 
13631
  thrift_spec = (
13632
    None, # 0
13633
    (1, TType.STRING, 'bannerName', None, None, ), # 1
13634
  )
13635
 
13636
  def __init__(self, bannerName=None,):
13637
    self.bannerName = bannerName
13638
 
13639
  def read(self, iprot):
13640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13642
      return
13643
    iprot.readStructBegin()
13644
    while True:
13645
      (fname, ftype, fid) = iprot.readFieldBegin()
13646
      if ftype == TType.STOP:
13647
        break
13648
      if fid == 1:
13649
        if ftype == TType.STRING:
13650
          self.bannerName = iprot.readString();
13651
        else:
13652
          iprot.skip(ftype)
13653
      else:
13654
        iprot.skip(ftype)
13655
      iprot.readFieldEnd()
13656
    iprot.readStructEnd()
13657
 
13658
  def write(self, oprot):
13659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13661
      return
13662
    oprot.writeStructBegin('deleteBannerMap_args')
13663
    if self.bannerName is not None:
13664
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13665
      oprot.writeString(self.bannerName)
13666
      oprot.writeFieldEnd()
13667
    oprot.writeFieldStop()
13668
    oprot.writeStructEnd()
13669
 
13670
  def validate(self):
13671
    return
13672
 
13673
 
13674
  def __repr__(self):
13675
    L = ['%s=%r' % (key, value)
13676
      for key, value in self.__dict__.iteritems()]
13677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13678
 
13679
  def __eq__(self, other):
13680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13681
 
13682
  def __ne__(self, other):
13683
    return not (self == other)
13684
 
13685
class deleteBannerMap_result:
13686
  """
13687
  Attributes:
13688
   - success
13689
  """
13690
 
13691
  thrift_spec = (
13692
    (0, TType.BOOL, 'success', None, None, ), # 0
13693
  )
13694
 
13695
  def __init__(self, success=None,):
13696
    self.success = success
13697
 
13698
  def read(self, iprot):
13699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13701
      return
13702
    iprot.readStructBegin()
13703
    while True:
13704
      (fname, ftype, fid) = iprot.readFieldBegin()
13705
      if ftype == TType.STOP:
13706
        break
13707
      if fid == 0:
13708
        if ftype == TType.BOOL:
13709
          self.success = iprot.readBool();
13710
        else:
13711
          iprot.skip(ftype)
13712
      else:
13713
        iprot.skip(ftype)
13714
      iprot.readFieldEnd()
13715
    iprot.readStructEnd()
13716
 
13717
  def write(self, oprot):
13718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13720
      return
13721
    oprot.writeStructBegin('deleteBannerMap_result')
13722
    if self.success is not None:
13723
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13724
      oprot.writeBool(self.success)
13725
      oprot.writeFieldEnd()
13726
    oprot.writeFieldStop()
13727
    oprot.writeStructEnd()
13728
 
13729
  def validate(self):
13730
    return
13731
 
13732
 
13733
  def __repr__(self):
13734
    L = ['%s=%r' % (key, value)
13735
      for key, value in self.__dict__.iteritems()]
13736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13737
 
13738
  def __eq__(self, other):
13739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13740
 
13741
  def __ne__(self, other):
13742
    return not (self == other)
13743
 
13744
class getBannerMapDetails_args:
13745
  """
13746
  Attributes:
13747
   - bannerName
9155 kshitij.so 13748
   - bannerType
6849 kshitij.so 13749
  """
13750
 
13751
  thrift_spec = (
13752
    None, # 0
13753
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13754
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 13755
  )
13756
 
9155 kshitij.so 13757
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 13758
    self.bannerName = bannerName
9155 kshitij.so 13759
    self.bannerType = bannerType
6849 kshitij.so 13760
 
13761
  def read(self, iprot):
13762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13764
      return
13765
    iprot.readStructBegin()
13766
    while True:
13767
      (fname, ftype, fid) = iprot.readFieldBegin()
13768
      if ftype == TType.STOP:
13769
        break
13770
      if fid == 1:
13771
        if ftype == TType.STRING:
13772
          self.bannerName = iprot.readString();
13773
        else:
13774
          iprot.skip(ftype)
9155 kshitij.so 13775
      elif fid == 2:
13776
        if ftype == TType.I32:
13777
          self.bannerType = iprot.readI32();
13778
        else:
13779
          iprot.skip(ftype)
6849 kshitij.so 13780
      else:
13781
        iprot.skip(ftype)
13782
      iprot.readFieldEnd()
13783
    iprot.readStructEnd()
13784
 
13785
  def write(self, oprot):
13786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13788
      return
13789
    oprot.writeStructBegin('getBannerMapDetails_args')
13790
    if self.bannerName is not None:
13791
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13792
      oprot.writeString(self.bannerName)
13793
      oprot.writeFieldEnd()
9155 kshitij.so 13794
    if self.bannerType is not None:
13795
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13796
      oprot.writeI32(self.bannerType)
13797
      oprot.writeFieldEnd()
6849 kshitij.so 13798
    oprot.writeFieldStop()
13799
    oprot.writeStructEnd()
13800
 
13801
  def validate(self):
13802
    return
13803
 
13804
 
13805
  def __repr__(self):
13806
    L = ['%s=%r' % (key, value)
13807
      for key, value in self.__dict__.iteritems()]
13808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13809
 
13810
  def __eq__(self, other):
13811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13812
 
13813
  def __ne__(self, other):
13814
    return not (self == other)
13815
 
13816
class getBannerMapDetails_result:
13817
  """
13818
  Attributes:
13819
   - success
13820
  """
13821
 
13822
  thrift_spec = (
13823
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
13824
  )
13825
 
13826
  def __init__(self, success=None,):
13827
    self.success = success
13828
 
13829
  def read(self, iprot):
13830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13832
      return
13833
    iprot.readStructBegin()
13834
    while True:
13835
      (fname, ftype, fid) = iprot.readFieldBegin()
13836
      if ftype == TType.STOP:
13837
        break
13838
      if fid == 0:
13839
        if ftype == TType.LIST:
13840
          self.success = []
8590 kshitij.so 13841
          (_etype228, _size225) = iprot.readListBegin()
13842
          for _i229 in xrange(_size225):
13843
            _elem230 = BannerMap()
13844
            _elem230.read(iprot)
13845
            self.success.append(_elem230)
6849 kshitij.so 13846
          iprot.readListEnd()
13847
        else:
13848
          iprot.skip(ftype)
13849
      else:
13850
        iprot.skip(ftype)
13851
      iprot.readFieldEnd()
13852
    iprot.readStructEnd()
13853
 
13854
  def write(self, oprot):
13855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13857
      return
13858
    oprot.writeStructBegin('getBannerMapDetails_result')
13859
    if self.success is not None:
13860
      oprot.writeFieldBegin('success', TType.LIST, 0)
13861
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 13862
      for iter231 in self.success:
13863
        iter231.write(oprot)
6849 kshitij.so 13864
      oprot.writeListEnd()
13865
      oprot.writeFieldEnd()
13866
    oprot.writeFieldStop()
13867
    oprot.writeStructEnd()
13868
 
13869
  def validate(self):
13870
    return
13871
 
13872
 
13873
  def __repr__(self):
13874
    L = ['%s=%r' % (key, value)
13875
      for key, value in self.__dict__.iteritems()]
13876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13877
 
13878
  def __eq__(self, other):
13879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13880
 
13881
  def __ne__(self, other):
13882
    return not (self == other)
13883
 
8579 kshitij.so 13884
class addBannerUri_args:
13885
  """
13886
  Attributes:
13887
   - bannerUriMappings
13888
  """
13889
 
13890
  thrift_spec = (
13891
    None, # 0
13892
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
13893
  )
13894
 
13895
  def __init__(self, bannerUriMappings=None,):
13896
    self.bannerUriMappings = bannerUriMappings
13897
 
13898
  def read(self, iprot):
13899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13901
      return
13902
    iprot.readStructBegin()
13903
    while True:
13904
      (fname, ftype, fid) = iprot.readFieldBegin()
13905
      if ftype == TType.STOP:
13906
        break
13907
      if fid == 1:
13908
        if ftype == TType.LIST:
13909
          self.bannerUriMappings = []
8590 kshitij.so 13910
          (_etype235, _size232) = iprot.readListBegin()
13911
          for _i236 in xrange(_size232):
13912
            _elem237 = BannerUriMapping()
13913
            _elem237.read(iprot)
13914
            self.bannerUriMappings.append(_elem237)
8579 kshitij.so 13915
          iprot.readListEnd()
13916
        else:
13917
          iprot.skip(ftype)
13918
      else:
13919
        iprot.skip(ftype)
13920
      iprot.readFieldEnd()
13921
    iprot.readStructEnd()
13922
 
13923
  def write(self, oprot):
13924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13926
      return
13927
    oprot.writeStructBegin('addBannerUri_args')
13928
    if self.bannerUriMappings is not None:
13929
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
13930
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
8590 kshitij.so 13931
      for iter238 in self.bannerUriMappings:
13932
        iter238.write(oprot)
8579 kshitij.so 13933
      oprot.writeListEnd()
13934
      oprot.writeFieldEnd()
13935
    oprot.writeFieldStop()
13936
    oprot.writeStructEnd()
13937
 
13938
  def validate(self):
13939
    return
13940
 
13941
 
13942
  def __repr__(self):
13943
    L = ['%s=%r' % (key, value)
13944
      for key, value in self.__dict__.iteritems()]
13945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13946
 
13947
  def __eq__(self, other):
13948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13949
 
13950
  def __ne__(self, other):
13951
    return not (self == other)
13952
 
13953
class addBannerUri_result:
13954
 
13955
  thrift_spec = (
13956
  )
13957
 
13958
  def read(self, iprot):
13959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13961
      return
13962
    iprot.readStructBegin()
13963
    while True:
13964
      (fname, ftype, fid) = iprot.readFieldBegin()
13965
      if ftype == TType.STOP:
13966
        break
13967
      else:
13968
        iprot.skip(ftype)
13969
      iprot.readFieldEnd()
13970
    iprot.readStructEnd()
13971
 
13972
  def write(self, oprot):
13973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13975
      return
13976
    oprot.writeStructBegin('addBannerUri_result')
13977
    oprot.writeFieldStop()
13978
    oprot.writeStructEnd()
13979
 
13980
  def validate(self):
13981
    return
13982
 
13983
 
13984
  def __repr__(self):
13985
    L = ['%s=%r' % (key, value)
13986
      for key, value in self.__dict__.iteritems()]
13987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13988
 
13989
  def __eq__(self, other):
13990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13991
 
13992
  def __ne__(self, other):
13993
    return not (self == other)
13994
 
13995
class getUriMapping_args:
13996
  """
13997
  Attributes:
13998
   - bannerName
9155 kshitij.so 13999
   - bannerType
8579 kshitij.so 14000
  """
14001
 
14002
  thrift_spec = (
14003
    None, # 0
14004
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 14005
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 14006
  )
14007
 
9155 kshitij.so 14008
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 14009
    self.bannerName = bannerName
9155 kshitij.so 14010
    self.bannerType = bannerType
8579 kshitij.so 14011
 
14012
  def read(self, iprot):
14013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14015
      return
14016
    iprot.readStructBegin()
14017
    while True:
14018
      (fname, ftype, fid) = iprot.readFieldBegin()
14019
      if ftype == TType.STOP:
14020
        break
14021
      if fid == 1:
14022
        if ftype == TType.STRING:
14023
          self.bannerName = iprot.readString();
14024
        else:
14025
          iprot.skip(ftype)
9155 kshitij.so 14026
      elif fid == 2:
14027
        if ftype == TType.I32:
14028
          self.bannerType = iprot.readI32();
14029
        else:
14030
          iprot.skip(ftype)
8579 kshitij.so 14031
      else:
14032
        iprot.skip(ftype)
14033
      iprot.readFieldEnd()
14034
    iprot.readStructEnd()
14035
 
14036
  def write(self, oprot):
14037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14039
      return
14040
    oprot.writeStructBegin('getUriMapping_args')
14041
    if self.bannerName is not None:
14042
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14043
      oprot.writeString(self.bannerName)
14044
      oprot.writeFieldEnd()
9155 kshitij.so 14045
    if self.bannerType is not None:
14046
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
14047
      oprot.writeI32(self.bannerType)
14048
      oprot.writeFieldEnd()
8579 kshitij.so 14049
    oprot.writeFieldStop()
14050
    oprot.writeStructEnd()
14051
 
14052
  def validate(self):
14053
    return
14054
 
14055
 
14056
  def __repr__(self):
14057
    L = ['%s=%r' % (key, value)
14058
      for key, value in self.__dict__.iteritems()]
14059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14060
 
14061
  def __eq__(self, other):
14062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14063
 
14064
  def __ne__(self, other):
14065
    return not (self == other)
14066
 
14067
class getUriMapping_result:
14068
  """
14069
  Attributes:
14070
   - success
14071
  """
14072
 
14073
  thrift_spec = (
14074
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
14075
  )
14076
 
14077
  def __init__(self, success=None,):
14078
    self.success = success
14079
 
14080
  def read(self, iprot):
14081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14083
      return
14084
    iprot.readStructBegin()
14085
    while True:
14086
      (fname, ftype, fid) = iprot.readFieldBegin()
14087
      if ftype == TType.STOP:
14088
        break
14089
      if fid == 0:
14090
        if ftype == TType.LIST:
14091
          self.success = []
8590 kshitij.so 14092
          (_etype242, _size239) = iprot.readListBegin()
14093
          for _i243 in xrange(_size239):
14094
            _elem244 = BannerUriMapping()
14095
            _elem244.read(iprot)
14096
            self.success.append(_elem244)
8579 kshitij.so 14097
          iprot.readListEnd()
14098
        else:
14099
          iprot.skip(ftype)
14100
      else:
14101
        iprot.skip(ftype)
14102
      iprot.readFieldEnd()
14103
    iprot.readStructEnd()
14104
 
14105
  def write(self, oprot):
14106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14108
      return
14109
    oprot.writeStructBegin('getUriMapping_result')
14110
    if self.success is not None:
14111
      oprot.writeFieldBegin('success', TType.LIST, 0)
14112
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14113
      for iter245 in self.success:
14114
        iter245.write(oprot)
8579 kshitij.so 14115
      oprot.writeListEnd()
14116
      oprot.writeFieldEnd()
14117
    oprot.writeFieldStop()
14118
    oprot.writeStructEnd()
14119
 
14120
  def validate(self):
14121
    return
14122
 
14123
 
14124
  def __repr__(self):
14125
    L = ['%s=%r' % (key, value)
14126
      for key, value in self.__dict__.iteritems()]
14127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14128
 
14129
  def __eq__(self, other):
14130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14131
 
14132
  def __ne__(self, other):
14133
    return not (self == other)
14134
 
14135
class addCampaign_args:
14136
  """
14137
  Attributes:
14138
   - campaign
14139
  """
14140
 
14141
  thrift_spec = (
14142
    None, # 0
14143
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
14144
  )
14145
 
14146
  def __init__(self, campaign=None,):
14147
    self.campaign = campaign
14148
 
14149
  def read(self, iprot):
14150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14152
      return
14153
    iprot.readStructBegin()
14154
    while True:
14155
      (fname, ftype, fid) = iprot.readFieldBegin()
14156
      if ftype == TType.STOP:
14157
        break
14158
      if fid == 1:
14159
        if ftype == TType.STRUCT:
14160
          self.campaign = Campaign()
14161
          self.campaign.read(iprot)
14162
        else:
14163
          iprot.skip(ftype)
14164
      else:
14165
        iprot.skip(ftype)
14166
      iprot.readFieldEnd()
14167
    iprot.readStructEnd()
14168
 
14169
  def write(self, oprot):
14170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14172
      return
14173
    oprot.writeStructBegin('addCampaign_args')
14174
    if self.campaign is not None:
14175
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
14176
      self.campaign.write(oprot)
14177
      oprot.writeFieldEnd()
14178
    oprot.writeFieldStop()
14179
    oprot.writeStructEnd()
14180
 
14181
  def validate(self):
14182
    return
14183
 
14184
 
14185
  def __repr__(self):
14186
    L = ['%s=%r' % (key, value)
14187
      for key, value in self.__dict__.iteritems()]
14188
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14189
 
14190
  def __eq__(self, other):
14191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14192
 
14193
  def __ne__(self, other):
14194
    return not (self == other)
14195
 
14196
class addCampaign_result:
14197
 
14198
  thrift_spec = (
14199
  )
14200
 
14201
  def read(self, iprot):
14202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14204
      return
14205
    iprot.readStructBegin()
14206
    while True:
14207
      (fname, ftype, fid) = iprot.readFieldBegin()
14208
      if ftype == TType.STOP:
14209
        break
14210
      else:
14211
        iprot.skip(ftype)
14212
      iprot.readFieldEnd()
14213
    iprot.readStructEnd()
14214
 
14215
  def write(self, oprot):
14216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14218
      return
14219
    oprot.writeStructBegin('addCampaign_result')
14220
    oprot.writeFieldStop()
14221
    oprot.writeStructEnd()
14222
 
14223
  def validate(self):
14224
    return
14225
 
14226
 
14227
  def __repr__(self):
14228
    L = ['%s=%r' % (key, value)
14229
      for key, value in self.__dict__.iteritems()]
14230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14231
 
14232
  def __eq__(self, other):
14233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14234
 
14235
  def __ne__(self, other):
14236
    return not (self == other)
14237
 
14238
class getCampaigns_args:
14239
  """
14240
  Attributes:
14241
   - campaignName
14242
  """
14243
 
14244
  thrift_spec = (
14245
    None, # 0
14246
    (1, TType.STRING, 'campaignName', None, None, ), # 1
14247
  )
14248
 
14249
  def __init__(self, campaignName=None,):
14250
    self.campaignName = campaignName
14251
 
14252
  def read(self, iprot):
14253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14255
      return
14256
    iprot.readStructBegin()
14257
    while True:
14258
      (fname, ftype, fid) = iprot.readFieldBegin()
14259
      if ftype == TType.STOP:
14260
        break
14261
      if fid == 1:
14262
        if ftype == TType.STRING:
14263
          self.campaignName = iprot.readString();
14264
        else:
14265
          iprot.skip(ftype)
14266
      else:
14267
        iprot.skip(ftype)
14268
      iprot.readFieldEnd()
14269
    iprot.readStructEnd()
14270
 
14271
  def write(self, oprot):
14272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14274
      return
14275
    oprot.writeStructBegin('getCampaigns_args')
14276
    if self.campaignName is not None:
14277
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
14278
      oprot.writeString(self.campaignName)
14279
      oprot.writeFieldEnd()
14280
    oprot.writeFieldStop()
14281
    oprot.writeStructEnd()
14282
 
14283
  def validate(self):
14284
    return
14285
 
14286
 
14287
  def __repr__(self):
14288
    L = ['%s=%r' % (key, value)
14289
      for key, value in self.__dict__.iteritems()]
14290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14291
 
14292
  def __eq__(self, other):
14293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14294
 
14295
  def __ne__(self, other):
14296
    return not (self == other)
14297
 
14298
class getCampaigns_result:
14299
  """
14300
  Attributes:
14301
   - success
14302
  """
14303
 
14304
  thrift_spec = (
14305
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
14306
  )
14307
 
14308
  def __init__(self, success=None,):
14309
    self.success = success
14310
 
14311
  def read(self, iprot):
14312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14314
      return
14315
    iprot.readStructBegin()
14316
    while True:
14317
      (fname, ftype, fid) = iprot.readFieldBegin()
14318
      if ftype == TType.STOP:
14319
        break
14320
      if fid == 0:
14321
        if ftype == TType.LIST:
14322
          self.success = []
8590 kshitij.so 14323
          (_etype249, _size246) = iprot.readListBegin()
14324
          for _i250 in xrange(_size246):
14325
            _elem251 = Campaign()
14326
            _elem251.read(iprot)
14327
            self.success.append(_elem251)
8579 kshitij.so 14328
          iprot.readListEnd()
14329
        else:
14330
          iprot.skip(ftype)
14331
      else:
14332
        iprot.skip(ftype)
14333
      iprot.readFieldEnd()
14334
    iprot.readStructEnd()
14335
 
14336
  def write(self, oprot):
14337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14339
      return
14340
    oprot.writeStructBegin('getCampaigns_result')
14341
    if self.success is not None:
14342
      oprot.writeFieldBegin('success', TType.LIST, 0)
14343
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14344
      for iter252 in self.success:
14345
        iter252.write(oprot)
8579 kshitij.so 14346
      oprot.writeListEnd()
14347
      oprot.writeFieldEnd()
14348
    oprot.writeFieldStop()
14349
    oprot.writeStructEnd()
14350
 
14351
  def validate(self):
14352
    return
14353
 
14354
 
14355
  def __repr__(self):
14356
    L = ['%s=%r' % (key, value)
14357
      for key, value in self.__dict__.iteritems()]
14358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14359
 
14360
  def __eq__(self, other):
14361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14362
 
14363
  def __ne__(self, other):
14364
    return not (self == other)
14365
 
14366
class deleteCampaign_args:
14367
  """
14368
  Attributes:
14369
   - campaignId
14370
  """
14371
 
14372
  thrift_spec = (
14373
    None, # 0
14374
    (1, TType.I64, 'campaignId', None, None, ), # 1
14375
  )
14376
 
14377
  def __init__(self, campaignId=None,):
14378
    self.campaignId = campaignId
14379
 
14380
  def read(self, iprot):
14381
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14382
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14383
      return
14384
    iprot.readStructBegin()
14385
    while True:
14386
      (fname, ftype, fid) = iprot.readFieldBegin()
14387
      if ftype == TType.STOP:
14388
        break
14389
      if fid == 1:
14390
        if ftype == TType.I64:
14391
          self.campaignId = iprot.readI64();
14392
        else:
14393
          iprot.skip(ftype)
14394
      else:
14395
        iprot.skip(ftype)
14396
      iprot.readFieldEnd()
14397
    iprot.readStructEnd()
14398
 
14399
  def write(self, oprot):
14400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14402
      return
14403
    oprot.writeStructBegin('deleteCampaign_args')
14404
    if self.campaignId is not None:
14405
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
14406
      oprot.writeI64(self.campaignId)
14407
      oprot.writeFieldEnd()
14408
    oprot.writeFieldStop()
14409
    oprot.writeStructEnd()
14410
 
14411
  def validate(self):
14412
    return
14413
 
14414
 
14415
  def __repr__(self):
14416
    L = ['%s=%r' % (key, value)
14417
      for key, value in self.__dict__.iteritems()]
14418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14419
 
14420
  def __eq__(self, other):
14421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14422
 
14423
  def __ne__(self, other):
14424
    return not (self == other)
14425
 
14426
class deleteCampaign_result:
14427
 
14428
  thrift_spec = (
14429
  )
14430
 
14431
  def read(self, iprot):
14432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14434
      return
14435
    iprot.readStructBegin()
14436
    while True:
14437
      (fname, ftype, fid) = iprot.readFieldBegin()
14438
      if ftype == TType.STOP:
14439
        break
14440
      else:
14441
        iprot.skip(ftype)
14442
      iprot.readFieldEnd()
14443
    iprot.readStructEnd()
14444
 
14445
  def write(self, oprot):
14446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14448
      return
14449
    oprot.writeStructBegin('deleteCampaign_result')
14450
    oprot.writeFieldStop()
14451
    oprot.writeStructEnd()
14452
 
14453
  def validate(self):
14454
    return
14455
 
14456
 
14457
  def __repr__(self):
14458
    L = ['%s=%r' % (key, value)
14459
      for key, value in self.__dict__.iteritems()]
14460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14461
 
14462
  def __eq__(self, other):
14463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14464
 
14465
  def __ne__(self, other):
14466
    return not (self == other)
14467
 
14468
class getAllCampaigns_args:
14469
 
14470
  thrift_spec = (
14471
  )
14472
 
14473
  def read(self, iprot):
14474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14476
      return
14477
    iprot.readStructBegin()
14478
    while True:
14479
      (fname, ftype, fid) = iprot.readFieldBegin()
14480
      if ftype == TType.STOP:
14481
        break
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('getAllCampaigns_args')
14492
    oprot.writeFieldStop()
14493
    oprot.writeStructEnd()
14494
 
14495
  def validate(self):
14496
    return
14497
 
14498
 
14499
  def __repr__(self):
14500
    L = ['%s=%r' % (key, value)
14501
      for key, value in self.__dict__.iteritems()]
14502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14503
 
14504
  def __eq__(self, other):
14505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14506
 
14507
  def __ne__(self, other):
14508
    return not (self == other)
14509
 
14510
class getAllCampaigns_result:
14511
  """
14512
  Attributes:
14513
   - success
14514
  """
14515
 
14516
  thrift_spec = (
14517
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14518
  )
14519
 
14520
  def __init__(self, success=None,):
14521
    self.success = success
14522
 
14523
  def read(self, iprot):
14524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14526
      return
14527
    iprot.readStructBegin()
14528
    while True:
14529
      (fname, ftype, fid) = iprot.readFieldBegin()
14530
      if ftype == TType.STOP:
14531
        break
14532
      if fid == 0:
14533
        if ftype == TType.LIST:
14534
          self.success = []
8590 kshitij.so 14535
          (_etype256, _size253) = iprot.readListBegin()
14536
          for _i257 in xrange(_size253):
14537
            _elem258 = iprot.readString();
14538
            self.success.append(_elem258)
8579 kshitij.so 14539
          iprot.readListEnd()
14540
        else:
14541
          iprot.skip(ftype)
14542
      else:
14543
        iprot.skip(ftype)
14544
      iprot.readFieldEnd()
14545
    iprot.readStructEnd()
14546
 
14547
  def write(self, oprot):
14548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14550
      return
14551
    oprot.writeStructBegin('getAllCampaigns_result')
14552
    if self.success is not None:
14553
      oprot.writeFieldBegin('success', TType.LIST, 0)
14554
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 14555
      for iter259 in self.success:
14556
        oprot.writeString(iter259)
8579 kshitij.so 14557
      oprot.writeListEnd()
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
 
9155 kshitij.so 14577
class getActiveBannersForMobileSite_args:
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('getActiveBannersForMobileSite_args')
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 getActiveBannersForMobileSite_result:
14620
  """
14621
  Attributes:
14622
   - success
14623
  """
14624
 
14625
  thrift_spec = (
14626
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
14627
  )
14628
 
14629
  def __init__(self, success=None,):
14630
    self.success = success
14631
 
14632
  def read(self, iprot):
14633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14635
      return
14636
    iprot.readStructBegin()
14637
    while True:
14638
      (fname, ftype, fid) = iprot.readFieldBegin()
14639
      if ftype == TType.STOP:
14640
        break
14641
      if fid == 0:
14642
        if ftype == TType.MAP:
14643
          self.success = {}
14644
          (_ktype261, _vtype262, _size260 ) = iprot.readMapBegin() 
14645
          for _i264 in xrange(_size260):
14646
            _key265 = iprot.readString();
14647
            _val266 = []
14648
            (_etype270, _size267) = iprot.readListBegin()
14649
            for _i271 in xrange(_size267):
14650
              _elem272 = Banner()
14651
              _elem272.read(iprot)
14652
              _val266.append(_elem272)
14653
            iprot.readListEnd()
14654
            self.success[_key265] = _val266
14655
          iprot.readMapEnd()
14656
        else:
14657
          iprot.skip(ftype)
14658
      else:
14659
        iprot.skip(ftype)
14660
      iprot.readFieldEnd()
14661
    iprot.readStructEnd()
14662
 
14663
  def write(self, oprot):
14664
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14665
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14666
      return
14667
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
14668
    if self.success is not None:
14669
      oprot.writeFieldBegin('success', TType.MAP, 0)
14670
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
14671
      for kiter273,viter274 in self.success.items():
14672
        oprot.writeString(kiter273)
14673
        oprot.writeListBegin(TType.STRUCT, len(viter274))
14674
        for iter275 in viter274:
14675
          iter275.write(oprot)
14676
        oprot.writeListEnd()
14677
      oprot.writeMapEnd()
14678
      oprot.writeFieldEnd()
14679
    oprot.writeFieldStop()
14680
    oprot.writeStructEnd()
14681
 
14682
  def validate(self):
14683
    return
14684
 
14685
 
14686
  def __repr__(self):
14687
    L = ['%s=%r' % (key, value)
14688
      for key, value in self.__dict__.iteritems()]
14689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14690
 
14691
  def __eq__(self, other):
14692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14693
 
14694
  def __ne__(self, other):
14695
    return not (self == other)
14696
 
5944 mandeep.dh 14697
class deleteSimilarItem_args:
14698
  """
14699
  Attributes:
14700
   - itemId
14701
   - catalogItemId
14702
  """
14703
 
14704
  thrift_spec = (
14705
    None, # 0
14706
    (1, TType.I64, 'itemId', None, None, ), # 1
14707
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
14708
  )
14709
 
14710
  def __init__(self, itemId=None, catalogItemId=None,):
14711
    self.itemId = itemId
14712
    self.catalogItemId = catalogItemId
14713
 
14714
  def read(self, iprot):
14715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14717
      return
14718
    iprot.readStructBegin()
14719
    while True:
14720
      (fname, ftype, fid) = iprot.readFieldBegin()
14721
      if ftype == TType.STOP:
14722
        break
14723
      if fid == 1:
14724
        if ftype == TType.I64:
14725
          self.itemId = iprot.readI64();
14726
        else:
14727
          iprot.skip(ftype)
14728
      elif fid == 2:
14729
        if ftype == TType.I64:
14730
          self.catalogItemId = iprot.readI64();
14731
        else:
14732
          iprot.skip(ftype)
14733
      else:
14734
        iprot.skip(ftype)
14735
      iprot.readFieldEnd()
14736
    iprot.readStructEnd()
14737
 
14738
  def write(self, oprot):
14739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14741
      return
14742
    oprot.writeStructBegin('deleteSimilarItem_args')
14743
    if self.itemId is not None:
14744
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14745
      oprot.writeI64(self.itemId)
14746
      oprot.writeFieldEnd()
14747
    if self.catalogItemId is not None:
14748
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
14749
      oprot.writeI64(self.catalogItemId)
14750
      oprot.writeFieldEnd()
14751
    oprot.writeFieldStop()
14752
    oprot.writeStructEnd()
14753
 
14754
  def validate(self):
14755
    return
14756
 
14757
 
14758
  def __repr__(self):
14759
    L = ['%s=%r' % (key, value)
14760
      for key, value in self.__dict__.iteritems()]
14761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14762
 
14763
  def __eq__(self, other):
14764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14765
 
14766
  def __ne__(self, other):
14767
    return not (self == other)
14768
 
14769
class deleteSimilarItem_result:
14770
  """
14771
  Attributes:
14772
   - success
14773
   - cex
14774
  """
14775
 
14776
  thrift_spec = (
14777
    (0, TType.BOOL, 'success', None, None, ), # 0
14778
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
14779
  )
14780
 
14781
  def __init__(self, success=None, cex=None,):
14782
    self.success = success
14783
    self.cex = cex
14784
 
14785
  def read(self, iprot):
14786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14788
      return
14789
    iprot.readStructBegin()
14790
    while True:
14791
      (fname, ftype, fid) = iprot.readFieldBegin()
14792
      if ftype == TType.STOP:
14793
        break
14794
      if fid == 0:
14795
        if ftype == TType.BOOL:
14796
          self.success = iprot.readBool();
14797
        else:
14798
          iprot.skip(ftype)
14799
      elif fid == 1:
14800
        if ftype == TType.STRUCT:
14801
          self.cex = CatalogServiceException()
14802
          self.cex.read(iprot)
14803
        else:
14804
          iprot.skip(ftype)
14805
      else:
14806
        iprot.skip(ftype)
14807
      iprot.readFieldEnd()
14808
    iprot.readStructEnd()
14809
 
14810
  def write(self, oprot):
14811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14813
      return
14814
    oprot.writeStructBegin('deleteSimilarItem_result')
14815
    if self.success is not None:
14816
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14817
      oprot.writeBool(self.success)
14818
      oprot.writeFieldEnd()
14819
    if self.cex is not None:
14820
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14821
      self.cex.write(oprot)
14822
      oprot.writeFieldEnd()
14823
    oprot.writeFieldStop()
14824
    oprot.writeStructEnd()
14825
 
14826
  def validate(self):
14827
    return
14828
 
14829
 
14830
  def __repr__(self):
14831
    L = ['%s=%r' % (key, value)
14832
      for key, value in self.__dict__.iteritems()]
14833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14834
 
14835
  def __eq__(self, other):
14836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14837
 
14838
  def __ne__(self, other):
14839
    return not (self == other)
14840
 
14841
class checkSimilarItem_args:
14842
  """
14843
  Attributes:
14844
   - brand
14845
   - modelNumber
14846
   - modelName
14847
   - color
14848
  """
14849
 
14850
  thrift_spec = (
14851
    None, # 0
14852
    (1, TType.STRING, 'brand', None, None, ), # 1
14853
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
14854
    (3, TType.STRING, 'modelName', None, None, ), # 3
14855
    (4, TType.STRING, 'color', None, None, ), # 4
14856
  )
14857
 
14858
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
14859
    self.brand = brand
14860
    self.modelNumber = modelNumber
14861
    self.modelName = modelName
14862
    self.color = color
14863
 
14864
  def read(self, iprot):
14865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14867
      return
14868
    iprot.readStructBegin()
14869
    while True:
14870
      (fname, ftype, fid) = iprot.readFieldBegin()
14871
      if ftype == TType.STOP:
14872
        break
14873
      if fid == 1:
14874
        if ftype == TType.STRING:
14875
          self.brand = iprot.readString();
14876
        else:
14877
          iprot.skip(ftype)
14878
      elif fid == 2:
14879
        if ftype == TType.STRING:
14880
          self.modelNumber = iprot.readString();
14881
        else:
14882
          iprot.skip(ftype)
14883
      elif fid == 3:
14884
        if ftype == TType.STRING:
14885
          self.modelName = iprot.readString();
14886
        else:
14887
          iprot.skip(ftype)
14888
      elif fid == 4:
14889
        if ftype == TType.STRING:
14890
          self.color = iprot.readString();
14891
        else:
14892
          iprot.skip(ftype)
14893
      else:
14894
        iprot.skip(ftype)
14895
      iprot.readFieldEnd()
14896
    iprot.readStructEnd()
14897
 
14898
  def write(self, oprot):
14899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14901
      return
14902
    oprot.writeStructBegin('checkSimilarItem_args')
14903
    if self.brand is not None:
14904
      oprot.writeFieldBegin('brand', TType.STRING, 1)
14905
      oprot.writeString(self.brand)
14906
      oprot.writeFieldEnd()
14907
    if self.modelNumber is not None:
14908
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
14909
      oprot.writeString(self.modelNumber)
14910
      oprot.writeFieldEnd()
14911
    if self.modelName is not None:
14912
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
14913
      oprot.writeString(self.modelName)
14914
      oprot.writeFieldEnd()
14915
    if self.color is not None:
14916
      oprot.writeFieldBegin('color', TType.STRING, 4)
14917
      oprot.writeString(self.color)
14918
      oprot.writeFieldEnd()
14919
    oprot.writeFieldStop()
14920
    oprot.writeStructEnd()
14921
 
14922
  def validate(self):
14923
    return
14924
 
14925
 
14926
  def __repr__(self):
14927
    L = ['%s=%r' % (key, value)
14928
      for key, value in self.__dict__.iteritems()]
14929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14930
 
14931
  def __eq__(self, other):
14932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14933
 
14934
  def __ne__(self, other):
14935
    return not (self == other)
14936
 
14937
class checkSimilarItem_result:
14938
  """
14939
  Attributes:
14940
   - success
14941
  """
14942
 
14943
  thrift_spec = (
14944
    (0, TType.I64, 'success', None, None, ), # 0
14945
  )
14946
 
14947
  def __init__(self, success=None,):
14948
    self.success = success
14949
 
14950
  def read(self, iprot):
14951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14953
      return
14954
    iprot.readStructBegin()
14955
    while True:
14956
      (fname, ftype, fid) = iprot.readFieldBegin()
14957
      if ftype == TType.STOP:
14958
        break
14959
      if fid == 0:
14960
        if ftype == TType.I64:
14961
          self.success = iprot.readI64();
14962
        else:
14963
          iprot.skip(ftype)
14964
      else:
14965
        iprot.skip(ftype)
14966
      iprot.readFieldEnd()
14967
    iprot.readStructEnd()
14968
 
14969
  def write(self, oprot):
14970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14972
      return
14973
    oprot.writeStructBegin('checkSimilarItem_result')
14974
    if self.success is not None:
14975
      oprot.writeFieldBegin('success', TType.I64, 0)
14976
      oprot.writeI64(self.success)
14977
      oprot.writeFieldEnd()
14978
    oprot.writeFieldStop()
14979
    oprot.writeStructEnd()
14980
 
14981
  def validate(self):
14982
    return
14983
 
14984
 
14985
  def __repr__(self):
14986
    L = ['%s=%r' % (key, value)
14987
      for key, value in self.__dict__.iteritems()]
14988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14989
 
14990
  def __eq__(self, other):
14991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14992
 
14993
  def __ne__(self, other):
14994
    return not (self == other)
14995
 
14996
class validateRiskyStatus_args:
14997
  """
14998
  Attributes:
14999
   - itemId
15000
  """
15001
 
15002
  thrift_spec = (
15003
    None, # 0
15004
    (1, TType.I64, 'itemId', None, None, ), # 1
15005
  )
15006
 
15007
  def __init__(self, itemId=None,):
15008
    self.itemId = itemId
15009
 
15010
  def read(self, iprot):
15011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15013
      return
15014
    iprot.readStructBegin()
15015
    while True:
15016
      (fname, ftype, fid) = iprot.readFieldBegin()
15017
      if ftype == TType.STOP:
15018
        break
15019
      if fid == 1:
15020
        if ftype == TType.I64:
15021
          self.itemId = iprot.readI64();
15022
        else:
15023
          iprot.skip(ftype)
15024
      else:
15025
        iprot.skip(ftype)
15026
      iprot.readFieldEnd()
15027
    iprot.readStructEnd()
15028
 
15029
  def write(self, oprot):
15030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15032
      return
15033
    oprot.writeStructBegin('validateRiskyStatus_args')
15034
    if self.itemId is not None:
15035
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15036
      oprot.writeI64(self.itemId)
15037
      oprot.writeFieldEnd()
15038
    oprot.writeFieldStop()
15039
    oprot.writeStructEnd()
15040
 
15041
  def validate(self):
15042
    return
15043
 
15044
 
15045
  def __repr__(self):
15046
    L = ['%s=%r' % (key, value)
15047
      for key, value in self.__dict__.iteritems()]
15048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15049
 
15050
  def __eq__(self, other):
15051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15052
 
15053
  def __ne__(self, other):
15054
    return not (self == other)
15055
 
15056
class validateRiskyStatus_result:
15057
 
15058
  thrift_spec = (
15059
  )
15060
 
15061
  def read(self, iprot):
15062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15064
      return
15065
    iprot.readStructBegin()
15066
    while True:
15067
      (fname, ftype, fid) = iprot.readFieldBegin()
15068
      if ftype == TType.STOP:
15069
        break
15070
      else:
15071
        iprot.skip(ftype)
15072
      iprot.readFieldEnd()
15073
    iprot.readStructEnd()
15074
 
15075
  def write(self, oprot):
15076
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15077
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15078
      return
15079
    oprot.writeStructBegin('validateRiskyStatus_result')
15080
    oprot.writeFieldStop()
15081
    oprot.writeStructEnd()
15082
 
15083
  def validate(self):
15084
    return
15085
 
15086
 
15087
  def __repr__(self):
15088
    L = ['%s=%r' % (key, value)
15089
      for key, value in self.__dict__.iteritems()]
15090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15091
 
15092
  def __eq__(self, other):
15093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15094
 
15095
  def __ne__(self, other):
15096
    return not (self == other)
15097
 
15098
class changeItemRiskyFlag_args:
15099
  """
15100
  Attributes:
15101
   - itemId
15102
   - risky
15103
  """
15104
 
15105
  thrift_spec = (
15106
    None, # 0
15107
    (1, TType.I64, 'itemId', None, None, ), # 1
15108
    (2, TType.BOOL, 'risky', None, None, ), # 2
15109
  )
15110
 
15111
  def __init__(self, itemId=None, risky=None,):
15112
    self.itemId = itemId
15113
    self.risky = risky
15114
 
15115
  def read(self, iprot):
15116
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15117
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15118
      return
15119
    iprot.readStructBegin()
15120
    while True:
15121
      (fname, ftype, fid) = iprot.readFieldBegin()
15122
      if ftype == TType.STOP:
15123
        break
15124
      if fid == 1:
15125
        if ftype == TType.I64:
15126
          self.itemId = iprot.readI64();
15127
        else:
15128
          iprot.skip(ftype)
15129
      elif fid == 2:
15130
        if ftype == TType.BOOL:
15131
          self.risky = iprot.readBool();
15132
        else:
15133
          iprot.skip(ftype)
15134
      else:
15135
        iprot.skip(ftype)
15136
      iprot.readFieldEnd()
15137
    iprot.readStructEnd()
15138
 
15139
  def write(self, oprot):
15140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15142
      return
15143
    oprot.writeStructBegin('changeItemRiskyFlag_args')
15144
    if self.itemId is not None:
15145
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15146
      oprot.writeI64(self.itemId)
15147
      oprot.writeFieldEnd()
15148
    if self.risky is not None:
15149
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
15150
      oprot.writeBool(self.risky)
15151
      oprot.writeFieldEnd()
15152
    oprot.writeFieldStop()
15153
    oprot.writeStructEnd()
15154
 
15155
  def validate(self):
15156
    return
15157
 
15158
 
15159
  def __repr__(self):
15160
    L = ['%s=%r' % (key, value)
15161
      for key, value in self.__dict__.iteritems()]
15162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15163
 
15164
  def __eq__(self, other):
15165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15166
 
15167
  def __ne__(self, other):
15168
    return not (self == other)
15169
 
15170
class changeItemRiskyFlag_result:
15171
 
15172
  thrift_spec = (
15173
  )
15174
 
15175
  def read(self, iprot):
15176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15178
      return
15179
    iprot.readStructBegin()
15180
    while True:
15181
      (fname, ftype, fid) = iprot.readFieldBegin()
15182
      if ftype == TType.STOP:
15183
        break
15184
      else:
15185
        iprot.skip(ftype)
15186
      iprot.readFieldEnd()
15187
    iprot.readStructEnd()
15188
 
15189
  def write(self, oprot):
15190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15192
      return
15193
    oprot.writeStructBegin('changeItemRiskyFlag_result')
15194
    oprot.writeFieldStop()
15195
    oprot.writeStructEnd()
15196
 
15197
  def validate(self):
15198
    return
15199
 
15200
 
15201
  def __repr__(self):
15202
    L = ['%s=%r' % (key, value)
15203
      for key, value in self.__dict__.iteritems()]
15204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15205
 
15206
  def __eq__(self, other):
15207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15208
 
15209
  def __ne__(self, other):
15210
    return not (self == other)
15211
 
15212
class getItemsByRiskyFlag_args:
15213
 
15214
  thrift_spec = (
15215
  )
15216
 
15217
  def read(self, iprot):
15218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15220
      return
15221
    iprot.readStructBegin()
15222
    while True:
15223
      (fname, ftype, fid) = iprot.readFieldBegin()
15224
      if ftype == TType.STOP:
15225
        break
15226
      else:
15227
        iprot.skip(ftype)
15228
      iprot.readFieldEnd()
15229
    iprot.readStructEnd()
15230
 
15231
  def write(self, oprot):
15232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15234
      return
15235
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
15236
    oprot.writeFieldStop()
15237
    oprot.writeStructEnd()
15238
 
15239
  def validate(self):
15240
    return
15241
 
15242
 
15243
  def __repr__(self):
15244
    L = ['%s=%r' % (key, value)
15245
      for key, value in self.__dict__.iteritems()]
15246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15247
 
15248
  def __eq__(self, other):
15249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15250
 
15251
  def __ne__(self, other):
15252
    return not (self == other)
15253
 
15254
class getItemsByRiskyFlag_result:
15255
  """
15256
  Attributes:
15257
   - success
15258
  """
15259
 
15260
  thrift_spec = (
15261
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
15262
  )
15263
 
15264
  def __init__(self, success=None,):
15265
    self.success = success
15266
 
15267
  def read(self, iprot):
15268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15270
      return
15271
    iprot.readStructBegin()
15272
    while True:
15273
      (fname, ftype, fid) = iprot.readFieldBegin()
15274
      if ftype == TType.STOP:
15275
        break
15276
      if fid == 0:
15277
        if ftype == TType.LIST:
15278
          self.success = []
9155 kshitij.so 15279
          (_etype279, _size276) = iprot.readListBegin()
15280
          for _i280 in xrange(_size276):
15281
            _elem281 = Item()
15282
            _elem281.read(iprot)
15283
            self.success.append(_elem281)
5944 mandeep.dh 15284
          iprot.readListEnd()
15285
        else:
15286
          iprot.skip(ftype)
15287
      else:
15288
        iprot.skip(ftype)
15289
      iprot.readFieldEnd()
15290
    iprot.readStructEnd()
15291
 
15292
  def write(self, oprot):
15293
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15294
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15295
      return
15296
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
15297
    if self.success is not None:
15298
      oprot.writeFieldBegin('success', TType.LIST, 0)
15299
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 15300
      for iter282 in self.success:
15301
        iter282.write(oprot)
5944 mandeep.dh 15302
      oprot.writeListEnd()
15303
      oprot.writeFieldEnd()
15304
    oprot.writeFieldStop()
15305
    oprot.writeStructEnd()
15306
 
15307
  def validate(self):
15308
    return
15309
 
15310
 
15311
  def __repr__(self):
15312
    L = ['%s=%r' % (key, value)
15313
      for key, value in self.__dict__.iteritems()]
15314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15315
 
15316
  def __eq__(self, other):
15317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15318
 
15319
  def __ne__(self, other):
15320
    return not (self == other)
15321
 
15322
class getItemsForMasterSheet_args:
15323
  """
15324
  Attributes:
15325
   - category
15326
   - brand
15327
  """
15328
 
15329
  thrift_spec = (
15330
    None, # 0
15331
    (1, TType.STRING, 'category', None, None, ), # 1
15332
    (2, TType.STRING, 'brand', None, None, ), # 2
15333
  )
15334
 
15335
  def __init__(self, category=None, brand=None,):
15336
    self.category = category
15337
    self.brand = brand
15338
 
15339
  def read(self, iprot):
15340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15342
      return
15343
    iprot.readStructBegin()
15344
    while True:
15345
      (fname, ftype, fid) = iprot.readFieldBegin()
15346
      if ftype == TType.STOP:
15347
        break
15348
      if fid == 1:
15349
        if ftype == TType.STRING:
15350
          self.category = iprot.readString();
15351
        else:
15352
          iprot.skip(ftype)
15353
      elif fid == 2:
15354
        if ftype == TType.STRING:
15355
          self.brand = iprot.readString();
15356
        else:
15357
          iprot.skip(ftype)
15358
      else:
15359
        iprot.skip(ftype)
15360
      iprot.readFieldEnd()
15361
    iprot.readStructEnd()
15362
 
15363
  def write(self, oprot):
15364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15366
      return
15367
    oprot.writeStructBegin('getItemsForMasterSheet_args')
15368
    if self.category is not None:
15369
      oprot.writeFieldBegin('category', TType.STRING, 1)
15370
      oprot.writeString(self.category)
15371
      oprot.writeFieldEnd()
15372
    if self.brand is not None:
15373
      oprot.writeFieldBegin('brand', TType.STRING, 2)
15374
      oprot.writeString(self.brand)
15375
      oprot.writeFieldEnd()
15376
    oprot.writeFieldStop()
15377
    oprot.writeStructEnd()
15378
 
15379
  def validate(self):
15380
    return
15381
 
15382
 
15383
  def __repr__(self):
15384
    L = ['%s=%r' % (key, value)
15385
      for key, value in self.__dict__.iteritems()]
15386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15387
 
15388
  def __eq__(self, other):
15389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15390
 
15391
  def __ne__(self, other):
15392
    return not (self == other)
15393
 
15394
class getItemsForMasterSheet_result:
15395
  """
15396
  Attributes:
15397
   - success
15398
  """
15399
 
15400
  thrift_spec = (
15401
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
15402
  )
15403
 
15404
  def __init__(self, success=None,):
15405
    self.success = success
15406
 
15407
  def read(self, iprot):
15408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15410
      return
15411
    iprot.readStructBegin()
15412
    while True:
15413
      (fname, ftype, fid) = iprot.readFieldBegin()
15414
      if ftype == TType.STOP:
15415
        break
15416
      if fid == 0:
15417
        if ftype == TType.LIST:
15418
          self.success = []
9155 kshitij.so 15419
          (_etype286, _size283) = iprot.readListBegin()
15420
          for _i287 in xrange(_size283):
15421
            _elem288 = Item()
15422
            _elem288.read(iprot)
15423
            self.success.append(_elem288)
5944 mandeep.dh 15424
          iprot.readListEnd()
15425
        else:
15426
          iprot.skip(ftype)
15427
      else:
15428
        iprot.skip(ftype)
15429
      iprot.readFieldEnd()
15430
    iprot.readStructEnd()
15431
 
15432
  def write(self, oprot):
15433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15435
      return
15436
    oprot.writeStructBegin('getItemsForMasterSheet_result')
15437
    if self.success is not None:
15438
      oprot.writeFieldBegin('success', TType.LIST, 0)
15439
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 15440
      for iter289 in self.success:
15441
        iter289.write(oprot)
5944 mandeep.dh 15442
      oprot.writeListEnd()
15443
      oprot.writeFieldEnd()
15444
    oprot.writeFieldStop()
15445
    oprot.writeStructEnd()
15446
 
15447
  def validate(self):
15448
    return
15449
 
15450
 
15451
  def __repr__(self):
15452
    L = ['%s=%r' % (key, value)
15453
      for key, value in self.__dict__.iteritems()]
15454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15455
 
15456
  def __eq__(self, other):
15457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15458
 
15459
  def __ne__(self, other):
15460
    return not (self == other)
15461
 
15462
class getSimilarItemsCatalogIds_args:
15463
  """
15464
  Attributes:
15465
   - beginIndex
15466
   - totalItems
15467
   - itemId
15468
  """
15469
 
15470
  thrift_spec = (
15471
    None, # 0
15472
    (1, TType.I64, 'beginIndex', None, None, ), # 1
15473
    (2, TType.I64, 'totalItems', None, None, ), # 2
15474
    (3, TType.I64, 'itemId', None, None, ), # 3
15475
  )
15476
 
15477
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
15478
    self.beginIndex = beginIndex
15479
    self.totalItems = totalItems
15480
    self.itemId = itemId
15481
 
15482
  def read(self, iprot):
15483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15485
      return
15486
    iprot.readStructBegin()
15487
    while True:
15488
      (fname, ftype, fid) = iprot.readFieldBegin()
15489
      if ftype == TType.STOP:
15490
        break
15491
      if fid == 1:
15492
        if ftype == TType.I64:
15493
          self.beginIndex = iprot.readI64();
15494
        else:
15495
          iprot.skip(ftype)
15496
      elif fid == 2:
15497
        if ftype == TType.I64:
15498
          self.totalItems = iprot.readI64();
15499
        else:
15500
          iprot.skip(ftype)
15501
      elif fid == 3:
15502
        if ftype == TType.I64:
15503
          self.itemId = iprot.readI64();
15504
        else:
15505
          iprot.skip(ftype)
15506
      else:
15507
        iprot.skip(ftype)
15508
      iprot.readFieldEnd()
15509
    iprot.readStructEnd()
15510
 
15511
  def write(self, oprot):
15512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15514
      return
15515
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
15516
    if self.beginIndex is not None:
15517
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
15518
      oprot.writeI64(self.beginIndex)
15519
      oprot.writeFieldEnd()
15520
    if self.totalItems is not None:
15521
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
15522
      oprot.writeI64(self.totalItems)
15523
      oprot.writeFieldEnd()
15524
    if self.itemId is not None:
15525
      oprot.writeFieldBegin('itemId', TType.I64, 3)
15526
      oprot.writeI64(self.itemId)
15527
      oprot.writeFieldEnd()
15528
    oprot.writeFieldStop()
15529
    oprot.writeStructEnd()
15530
 
15531
  def validate(self):
15532
    return
15533
 
15534
 
15535
  def __repr__(self):
15536
    L = ['%s=%r' % (key, value)
15537
      for key, value in self.__dict__.iteritems()]
15538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15539
 
15540
  def __eq__(self, other):
15541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15542
 
15543
  def __ne__(self, other):
15544
    return not (self == other)
15545
 
15546
class getSimilarItemsCatalogIds_result:
15547
  """
15548
  Attributes:
15549
   - success
15550
  """
15551
 
15552
  thrift_spec = (
15553
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
15554
  )
15555
 
15556
  def __init__(self, success=None,):
15557
    self.success = success
15558
 
15559
  def read(self, iprot):
15560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15562
      return
15563
    iprot.readStructBegin()
15564
    while True:
15565
      (fname, ftype, fid) = iprot.readFieldBegin()
15566
      if ftype == TType.STOP:
15567
        break
15568
      if fid == 0:
15569
        if ftype == TType.LIST:
15570
          self.success = []
9155 kshitij.so 15571
          (_etype293, _size290) = iprot.readListBegin()
15572
          for _i294 in xrange(_size290):
15573
            _elem295 = iprot.readI64();
15574
            self.success.append(_elem295)
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('getSimilarItemsCatalogIds_result')
15588
    if self.success is not None:
15589
      oprot.writeFieldBegin('success', TType.LIST, 0)
15590
      oprot.writeListBegin(TType.I64, len(self.success))
9155 kshitij.so 15591
      for iter296 in self.success:
15592
        oprot.writeI64(iter296)
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 addProductNotification_args:
15614
  """
15615
  Attributes:
15616
   - itemId
15617
   - email
15618
  """
15619
 
15620
  thrift_spec = None
15621
  def __init__(self, itemId=None, email=None,):
15622
    self.itemId = itemId
15623
    self.email = email
15624
 
15625
  def read(self, iprot):
15626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15628
      return
15629
    iprot.readStructBegin()
15630
    while True:
15631
      (fname, ftype, fid) = iprot.readFieldBegin()
15632
      if ftype == TType.STOP:
15633
        break
15634
      if fid == -1:
15635
        if ftype == TType.I64:
15636
          self.itemId = iprot.readI64();
15637
        else:
15638
          iprot.skip(ftype)
15639
      elif fid == -2:
15640
        if ftype == TType.STRING:
15641
          self.email = iprot.readString();
15642
        else:
15643
          iprot.skip(ftype)
15644
      else:
15645
        iprot.skip(ftype)
15646
      iprot.readFieldEnd()
15647
    iprot.readStructEnd()
15648
 
15649
  def write(self, oprot):
15650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15652
      return
15653
    oprot.writeStructBegin('addProductNotification_args')
15654
    if self.email is not None:
15655
      oprot.writeFieldBegin('email', TType.STRING, -2)
15656
      oprot.writeString(self.email)
15657
      oprot.writeFieldEnd()
15658
    if self.itemId is not None:
15659
      oprot.writeFieldBegin('itemId', TType.I64, -1)
15660
      oprot.writeI64(self.itemId)
15661
      oprot.writeFieldEnd()
15662
    oprot.writeFieldStop()
15663
    oprot.writeStructEnd()
15664
 
15665
  def validate(self):
15666
    return
15667
 
15668
 
15669
  def __repr__(self):
15670
    L = ['%s=%r' % (key, value)
15671
      for key, value in self.__dict__.iteritems()]
15672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15673
 
15674
  def __eq__(self, other):
15675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15676
 
15677
  def __ne__(self, other):
15678
    return not (self == other)
15679
 
15680
class addProductNotification_result:
15681
  """
15682
  Attributes:
15683
   - success
15684
  """
15685
 
15686
  thrift_spec = (
15687
    (0, TType.BOOL, 'success', None, None, ), # 0
15688
  )
15689
 
15690
  def __init__(self, success=None,):
15691
    self.success = success
15692
 
15693
  def read(self, iprot):
15694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15696
      return
15697
    iprot.readStructBegin()
15698
    while True:
15699
      (fname, ftype, fid) = iprot.readFieldBegin()
15700
      if ftype == TType.STOP:
15701
        break
15702
      if fid == 0:
15703
        if ftype == TType.BOOL:
15704
          self.success = iprot.readBool();
15705
        else:
15706
          iprot.skip(ftype)
15707
      else:
15708
        iprot.skip(ftype)
15709
      iprot.readFieldEnd()
15710
    iprot.readStructEnd()
15711
 
15712
  def write(self, oprot):
15713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15715
      return
15716
    oprot.writeStructBegin('addProductNotification_result')
15717
    if self.success is not None:
15718
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15719
      oprot.writeBool(self.success)
15720
      oprot.writeFieldEnd()
15721
    oprot.writeFieldStop()
15722
    oprot.writeStructEnd()
15723
 
15724
  def validate(self):
15725
    return
15726
 
15727
 
15728
  def __repr__(self):
15729
    L = ['%s=%r' % (key, value)
15730
      for key, value in self.__dict__.iteritems()]
15731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15732
 
15733
  def __eq__(self, other):
15734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15735
 
15736
  def __ne__(self, other):
15737
    return not (self == other)
15738
 
15739
class sendProductNotifications_args:
15740
 
15741
  thrift_spec = (
15742
  )
15743
 
15744
  def read(self, iprot):
15745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15747
      return
15748
    iprot.readStructBegin()
15749
    while True:
15750
      (fname, ftype, fid) = iprot.readFieldBegin()
15751
      if ftype == TType.STOP:
15752
        break
15753
      else:
15754
        iprot.skip(ftype)
15755
      iprot.readFieldEnd()
15756
    iprot.readStructEnd()
15757
 
15758
  def write(self, oprot):
15759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15761
      return
15762
    oprot.writeStructBegin('sendProductNotifications_args')
15763
    oprot.writeFieldStop()
15764
    oprot.writeStructEnd()
15765
 
15766
  def validate(self):
15767
    return
15768
 
15769
 
15770
  def __repr__(self):
15771
    L = ['%s=%r' % (key, value)
15772
      for key, value in self.__dict__.iteritems()]
15773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15774
 
15775
  def __eq__(self, other):
15776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15777
 
15778
  def __ne__(self, other):
15779
    return not (self == other)
15780
 
15781
class sendProductNotifications_result:
15782
  """
15783
  Attributes:
15784
   - success
15785
  """
15786
 
15787
  thrift_spec = (
15788
    (0, TType.BOOL, 'success', None, None, ), # 0
15789
  )
15790
 
15791
  def __init__(self, success=None,):
15792
    self.success = success
15793
 
15794
  def read(self, iprot):
15795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15797
      return
15798
    iprot.readStructBegin()
15799
    while True:
15800
      (fname, ftype, fid) = iprot.readFieldBegin()
15801
      if ftype == TType.STOP:
15802
        break
15803
      if fid == 0:
15804
        if ftype == TType.BOOL:
15805
          self.success = iprot.readBool();
15806
        else:
15807
          iprot.skip(ftype)
15808
      else:
15809
        iprot.skip(ftype)
15810
      iprot.readFieldEnd()
15811
    iprot.readStructEnd()
15812
 
15813
  def write(self, oprot):
15814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15816
      return
15817
    oprot.writeStructBegin('sendProductNotifications_result')
15818
    if self.success is not None:
15819
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15820
      oprot.writeBool(self.success)
15821
      oprot.writeFieldEnd()
15822
    oprot.writeFieldStop()
15823
    oprot.writeStructEnd()
15824
 
15825
  def validate(self):
15826
    return
15827
 
15828
 
15829
  def __repr__(self):
15830
    L = ['%s=%r' % (key, value)
15831
      for key, value in self.__dict__.iteritems()]
15832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15833
 
15834
  def __eq__(self, other):
15835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15836
 
15837
  def __ne__(self, other):
15838
    return not (self == other)
15839
 
15840
class getAllBrandsByCategory_args:
15841
  """
15842
  Attributes:
15843
   - categoryId
15844
  """
15845
 
15846
  thrift_spec = (
15847
    None, # 0
15848
    (1, TType.I64, 'categoryId', None, None, ), # 1
15849
  )
15850
 
15851
  def __init__(self, categoryId=None,):
15852
    self.categoryId = categoryId
15853
 
15854
  def read(self, iprot):
15855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15857
      return
15858
    iprot.readStructBegin()
15859
    while True:
15860
      (fname, ftype, fid) = iprot.readFieldBegin()
15861
      if ftype == TType.STOP:
15862
        break
15863
      if fid == 1:
15864
        if ftype == TType.I64:
15865
          self.categoryId = iprot.readI64();
15866
        else:
15867
          iprot.skip(ftype)
15868
      else:
15869
        iprot.skip(ftype)
15870
      iprot.readFieldEnd()
15871
    iprot.readStructEnd()
15872
 
15873
  def write(self, oprot):
15874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15876
      return
15877
    oprot.writeStructBegin('getAllBrandsByCategory_args')
15878
    if self.categoryId is not None:
15879
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
15880
      oprot.writeI64(self.categoryId)
15881
      oprot.writeFieldEnd()
15882
    oprot.writeFieldStop()
15883
    oprot.writeStructEnd()
15884
 
15885
  def validate(self):
15886
    return
15887
 
15888
 
15889
  def __repr__(self):
15890
    L = ['%s=%r' % (key, value)
15891
      for key, value in self.__dict__.iteritems()]
15892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15893
 
15894
  def __eq__(self, other):
15895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15896
 
15897
  def __ne__(self, other):
15898
    return not (self == other)
15899
 
15900
class getAllBrandsByCategory_result:
15901
  """
15902
  Attributes:
15903
   - success
15904
  """
15905
 
15906
  thrift_spec = (
15907
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
15908
  )
15909
 
15910
  def __init__(self, success=None,):
15911
    self.success = success
15912
 
15913
  def read(self, iprot):
15914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15916
      return
15917
    iprot.readStructBegin()
15918
    while True:
15919
      (fname, ftype, fid) = iprot.readFieldBegin()
15920
      if ftype == TType.STOP:
15921
        break
15922
      if fid == 0:
15923
        if ftype == TType.LIST:
15924
          self.success = []
9155 kshitij.so 15925
          (_etype300, _size297) = iprot.readListBegin()
15926
          for _i301 in xrange(_size297):
15927
            _elem302 = iprot.readString();
15928
            self.success.append(_elem302)
5944 mandeep.dh 15929
          iprot.readListEnd()
15930
        else:
15931
          iprot.skip(ftype)
15932
      else:
15933
        iprot.skip(ftype)
15934
      iprot.readFieldEnd()
15935
    iprot.readStructEnd()
15936
 
15937
  def write(self, oprot):
15938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15940
      return
15941
    oprot.writeStructBegin('getAllBrandsByCategory_result')
15942
    if self.success is not None:
15943
      oprot.writeFieldBegin('success', TType.LIST, 0)
15944
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 15945
      for iter303 in self.success:
15946
        oprot.writeString(iter303)
5944 mandeep.dh 15947
      oprot.writeListEnd()
15948
      oprot.writeFieldEnd()
15949
    oprot.writeFieldStop()
15950
    oprot.writeStructEnd()
15951
 
15952
  def validate(self):
15953
    return
15954
 
15955
 
15956
  def __repr__(self):
15957
    L = ['%s=%r' % (key, value)
15958
      for key, value in self.__dict__.iteritems()]
15959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15960
 
15961
  def __eq__(self, other):
15962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15963
 
15964
  def __ne__(self, other):
15965
    return not (self == other)
15966
 
15967
class getAllBrands_args:
15968
 
15969
  thrift_spec = (
15970
  )
15971
 
15972
  def read(self, iprot):
15973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15975
      return
15976
    iprot.readStructBegin()
15977
    while True:
15978
      (fname, ftype, fid) = iprot.readFieldBegin()
15979
      if ftype == TType.STOP:
15980
        break
15981
      else:
15982
        iprot.skip(ftype)
15983
      iprot.readFieldEnd()
15984
    iprot.readStructEnd()
15985
 
15986
  def write(self, oprot):
15987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15989
      return
15990
    oprot.writeStructBegin('getAllBrands_args')
15991
    oprot.writeFieldStop()
15992
    oprot.writeStructEnd()
15993
 
15994
  def validate(self):
15995
    return
15996
 
15997
 
15998
  def __repr__(self):
15999
    L = ['%s=%r' % (key, value)
16000
      for key, value in self.__dict__.iteritems()]
16001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16002
 
16003
  def __eq__(self, other):
16004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16005
 
16006
  def __ne__(self, other):
16007
    return not (self == other)
16008
 
16009
class getAllBrands_result:
16010
  """
16011
  Attributes:
16012
   - success
16013
  """
16014
 
16015
  thrift_spec = (
16016
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16017
  )
16018
 
16019
  def __init__(self, success=None,):
16020
    self.success = success
16021
 
16022
  def read(self, iprot):
16023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16025
      return
16026
    iprot.readStructBegin()
16027
    while True:
16028
      (fname, ftype, fid) = iprot.readFieldBegin()
16029
      if ftype == TType.STOP:
16030
        break
16031
      if fid == 0:
16032
        if ftype == TType.LIST:
16033
          self.success = []
9155 kshitij.so 16034
          (_etype307, _size304) = iprot.readListBegin()
16035
          for _i308 in xrange(_size304):
16036
            _elem309 = iprot.readString();
16037
            self.success.append(_elem309)
5944 mandeep.dh 16038
          iprot.readListEnd()
16039
        else:
16040
          iprot.skip(ftype)
16041
      else:
16042
        iprot.skip(ftype)
16043
      iprot.readFieldEnd()
16044
    iprot.readStructEnd()
16045
 
16046
  def write(self, oprot):
16047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16049
      return
16050
    oprot.writeStructBegin('getAllBrands_result')
16051
    if self.success is not None:
16052
      oprot.writeFieldBegin('success', TType.LIST, 0)
16053
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 16054
      for iter310 in self.success:
16055
        oprot.writeString(iter310)
5944 mandeep.dh 16056
      oprot.writeListEnd()
16057
      oprot.writeFieldEnd()
16058
    oprot.writeFieldStop()
16059
    oprot.writeStructEnd()
16060
 
16061
  def validate(self):
16062
    return
16063
 
16064
 
16065
  def __repr__(self):
16066
    L = ['%s=%r' % (key, value)
16067
      for key, value in self.__dict__.iteritems()]
16068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16069
 
16070
  def __eq__(self, other):
16071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16072
 
16073
  def __ne__(self, other):
16074
    return not (self == other)
16075
 
16076
class getAllSources_args:
16077
 
16078
  thrift_spec = (
16079
  )
16080
 
16081
  def read(self, iprot):
16082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16084
      return
16085
    iprot.readStructBegin()
16086
    while True:
16087
      (fname, ftype, fid) = iprot.readFieldBegin()
16088
      if ftype == TType.STOP:
16089
        break
16090
      else:
16091
        iprot.skip(ftype)
16092
      iprot.readFieldEnd()
16093
    iprot.readStructEnd()
16094
 
16095
  def write(self, oprot):
16096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16098
      return
16099
    oprot.writeStructBegin('getAllSources_args')
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 getAllSources_result:
16119
  """
16120
  Attributes:
16121
   - success
16122
  """
16123
 
16124
  thrift_spec = (
16125
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
16126
  )
16127
 
16128
  def __init__(self, success=None,):
16129
    self.success = success
16130
 
16131
  def read(self, iprot):
16132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16134
      return
16135
    iprot.readStructBegin()
16136
    while True:
16137
      (fname, ftype, fid) = iprot.readFieldBegin()
16138
      if ftype == TType.STOP:
16139
        break
16140
      if fid == 0:
16141
        if ftype == TType.LIST:
16142
          self.success = []
9155 kshitij.so 16143
          (_etype314, _size311) = iprot.readListBegin()
16144
          for _i315 in xrange(_size311):
16145
            _elem316 = Source()
16146
            _elem316.read(iprot)
16147
            self.success.append(_elem316)
5944 mandeep.dh 16148
          iprot.readListEnd()
16149
        else:
16150
          iprot.skip(ftype)
16151
      else:
16152
        iprot.skip(ftype)
16153
      iprot.readFieldEnd()
16154
    iprot.readStructEnd()
16155
 
16156
  def write(self, oprot):
16157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16159
      return
16160
    oprot.writeStructBegin('getAllSources_result')
16161
    if self.success is not None:
16162
      oprot.writeFieldBegin('success', TType.LIST, 0)
16163
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16164
      for iter317 in self.success:
16165
        iter317.write(oprot)
5944 mandeep.dh 16166
      oprot.writeListEnd()
16167
      oprot.writeFieldEnd()
16168
    oprot.writeFieldStop()
16169
    oprot.writeStructEnd()
16170
 
16171
  def validate(self):
16172
    return
16173
 
16174
 
16175
  def __repr__(self):
16176
    L = ['%s=%r' % (key, value)
16177
      for key, value in self.__dict__.iteritems()]
16178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16179
 
16180
  def __eq__(self, other):
16181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16182
 
16183
  def __ne__(self, other):
16184
    return not (self == other)
16185
 
16186
class getItemPricingBySource_args:
16187
  """
16188
  Attributes:
16189
   - itemId
16190
   - sourceId
16191
  """
16192
 
16193
  thrift_spec = (
16194
    None, # 0
16195
    (1, TType.I64, 'itemId', None, None, ), # 1
16196
    (2, TType.I64, 'sourceId', None, None, ), # 2
16197
  )
16198
 
16199
  def __init__(self, itemId=None, sourceId=None,):
16200
    self.itemId = itemId
16201
    self.sourceId = sourceId
16202
 
16203
  def read(self, iprot):
16204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16206
      return
16207
    iprot.readStructBegin()
16208
    while True:
16209
      (fname, ftype, fid) = iprot.readFieldBegin()
16210
      if ftype == TType.STOP:
16211
        break
16212
      if fid == 1:
16213
        if ftype == TType.I64:
16214
          self.itemId = iprot.readI64();
16215
        else:
16216
          iprot.skip(ftype)
16217
      elif fid == 2:
16218
        if ftype == TType.I64:
16219
          self.sourceId = iprot.readI64();
16220
        else:
16221
          iprot.skip(ftype)
16222
      else:
16223
        iprot.skip(ftype)
16224
      iprot.readFieldEnd()
16225
    iprot.readStructEnd()
16226
 
16227
  def write(self, oprot):
16228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16230
      return
16231
    oprot.writeStructBegin('getItemPricingBySource_args')
16232
    if self.itemId is not None:
16233
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16234
      oprot.writeI64(self.itemId)
16235
      oprot.writeFieldEnd()
16236
    if self.sourceId is not None:
16237
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
16238
      oprot.writeI64(self.sourceId)
16239
      oprot.writeFieldEnd()
16240
    oprot.writeFieldStop()
16241
    oprot.writeStructEnd()
16242
 
16243
  def validate(self):
16244
    return
16245
 
16246
 
16247
  def __repr__(self):
16248
    L = ['%s=%r' % (key, value)
16249
      for key, value in self.__dict__.iteritems()]
16250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16251
 
16252
  def __eq__(self, other):
16253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16254
 
16255
  def __ne__(self, other):
16256
    return not (self == other)
16257
 
16258
class getItemPricingBySource_result:
16259
  """
16260
  Attributes:
16261
   - success
16262
   - cex
16263
  """
16264
 
16265
  thrift_spec = (
16266
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
16267
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16268
  )
16269
 
16270
  def __init__(self, success=None, cex=None,):
16271
    self.success = success
16272
    self.cex = cex
16273
 
16274
  def read(self, iprot):
16275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16277
      return
16278
    iprot.readStructBegin()
16279
    while True:
16280
      (fname, ftype, fid) = iprot.readFieldBegin()
16281
      if ftype == TType.STOP:
16282
        break
16283
      if fid == 0:
16284
        if ftype == TType.STRUCT:
16285
          self.success = SourceItemPricing()
16286
          self.success.read(iprot)
16287
        else:
16288
          iprot.skip(ftype)
16289
      elif fid == 1:
16290
        if ftype == TType.STRUCT:
16291
          self.cex = CatalogServiceException()
16292
          self.cex.read(iprot)
16293
        else:
16294
          iprot.skip(ftype)
16295
      else:
16296
        iprot.skip(ftype)
16297
      iprot.readFieldEnd()
16298
    iprot.readStructEnd()
16299
 
16300
  def write(self, oprot):
16301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16303
      return
16304
    oprot.writeStructBegin('getItemPricingBySource_result')
16305
    if self.success is not None:
16306
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
16307
      self.success.write(oprot)
16308
      oprot.writeFieldEnd()
16309
    if self.cex is not None:
16310
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16311
      self.cex.write(oprot)
16312
      oprot.writeFieldEnd()
16313
    oprot.writeFieldStop()
16314
    oprot.writeStructEnd()
16315
 
16316
  def validate(self):
16317
    return
16318
 
16319
 
16320
  def __repr__(self):
16321
    L = ['%s=%r' % (key, value)
16322
      for key, value in self.__dict__.iteritems()]
16323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16324
 
16325
  def __eq__(self, other):
16326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16327
 
16328
  def __ne__(self, other):
16329
    return not (self == other)
16330
 
16331
class addSourceItemPricing_args:
16332
  """
16333
  Attributes:
16334
   - sourceItemPricing
16335
  """
16336
 
16337
  thrift_spec = (
16338
    None, # 0
16339
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
16340
  )
16341
 
16342
  def __init__(self, sourceItemPricing=None,):
16343
    self.sourceItemPricing = sourceItemPricing
16344
 
16345
  def read(self, iprot):
16346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16348
      return
16349
    iprot.readStructBegin()
16350
    while True:
16351
      (fname, ftype, fid) = iprot.readFieldBegin()
16352
      if ftype == TType.STOP:
16353
        break
16354
      if fid == 1:
16355
        if ftype == TType.STRUCT:
16356
          self.sourceItemPricing = SourceItemPricing()
16357
          self.sourceItemPricing.read(iprot)
16358
        else:
16359
          iprot.skip(ftype)
16360
      else:
16361
        iprot.skip(ftype)
16362
      iprot.readFieldEnd()
16363
    iprot.readStructEnd()
16364
 
16365
  def write(self, oprot):
16366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16368
      return
16369
    oprot.writeStructBegin('addSourceItemPricing_args')
16370
    if self.sourceItemPricing is not None:
16371
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
16372
      self.sourceItemPricing.write(oprot)
16373
      oprot.writeFieldEnd()
16374
    oprot.writeFieldStop()
16375
    oprot.writeStructEnd()
16376
 
16377
  def validate(self):
16378
    return
16379
 
16380
 
16381
  def __repr__(self):
16382
    L = ['%s=%r' % (key, value)
16383
      for key, value in self.__dict__.iteritems()]
16384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16385
 
16386
  def __eq__(self, other):
16387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16388
 
16389
  def __ne__(self, other):
16390
    return not (self == other)
16391
 
16392
class addSourceItemPricing_result:
16393
  """
16394
  Attributes:
16395
   - cex
16396
  """
16397
 
16398
  thrift_spec = (
16399
    None, # 0
16400
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16401
  )
16402
 
16403
  def __init__(self, cex=None,):
16404
    self.cex = cex
16405
 
16406
  def read(self, iprot):
16407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16409
      return
16410
    iprot.readStructBegin()
16411
    while True:
16412
      (fname, ftype, fid) = iprot.readFieldBegin()
16413
      if ftype == TType.STOP:
16414
        break
16415
      if fid == 1:
16416
        if ftype == TType.STRUCT:
16417
          self.cex = CatalogServiceException()
16418
          self.cex.read(iprot)
16419
        else:
16420
          iprot.skip(ftype)
16421
      else:
16422
        iprot.skip(ftype)
16423
      iprot.readFieldEnd()
16424
    iprot.readStructEnd()
16425
 
16426
  def write(self, oprot):
16427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16429
      return
16430
    oprot.writeStructBegin('addSourceItemPricing_result')
16431
    if self.cex is not None:
16432
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16433
      self.cex.write(oprot)
16434
      oprot.writeFieldEnd()
16435
    oprot.writeFieldStop()
16436
    oprot.writeStructEnd()
16437
 
16438
  def validate(self):
16439
    return
16440
 
16441
 
16442
  def __repr__(self):
16443
    L = ['%s=%r' % (key, value)
16444
      for key, value in self.__dict__.iteritems()]
16445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16446
 
16447
  def __eq__(self, other):
16448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16449
 
16450
  def __ne__(self, other):
16451
    return not (self == other)
16452
 
16453
class getAllSourcePricing_args:
16454
  """
16455
  Attributes:
16456
   - itemId
16457
  """
16458
 
16459
  thrift_spec = (
16460
    None, # 0
16461
    (1, TType.I64, 'itemId', None, None, ), # 1
16462
  )
16463
 
16464
  def __init__(self, itemId=None,):
16465
    self.itemId = itemId
16466
 
16467
  def read(self, iprot):
16468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16470
      return
16471
    iprot.readStructBegin()
16472
    while True:
16473
      (fname, ftype, fid) = iprot.readFieldBegin()
16474
      if ftype == TType.STOP:
16475
        break
16476
      if fid == 1:
16477
        if ftype == TType.I64:
16478
          self.itemId = iprot.readI64();
16479
        else:
16480
          iprot.skip(ftype)
16481
      else:
16482
        iprot.skip(ftype)
16483
      iprot.readFieldEnd()
16484
    iprot.readStructEnd()
16485
 
16486
  def write(self, oprot):
16487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16489
      return
16490
    oprot.writeStructBegin('getAllSourcePricing_args')
16491
    if self.itemId is not None:
16492
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16493
      oprot.writeI64(self.itemId)
16494
      oprot.writeFieldEnd()
16495
    oprot.writeFieldStop()
16496
    oprot.writeStructEnd()
16497
 
16498
  def validate(self):
16499
    return
16500
 
16501
 
16502
  def __repr__(self):
16503
    L = ['%s=%r' % (key, value)
16504
      for key, value in self.__dict__.iteritems()]
16505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16506
 
16507
  def __eq__(self, other):
16508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16509
 
16510
  def __ne__(self, other):
16511
    return not (self == other)
16512
 
16513
class getAllSourcePricing_result:
16514
  """
16515
  Attributes:
16516
   - success
16517
   - cex
16518
  """
16519
 
16520
  thrift_spec = (
16521
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
16522
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16523
  )
16524
 
16525
  def __init__(self, success=None, cex=None,):
16526
    self.success = success
16527
    self.cex = cex
16528
 
16529
  def read(self, iprot):
16530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16532
      return
16533
    iprot.readStructBegin()
16534
    while True:
16535
      (fname, ftype, fid) = iprot.readFieldBegin()
16536
      if ftype == TType.STOP:
16537
        break
16538
      if fid == 0:
16539
        if ftype == TType.LIST:
16540
          self.success = []
9155 kshitij.so 16541
          (_etype321, _size318) = iprot.readListBegin()
16542
          for _i322 in xrange(_size318):
16543
            _elem323 = SourceItemPricing()
16544
            _elem323.read(iprot)
16545
            self.success.append(_elem323)
5944 mandeep.dh 16546
          iprot.readListEnd()
16547
        else:
16548
          iprot.skip(ftype)
16549
      elif fid == 1:
16550
        if ftype == TType.STRUCT:
16551
          self.cex = CatalogServiceException()
16552
          self.cex.read(iprot)
16553
        else:
16554
          iprot.skip(ftype)
16555
      else:
16556
        iprot.skip(ftype)
16557
      iprot.readFieldEnd()
16558
    iprot.readStructEnd()
16559
 
16560
  def write(self, oprot):
16561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16563
      return
16564
    oprot.writeStructBegin('getAllSourcePricing_result')
16565
    if self.success is not None:
16566
      oprot.writeFieldBegin('success', TType.LIST, 0)
16567
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16568
      for iter324 in self.success:
16569
        iter324.write(oprot)
5944 mandeep.dh 16570
      oprot.writeListEnd()
16571
      oprot.writeFieldEnd()
16572
    if self.cex is not None:
16573
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16574
      self.cex.write(oprot)
16575
      oprot.writeFieldEnd()
16576
    oprot.writeFieldStop()
16577
    oprot.writeStructEnd()
16578
 
16579
  def validate(self):
16580
    return
16581
 
16582
 
16583
  def __repr__(self):
16584
    L = ['%s=%r' % (key, value)
16585
      for key, value in self.__dict__.iteritems()]
16586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16587
 
16588
  def __eq__(self, other):
16589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16590
 
16591
  def __ne__(self, other):
16592
    return not (self == other)
16593
 
16594
class getItemForSource_args:
16595
  """
16596
  Attributes:
16597
   - item_id
16598
   - sourceId
16599
  """
16600
 
16601
  thrift_spec = (
16602
    None, # 0
16603
    (1, TType.I64, 'item_id', None, None, ), # 1
16604
    (2, TType.I64, 'sourceId', None, None, ), # 2
16605
  )
16606
 
16607
  def __init__(self, item_id=None, sourceId=None,):
16608
    self.item_id = item_id
16609
    self.sourceId = sourceId
16610
 
16611
  def read(self, iprot):
16612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16614
      return
16615
    iprot.readStructBegin()
16616
    while True:
16617
      (fname, ftype, fid) = iprot.readFieldBegin()
16618
      if ftype == TType.STOP:
16619
        break
16620
      if fid == 1:
16621
        if ftype == TType.I64:
16622
          self.item_id = iprot.readI64();
16623
        else:
16624
          iprot.skip(ftype)
16625
      elif fid == 2:
16626
        if ftype == TType.I64:
16627
          self.sourceId = iprot.readI64();
16628
        else:
16629
          iprot.skip(ftype)
16630
      else:
16631
        iprot.skip(ftype)
16632
      iprot.readFieldEnd()
16633
    iprot.readStructEnd()
16634
 
16635
  def write(self, oprot):
16636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16638
      return
16639
    oprot.writeStructBegin('getItemForSource_args')
16640
    if self.item_id is not None:
16641
      oprot.writeFieldBegin('item_id', TType.I64, 1)
16642
      oprot.writeI64(self.item_id)
16643
      oprot.writeFieldEnd()
16644
    if self.sourceId is not None:
16645
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
16646
      oprot.writeI64(self.sourceId)
16647
      oprot.writeFieldEnd()
16648
    oprot.writeFieldStop()
16649
    oprot.writeStructEnd()
16650
 
16651
  def validate(self):
16652
    return
16653
 
16654
 
16655
  def __repr__(self):
16656
    L = ['%s=%r' % (key, value)
16657
      for key, value in self.__dict__.iteritems()]
16658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16659
 
16660
  def __eq__(self, other):
16661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16662
 
16663
  def __ne__(self, other):
16664
    return not (self == other)
16665
 
16666
class getItemForSource_result:
16667
  """
16668
  Attributes:
16669
   - success
16670
   - cex
16671
  """
16672
 
16673
  thrift_spec = (
16674
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
16675
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16676
  )
16677
 
16678
  def __init__(self, success=None, cex=None,):
16679
    self.success = success
16680
    self.cex = cex
16681
 
16682
  def read(self, iprot):
16683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16685
      return
16686
    iprot.readStructBegin()
16687
    while True:
16688
      (fname, ftype, fid) = iprot.readFieldBegin()
16689
      if ftype == TType.STOP:
16690
        break
16691
      if fid == 0:
16692
        if ftype == TType.STRUCT:
16693
          self.success = Item()
16694
          self.success.read(iprot)
16695
        else:
16696
          iprot.skip(ftype)
16697
      elif fid == 1:
16698
        if ftype == TType.STRUCT:
16699
          self.cex = CatalogServiceException()
16700
          self.cex.read(iprot)
16701
        else:
16702
          iprot.skip(ftype)
16703
      else:
16704
        iprot.skip(ftype)
16705
      iprot.readFieldEnd()
16706
    iprot.readStructEnd()
16707
 
16708
  def write(self, oprot):
16709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16711
      return
16712
    oprot.writeStructBegin('getItemForSource_result')
16713
    if self.success is not None:
16714
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
16715
      self.success.write(oprot)
16716
      oprot.writeFieldEnd()
16717
    if self.cex is not None:
16718
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16719
      self.cex.write(oprot)
16720
      oprot.writeFieldEnd()
16721
    oprot.writeFieldStop()
16722
    oprot.writeStructEnd()
16723
 
16724
  def validate(self):
16725
    return
16726
 
16727
 
16728
  def __repr__(self):
16729
    L = ['%s=%r' % (key, value)
16730
      for key, value in self.__dict__.iteritems()]
16731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16732
 
16733
  def __eq__(self, other):
16734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16735
 
16736
  def __ne__(self, other):
16737
    return not (self == other)
16738
 
16739
class searchItemsInRange_args:
16740
  """
16741
  Attributes:
16742
   - searchTerms
16743
   - offset
16744
   - limit
16745
  """
16746
 
16747
  thrift_spec = (
16748
    None, # 0
16749
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
16750
    (2, TType.I64, 'offset', None, None, ), # 2
16751
    (3, TType.I64, 'limit', None, None, ), # 3
16752
  )
16753
 
16754
  def __init__(self, searchTerms=None, offset=None, limit=None,):
16755
    self.searchTerms = searchTerms
16756
    self.offset = offset
16757
    self.limit = limit
16758
 
16759
  def read(self, iprot):
16760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16762
      return
16763
    iprot.readStructBegin()
16764
    while True:
16765
      (fname, ftype, fid) = iprot.readFieldBegin()
16766
      if ftype == TType.STOP:
16767
        break
16768
      if fid == 1:
16769
        if ftype == TType.LIST:
16770
          self.searchTerms = []
9155 kshitij.so 16771
          (_etype328, _size325) = iprot.readListBegin()
16772
          for _i329 in xrange(_size325):
16773
            _elem330 = iprot.readString();
16774
            self.searchTerms.append(_elem330)
5944 mandeep.dh 16775
          iprot.readListEnd()
16776
        else:
16777
          iprot.skip(ftype)
16778
      elif fid == 2:
16779
        if ftype == TType.I64:
16780
          self.offset = iprot.readI64();
16781
        else:
16782
          iprot.skip(ftype)
16783
      elif fid == 3:
16784
        if ftype == TType.I64:
16785
          self.limit = iprot.readI64();
16786
        else:
16787
          iprot.skip(ftype)
16788
      else:
16789
        iprot.skip(ftype)
16790
      iprot.readFieldEnd()
16791
    iprot.readStructEnd()
16792
 
16793
  def write(self, oprot):
16794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16796
      return
16797
    oprot.writeStructBegin('searchItemsInRange_args')
16798
    if self.searchTerms is not None:
16799
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
16800
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 16801
      for iter331 in self.searchTerms:
16802
        oprot.writeString(iter331)
5944 mandeep.dh 16803
      oprot.writeListEnd()
16804
      oprot.writeFieldEnd()
16805
    if self.offset is not None:
16806
      oprot.writeFieldBegin('offset', TType.I64, 2)
16807
      oprot.writeI64(self.offset)
16808
      oprot.writeFieldEnd()
16809
    if self.limit is not None:
16810
      oprot.writeFieldBegin('limit', TType.I64, 3)
16811
      oprot.writeI64(self.limit)
16812
      oprot.writeFieldEnd()
16813
    oprot.writeFieldStop()
16814
    oprot.writeStructEnd()
16815
 
16816
  def validate(self):
16817
    return
16818
 
16819
 
16820
  def __repr__(self):
16821
    L = ['%s=%r' % (key, value)
16822
      for key, value in self.__dict__.iteritems()]
16823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16824
 
16825
  def __eq__(self, other):
16826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16827
 
16828
  def __ne__(self, other):
16829
    return not (self == other)
16830
 
16831
class searchItemsInRange_result:
16832
  """
16833
  Attributes:
16834
   - success
16835
  """
16836
 
16837
  thrift_spec = (
16838
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
16839
  )
16840
 
16841
  def __init__(self, success=None,):
16842
    self.success = success
16843
 
16844
  def read(self, iprot):
16845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16847
      return
16848
    iprot.readStructBegin()
16849
    while True:
16850
      (fname, ftype, fid) = iprot.readFieldBegin()
16851
      if ftype == TType.STOP:
16852
        break
16853
      if fid == 0:
16854
        if ftype == TType.LIST:
16855
          self.success = []
9155 kshitij.so 16856
          (_etype335, _size332) = iprot.readListBegin()
16857
          for _i336 in xrange(_size332):
16858
            _elem337 = Item()
16859
            _elem337.read(iprot)
16860
            self.success.append(_elem337)
5944 mandeep.dh 16861
          iprot.readListEnd()
16862
        else:
16863
          iprot.skip(ftype)
16864
      else:
16865
        iprot.skip(ftype)
16866
      iprot.readFieldEnd()
16867
    iprot.readStructEnd()
16868
 
16869
  def write(self, oprot):
16870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16872
      return
16873
    oprot.writeStructBegin('searchItemsInRange_result')
16874
    if self.success is not None:
16875
      oprot.writeFieldBegin('success', TType.LIST, 0)
16876
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16877
      for iter338 in self.success:
16878
        iter338.write(oprot)
5944 mandeep.dh 16879
      oprot.writeListEnd()
16880
      oprot.writeFieldEnd()
16881
    oprot.writeFieldStop()
16882
    oprot.writeStructEnd()
16883
 
16884
  def validate(self):
16885
    return
16886
 
16887
 
16888
  def __repr__(self):
16889
    L = ['%s=%r' % (key, value)
16890
      for key, value in self.__dict__.iteritems()]
16891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16892
 
16893
  def __eq__(self, other):
16894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16895
 
16896
  def __ne__(self, other):
16897
    return not (self == other)
16898
 
16899
class getSearchResultCount_args:
16900
  """
16901
  Attributes:
16902
   - searchTerms
16903
  """
16904
 
16905
  thrift_spec = (
16906
    None, # 0
16907
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
16908
  )
16909
 
16910
  def __init__(self, searchTerms=None,):
16911
    self.searchTerms = searchTerms
16912
 
16913
  def read(self, iprot):
16914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16916
      return
16917
    iprot.readStructBegin()
16918
    while True:
16919
      (fname, ftype, fid) = iprot.readFieldBegin()
16920
      if ftype == TType.STOP:
16921
        break
16922
      if fid == 1:
16923
        if ftype == TType.LIST:
16924
          self.searchTerms = []
9155 kshitij.so 16925
          (_etype342, _size339) = iprot.readListBegin()
16926
          for _i343 in xrange(_size339):
16927
            _elem344 = iprot.readString();
16928
            self.searchTerms.append(_elem344)
5944 mandeep.dh 16929
          iprot.readListEnd()
16930
        else:
16931
          iprot.skip(ftype)
16932
      else:
16933
        iprot.skip(ftype)
16934
      iprot.readFieldEnd()
16935
    iprot.readStructEnd()
16936
 
16937
  def write(self, oprot):
16938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16940
      return
16941
    oprot.writeStructBegin('getSearchResultCount_args')
16942
    if self.searchTerms is not None:
16943
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
16944
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 16945
      for iter345 in self.searchTerms:
16946
        oprot.writeString(iter345)
5944 mandeep.dh 16947
      oprot.writeListEnd()
16948
      oprot.writeFieldEnd()
16949
    oprot.writeFieldStop()
16950
    oprot.writeStructEnd()
16951
 
16952
  def validate(self):
16953
    return
16954
 
16955
 
16956
  def __repr__(self):
16957
    L = ['%s=%r' % (key, value)
16958
      for key, value in self.__dict__.iteritems()]
16959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16960
 
16961
  def __eq__(self, other):
16962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16963
 
16964
  def __ne__(self, other):
16965
    return not (self == other)
16966
 
16967
class getSearchResultCount_result:
16968
  """
16969
  Attributes:
16970
   - success
16971
  """
16972
 
16973
  thrift_spec = (
16974
    (0, TType.I32, 'success', None, None, ), # 0
16975
  )
16976
 
16977
  def __init__(self, success=None,):
16978
    self.success = success
16979
 
16980
  def read(self, iprot):
16981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16983
      return
16984
    iprot.readStructBegin()
16985
    while True:
16986
      (fname, ftype, fid) = iprot.readFieldBegin()
16987
      if ftype == TType.STOP:
16988
        break
16989
      if fid == 0:
16990
        if ftype == TType.I32:
16991
          self.success = iprot.readI32();
16992
        else:
16993
          iprot.skip(ftype)
16994
      else:
16995
        iprot.skip(ftype)
16996
      iprot.readFieldEnd()
16997
    iprot.readStructEnd()
16998
 
16999
  def write(self, oprot):
17000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17002
      return
17003
    oprot.writeStructBegin('getSearchResultCount_result')
17004
    if self.success is not None:
17005
      oprot.writeFieldBegin('success', TType.I32, 0)
17006
      oprot.writeI32(self.success)
17007
      oprot.writeFieldEnd()
17008
    oprot.writeFieldStop()
17009
    oprot.writeStructEnd()
17010
 
17011
  def validate(self):
17012
    return
17013
 
17014
 
17015
  def __repr__(self):
17016
    L = ['%s=%r' % (key, value)
17017
      for key, value in self.__dict__.iteritems()]
17018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17019
 
17020
  def __eq__(self, other):
17021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17022
 
17023
  def __ne__(self, other):
17024
    return not (self == other)
17025
 
17026
class getProductNotifications_args:
17027
  """
17028
  Attributes:
17029
   - startDateTime
17030
  """
17031
 
17032
  thrift_spec = (
17033
    None, # 0
17034
    (1, TType.I64, 'startDateTime', None, None, ), # 1
17035
  )
17036
 
17037
  def __init__(self, startDateTime=None,):
17038
    self.startDateTime = startDateTime
17039
 
17040
  def read(self, iprot):
17041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17043
      return
17044
    iprot.readStructBegin()
17045
    while True:
17046
      (fname, ftype, fid) = iprot.readFieldBegin()
17047
      if ftype == TType.STOP:
17048
        break
17049
      if fid == 1:
17050
        if ftype == TType.I64:
17051
          self.startDateTime = iprot.readI64();
17052
        else:
17053
          iprot.skip(ftype)
17054
      else:
17055
        iprot.skip(ftype)
17056
      iprot.readFieldEnd()
17057
    iprot.readStructEnd()
17058
 
17059
  def write(self, oprot):
17060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17062
      return
17063
    oprot.writeStructBegin('getProductNotifications_args')
17064
    if self.startDateTime is not None:
17065
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
17066
      oprot.writeI64(self.startDateTime)
17067
      oprot.writeFieldEnd()
17068
    oprot.writeFieldStop()
17069
    oprot.writeStructEnd()
17070
 
17071
  def validate(self):
17072
    return
17073
 
17074
 
17075
  def __repr__(self):
17076
    L = ['%s=%r' % (key, value)
17077
      for key, value in self.__dict__.iteritems()]
17078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17079
 
17080
  def __eq__(self, other):
17081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17082
 
17083
  def __ne__(self, other):
17084
    return not (self == other)
17085
 
17086
class getProductNotifications_result:
17087
  """
17088
  Attributes:
17089
   - success
17090
  """
17091
 
17092
  thrift_spec = (
17093
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
17094
  )
17095
 
17096
  def __init__(self, success=None,):
17097
    self.success = success
17098
 
17099
  def read(self, iprot):
17100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17102
      return
17103
    iprot.readStructBegin()
17104
    while True:
17105
      (fname, ftype, fid) = iprot.readFieldBegin()
17106
      if ftype == TType.STOP:
17107
        break
17108
      if fid == 0:
17109
        if ftype == TType.LIST:
17110
          self.success = []
9155 kshitij.so 17111
          (_etype349, _size346) = iprot.readListBegin()
17112
          for _i350 in xrange(_size346):
17113
            _elem351 = ProductNotificationRequest()
17114
            _elem351.read(iprot)
17115
            self.success.append(_elem351)
5944 mandeep.dh 17116
          iprot.readListEnd()
17117
        else:
17118
          iprot.skip(ftype)
17119
      else:
17120
        iprot.skip(ftype)
17121
      iprot.readFieldEnd()
17122
    iprot.readStructEnd()
17123
 
17124
  def write(self, oprot):
17125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17127
      return
17128
    oprot.writeStructBegin('getProductNotifications_result')
17129
    if self.success is not None:
17130
      oprot.writeFieldBegin('success', TType.LIST, 0)
17131
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17132
      for iter352 in self.success:
17133
        iter352.write(oprot)
5944 mandeep.dh 17134
      oprot.writeListEnd()
17135
      oprot.writeFieldEnd()
17136
    oprot.writeFieldStop()
17137
    oprot.writeStructEnd()
17138
 
17139
  def validate(self):
17140
    return
17141
 
17142
 
17143
  def __repr__(self):
17144
    L = ['%s=%r' % (key, value)
17145
      for key, value in self.__dict__.iteritems()]
17146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17147
 
17148
  def __eq__(self, other):
17149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17150
 
17151
  def __ne__(self, other):
17152
    return not (self == other)
17153
 
17154
class getProductNotificationRequestCount_args:
17155
  """
17156
  Attributes:
17157
   - startDateTime
7897 amar.kumar 17158
   - categoryId
5944 mandeep.dh 17159
  """
17160
 
17161
  thrift_spec = (
17162
    None, # 0
17163
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 17164
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 17165
  )
17166
 
7897 amar.kumar 17167
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 17168
    self.startDateTime = startDateTime
7897 amar.kumar 17169
    self.categoryId = categoryId
5944 mandeep.dh 17170
 
17171
  def read(self, iprot):
17172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17174
      return
17175
    iprot.readStructBegin()
17176
    while True:
17177
      (fname, ftype, fid) = iprot.readFieldBegin()
17178
      if ftype == TType.STOP:
17179
        break
17180
      if fid == 1:
17181
        if ftype == TType.I64:
17182
          self.startDateTime = iprot.readI64();
17183
        else:
17184
          iprot.skip(ftype)
7897 amar.kumar 17185
      elif fid == 2:
17186
        if ftype == TType.I64:
17187
          self.categoryId = iprot.readI64();
17188
        else:
17189
          iprot.skip(ftype)
5944 mandeep.dh 17190
      else:
17191
        iprot.skip(ftype)
17192
      iprot.readFieldEnd()
17193
    iprot.readStructEnd()
17194
 
17195
  def write(self, oprot):
17196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17198
      return
17199
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
17200
    if self.startDateTime is not None:
17201
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
17202
      oprot.writeI64(self.startDateTime)
17203
      oprot.writeFieldEnd()
7897 amar.kumar 17204
    if self.categoryId is not None:
17205
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
17206
      oprot.writeI64(self.categoryId)
17207
      oprot.writeFieldEnd()
5944 mandeep.dh 17208
    oprot.writeFieldStop()
17209
    oprot.writeStructEnd()
17210
 
17211
  def validate(self):
17212
    return
17213
 
17214
 
17215
  def __repr__(self):
17216
    L = ['%s=%r' % (key, value)
17217
      for key, value in self.__dict__.iteritems()]
17218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17219
 
17220
  def __eq__(self, other):
17221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17222
 
17223
  def __ne__(self, other):
17224
    return not (self == other)
17225
 
17226
class getProductNotificationRequestCount_result:
17227
  """
17228
  Attributes:
17229
   - success
17230
  """
17231
 
17232
  thrift_spec = (
17233
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
17234
  )
17235
 
17236
  def __init__(self, success=None,):
17237
    self.success = success
17238
 
17239
  def read(self, iprot):
17240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17242
      return
17243
    iprot.readStructBegin()
17244
    while True:
17245
      (fname, ftype, fid) = iprot.readFieldBegin()
17246
      if ftype == TType.STOP:
17247
        break
17248
      if fid == 0:
17249
        if ftype == TType.LIST:
17250
          self.success = []
9155 kshitij.so 17251
          (_etype356, _size353) = iprot.readListBegin()
17252
          for _i357 in xrange(_size353):
17253
            _elem358 = ProductNotificationRequestCount()
17254
            _elem358.read(iprot)
17255
            self.success.append(_elem358)
5944 mandeep.dh 17256
          iprot.readListEnd()
17257
        else:
17258
          iprot.skip(ftype)
17259
      else:
17260
        iprot.skip(ftype)
17261
      iprot.readFieldEnd()
17262
    iprot.readStructEnd()
17263
 
17264
  def write(self, oprot):
17265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17267
      return
17268
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
17269
    if self.success is not None:
17270
      oprot.writeFieldBegin('success', TType.LIST, 0)
17271
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17272
      for iter359 in self.success:
17273
        iter359.write(oprot)
5944 mandeep.dh 17274
      oprot.writeListEnd()
17275
      oprot.writeFieldEnd()
17276
    oprot.writeFieldStop()
17277
    oprot.writeStructEnd()
17278
 
17279
  def validate(self):
17280
    return
17281
 
17282
 
17283
  def __repr__(self):
17284
    L = ['%s=%r' % (key, value)
17285
      for key, value in self.__dict__.iteritems()]
17286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17287
 
17288
  def __eq__(self, other):
17289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17290
 
17291
  def __ne__(self, other):
17292
    return not (self == other)
17293
 
17294
class addAuthorizationLog_args:
17295
  """
17296
  Attributes:
17297
   - itemId
17298
   - username
17299
   - reason
17300
  """
17301
 
17302
  thrift_spec = (
17303
    None, # 0
17304
    (1, TType.I64, 'itemId', None, None, ), # 1
17305
    (2, TType.STRING, 'username', None, None, ), # 2
17306
    (3, TType.STRING, 'reason', None, None, ), # 3
17307
  )
17308
 
17309
  def __init__(self, itemId=None, username=None, reason=None,):
17310
    self.itemId = itemId
17311
    self.username = username
17312
    self.reason = reason
17313
 
17314
  def read(self, iprot):
17315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17317
      return
17318
    iprot.readStructBegin()
17319
    while True:
17320
      (fname, ftype, fid) = iprot.readFieldBegin()
17321
      if ftype == TType.STOP:
17322
        break
17323
      if fid == 1:
17324
        if ftype == TType.I64:
17325
          self.itemId = iprot.readI64();
17326
        else:
17327
          iprot.skip(ftype)
17328
      elif fid == 2:
17329
        if ftype == TType.STRING:
17330
          self.username = iprot.readString();
17331
        else:
17332
          iprot.skip(ftype)
17333
      elif fid == 3:
17334
        if ftype == TType.STRING:
17335
          self.reason = iprot.readString();
17336
        else:
17337
          iprot.skip(ftype)
17338
      else:
17339
        iprot.skip(ftype)
17340
      iprot.readFieldEnd()
17341
    iprot.readStructEnd()
17342
 
17343
  def write(self, oprot):
17344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17346
      return
17347
    oprot.writeStructBegin('addAuthorizationLog_args')
17348
    if self.itemId is not None:
17349
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17350
      oprot.writeI64(self.itemId)
17351
      oprot.writeFieldEnd()
17352
    if self.username is not None:
17353
      oprot.writeFieldBegin('username', TType.STRING, 2)
17354
      oprot.writeString(self.username)
17355
      oprot.writeFieldEnd()
17356
    if self.reason is not None:
17357
      oprot.writeFieldBegin('reason', TType.STRING, 3)
17358
      oprot.writeString(self.reason)
17359
      oprot.writeFieldEnd()
17360
    oprot.writeFieldStop()
17361
    oprot.writeStructEnd()
17362
 
17363
  def validate(self):
17364
    return
17365
 
17366
 
17367
  def __repr__(self):
17368
    L = ['%s=%r' % (key, value)
17369
      for key, value in self.__dict__.iteritems()]
17370
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17371
 
17372
  def __eq__(self, other):
17373
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17374
 
17375
  def __ne__(self, other):
17376
    return not (self == other)
17377
 
17378
class addAuthorizationLog_result:
17379
  """
17380
  Attributes:
17381
   - success
17382
   - cex
17383
  """
17384
 
17385
  thrift_spec = (
17386
    (0, TType.BOOL, 'success', None, None, ), # 0
17387
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17388
  )
17389
 
17390
  def __init__(self, success=None, cex=None,):
17391
    self.success = success
17392
    self.cex = cex
17393
 
17394
  def read(self, iprot):
17395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17397
      return
17398
    iprot.readStructBegin()
17399
    while True:
17400
      (fname, ftype, fid) = iprot.readFieldBegin()
17401
      if ftype == TType.STOP:
17402
        break
17403
      if fid == 0:
17404
        if ftype == TType.BOOL:
17405
          self.success = iprot.readBool();
17406
        else:
17407
          iprot.skip(ftype)
17408
      elif fid == 1:
17409
        if ftype == TType.STRUCT:
17410
          self.cex = CatalogServiceException()
17411
          self.cex.read(iprot)
17412
        else:
17413
          iprot.skip(ftype)
17414
      else:
17415
        iprot.skip(ftype)
17416
      iprot.readFieldEnd()
17417
    iprot.readStructEnd()
17418
 
17419
  def write(self, oprot):
17420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17422
      return
17423
    oprot.writeStructBegin('addAuthorizationLog_result')
17424
    if self.success is not None:
17425
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17426
      oprot.writeBool(self.success)
17427
      oprot.writeFieldEnd()
17428
    if self.cex is not None:
17429
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17430
      self.cex.write(oprot)
17431
      oprot.writeFieldEnd()
17432
    oprot.writeFieldStop()
17433
    oprot.writeStructEnd()
17434
 
17435
  def validate(self):
17436
    return
17437
 
17438
 
17439
  def __repr__(self):
17440
    L = ['%s=%r' % (key, value)
17441
      for key, value in self.__dict__.iteritems()]
17442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17443
 
17444
  def __eq__(self, other):
17445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17446
 
17447
  def __ne__(self, other):
17448
    return not (self == other)
17449
 
17450
class addupdateVoucherForItem_args:
17451
  """
17452
  Attributes:
17453
   - catalog_item_id
17454
   - voucherType
17455
   - voucherAmount
17456
  """
17457
 
17458
  thrift_spec = (
17459
    None, # 0
17460
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
17461
    (2, TType.I64, 'voucherType', None, None, ), # 2
17462
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
17463
  )
17464
 
17465
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
17466
    self.catalog_item_id = catalog_item_id
17467
    self.voucherType = voucherType
17468
    self.voucherAmount = voucherAmount
17469
 
17470
  def read(self, iprot):
17471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17473
      return
17474
    iprot.readStructBegin()
17475
    while True:
17476
      (fname, ftype, fid) = iprot.readFieldBegin()
17477
      if ftype == TType.STOP:
17478
        break
17479
      if fid == 1:
17480
        if ftype == TType.I64:
17481
          self.catalog_item_id = iprot.readI64();
17482
        else:
17483
          iprot.skip(ftype)
17484
      elif fid == 2:
17485
        if ftype == TType.I64:
17486
          self.voucherType = iprot.readI64();
17487
        else:
17488
          iprot.skip(ftype)
17489
      elif fid == 3:
17490
        if ftype == TType.I64:
17491
          self.voucherAmount = iprot.readI64();
17492
        else:
17493
          iprot.skip(ftype)
17494
      else:
17495
        iprot.skip(ftype)
17496
      iprot.readFieldEnd()
17497
    iprot.readStructEnd()
17498
 
17499
  def write(self, oprot):
17500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17502
      return
17503
    oprot.writeStructBegin('addupdateVoucherForItem_args')
17504
    if self.catalog_item_id is not None:
17505
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
17506
      oprot.writeI64(self.catalog_item_id)
17507
      oprot.writeFieldEnd()
17508
    if self.voucherType is not None:
17509
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
17510
      oprot.writeI64(self.voucherType)
17511
      oprot.writeFieldEnd()
17512
    if self.voucherAmount is not None:
17513
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
17514
      oprot.writeI64(self.voucherAmount)
17515
      oprot.writeFieldEnd()
17516
    oprot.writeFieldStop()
17517
    oprot.writeStructEnd()
17518
 
17519
  def validate(self):
17520
    return
17521
 
17522
 
17523
  def __repr__(self):
17524
    L = ['%s=%r' % (key, value)
17525
      for key, value in self.__dict__.iteritems()]
17526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17527
 
17528
  def __eq__(self, other):
17529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17530
 
17531
  def __ne__(self, other):
17532
    return not (self == other)
17533
 
17534
class addupdateVoucherForItem_result:
17535
  """
17536
  Attributes:
17537
   - success
17538
   - cex
17539
  """
17540
 
17541
  thrift_spec = (
17542
    (0, TType.BOOL, 'success', None, None, ), # 0
17543
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17544
  )
17545
 
17546
  def __init__(self, success=None, cex=None,):
17547
    self.success = success
17548
    self.cex = cex
17549
 
17550
  def read(self, iprot):
17551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17553
      return
17554
    iprot.readStructBegin()
17555
    while True:
17556
      (fname, ftype, fid) = iprot.readFieldBegin()
17557
      if ftype == TType.STOP:
17558
        break
17559
      if fid == 0:
17560
        if ftype == TType.BOOL:
17561
          self.success = iprot.readBool();
17562
        else:
17563
          iprot.skip(ftype)
17564
      elif fid == 1:
17565
        if ftype == TType.STRUCT:
17566
          self.cex = CatalogServiceException()
17567
          self.cex.read(iprot)
17568
        else:
17569
          iprot.skip(ftype)
17570
      else:
17571
        iprot.skip(ftype)
17572
      iprot.readFieldEnd()
17573
    iprot.readStructEnd()
17574
 
17575
  def write(self, oprot):
17576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17578
      return
17579
    oprot.writeStructBegin('addupdateVoucherForItem_result')
17580
    if self.success is not None:
17581
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17582
      oprot.writeBool(self.success)
17583
      oprot.writeFieldEnd()
17584
    if self.cex is not None:
17585
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17586
      self.cex.write(oprot)
17587
      oprot.writeFieldEnd()
17588
    oprot.writeFieldStop()
17589
    oprot.writeStructEnd()
17590
 
17591
  def validate(self):
17592
    return
17593
 
17594
 
17595
  def __repr__(self):
17596
    L = ['%s=%r' % (key, value)
17597
      for key, value in self.__dict__.iteritems()]
17598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17599
 
17600
  def __eq__(self, other):
17601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17602
 
17603
  def __ne__(self, other):
17604
    return not (self == other)
17605
 
17606
class deleteVoucherForItem_args:
17607
  """
17608
  Attributes:
17609
   - catalog_item_id
17610
   - voucherType
17611
  """
17612
 
17613
  thrift_spec = (
17614
    None, # 0
17615
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
17616
    (2, TType.I64, 'voucherType', None, None, ), # 2
17617
  )
17618
 
17619
  def __init__(self, catalog_item_id=None, voucherType=None,):
17620
    self.catalog_item_id = catalog_item_id
17621
    self.voucherType = voucherType
17622
 
17623
  def read(self, iprot):
17624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17626
      return
17627
    iprot.readStructBegin()
17628
    while True:
17629
      (fname, ftype, fid) = iprot.readFieldBegin()
17630
      if ftype == TType.STOP:
17631
        break
17632
      if fid == 1:
17633
        if ftype == TType.I64:
17634
          self.catalog_item_id = iprot.readI64();
17635
        else:
17636
          iprot.skip(ftype)
17637
      elif fid == 2:
17638
        if ftype == TType.I64:
17639
          self.voucherType = iprot.readI64();
17640
        else:
17641
          iprot.skip(ftype)
17642
      else:
17643
        iprot.skip(ftype)
17644
      iprot.readFieldEnd()
17645
    iprot.readStructEnd()
17646
 
17647
  def write(self, oprot):
17648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17650
      return
17651
    oprot.writeStructBegin('deleteVoucherForItem_args')
17652
    if self.catalog_item_id is not None:
17653
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
17654
      oprot.writeI64(self.catalog_item_id)
17655
      oprot.writeFieldEnd()
17656
    if self.voucherType is not None:
17657
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
17658
      oprot.writeI64(self.voucherType)
17659
      oprot.writeFieldEnd()
17660
    oprot.writeFieldStop()
17661
    oprot.writeStructEnd()
17662
 
17663
  def validate(self):
17664
    return
17665
 
17666
 
17667
  def __repr__(self):
17668
    L = ['%s=%r' % (key, value)
17669
      for key, value in self.__dict__.iteritems()]
17670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17671
 
17672
  def __eq__(self, other):
17673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17674
 
17675
  def __ne__(self, other):
17676
    return not (self == other)
17677
 
17678
class deleteVoucherForItem_result:
17679
  """
17680
  Attributes:
17681
   - success
17682
   - cex
17683
  """
17684
 
17685
  thrift_spec = (
17686
    (0, TType.BOOL, 'success', None, None, ), # 0
17687
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17688
  )
17689
 
17690
  def __init__(self, success=None, cex=None,):
17691
    self.success = success
17692
    self.cex = cex
17693
 
17694
  def read(self, iprot):
17695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17697
      return
17698
    iprot.readStructBegin()
17699
    while True:
17700
      (fname, ftype, fid) = iprot.readFieldBegin()
17701
      if ftype == TType.STOP:
17702
        break
17703
      if fid == 0:
17704
        if ftype == TType.BOOL:
17705
          self.success = iprot.readBool();
17706
        else:
17707
          iprot.skip(ftype)
17708
      elif fid == 1:
17709
        if ftype == TType.STRUCT:
17710
          self.cex = CatalogServiceException()
17711
          self.cex.read(iprot)
17712
        else:
17713
          iprot.skip(ftype)
17714
      else:
17715
        iprot.skip(ftype)
17716
      iprot.readFieldEnd()
17717
    iprot.readStructEnd()
17718
 
17719
  def write(self, oprot):
17720
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17721
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17722
      return
17723
    oprot.writeStructBegin('deleteVoucherForItem_result')
17724
    if self.success is not None:
17725
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17726
      oprot.writeBool(self.success)
17727
      oprot.writeFieldEnd()
17728
    if self.cex is not None:
17729
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17730
      self.cex.write(oprot)
17731
      oprot.writeFieldEnd()
17732
    oprot.writeFieldStop()
17733
    oprot.writeStructEnd()
17734
 
17735
  def validate(self):
17736
    return
17737
 
17738
 
17739
  def __repr__(self):
17740
    L = ['%s=%r' % (key, value)
17741
      for key, value in self.__dict__.iteritems()]
17742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17743
 
17744
  def __eq__(self, other):
17745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17746
 
17747
  def __ne__(self, other):
17748
    return not (self == other)
17749
 
17750
class getVoucherAmount_args:
17751
  """
17752
  Attributes:
17753
   - itemId
17754
   - voucherType
17755
  """
17756
 
17757
  thrift_spec = (
17758
    None, # 0
17759
    (1, TType.I64, 'itemId', None, None, ), # 1
17760
    (2, TType.I64, 'voucherType', None, None, ), # 2
17761
  )
17762
 
17763
  def __init__(self, itemId=None, voucherType=None,):
17764
    self.itemId = itemId
17765
    self.voucherType = voucherType
17766
 
17767
  def read(self, iprot):
17768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17770
      return
17771
    iprot.readStructBegin()
17772
    while True:
17773
      (fname, ftype, fid) = iprot.readFieldBegin()
17774
      if ftype == TType.STOP:
17775
        break
17776
      if fid == 1:
17777
        if ftype == TType.I64:
17778
          self.itemId = iprot.readI64();
17779
        else:
17780
          iprot.skip(ftype)
17781
      elif fid == 2:
17782
        if ftype == TType.I64:
17783
          self.voucherType = iprot.readI64();
17784
        else:
17785
          iprot.skip(ftype)
17786
      else:
17787
        iprot.skip(ftype)
17788
      iprot.readFieldEnd()
17789
    iprot.readStructEnd()
17790
 
17791
  def write(self, oprot):
17792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17794
      return
17795
    oprot.writeStructBegin('getVoucherAmount_args')
17796
    if self.itemId is not None:
17797
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17798
      oprot.writeI64(self.itemId)
17799
      oprot.writeFieldEnd()
17800
    if self.voucherType is not None:
17801
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
17802
      oprot.writeI64(self.voucherType)
17803
      oprot.writeFieldEnd()
17804
    oprot.writeFieldStop()
17805
    oprot.writeStructEnd()
17806
 
17807
  def validate(self):
17808
    return
17809
 
17810
 
17811
  def __repr__(self):
17812
    L = ['%s=%r' % (key, value)
17813
      for key, value in self.__dict__.iteritems()]
17814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17815
 
17816
  def __eq__(self, other):
17817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17818
 
17819
  def __ne__(self, other):
17820
    return not (self == other)
17821
 
17822
class getVoucherAmount_result:
17823
  """
17824
  Attributes:
17825
   - success
17826
  """
17827
 
17828
  thrift_spec = (
17829
    (0, TType.I64, 'success', None, None, ), # 0
17830
  )
17831
 
17832
  def __init__(self, success=None,):
17833
    self.success = success
17834
 
17835
  def read(self, iprot):
17836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17838
      return
17839
    iprot.readStructBegin()
17840
    while True:
17841
      (fname, ftype, fid) = iprot.readFieldBegin()
17842
      if ftype == TType.STOP:
17843
        break
17844
      if fid == 0:
17845
        if ftype == TType.I64:
17846
          self.success = iprot.readI64();
17847
        else:
17848
          iprot.skip(ftype)
17849
      else:
17850
        iprot.skip(ftype)
17851
      iprot.readFieldEnd()
17852
    iprot.readStructEnd()
17853
 
17854
  def write(self, oprot):
17855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17857
      return
17858
    oprot.writeStructBegin('getVoucherAmount_result')
17859
    if self.success is not None:
17860
      oprot.writeFieldBegin('success', TType.I64, 0)
17861
      oprot.writeI64(self.success)
17862
      oprot.writeFieldEnd()
17863
    oprot.writeFieldStop()
17864
    oprot.writeStructEnd()
17865
 
17866
  def validate(self):
17867
    return
17868
 
17869
 
17870
  def __repr__(self):
17871
    L = ['%s=%r' % (key, value)
17872
      for key, value in self.__dict__.iteritems()]
17873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17874
 
17875
  def __eq__(self, other):
17876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17877
 
17878
  def __ne__(self, other):
17879
    return not (self == other)
17880
 
17881
class getAllItemVouchers_args:
17882
  """
17883
  Attributes:
17884
   - itemId
17885
  """
17886
 
17887
  thrift_spec = (
17888
    None, # 0
17889
    (1, TType.I64, 'itemId', None, None, ), # 1
17890
  )
17891
 
17892
  def __init__(self, itemId=None,):
17893
    self.itemId = itemId
17894
 
17895
  def read(self, iprot):
17896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17898
      return
17899
    iprot.readStructBegin()
17900
    while True:
17901
      (fname, ftype, fid) = iprot.readFieldBegin()
17902
      if ftype == TType.STOP:
17903
        break
17904
      if fid == 1:
17905
        if ftype == TType.I64:
17906
          self.itemId = iprot.readI64();
17907
        else:
17908
          iprot.skip(ftype)
17909
      else:
17910
        iprot.skip(ftype)
17911
      iprot.readFieldEnd()
17912
    iprot.readStructEnd()
17913
 
17914
  def write(self, oprot):
17915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17917
      return
17918
    oprot.writeStructBegin('getAllItemVouchers_args')
17919
    if self.itemId is not None:
17920
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17921
      oprot.writeI64(self.itemId)
17922
      oprot.writeFieldEnd()
17923
    oprot.writeFieldStop()
17924
    oprot.writeStructEnd()
17925
 
17926
  def validate(self):
17927
    return
17928
 
17929
 
17930
  def __repr__(self):
17931
    L = ['%s=%r' % (key, value)
17932
      for key, value in self.__dict__.iteritems()]
17933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17934
 
17935
  def __eq__(self, other):
17936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17937
 
17938
  def __ne__(self, other):
17939
    return not (self == other)
17940
 
17941
class getAllItemVouchers_result:
17942
  """
17943
  Attributes:
17944
   - success
17945
  """
17946
 
17947
  thrift_spec = (
17948
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
17949
  )
17950
 
17951
  def __init__(self, success=None,):
17952
    self.success = success
17953
 
17954
  def read(self, iprot):
17955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17957
      return
17958
    iprot.readStructBegin()
17959
    while True:
17960
      (fname, ftype, fid) = iprot.readFieldBegin()
17961
      if ftype == TType.STOP:
17962
        break
17963
      if fid == 0:
17964
        if ftype == TType.LIST:
17965
          self.success = []
9155 kshitij.so 17966
          (_etype363, _size360) = iprot.readListBegin()
17967
          for _i364 in xrange(_size360):
17968
            _elem365 = VoucherItemMapping()
17969
            _elem365.read(iprot)
17970
            self.success.append(_elem365)
5944 mandeep.dh 17971
          iprot.readListEnd()
17972
        else:
17973
          iprot.skip(ftype)
17974
      else:
17975
        iprot.skip(ftype)
17976
      iprot.readFieldEnd()
17977
    iprot.readStructEnd()
17978
 
17979
  def write(self, oprot):
17980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17982
      return
17983
    oprot.writeStructBegin('getAllItemVouchers_result')
17984
    if self.success is not None:
17985
      oprot.writeFieldBegin('success', TType.LIST, 0)
17986
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17987
      for iter366 in self.success:
17988
        iter366.write(oprot)
5944 mandeep.dh 17989
      oprot.writeListEnd()
17990
      oprot.writeFieldEnd()
17991
    oprot.writeFieldStop()
17992
    oprot.writeStructEnd()
17993
 
17994
  def validate(self):
17995
    return
17996
 
17997
 
17998
  def __repr__(self):
17999
    L = ['%s=%r' % (key, value)
18000
      for key, value in self.__dict__.iteritems()]
18001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18002
 
18003
  def __eq__(self, other):
18004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18005
 
18006
  def __ne__(self, other):
18007
    return not (self == other)
18008
 
18009
class isValidCatalogItemId_args:
18010
  """
18011
  Attributes:
18012
   - catalog_item_id
18013
  """
18014
 
18015
  thrift_spec = (
18016
    None, # 0
18017
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
18018
  )
18019
 
18020
  def __init__(self, catalog_item_id=None,):
18021
    self.catalog_item_id = catalog_item_id
18022
 
18023
  def read(self, iprot):
18024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18026
      return
18027
    iprot.readStructBegin()
18028
    while True:
18029
      (fname, ftype, fid) = iprot.readFieldBegin()
18030
      if ftype == TType.STOP:
18031
        break
18032
      if fid == 1:
18033
        if ftype == TType.I64:
18034
          self.catalog_item_id = iprot.readI64();
18035
        else:
18036
          iprot.skip(ftype)
18037
      else:
18038
        iprot.skip(ftype)
18039
      iprot.readFieldEnd()
18040
    iprot.readStructEnd()
18041
 
18042
  def write(self, oprot):
18043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18045
      return
18046
    oprot.writeStructBegin('isValidCatalogItemId_args')
18047
    if self.catalog_item_id is not None:
18048
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
18049
      oprot.writeI64(self.catalog_item_id)
18050
      oprot.writeFieldEnd()
18051
    oprot.writeFieldStop()
18052
    oprot.writeStructEnd()
18053
 
18054
  def validate(self):
18055
    return
18056
 
18057
 
18058
  def __repr__(self):
18059
    L = ['%s=%r' % (key, value)
18060
      for key, value in self.__dict__.iteritems()]
18061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18062
 
18063
  def __eq__(self, other):
18064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18065
 
18066
  def __ne__(self, other):
18067
    return not (self == other)
18068
 
18069
class isValidCatalogItemId_result:
18070
  """
18071
  Attributes:
18072
   - success
18073
  """
18074
 
18075
  thrift_spec = (
18076
    (0, TType.BOOL, 'success', None, None, ), # 0
18077
  )
18078
 
18079
  def __init__(self, success=None,):
18080
    self.success = success
18081
 
18082
  def read(self, iprot):
18083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18085
      return
18086
    iprot.readStructBegin()
18087
    while True:
18088
      (fname, ftype, fid) = iprot.readFieldBegin()
18089
      if ftype == TType.STOP:
18090
        break
18091
      if fid == 0:
18092
        if ftype == TType.BOOL:
18093
          self.success = iprot.readBool();
18094
        else:
18095
          iprot.skip(ftype)
18096
      else:
18097
        iprot.skip(ftype)
18098
      iprot.readFieldEnd()
18099
    iprot.readStructEnd()
18100
 
18101
  def write(self, oprot):
18102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18104
      return
18105
    oprot.writeStructBegin('isValidCatalogItemId_result')
18106
    if self.success is not None:
18107
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18108
      oprot.writeBool(self.success)
18109
      oprot.writeFieldEnd()
18110
    oprot.writeFieldStop()
18111
    oprot.writeStructEnd()
18112
 
18113
  def validate(self):
18114
    return
18115
 
18116
 
18117
  def __repr__(self):
18118
    L = ['%s=%r' % (key, value)
18119
      for key, value in self.__dict__.iteritems()]
18120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18121
 
18122
  def __eq__(self, other):
18123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18124
 
18125
  def __ne__(self, other):
18126
    return not (self == other)
6039 amit.gupta 18127
 
18128
class getVatPercentageForItem_args:
18129
  """
18130
  Attributes:
18131
   - itemId
7330 amit.gupta 18132
   - stateId
6039 amit.gupta 18133
   - price
18134
  """
18135
 
18136
  thrift_spec = (
18137
    None, # 0
18138
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 18139
    (2, TType.I64, 'stateId', None, None, ), # 2
18140
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 18141
  )
18142
 
7330 amit.gupta 18143
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 18144
    self.itemId = itemId
7330 amit.gupta 18145
    self.stateId = stateId
6039 amit.gupta 18146
    self.price = price
18147
 
18148
  def read(self, iprot):
18149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18151
      return
18152
    iprot.readStructBegin()
18153
    while True:
18154
      (fname, ftype, fid) = iprot.readFieldBegin()
18155
      if ftype == TType.STOP:
18156
        break
18157
      if fid == 1:
18158
        if ftype == TType.I64:
18159
          self.itemId = iprot.readI64();
18160
        else:
18161
          iprot.skip(ftype)
18162
      elif fid == 2:
7330 amit.gupta 18163
        if ftype == TType.I64:
18164
          self.stateId = iprot.readI64();
18165
        else:
18166
          iprot.skip(ftype)
18167
      elif fid == 3:
6039 amit.gupta 18168
        if ftype == TType.DOUBLE:
18169
          self.price = iprot.readDouble();
18170
        else:
18171
          iprot.skip(ftype)
18172
      else:
18173
        iprot.skip(ftype)
18174
      iprot.readFieldEnd()
18175
    iprot.readStructEnd()
18176
 
18177
  def write(self, oprot):
18178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18180
      return
18181
    oprot.writeStructBegin('getVatPercentageForItem_args')
18182
    if self.itemId is not None:
18183
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18184
      oprot.writeI64(self.itemId)
18185
      oprot.writeFieldEnd()
7330 amit.gupta 18186
    if self.stateId is not None:
18187
      oprot.writeFieldBegin('stateId', TType.I64, 2)
18188
      oprot.writeI64(self.stateId)
18189
      oprot.writeFieldEnd()
6039 amit.gupta 18190
    if self.price is not None:
7330 amit.gupta 18191
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 18192
      oprot.writeDouble(self.price)
18193
      oprot.writeFieldEnd()
18194
    oprot.writeFieldStop()
18195
    oprot.writeStructEnd()
18196
 
18197
  def validate(self):
18198
    return
18199
 
18200
 
18201
  def __repr__(self):
18202
    L = ['%s=%r' % (key, value)
18203
      for key, value in self.__dict__.iteritems()]
18204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18205
 
18206
  def __eq__(self, other):
18207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18208
 
18209
  def __ne__(self, other):
18210
    return not (self == other)
18211
 
18212
class getVatPercentageForItem_result:
18213
  """
18214
  Attributes:
18215
   - success
7340 amit.gupta 18216
   - cex
6039 amit.gupta 18217
  """
18218
 
18219
  thrift_spec = (
18220
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 18221
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 18222
  )
18223
 
7340 amit.gupta 18224
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 18225
    self.success = success
7340 amit.gupta 18226
    self.cex = cex
6039 amit.gupta 18227
 
18228
  def read(self, iprot):
18229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18231
      return
18232
    iprot.readStructBegin()
18233
    while True:
18234
      (fname, ftype, fid) = iprot.readFieldBegin()
18235
      if ftype == TType.STOP:
18236
        break
18237
      if fid == 0:
18238
        if ftype == TType.DOUBLE:
18239
          self.success = iprot.readDouble();
18240
        else:
18241
          iprot.skip(ftype)
7340 amit.gupta 18242
      elif fid == 1:
18243
        if ftype == TType.STRUCT:
18244
          self.cex = CatalogServiceException()
18245
          self.cex.read(iprot)
18246
        else:
18247
          iprot.skip(ftype)
6039 amit.gupta 18248
      else:
18249
        iprot.skip(ftype)
18250
      iprot.readFieldEnd()
18251
    iprot.readStructEnd()
18252
 
18253
  def write(self, oprot):
18254
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18255
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18256
      return
18257
    oprot.writeStructBegin('getVatPercentageForItem_result')
18258
    if self.success is not None:
18259
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
18260
      oprot.writeDouble(self.success)
18261
      oprot.writeFieldEnd()
7340 amit.gupta 18262
    if self.cex is not None:
18263
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18264
      self.cex.write(oprot)
18265
      oprot.writeFieldEnd()
6039 amit.gupta 18266
    oprot.writeFieldStop()
18267
    oprot.writeStructEnd()
18268
 
18269
  def validate(self):
18270
    return
18271
 
18272
 
18273
  def __repr__(self):
18274
    L = ['%s=%r' % (key, value)
18275
      for key, value in self.__dict__.iteritems()]
18276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18277
 
18278
  def __eq__(self, other):
18279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18280
 
18281
  def __ne__(self, other):
18282
    return not (self == other)
18283
 
18284
class getVatAmountForItem_args:
18285
  """
18286
  Attributes:
18287
   - itemId
18288
   - price
18289
  """
18290
 
18291
  thrift_spec = (
18292
    None, # 0
18293
    (1, TType.I64, 'itemId', None, None, ), # 1
18294
    (2, TType.DOUBLE, 'price', None, None, ), # 2
18295
  )
18296
 
18297
  def __init__(self, itemId=None, price=None,):
18298
    self.itemId = itemId
18299
    self.price = price
18300
 
18301
  def read(self, iprot):
18302
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18303
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18304
      return
18305
    iprot.readStructBegin()
18306
    while True:
18307
      (fname, ftype, fid) = iprot.readFieldBegin()
18308
      if ftype == TType.STOP:
18309
        break
18310
      if fid == 1:
18311
        if ftype == TType.I64:
18312
          self.itemId = iprot.readI64();
18313
        else:
18314
          iprot.skip(ftype)
18315
      elif fid == 2:
18316
        if ftype == TType.DOUBLE:
18317
          self.price = iprot.readDouble();
18318
        else:
18319
          iprot.skip(ftype)
18320
      else:
18321
        iprot.skip(ftype)
18322
      iprot.readFieldEnd()
18323
    iprot.readStructEnd()
18324
 
18325
  def write(self, oprot):
18326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18328
      return
18329
    oprot.writeStructBegin('getVatAmountForItem_args')
18330
    if self.itemId is not None:
18331
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18332
      oprot.writeI64(self.itemId)
18333
      oprot.writeFieldEnd()
18334
    if self.price is not None:
18335
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
18336
      oprot.writeDouble(self.price)
18337
      oprot.writeFieldEnd()
18338
    oprot.writeFieldStop()
18339
    oprot.writeStructEnd()
18340
 
18341
  def validate(self):
18342
    return
18343
 
18344
 
18345
  def __repr__(self):
18346
    L = ['%s=%r' % (key, value)
18347
      for key, value in self.__dict__.iteritems()]
18348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18349
 
18350
  def __eq__(self, other):
18351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18352
 
18353
  def __ne__(self, other):
18354
    return not (self == other)
18355
 
18356
class getVatAmountForItem_result:
18357
  """
18358
  Attributes:
18359
   - success
18360
  """
18361
 
18362
  thrift_spec = (
18363
    (0, TType.DOUBLE, 'success', None, None, ), # 0
18364
  )
18365
 
18366
  def __init__(self, success=None,):
18367
    self.success = success
18368
 
18369
  def read(self, iprot):
18370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18372
      return
18373
    iprot.readStructBegin()
18374
    while True:
18375
      (fname, ftype, fid) = iprot.readFieldBegin()
18376
      if ftype == TType.STOP:
18377
        break
18378
      if fid == 0:
18379
        if ftype == TType.DOUBLE:
18380
          self.success = iprot.readDouble();
18381
        else:
18382
          iprot.skip(ftype)
18383
      else:
18384
        iprot.skip(ftype)
18385
      iprot.readFieldEnd()
18386
    iprot.readStructEnd()
18387
 
18388
  def write(self, oprot):
18389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18391
      return
18392
    oprot.writeStructBegin('getVatAmountForItem_result')
18393
    if self.success is not None:
18394
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
18395
      oprot.writeDouble(self.success)
18396
      oprot.writeFieldEnd()
18397
    oprot.writeFieldStop()
18398
    oprot.writeStructEnd()
18399
 
18400
  def validate(self):
18401
    return
18402
 
18403
 
18404
  def __repr__(self):
18405
    L = ['%s=%r' % (key, value)
18406
      for key, value in self.__dict__.iteritems()]
18407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18408
 
18409
  def __eq__(self, other):
18410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18411
 
18412
  def __ne__(self, other):
18413
    return not (self == other)
6531 vikram.rag 18414
 
18415
class getAllIgnoredInventoryUpdateItemsList_args:
18416
  """
18417
  Attributes:
18418
   - offset
18419
   - limit
18420
  """
18421
 
18422
  thrift_spec = (
18423
    None, # 0
18424
    (1, TType.I32, 'offset', None, None, ), # 1
18425
    (2, TType.I32, 'limit', None, None, ), # 2
18426
  )
18427
 
18428
  def __init__(self, offset=None, limit=None,):
18429
    self.offset = offset
18430
    self.limit = limit
18431
 
18432
  def read(self, iprot):
18433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18435
      return
18436
    iprot.readStructBegin()
18437
    while True:
18438
      (fname, ftype, fid) = iprot.readFieldBegin()
18439
      if ftype == TType.STOP:
18440
        break
18441
      if fid == 1:
18442
        if ftype == TType.I32:
18443
          self.offset = iprot.readI32();
18444
        else:
18445
          iprot.skip(ftype)
18446
      elif fid == 2:
18447
        if ftype == TType.I32:
18448
          self.limit = iprot.readI32();
18449
        else:
18450
          iprot.skip(ftype)
18451
      else:
18452
        iprot.skip(ftype)
18453
      iprot.readFieldEnd()
18454
    iprot.readStructEnd()
18455
 
18456
  def write(self, oprot):
18457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18459
      return
18460
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
18461
    if self.offset is not None:
18462
      oprot.writeFieldBegin('offset', TType.I32, 1)
18463
      oprot.writeI32(self.offset)
18464
      oprot.writeFieldEnd()
18465
    if self.limit is not None:
18466
      oprot.writeFieldBegin('limit', TType.I32, 2)
18467
      oprot.writeI32(self.limit)
18468
      oprot.writeFieldEnd()
18469
    oprot.writeFieldStop()
18470
    oprot.writeStructEnd()
18471
 
18472
  def validate(self):
18473
    return
18474
 
18475
 
18476
  def __repr__(self):
18477
    L = ['%s=%r' % (key, value)
18478
      for key, value in self.__dict__.iteritems()]
18479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18480
 
18481
  def __eq__(self, other):
18482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18483
 
18484
  def __ne__(self, other):
18485
    return not (self == other)
18486
 
18487
class getAllIgnoredInventoryUpdateItemsList_result:
18488
  """
18489
  Attributes:
18490
   - success
18491
  """
18492
 
18493
  thrift_spec = (
18494
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18495
  )
18496
 
18497
  def __init__(self, success=None,):
18498
    self.success = success
18499
 
18500
  def read(self, iprot):
18501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18503
      return
18504
    iprot.readStructBegin()
18505
    while True:
18506
      (fname, ftype, fid) = iprot.readFieldBegin()
18507
      if ftype == TType.STOP:
18508
        break
18509
      if fid == 0:
18510
        if ftype == TType.LIST:
18511
          self.success = []
9155 kshitij.so 18512
          (_etype370, _size367) = iprot.readListBegin()
18513
          for _i371 in xrange(_size367):
18514
            _elem372 = Item()
18515
            _elem372.read(iprot)
18516
            self.success.append(_elem372)
6531 vikram.rag 18517
          iprot.readListEnd()
18518
        else:
18519
          iprot.skip(ftype)
18520
      else:
18521
        iprot.skip(ftype)
18522
      iprot.readFieldEnd()
18523
    iprot.readStructEnd()
18524
 
18525
  def write(self, oprot):
18526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18528
      return
18529
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
18530
    if self.success is not None:
18531
      oprot.writeFieldBegin('success', TType.LIST, 0)
18532
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18533
      for iter373 in self.success:
18534
        iter373.write(oprot)
6531 vikram.rag 18535
      oprot.writeListEnd()
18536
      oprot.writeFieldEnd()
18537
    oprot.writeFieldStop()
18538
    oprot.writeStructEnd()
18539
 
18540
  def validate(self):
18541
    return
18542
 
18543
 
18544
  def __repr__(self):
18545
    L = ['%s=%r' % (key, value)
18546
      for key, value in self.__dict__.iteritems()]
18547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18548
 
18549
  def __eq__(self, other):
18550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18551
 
18552
  def __ne__(self, other):
18553
    return not (self == other)
6805 anupam.sin 18554
 
6821 amar.kumar 18555
class getAllAliveItems_args:
18556
 
18557
  thrift_spec = (
18558
  )
18559
 
18560
  def read(self, iprot):
18561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18563
      return
18564
    iprot.readStructBegin()
18565
    while True:
18566
      (fname, ftype, fid) = iprot.readFieldBegin()
18567
      if ftype == TType.STOP:
18568
        break
18569
      else:
18570
        iprot.skip(ftype)
18571
      iprot.readFieldEnd()
18572
    iprot.readStructEnd()
18573
 
18574
  def write(self, oprot):
18575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18577
      return
18578
    oprot.writeStructBegin('getAllAliveItems_args')
18579
    oprot.writeFieldStop()
18580
    oprot.writeStructEnd()
18581
 
18582
  def validate(self):
18583
    return
18584
 
18585
 
18586
  def __repr__(self):
18587
    L = ['%s=%r' % (key, value)
18588
      for key, value in self.__dict__.iteritems()]
18589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18590
 
18591
  def __eq__(self, other):
18592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18593
 
18594
  def __ne__(self, other):
18595
    return not (self == other)
18596
 
18597
class getAllAliveItems_result:
18598
  """
18599
  Attributes:
18600
   - success
18601
  """
18602
 
18603
  thrift_spec = (
18604
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18605
  )
18606
 
18607
  def __init__(self, success=None,):
18608
    self.success = success
18609
 
18610
  def read(self, iprot):
18611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18613
      return
18614
    iprot.readStructBegin()
18615
    while True:
18616
      (fname, ftype, fid) = iprot.readFieldBegin()
18617
      if ftype == TType.STOP:
18618
        break
18619
      if fid == 0:
18620
        if ftype == TType.LIST:
18621
          self.success = []
9155 kshitij.so 18622
          (_etype377, _size374) = iprot.readListBegin()
18623
          for _i378 in xrange(_size374):
18624
            _elem379 = Item()
18625
            _elem379.read(iprot)
18626
            self.success.append(_elem379)
6821 amar.kumar 18627
          iprot.readListEnd()
18628
        else:
18629
          iprot.skip(ftype)
18630
      else:
18631
        iprot.skip(ftype)
18632
      iprot.readFieldEnd()
18633
    iprot.readStructEnd()
18634
 
18635
  def write(self, oprot):
18636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18638
      return
18639
    oprot.writeStructBegin('getAllAliveItems_result')
18640
    if self.success is not None:
18641
      oprot.writeFieldBegin('success', TType.LIST, 0)
18642
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18643
      for iter380 in self.success:
18644
        iter380.write(oprot)
6821 amar.kumar 18645
      oprot.writeListEnd()
18646
      oprot.writeFieldEnd()
18647
    oprot.writeFieldStop()
18648
    oprot.writeStructEnd()
18649
 
18650
  def validate(self):
18651
    return
18652
 
18653
 
18654
  def __repr__(self):
18655
    L = ['%s=%r' % (key, value)
18656
      for key, value in self.__dict__.iteritems()]
18657
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18658
 
18659
  def __eq__(self, other):
18660
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18661
 
18662
  def __ne__(self, other):
18663
    return not (self == other)
18664
 
6805 anupam.sin 18665
class getInsuranceAmount_args:
18666
  """
18667
  Attributes:
18668
   - itemId
6921 anupam.sin 18669
   - price
6805 anupam.sin 18670
   - insurerId
18671
   - quantity
18672
  """
18673
 
18674
  thrift_spec = (
18675
    None, # 0
18676
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 18677
    (2, TType.DOUBLE, 'price', None, None, ), # 2
18678
    (3, TType.I64, 'insurerId', None, None, ), # 3
18679
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 18680
  )
18681
 
6921 anupam.sin 18682
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 18683
    self.itemId = itemId
6921 anupam.sin 18684
    self.price = price
6805 anupam.sin 18685
    self.insurerId = insurerId
18686
    self.quantity = quantity
18687
 
18688
  def read(self, iprot):
18689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18691
      return
18692
    iprot.readStructBegin()
18693
    while True:
18694
      (fname, ftype, fid) = iprot.readFieldBegin()
18695
      if ftype == TType.STOP:
18696
        break
18697
      if fid == 1:
18698
        if ftype == TType.I64:
18699
          self.itemId = iprot.readI64();
18700
        else:
18701
          iprot.skip(ftype)
18702
      elif fid == 2:
6921 anupam.sin 18703
        if ftype == TType.DOUBLE:
18704
          self.price = iprot.readDouble();
18705
        else:
18706
          iprot.skip(ftype)
18707
      elif fid == 3:
6805 anupam.sin 18708
        if ftype == TType.I64:
18709
          self.insurerId = iprot.readI64();
18710
        else:
18711
          iprot.skip(ftype)
6921 anupam.sin 18712
      elif fid == 4:
6805 anupam.sin 18713
        if ftype == TType.I64:
18714
          self.quantity = iprot.readI64();
18715
        else:
18716
          iprot.skip(ftype)
18717
      else:
18718
        iprot.skip(ftype)
18719
      iprot.readFieldEnd()
18720
    iprot.readStructEnd()
18721
 
18722
  def write(self, oprot):
18723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18725
      return
18726
    oprot.writeStructBegin('getInsuranceAmount_args')
18727
    if self.itemId is not None:
18728
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18729
      oprot.writeI64(self.itemId)
18730
      oprot.writeFieldEnd()
6921 anupam.sin 18731
    if self.price is not None:
18732
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
18733
      oprot.writeDouble(self.price)
18734
      oprot.writeFieldEnd()
6805 anupam.sin 18735
    if self.insurerId is not None:
6921 anupam.sin 18736
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 18737
      oprot.writeI64(self.insurerId)
18738
      oprot.writeFieldEnd()
18739
    if self.quantity is not None:
6921 anupam.sin 18740
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 18741
      oprot.writeI64(self.quantity)
18742
      oprot.writeFieldEnd()
18743
    oprot.writeFieldStop()
18744
    oprot.writeStructEnd()
18745
 
18746
  def validate(self):
18747
    return
18748
 
18749
 
18750
  def __repr__(self):
18751
    L = ['%s=%r' % (key, value)
18752
      for key, value in self.__dict__.iteritems()]
18753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18754
 
18755
  def __eq__(self, other):
18756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18757
 
18758
  def __ne__(self, other):
18759
    return not (self == other)
18760
 
18761
class getInsuranceAmount_result:
18762
  """
18763
  Attributes:
18764
   - success
18765
  """
18766
 
18767
  thrift_spec = (
18768
    (0, TType.I64, 'success', None, None, ), # 0
18769
  )
18770
 
18771
  def __init__(self, success=None,):
18772
    self.success = success
18773
 
18774
  def read(self, iprot):
18775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18777
      return
18778
    iprot.readStructBegin()
18779
    while True:
18780
      (fname, ftype, fid) = iprot.readFieldBegin()
18781
      if ftype == TType.STOP:
18782
        break
18783
      if fid == 0:
18784
        if ftype == TType.I64:
18785
          self.success = iprot.readI64();
18786
        else:
18787
          iprot.skip(ftype)
18788
      else:
18789
        iprot.skip(ftype)
18790
      iprot.readFieldEnd()
18791
    iprot.readStructEnd()
18792
 
18793
  def write(self, oprot):
18794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18796
      return
18797
    oprot.writeStructBegin('getInsuranceAmount_result')
18798
    if self.success is not None:
18799
      oprot.writeFieldBegin('success', TType.I64, 0)
18800
      oprot.writeI64(self.success)
18801
      oprot.writeFieldEnd()
18802
    oprot.writeFieldStop()
18803
    oprot.writeStructEnd()
18804
 
18805
  def validate(self):
18806
    return
18807
 
18808
 
18809
  def __repr__(self):
18810
    L = ['%s=%r' % (key, value)
18811
      for key, value in self.__dict__.iteritems()]
18812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18813
 
18814
  def __eq__(self, other):
18815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18816
 
18817
  def __ne__(self, other):
18818
    return not (self == other)
18819
 
18820
class getInsurer_args:
18821
  """
18822
  Attributes:
18823
   - insurerId
18824
  """
18825
 
18826
  thrift_spec = (
18827
    None, # 0
18828
    (1, TType.I64, 'insurerId', None, None, ), # 1
18829
  )
18830
 
18831
  def __init__(self, insurerId=None,):
18832
    self.insurerId = insurerId
18833
 
18834
  def read(self, iprot):
18835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18837
      return
18838
    iprot.readStructBegin()
18839
    while True:
18840
      (fname, ftype, fid) = iprot.readFieldBegin()
18841
      if ftype == TType.STOP:
18842
        break
18843
      if fid == 1:
18844
        if ftype == TType.I64:
18845
          self.insurerId = iprot.readI64();
18846
        else:
18847
          iprot.skip(ftype)
18848
      else:
18849
        iprot.skip(ftype)
18850
      iprot.readFieldEnd()
18851
    iprot.readStructEnd()
18852
 
18853
  def write(self, oprot):
18854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18856
      return
18857
    oprot.writeStructBegin('getInsurer_args')
18858
    if self.insurerId is not None:
18859
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
18860
      oprot.writeI64(self.insurerId)
18861
      oprot.writeFieldEnd()
18862
    oprot.writeFieldStop()
18863
    oprot.writeStructEnd()
18864
 
18865
  def validate(self):
18866
    return
18867
 
18868
 
18869
  def __repr__(self):
18870
    L = ['%s=%r' % (key, value)
18871
      for key, value in self.__dict__.iteritems()]
18872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18873
 
18874
  def __eq__(self, other):
18875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18876
 
18877
  def __ne__(self, other):
18878
    return not (self == other)
18879
 
18880
class getInsurer_result:
18881
  """
18882
  Attributes:
18883
   - success
18884
  """
18885
 
18886
  thrift_spec = (
18887
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
18888
  )
18889
 
18890
  def __init__(self, success=None,):
18891
    self.success = success
18892
 
18893
  def read(self, iprot):
18894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18896
      return
18897
    iprot.readStructBegin()
18898
    while True:
18899
      (fname, ftype, fid) = iprot.readFieldBegin()
18900
      if ftype == TType.STOP:
18901
        break
18902
      if fid == 0:
18903
        if ftype == TType.STRUCT:
18904
          self.success = Insurer()
18905
          self.success.read(iprot)
18906
        else:
18907
          iprot.skip(ftype)
18908
      else:
18909
        iprot.skip(ftype)
18910
      iprot.readFieldEnd()
18911
    iprot.readStructEnd()
18912
 
18913
  def write(self, oprot):
18914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18916
      return
18917
    oprot.writeStructBegin('getInsurer_result')
18918
    if self.success is not None:
18919
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18920
      self.success.write(oprot)
18921
      oprot.writeFieldEnd()
18922
    oprot.writeFieldStop()
18923
    oprot.writeStructEnd()
18924
 
18925
  def validate(self):
18926
    return
18927
 
18928
 
18929
  def __repr__(self):
18930
    L = ['%s=%r' % (key, value)
18931
      for key, value in self.__dict__.iteritems()]
18932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18933
 
18934
  def __eq__(self, other):
18935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18936
 
18937
  def __ne__(self, other):
18938
    return not (self == other)
6838 vikram.rag 18939
 
18940
class getAllInsurers_args:
18941
 
18942
  thrift_spec = (
18943
  )
18944
 
18945
  def read(self, iprot):
18946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18948
      return
18949
    iprot.readStructBegin()
18950
    while True:
18951
      (fname, ftype, fid) = iprot.readFieldBegin()
18952
      if ftype == TType.STOP:
18953
        break
18954
      else:
18955
        iprot.skip(ftype)
18956
      iprot.readFieldEnd()
18957
    iprot.readStructEnd()
18958
 
18959
  def write(self, oprot):
18960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18962
      return
18963
    oprot.writeStructBegin('getAllInsurers_args')
18964
    oprot.writeFieldStop()
18965
    oprot.writeStructEnd()
18966
 
18967
  def validate(self):
18968
    return
18969
 
18970
 
18971
  def __repr__(self):
18972
    L = ['%s=%r' % (key, value)
18973
      for key, value in self.__dict__.iteritems()]
18974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18975
 
18976
  def __eq__(self, other):
18977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18978
 
18979
  def __ne__(self, other):
18980
    return not (self == other)
18981
 
18982
class getAllInsurers_result:
18983
  """
18984
  Attributes:
18985
   - success
18986
  """
18987
 
18988
  thrift_spec = (
18989
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
18990
  )
18991
 
18992
  def __init__(self, success=None,):
18993
    self.success = success
18994
 
18995
  def read(self, iprot):
18996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18998
      return
18999
    iprot.readStructBegin()
19000
    while True:
19001
      (fname, ftype, fid) = iprot.readFieldBegin()
19002
      if ftype == TType.STOP:
19003
        break
19004
      if fid == 0:
19005
        if ftype == TType.LIST:
19006
          self.success = []
9155 kshitij.so 19007
          (_etype384, _size381) = iprot.readListBegin()
19008
          for _i385 in xrange(_size381):
19009
            _elem386 = Insurer()
19010
            _elem386.read(iprot)
19011
            self.success.append(_elem386)
6838 vikram.rag 19012
          iprot.readListEnd()
19013
        else:
19014
          iprot.skip(ftype)
19015
      else:
19016
        iprot.skip(ftype)
19017
      iprot.readFieldEnd()
19018
    iprot.readStructEnd()
19019
 
19020
  def write(self, oprot):
19021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19023
      return
19024
    oprot.writeStructBegin('getAllInsurers_result')
19025
    if self.success is not None:
19026
      oprot.writeFieldBegin('success', TType.LIST, 0)
19027
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19028
      for iter387 in self.success:
19029
        iter387.write(oprot)
6838 vikram.rag 19030
      oprot.writeListEnd()
19031
      oprot.writeFieldEnd()
19032
    oprot.writeFieldStop()
19033
    oprot.writeStructEnd()
19034
 
19035
  def validate(self):
19036
    return
19037
 
19038
 
19039
  def __repr__(self):
19040
    L = ['%s=%r' % (key, value)
19041
      for key, value in self.__dict__.iteritems()]
19042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19043
 
19044
  def __eq__(self, other):
19045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19046
 
19047
  def __ne__(self, other):
19048
    return not (self == other)
6962 rajveer 19049
 
19050
class updateInsuranceDeclaredAmount_args:
19051
  """
19052
  Attributes:
19053
   - insurerId
19054
   - amount
19055
  """
19056
 
19057
  thrift_spec = (
19058
    None, # 0
19059
    (1, TType.I64, 'insurerId', None, None, ), # 1
19060
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
19061
  )
19062
 
19063
  def __init__(self, insurerId=None, amount=None,):
19064
    self.insurerId = insurerId
19065
    self.amount = amount
19066
 
19067
  def read(self, iprot):
19068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19070
      return
19071
    iprot.readStructBegin()
19072
    while True:
19073
      (fname, ftype, fid) = iprot.readFieldBegin()
19074
      if ftype == TType.STOP:
19075
        break
19076
      if fid == 1:
19077
        if ftype == TType.I64:
19078
          self.insurerId = iprot.readI64();
19079
        else:
19080
          iprot.skip(ftype)
19081
      elif fid == 2:
19082
        if ftype == TType.DOUBLE:
19083
          self.amount = iprot.readDouble();
19084
        else:
19085
          iprot.skip(ftype)
19086
      else:
19087
        iprot.skip(ftype)
19088
      iprot.readFieldEnd()
19089
    iprot.readStructEnd()
19090
 
19091
  def write(self, oprot):
19092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19094
      return
19095
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
19096
    if self.insurerId is not None:
19097
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
19098
      oprot.writeI64(self.insurerId)
19099
      oprot.writeFieldEnd()
19100
    if self.amount is not None:
19101
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
19102
      oprot.writeDouble(self.amount)
19103
      oprot.writeFieldEnd()
19104
    oprot.writeFieldStop()
19105
    oprot.writeStructEnd()
19106
 
19107
  def validate(self):
19108
    return
19109
 
19110
 
19111
  def __repr__(self):
19112
    L = ['%s=%r' % (key, value)
19113
      for key, value in self.__dict__.iteritems()]
19114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19115
 
19116
  def __eq__(self, other):
19117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19118
 
19119
  def __ne__(self, other):
19120
    return not (self == other)
19121
 
19122
class updateInsuranceDeclaredAmount_result:
19123
 
19124
  thrift_spec = (
19125
  )
19126
 
19127
  def read(self, iprot):
19128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19130
      return
19131
    iprot.readStructBegin()
19132
    while True:
19133
      (fname, ftype, fid) = iprot.readFieldBegin()
19134
      if ftype == TType.STOP:
19135
        break
19136
      else:
19137
        iprot.skip(ftype)
19138
      iprot.readFieldEnd()
19139
    iprot.readStructEnd()
19140
 
19141
  def write(self, oprot):
19142
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19143
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19144
      return
19145
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
19146
    oprot.writeFieldStop()
19147
    oprot.writeStructEnd()
19148
 
19149
  def validate(self):
19150
    return
19151
 
19152
 
19153
  def __repr__(self):
19154
    L = ['%s=%r' % (key, value)
19155
      for key, value in self.__dict__.iteritems()]
19156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19157
 
19158
  def __eq__(self, other):
19159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19160
 
19161
  def __ne__(self, other):
19162
    return not (self == other)
7190 amar.kumar 19163
 
19164
class getFreebieForItem_args:
19165
  """
19166
  Attributes:
19167
   - itemId
19168
  """
19169
 
19170
  thrift_spec = (
19171
    None, # 0
19172
    (1, TType.I64, 'itemId', None, None, ), # 1
19173
  )
19174
 
19175
  def __init__(self, itemId=None,):
19176
    self.itemId = itemId
19177
 
19178
  def read(self, iprot):
19179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19181
      return
19182
    iprot.readStructBegin()
19183
    while True:
19184
      (fname, ftype, fid) = iprot.readFieldBegin()
19185
      if ftype == TType.STOP:
19186
        break
19187
      if fid == 1:
19188
        if ftype == TType.I64:
19189
          self.itemId = iprot.readI64();
19190
        else:
19191
          iprot.skip(ftype)
19192
      else:
19193
        iprot.skip(ftype)
19194
      iprot.readFieldEnd()
19195
    iprot.readStructEnd()
19196
 
19197
  def write(self, oprot):
19198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19200
      return
19201
    oprot.writeStructBegin('getFreebieForItem_args')
19202
    if self.itemId is not None:
19203
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19204
      oprot.writeI64(self.itemId)
19205
      oprot.writeFieldEnd()
19206
    oprot.writeFieldStop()
19207
    oprot.writeStructEnd()
19208
 
19209
  def validate(self):
19210
    return
19211
 
19212
 
19213
  def __repr__(self):
19214
    L = ['%s=%r' % (key, value)
19215
      for key, value in self.__dict__.iteritems()]
19216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19217
 
19218
  def __eq__(self, other):
19219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19220
 
19221
  def __ne__(self, other):
19222
    return not (self == other)
19223
 
19224
class getFreebieForItem_result:
19225
  """
19226
  Attributes:
19227
   - success
19228
  """
19229
 
19230
  thrift_spec = (
19231
    (0, TType.I64, 'success', None, None, ), # 0
19232
  )
19233
 
19234
  def __init__(self, success=None,):
19235
    self.success = success
19236
 
19237
  def read(self, iprot):
19238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19240
      return
19241
    iprot.readStructBegin()
19242
    while True:
19243
      (fname, ftype, fid) = iprot.readFieldBegin()
19244
      if ftype == TType.STOP:
19245
        break
19246
      if fid == 0:
19247
        if ftype == TType.I64:
19248
          self.success = iprot.readI64();
19249
        else:
19250
          iprot.skip(ftype)
19251
      else:
19252
        iprot.skip(ftype)
19253
      iprot.readFieldEnd()
19254
    iprot.readStructEnd()
19255
 
19256
  def write(self, oprot):
19257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19259
      return
19260
    oprot.writeStructBegin('getFreebieForItem_result')
19261
    if self.success is not None:
19262
      oprot.writeFieldBegin('success', TType.I64, 0)
19263
      oprot.writeI64(self.success)
19264
      oprot.writeFieldEnd()
19265
    oprot.writeFieldStop()
19266
    oprot.writeStructEnd()
19267
 
19268
  def validate(self):
19269
    return
19270
 
19271
 
19272
  def __repr__(self):
19273
    L = ['%s=%r' % (key, value)
19274
      for key, value in self.__dict__.iteritems()]
19275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19276
 
19277
  def __eq__(self, other):
19278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19279
 
19280
  def __ne__(self, other):
19281
    return not (self == other)
19282
 
19283
class addOrUpdateFreebieForItem_args:
19284
  """
19285
  Attributes:
19286
   - freebieItem
19287
  """
19288
 
19289
  thrift_spec = (
19290
    None, # 0
19291
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
19292
  )
19293
 
19294
  def __init__(self, freebieItem=None,):
19295
    self.freebieItem = freebieItem
19296
 
19297
  def read(self, iprot):
19298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19300
      return
19301
    iprot.readStructBegin()
19302
    while True:
19303
      (fname, ftype, fid) = iprot.readFieldBegin()
19304
      if ftype == TType.STOP:
19305
        break
19306
      if fid == 1:
19307
        if ftype == TType.STRUCT:
19308
          self.freebieItem = FreebieItem()
19309
          self.freebieItem.read(iprot)
19310
        else:
19311
          iprot.skip(ftype)
19312
      else:
19313
        iprot.skip(ftype)
19314
      iprot.readFieldEnd()
19315
    iprot.readStructEnd()
19316
 
19317
  def write(self, oprot):
19318
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19319
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19320
      return
19321
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
19322
    if self.freebieItem is not None:
19323
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
19324
      self.freebieItem.write(oprot)
19325
      oprot.writeFieldEnd()
19326
    oprot.writeFieldStop()
19327
    oprot.writeStructEnd()
19328
 
19329
  def validate(self):
19330
    return
19331
 
19332
 
19333
  def __repr__(self):
19334
    L = ['%s=%r' % (key, value)
19335
      for key, value in self.__dict__.iteritems()]
19336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19337
 
19338
  def __eq__(self, other):
19339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19340
 
19341
  def __ne__(self, other):
19342
    return not (self == other)
19343
 
19344
class addOrUpdateFreebieForItem_result:
19345
 
19346
  thrift_spec = (
19347
  )
19348
 
19349
  def read(self, iprot):
19350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19352
      return
19353
    iprot.readStructBegin()
19354
    while True:
19355
      (fname, ftype, fid) = iprot.readFieldBegin()
19356
      if ftype == TType.STOP:
19357
        break
19358
      else:
19359
        iprot.skip(ftype)
19360
      iprot.readFieldEnd()
19361
    iprot.readStructEnd()
19362
 
19363
  def write(self, oprot):
19364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19366
      return
19367
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
19368
    oprot.writeFieldStop()
19369
    oprot.writeStructEnd()
19370
 
19371
  def validate(self):
19372
    return
19373
 
19374
 
19375
  def __repr__(self):
19376
    L = ['%s=%r' % (key, value)
19377
      for key, value in self.__dict__.iteritems()]
19378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19379
 
19380
  def __eq__(self, other):
19381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19382
 
19383
  def __ne__(self, other):
19384
    return not (self == other)
7256 rajveer 19385
 
7272 amit.gupta 19386
class addOrUpdateBrandInfo_args:
19387
  """
19388
  Attributes:
19389
   - brandInfo
19390
  """
19391
 
19392
  thrift_spec = (
19393
    None, # 0
19394
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
19395
  )
19396
 
19397
  def __init__(self, brandInfo=None,):
19398
    self.brandInfo = brandInfo
19399
 
19400
  def read(self, iprot):
19401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19403
      return
19404
    iprot.readStructBegin()
19405
    while True:
19406
      (fname, ftype, fid) = iprot.readFieldBegin()
19407
      if ftype == TType.STOP:
19408
        break
19409
      if fid == 1:
19410
        if ftype == TType.STRUCT:
19411
          self.brandInfo = BrandInfo()
19412
          self.brandInfo.read(iprot)
19413
        else:
19414
          iprot.skip(ftype)
19415
      else:
19416
        iprot.skip(ftype)
19417
      iprot.readFieldEnd()
19418
    iprot.readStructEnd()
19419
 
19420
  def write(self, oprot):
19421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19423
      return
19424
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
19425
    if self.brandInfo is not None:
19426
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
19427
      self.brandInfo.write(oprot)
19428
      oprot.writeFieldEnd()
19429
    oprot.writeFieldStop()
19430
    oprot.writeStructEnd()
19431
 
19432
  def validate(self):
19433
    return
19434
 
19435
 
19436
  def __repr__(self):
19437
    L = ['%s=%r' % (key, value)
19438
      for key, value in self.__dict__.iteritems()]
19439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19440
 
19441
  def __eq__(self, other):
19442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19443
 
19444
  def __ne__(self, other):
19445
    return not (self == other)
19446
 
19447
class addOrUpdateBrandInfo_result:
19448
 
19449
  thrift_spec = (
19450
  )
19451
 
19452
  def read(self, iprot):
19453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19455
      return
19456
    iprot.readStructBegin()
19457
    while True:
19458
      (fname, ftype, fid) = iprot.readFieldBegin()
19459
      if ftype == TType.STOP:
19460
        break
19461
      else:
19462
        iprot.skip(ftype)
19463
      iprot.readFieldEnd()
19464
    iprot.readStructEnd()
19465
 
19466
  def write(self, oprot):
19467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19469
      return
19470
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
19471
    oprot.writeFieldStop()
19472
    oprot.writeStructEnd()
19473
 
19474
  def validate(self):
19475
    return
19476
 
19477
 
19478
  def __repr__(self):
19479
    L = ['%s=%r' % (key, value)
19480
      for key, value in self.__dict__.iteritems()]
19481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19482
 
19483
  def __eq__(self, other):
19484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19485
 
19486
  def __ne__(self, other):
19487
    return not (self == other)
19488
 
19489
class getBrandInfo_args:
19490
 
19491
  thrift_spec = (
19492
  )
19493
 
19494
  def read(self, iprot):
19495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19497
      return
19498
    iprot.readStructBegin()
19499
    while True:
19500
      (fname, ftype, fid) = iprot.readFieldBegin()
19501
      if ftype == TType.STOP:
19502
        break
19503
      else:
19504
        iprot.skip(ftype)
19505
      iprot.readFieldEnd()
19506
    iprot.readStructEnd()
19507
 
19508
  def write(self, oprot):
19509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19511
      return
19512
    oprot.writeStructBegin('getBrandInfo_args')
19513
    oprot.writeFieldStop()
19514
    oprot.writeStructEnd()
19515
 
19516
  def validate(self):
19517
    return
19518
 
19519
 
19520
  def __repr__(self):
19521
    L = ['%s=%r' % (key, value)
19522
      for key, value in self.__dict__.iteritems()]
19523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19524
 
19525
  def __eq__(self, other):
19526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19527
 
19528
  def __ne__(self, other):
19529
    return not (self == other)
19530
 
19531
class getBrandInfo_result:
19532
  """
19533
  Attributes:
19534
   - success
19535
  """
19536
 
19537
  thrift_spec = (
19538
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
19539
  )
19540
 
19541
  def __init__(self, success=None,):
19542
    self.success = success
19543
 
19544
  def read(self, iprot):
19545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19547
      return
19548
    iprot.readStructBegin()
19549
    while True:
19550
      (fname, ftype, fid) = iprot.readFieldBegin()
19551
      if ftype == TType.STOP:
19552
        break
19553
      if fid == 0:
19554
        if ftype == TType.MAP:
19555
          self.success = {}
9155 kshitij.so 19556
          (_ktype389, _vtype390, _size388 ) = iprot.readMapBegin() 
19557
          for _i392 in xrange(_size388):
19558
            _key393 = iprot.readString();
19559
            _val394 = BrandInfo()
19560
            _val394.read(iprot)
19561
            self.success[_key393] = _val394
7272 amit.gupta 19562
          iprot.readMapEnd()
19563
        else:
19564
          iprot.skip(ftype)
19565
      else:
19566
        iprot.skip(ftype)
19567
      iprot.readFieldEnd()
19568
    iprot.readStructEnd()
19569
 
19570
  def write(self, oprot):
19571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19573
      return
19574
    oprot.writeStructBegin('getBrandInfo_result')
19575
    if self.success is not None:
19576
      oprot.writeFieldBegin('success', TType.MAP, 0)
19577
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
9155 kshitij.so 19578
      for kiter395,viter396 in self.success.items():
19579
        oprot.writeString(kiter395)
19580
        viter396.write(oprot)
7272 amit.gupta 19581
      oprot.writeMapEnd()
19582
      oprot.writeFieldEnd()
19583
    oprot.writeFieldStop()
19584
    oprot.writeStructEnd()
19585
 
19586
  def validate(self):
19587
    return
19588
 
19589
 
19590
  def __repr__(self):
19591
    L = ['%s=%r' % (key, value)
19592
      for key, value in self.__dict__.iteritems()]
19593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19594
 
19595
  def __eq__(self, other):
19596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19597
 
19598
  def __ne__(self, other):
19599
    return not (self == other)
19600
 
7256 rajveer 19601
class getStorePricing_args:
19602
  """
19603
  Attributes:
19604
   - itemId
19605
  """
19606
 
19607
  thrift_spec = (
19608
    None, # 0
19609
    (1, TType.I64, 'itemId', None, None, ), # 1
19610
  )
19611
 
19612
  def __init__(self, itemId=None,):
19613
    self.itemId = itemId
19614
 
19615
  def read(self, iprot):
19616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19618
      return
19619
    iprot.readStructBegin()
19620
    while True:
19621
      (fname, ftype, fid) = iprot.readFieldBegin()
19622
      if ftype == TType.STOP:
19623
        break
19624
      if fid == 1:
19625
        if ftype == TType.I64:
19626
          self.itemId = iprot.readI64();
19627
        else:
19628
          iprot.skip(ftype)
19629
      else:
19630
        iprot.skip(ftype)
19631
      iprot.readFieldEnd()
19632
    iprot.readStructEnd()
19633
 
19634
  def write(self, oprot):
19635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19637
      return
19638
    oprot.writeStructBegin('getStorePricing_args')
19639
    if self.itemId is not None:
19640
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19641
      oprot.writeI64(self.itemId)
19642
      oprot.writeFieldEnd()
19643
    oprot.writeFieldStop()
19644
    oprot.writeStructEnd()
19645
 
19646
  def validate(self):
19647
    return
19648
 
19649
 
19650
  def __repr__(self):
19651
    L = ['%s=%r' % (key, value)
19652
      for key, value in self.__dict__.iteritems()]
19653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19654
 
19655
  def __eq__(self, other):
19656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19657
 
19658
  def __ne__(self, other):
19659
    return not (self == other)
19660
 
19661
class getStorePricing_result:
19662
  """
19663
  Attributes:
19664
   - success
19665
  """
19666
 
19667
  thrift_spec = (
19668
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
19669
  )
19670
 
19671
  def __init__(self, success=None,):
19672
    self.success = success
19673
 
19674
  def read(self, iprot):
19675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19677
      return
19678
    iprot.readStructBegin()
19679
    while True:
19680
      (fname, ftype, fid) = iprot.readFieldBegin()
19681
      if ftype == TType.STOP:
19682
        break
19683
      if fid == 0:
19684
        if ftype == TType.STRUCT:
19685
          self.success = StorePricing()
19686
          self.success.read(iprot)
19687
        else:
19688
          iprot.skip(ftype)
19689
      else:
19690
        iprot.skip(ftype)
19691
      iprot.readFieldEnd()
19692
    iprot.readStructEnd()
19693
 
19694
  def write(self, oprot):
19695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19697
      return
19698
    oprot.writeStructBegin('getStorePricing_result')
19699
    if self.success is not None:
19700
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
19701
      self.success.write(oprot)
19702
      oprot.writeFieldEnd()
19703
    oprot.writeFieldStop()
19704
    oprot.writeStructEnd()
19705
 
19706
  def validate(self):
19707
    return
19708
 
19709
 
19710
  def __repr__(self):
19711
    L = ['%s=%r' % (key, value)
19712
      for key, value in self.__dict__.iteritems()]
19713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19714
 
19715
  def __eq__(self, other):
19716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19717
 
19718
  def __ne__(self, other):
19719
    return not (self == other)
7265 rajveer 19720
 
7306 rajveer 19721
class getStorePricings_args:
19722
  """
19723
  Attributes:
19724
   - itemIds
19725
  """
19726
 
19727
  thrift_spec = (
19728
    None, # 0
19729
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
19730
  )
19731
 
19732
  def __init__(self, itemIds=None,):
19733
    self.itemIds = itemIds
19734
 
19735
  def read(self, iprot):
19736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19738
      return
19739
    iprot.readStructBegin()
19740
    while True:
19741
      (fname, ftype, fid) = iprot.readFieldBegin()
19742
      if ftype == TType.STOP:
19743
        break
19744
      if fid == 1:
19745
        if ftype == TType.LIST:
19746
          self.itemIds = []
9155 kshitij.so 19747
          (_etype400, _size397) = iprot.readListBegin()
19748
          for _i401 in xrange(_size397):
19749
            _elem402 = iprot.readI64();
19750
            self.itemIds.append(_elem402)
7306 rajveer 19751
          iprot.readListEnd()
19752
        else:
19753
          iprot.skip(ftype)
19754
      else:
19755
        iprot.skip(ftype)
19756
      iprot.readFieldEnd()
19757
    iprot.readStructEnd()
19758
 
19759
  def write(self, oprot):
19760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19762
      return
19763
    oprot.writeStructBegin('getStorePricings_args')
19764
    if self.itemIds is not None:
19765
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
19766
      oprot.writeListBegin(TType.I64, len(self.itemIds))
9155 kshitij.so 19767
      for iter403 in self.itemIds:
19768
        oprot.writeI64(iter403)
7306 rajveer 19769
      oprot.writeListEnd()
19770
      oprot.writeFieldEnd()
19771
    oprot.writeFieldStop()
19772
    oprot.writeStructEnd()
19773
 
19774
  def validate(self):
19775
    return
19776
 
19777
 
19778
  def __repr__(self):
19779
    L = ['%s=%r' % (key, value)
19780
      for key, value in self.__dict__.iteritems()]
19781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19782
 
19783
  def __eq__(self, other):
19784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19785
 
19786
  def __ne__(self, other):
19787
    return not (self == other)
19788
 
19789
class getStorePricings_result:
19790
  """
19791
  Attributes:
19792
   - success
19793
  """
19794
 
19795
  thrift_spec = (
19796
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
19797
  )
19798
 
19799
  def __init__(self, success=None,):
19800
    self.success = success
19801
 
19802
  def read(self, iprot):
19803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19805
      return
19806
    iprot.readStructBegin()
19807
    while True:
19808
      (fname, ftype, fid) = iprot.readFieldBegin()
19809
      if ftype == TType.STOP:
19810
        break
19811
      if fid == 0:
19812
        if ftype == TType.LIST:
19813
          self.success = []
9155 kshitij.so 19814
          (_etype407, _size404) = iprot.readListBegin()
19815
          for _i408 in xrange(_size404):
19816
            _elem409 = StorePricing()
19817
            _elem409.read(iprot)
19818
            self.success.append(_elem409)
7306 rajveer 19819
          iprot.readListEnd()
19820
        else:
19821
          iprot.skip(ftype)
19822
      else:
19823
        iprot.skip(ftype)
19824
      iprot.readFieldEnd()
19825
    iprot.readStructEnd()
19826
 
19827
  def write(self, oprot):
19828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19830
      return
19831
    oprot.writeStructBegin('getStorePricings_result')
19832
    if self.success is not None:
19833
      oprot.writeFieldBegin('success', TType.LIST, 0)
19834
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19835
      for iter410 in self.success:
19836
        iter410.write(oprot)
7306 rajveer 19837
      oprot.writeListEnd()
19838
      oprot.writeFieldEnd()
19839
    oprot.writeFieldStop()
19840
    oprot.writeStructEnd()
19841
 
19842
  def validate(self):
19843
    return
19844
 
19845
 
19846
  def __repr__(self):
19847
    L = ['%s=%r' % (key, value)
19848
      for key, value in self.__dict__.iteritems()]
19849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19850
 
19851
  def __eq__(self, other):
19852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19853
 
19854
  def __ne__(self, other):
19855
    return not (self == other)
19856
 
7265 rajveer 19857
class updateStorePricing_args:
19858
  """
19859
  Attributes:
19860
   - sp
7382 rajveer 19861
   - allColors
7265 rajveer 19862
  """
19863
 
19864
  thrift_spec = (
19865
    None, # 0
19866
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 19867
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 19868
  )
19869
 
7382 rajveer 19870
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 19871
    self.sp = sp
7382 rajveer 19872
    self.allColors = allColors
7265 rajveer 19873
 
19874
  def read(self, iprot):
19875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19877
      return
19878
    iprot.readStructBegin()
19879
    while True:
19880
      (fname, ftype, fid) = iprot.readFieldBegin()
19881
      if ftype == TType.STOP:
19882
        break
19883
      if fid == 1:
19884
        if ftype == TType.STRUCT:
19885
          self.sp = StorePricing()
19886
          self.sp.read(iprot)
19887
        else:
19888
          iprot.skip(ftype)
7382 rajveer 19889
      elif fid == 2:
19890
        if ftype == TType.BOOL:
19891
          self.allColors = iprot.readBool();
19892
        else:
19893
          iprot.skip(ftype)
7265 rajveer 19894
      else:
19895
        iprot.skip(ftype)
19896
      iprot.readFieldEnd()
19897
    iprot.readStructEnd()
19898
 
19899
  def write(self, oprot):
19900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19902
      return
19903
    oprot.writeStructBegin('updateStorePricing_args')
19904
    if self.sp is not None:
19905
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
19906
      self.sp.write(oprot)
19907
      oprot.writeFieldEnd()
7382 rajveer 19908
    if self.allColors is not None:
19909
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
19910
      oprot.writeBool(self.allColors)
19911
      oprot.writeFieldEnd()
7265 rajveer 19912
    oprot.writeFieldStop()
19913
    oprot.writeStructEnd()
19914
 
19915
  def validate(self):
19916
    return
19917
 
19918
 
19919
  def __repr__(self):
19920
    L = ['%s=%r' % (key, value)
19921
      for key, value in self.__dict__.iteritems()]
19922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19923
 
19924
  def __eq__(self, other):
19925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19926
 
19927
  def __ne__(self, other):
19928
    return not (self == other)
19929
 
19930
class updateStorePricing_result:
19931
 
19932
  thrift_spec = (
19933
  )
19934
 
19935
  def read(self, iprot):
19936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19938
      return
19939
    iprot.readStructBegin()
19940
    while True:
19941
      (fname, ftype, fid) = iprot.readFieldBegin()
19942
      if ftype == TType.STOP:
19943
        break
19944
      else:
19945
        iprot.skip(ftype)
19946
      iprot.readFieldEnd()
19947
    iprot.readStructEnd()
19948
 
19949
  def write(self, oprot):
19950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19952
      return
19953
    oprot.writeStructBegin('updateStorePricing_result')
19954
    oprot.writeFieldStop()
19955
    oprot.writeStructEnd()
19956
 
19957
  def validate(self):
19958
    return
19959
 
19960
 
19961
  def __repr__(self):
19962
    L = ['%s=%r' % (key, value)
19963
      for key, value in self.__dict__.iteritems()]
19964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19965
 
19966
  def __eq__(self, other):
19967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19968
 
19969
  def __ne__(self, other):
19970
    return not (self == other)
7281 kshitij.so 19971
 
19972
class getAllAmazonListedItems_args:
19973
 
19974
  thrift_spec = (
19975
  )
19976
 
19977
  def read(self, iprot):
19978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19980
      return
19981
    iprot.readStructBegin()
19982
    while True:
19983
      (fname, ftype, fid) = iprot.readFieldBegin()
19984
      if ftype == TType.STOP:
19985
        break
19986
      else:
19987
        iprot.skip(ftype)
19988
      iprot.readFieldEnd()
19989
    iprot.readStructEnd()
19990
 
19991
  def write(self, oprot):
19992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19994
      return
19995
    oprot.writeStructBegin('getAllAmazonListedItems_args')
19996
    oprot.writeFieldStop()
19997
    oprot.writeStructEnd()
19998
 
19999
  def validate(self):
20000
    return
20001
 
20002
 
20003
  def __repr__(self):
20004
    L = ['%s=%r' % (key, value)
20005
      for key, value in self.__dict__.iteritems()]
20006
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20007
 
20008
  def __eq__(self, other):
20009
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20010
 
20011
  def __ne__(self, other):
20012
    return not (self == other)
20013
 
20014
class getAllAmazonListedItems_result:
20015
  """
20016
  Attributes:
20017
   - success
20018
  """
20019
 
20020
  thrift_spec = (
20021
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20022
  )
20023
 
20024
  def __init__(self, success=None,):
20025
    self.success = success
20026
 
20027
  def read(self, iprot):
20028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20030
      return
20031
    iprot.readStructBegin()
20032
    while True:
20033
      (fname, ftype, fid) = iprot.readFieldBegin()
20034
      if ftype == TType.STOP:
20035
        break
20036
      if fid == 0:
20037
        if ftype == TType.LIST:
20038
          self.success = []
9155 kshitij.so 20039
          (_etype414, _size411) = iprot.readListBegin()
20040
          for _i415 in xrange(_size411):
20041
            _elem416 = Amazonlisted()
20042
            _elem416.read(iprot)
20043
            self.success.append(_elem416)
7281 kshitij.so 20044
          iprot.readListEnd()
20045
        else:
20046
          iprot.skip(ftype)
20047
      else:
20048
        iprot.skip(ftype)
20049
      iprot.readFieldEnd()
20050
    iprot.readStructEnd()
20051
 
20052
  def write(self, oprot):
20053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20055
      return
20056
    oprot.writeStructBegin('getAllAmazonListedItems_result')
20057
    if self.success is not None:
20058
      oprot.writeFieldBegin('success', TType.LIST, 0)
20059
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20060
      for iter417 in self.success:
20061
        iter417.write(oprot)
7281 kshitij.so 20062
      oprot.writeListEnd()
20063
      oprot.writeFieldEnd()
20064
    oprot.writeFieldStop()
20065
    oprot.writeStructEnd()
20066
 
20067
  def validate(self):
20068
    return
20069
 
20070
 
20071
  def __repr__(self):
20072
    L = ['%s=%r' % (key, value)
20073
      for key, value in self.__dict__.iteritems()]
20074
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20075
 
20076
  def __eq__(self, other):
20077
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20078
 
20079
  def __ne__(self, other):
20080
    return not (self == other)
20081
 
8619 kshitij.so 20082
class searchAmazonItems_args:
20083
  """
20084
  Attributes:
20085
   - searchTerm
20086
   - offset
20087
   - limit
20088
  """
20089
 
20090
  thrift_spec = (
20091
    None, # 0
20092
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
20093
    (2, TType.I64, 'offset', None, None, ), # 2
20094
    (3, TType.I64, 'limit', None, None, ), # 3
20095
  )
20096
 
20097
  def __init__(self, searchTerm=None, offset=None, limit=None,):
20098
    self.searchTerm = searchTerm
20099
    self.offset = offset
20100
    self.limit = limit
20101
 
20102
  def read(self, iprot):
20103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20105
      return
20106
    iprot.readStructBegin()
20107
    while True:
20108
      (fname, ftype, fid) = iprot.readFieldBegin()
20109
      if ftype == TType.STOP:
20110
        break
20111
      if fid == 1:
20112
        if ftype == TType.LIST:
20113
          self.searchTerm = []
9155 kshitij.so 20114
          (_etype421, _size418) = iprot.readListBegin()
20115
          for _i422 in xrange(_size418):
20116
            _elem423 = iprot.readString();
20117
            self.searchTerm.append(_elem423)
8619 kshitij.so 20118
          iprot.readListEnd()
20119
        else:
20120
          iprot.skip(ftype)
20121
      elif fid == 2:
20122
        if ftype == TType.I64:
20123
          self.offset = iprot.readI64();
20124
        else:
20125
          iprot.skip(ftype)
20126
      elif fid == 3:
20127
        if ftype == TType.I64:
20128
          self.limit = iprot.readI64();
20129
        else:
20130
          iprot.skip(ftype)
20131
      else:
20132
        iprot.skip(ftype)
20133
      iprot.readFieldEnd()
20134
    iprot.readStructEnd()
20135
 
20136
  def write(self, oprot):
20137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20139
      return
20140
    oprot.writeStructBegin('searchAmazonItems_args')
20141
    if self.searchTerm is not None:
20142
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
20143
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 20144
      for iter424 in self.searchTerm:
20145
        oprot.writeString(iter424)
8619 kshitij.so 20146
      oprot.writeListEnd()
20147
      oprot.writeFieldEnd()
20148
    if self.offset is not None:
20149
      oprot.writeFieldBegin('offset', TType.I64, 2)
20150
      oprot.writeI64(self.offset)
20151
      oprot.writeFieldEnd()
20152
    if self.limit is not None:
20153
      oprot.writeFieldBegin('limit', TType.I64, 3)
20154
      oprot.writeI64(self.limit)
20155
      oprot.writeFieldEnd()
20156
    oprot.writeFieldStop()
20157
    oprot.writeStructEnd()
20158
 
20159
  def validate(self):
20160
    return
20161
 
20162
 
20163
  def __repr__(self):
20164
    L = ['%s=%r' % (key, value)
20165
      for key, value in self.__dict__.iteritems()]
20166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20167
 
20168
  def __eq__(self, other):
20169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20170
 
20171
  def __ne__(self, other):
20172
    return not (self == other)
20173
 
20174
class searchAmazonItems_result:
20175
  """
20176
  Attributes:
20177
   - success
20178
  """
20179
 
20180
  thrift_spec = (
20181
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20182
  )
20183
 
20184
  def __init__(self, success=None,):
20185
    self.success = success
20186
 
20187
  def read(self, iprot):
20188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20190
      return
20191
    iprot.readStructBegin()
20192
    while True:
20193
      (fname, ftype, fid) = iprot.readFieldBegin()
20194
      if ftype == TType.STOP:
20195
        break
20196
      if fid == 0:
20197
        if ftype == TType.LIST:
20198
          self.success = []
9155 kshitij.so 20199
          (_etype428, _size425) = iprot.readListBegin()
20200
          for _i429 in xrange(_size425):
20201
            _elem430 = Amazonlisted()
20202
            _elem430.read(iprot)
20203
            self.success.append(_elem430)
8619 kshitij.so 20204
          iprot.readListEnd()
20205
        else:
20206
          iprot.skip(ftype)
20207
      else:
20208
        iprot.skip(ftype)
20209
      iprot.readFieldEnd()
20210
    iprot.readStructEnd()
20211
 
20212
  def write(self, oprot):
20213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20215
      return
20216
    oprot.writeStructBegin('searchAmazonItems_result')
20217
    if self.success is not None:
20218
      oprot.writeFieldBegin('success', TType.LIST, 0)
20219
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20220
      for iter431 in self.success:
20221
        iter431.write(oprot)
8619 kshitij.so 20222
      oprot.writeListEnd()
20223
      oprot.writeFieldEnd()
20224
    oprot.writeFieldStop()
20225
    oprot.writeStructEnd()
20226
 
20227
  def validate(self):
20228
    return
20229
 
20230
 
20231
  def __repr__(self):
20232
    L = ['%s=%r' % (key, value)
20233
      for key, value in self.__dict__.iteritems()]
20234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20235
 
20236
  def __eq__(self, other):
20237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20238
 
20239
  def __ne__(self, other):
20240
    return not (self == other)
20241
 
20242
class getAmazonSearchResultCount_args:
20243
  """
20244
  Attributes:
20245
   - searchTerm
20246
  """
20247
 
20248
  thrift_spec = (
20249
    None, # 0
20250
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
20251
  )
20252
 
20253
  def __init__(self, searchTerm=None,):
20254
    self.searchTerm = searchTerm
20255
 
20256
  def read(self, iprot):
20257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20259
      return
20260
    iprot.readStructBegin()
20261
    while True:
20262
      (fname, ftype, fid) = iprot.readFieldBegin()
20263
      if ftype == TType.STOP:
20264
        break
20265
      if fid == 1:
20266
        if ftype == TType.LIST:
20267
          self.searchTerm = []
9155 kshitij.so 20268
          (_etype435, _size432) = iprot.readListBegin()
20269
          for _i436 in xrange(_size432):
20270
            _elem437 = iprot.readString();
20271
            self.searchTerm.append(_elem437)
8619 kshitij.so 20272
          iprot.readListEnd()
20273
        else:
20274
          iprot.skip(ftype)
20275
      else:
20276
        iprot.skip(ftype)
20277
      iprot.readFieldEnd()
20278
    iprot.readStructEnd()
20279
 
20280
  def write(self, oprot):
20281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20283
      return
20284
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
20285
    if self.searchTerm is not None:
20286
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
20287
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 20288
      for iter438 in self.searchTerm:
20289
        oprot.writeString(iter438)
8619 kshitij.so 20290
      oprot.writeListEnd()
20291
      oprot.writeFieldEnd()
20292
    oprot.writeFieldStop()
20293
    oprot.writeStructEnd()
20294
 
20295
  def validate(self):
20296
    return
20297
 
20298
 
20299
  def __repr__(self):
20300
    L = ['%s=%r' % (key, value)
20301
      for key, value in self.__dict__.iteritems()]
20302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20303
 
20304
  def __eq__(self, other):
20305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20306
 
20307
  def __ne__(self, other):
20308
    return not (self == other)
20309
 
20310
class getAmazonSearchResultCount_result:
20311
  """
20312
  Attributes:
20313
   - success
20314
  """
20315
 
20316
  thrift_spec = (
20317
    (0, TType.I64, 'success', None, None, ), # 0
20318
  )
20319
 
20320
  def __init__(self, success=None,):
20321
    self.success = success
20322
 
20323
  def read(self, iprot):
20324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20326
      return
20327
    iprot.readStructBegin()
20328
    while True:
20329
      (fname, ftype, fid) = iprot.readFieldBegin()
20330
      if ftype == TType.STOP:
20331
        break
20332
      if fid == 0:
20333
        if ftype == TType.I64:
20334
          self.success = iprot.readI64();
20335
        else:
20336
          iprot.skip(ftype)
20337
      else:
20338
        iprot.skip(ftype)
20339
      iprot.readFieldEnd()
20340
    iprot.readStructEnd()
20341
 
20342
  def write(self, oprot):
20343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20345
      return
20346
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
20347
    if self.success is not None:
20348
      oprot.writeFieldBegin('success', TType.I64, 0)
20349
      oprot.writeI64(self.success)
20350
      oprot.writeFieldEnd()
20351
    oprot.writeFieldStop()
20352
    oprot.writeStructEnd()
20353
 
20354
  def validate(self):
20355
    return
20356
 
20357
 
20358
  def __repr__(self):
20359
    L = ['%s=%r' % (key, value)
20360
      for key, value in self.__dict__.iteritems()]
20361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20362
 
20363
  def __eq__(self, other):
20364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20365
 
20366
  def __ne__(self, other):
20367
    return not (self == other)
20368
 
20369
class getCountForAmazonlistedItems_args:
20370
 
20371
  thrift_spec = (
20372
  )
20373
 
20374
  def read(self, iprot):
20375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20377
      return
20378
    iprot.readStructBegin()
20379
    while True:
20380
      (fname, ftype, fid) = iprot.readFieldBegin()
20381
      if ftype == TType.STOP:
20382
        break
20383
      else:
20384
        iprot.skip(ftype)
20385
      iprot.readFieldEnd()
20386
    iprot.readStructEnd()
20387
 
20388
  def write(self, oprot):
20389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20391
      return
20392
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
20393
    oprot.writeFieldStop()
20394
    oprot.writeStructEnd()
20395
 
20396
  def validate(self):
20397
    return
20398
 
20399
 
20400
  def __repr__(self):
20401
    L = ['%s=%r' % (key, value)
20402
      for key, value in self.__dict__.iteritems()]
20403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20404
 
20405
  def __eq__(self, other):
20406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20407
 
20408
  def __ne__(self, other):
20409
    return not (self == other)
20410
 
20411
class getCountForAmazonlistedItems_result:
20412
  """
20413
  Attributes:
20414
   - success
20415
  """
20416
 
20417
  thrift_spec = (
20418
    (0, TType.I64, 'success', None, None, ), # 0
20419
  )
20420
 
20421
  def __init__(self, success=None,):
20422
    self.success = success
20423
 
20424
  def read(self, iprot):
20425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20427
      return
20428
    iprot.readStructBegin()
20429
    while True:
20430
      (fname, ftype, fid) = iprot.readFieldBegin()
20431
      if ftype == TType.STOP:
20432
        break
20433
      if fid == 0:
20434
        if ftype == TType.I64:
20435
          self.success = iprot.readI64();
20436
        else:
20437
          iprot.skip(ftype)
20438
      else:
20439
        iprot.skip(ftype)
20440
      iprot.readFieldEnd()
20441
    iprot.readStructEnd()
20442
 
20443
  def write(self, oprot):
20444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20446
      return
20447
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
20448
    if self.success is not None:
20449
      oprot.writeFieldBegin('success', TType.I64, 0)
20450
      oprot.writeI64(self.success)
20451
      oprot.writeFieldEnd()
20452
    oprot.writeFieldStop()
20453
    oprot.writeStructEnd()
20454
 
20455
  def validate(self):
20456
    return
20457
 
20458
 
20459
  def __repr__(self):
20460
    L = ['%s=%r' % (key, value)
20461
      for key, value in self.__dict__.iteritems()]
20462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20463
 
20464
  def __eq__(self, other):
20465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20466
 
20467
  def __ne__(self, other):
20468
    return not (self == other)
20469
 
7281 kshitij.so 20470
class getAmazonItemDetails_args:
20471
  """
20472
  Attributes:
20473
   - itemId
20474
  """
20475
 
20476
  thrift_spec = (
20477
    None, # 0
20478
    (1, TType.I64, 'itemId', None, None, ), # 1
20479
  )
20480
 
20481
  def __init__(self, itemId=None,):
20482
    self.itemId = itemId
20483
 
20484
  def read(self, iprot):
20485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20487
      return
20488
    iprot.readStructBegin()
20489
    while True:
20490
      (fname, ftype, fid) = iprot.readFieldBegin()
20491
      if ftype == TType.STOP:
20492
        break
20493
      if fid == 1:
20494
        if ftype == TType.I64:
20495
          self.itemId = iprot.readI64();
20496
        else:
20497
          iprot.skip(ftype)
20498
      else:
20499
        iprot.skip(ftype)
20500
      iprot.readFieldEnd()
20501
    iprot.readStructEnd()
20502
 
20503
  def write(self, oprot):
20504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20506
      return
20507
    oprot.writeStructBegin('getAmazonItemDetails_args')
20508
    if self.itemId is not None:
20509
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20510
      oprot.writeI64(self.itemId)
20511
      oprot.writeFieldEnd()
20512
    oprot.writeFieldStop()
20513
    oprot.writeStructEnd()
20514
 
20515
  def validate(self):
20516
    return
20517
 
20518
 
20519
  def __repr__(self):
20520
    L = ['%s=%r' % (key, value)
20521
      for key, value in self.__dict__.iteritems()]
20522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20523
 
20524
  def __eq__(self, other):
20525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20526
 
20527
  def __ne__(self, other):
20528
    return not (self == other)
20529
 
20530
class getAmazonItemDetails_result:
20531
  """
20532
  Attributes:
20533
   - success
20534
  """
20535
 
20536
  thrift_spec = (
20537
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
20538
  )
20539
 
20540
  def __init__(self, success=None,):
20541
    self.success = success
20542
 
20543
  def read(self, iprot):
20544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20546
      return
20547
    iprot.readStructBegin()
20548
    while True:
20549
      (fname, ftype, fid) = iprot.readFieldBegin()
20550
      if ftype == TType.STOP:
20551
        break
20552
      if fid == 0:
20553
        if ftype == TType.STRUCT:
20554
          self.success = Amazonlisted()
20555
          self.success.read(iprot)
20556
        else:
20557
          iprot.skip(ftype)
20558
      else:
20559
        iprot.skip(ftype)
20560
      iprot.readFieldEnd()
20561
    iprot.readStructEnd()
20562
 
20563
  def write(self, oprot):
20564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20566
      return
20567
    oprot.writeStructBegin('getAmazonItemDetails_result')
20568
    if self.success is not None:
20569
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
20570
      self.success.write(oprot)
20571
      oprot.writeFieldEnd()
20572
    oprot.writeFieldStop()
20573
    oprot.writeStructEnd()
20574
 
20575
  def validate(self):
20576
    return
20577
 
20578
 
20579
  def __repr__(self):
20580
    L = ['%s=%r' % (key, value)
20581
      for key, value in self.__dict__.iteritems()]
20582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20583
 
20584
  def __eq__(self, other):
20585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20586
 
20587
  def __ne__(self, other):
20588
    return not (self == other)
20589
 
20590
class updateAmazonItemDetails_args:
20591
  """
20592
  Attributes:
8168 kshitij.so 20593
   - amazonlisted
7281 kshitij.so 20594
  """
20595
 
20596
  thrift_spec = (
20597
    None, # 0
8168 kshitij.so 20598
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 20599
  )
20600
 
8168 kshitij.so 20601
  def __init__(self, amazonlisted=None,):
20602
    self.amazonlisted = amazonlisted
7281 kshitij.so 20603
 
20604
  def read(self, iprot):
20605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20607
      return
20608
    iprot.readStructBegin()
20609
    while True:
20610
      (fname, ftype, fid) = iprot.readFieldBegin()
20611
      if ftype == TType.STOP:
20612
        break
20613
      if fid == 1:
8168 kshitij.so 20614
        if ftype == TType.STRUCT:
20615
          self.amazonlisted = Amazonlisted()
20616
          self.amazonlisted.read(iprot)
7281 kshitij.so 20617
        else:
20618
          iprot.skip(ftype)
20619
      else:
20620
        iprot.skip(ftype)
20621
      iprot.readFieldEnd()
20622
    iprot.readStructEnd()
20623
 
20624
  def write(self, oprot):
20625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20627
      return
20628
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 20629
    if self.amazonlisted is not None:
20630
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
20631
      self.amazonlisted.write(oprot)
7281 kshitij.so 20632
      oprot.writeFieldEnd()
20633
    oprot.writeFieldStop()
20634
    oprot.writeStructEnd()
20635
 
20636
  def validate(self):
20637
    return
20638
 
20639
 
20640
  def __repr__(self):
20641
    L = ['%s=%r' % (key, value)
20642
      for key, value in self.__dict__.iteritems()]
20643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20644
 
20645
  def __eq__(self, other):
20646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20647
 
20648
  def __ne__(self, other):
20649
    return not (self == other)
20650
 
20651
class updateAmazonItemDetails_result:
20652
 
20653
  thrift_spec = (
20654
  )
20655
 
20656
  def read(self, iprot):
20657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20659
      return
20660
    iprot.readStructBegin()
20661
    while True:
20662
      (fname, ftype, fid) = iprot.readFieldBegin()
20663
      if ftype == TType.STOP:
20664
        break
20665
      else:
20666
        iprot.skip(ftype)
20667
      iprot.readFieldEnd()
20668
    iprot.readStructEnd()
20669
 
20670
  def write(self, oprot):
20671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20673
      return
20674
    oprot.writeStructBegin('updateAmazonItemDetails_result')
20675
    oprot.writeFieldStop()
20676
    oprot.writeStructEnd()
20677
 
20678
  def validate(self):
20679
    return
20680
 
20681
 
20682
  def __repr__(self):
20683
    L = ['%s=%r' % (key, value)
20684
      for key, value in self.__dict__.iteritems()]
20685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20686
 
20687
  def __eq__(self, other):
20688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20689
 
20690
  def __ne__(self, other):
20691
    return not (self == other)
20692
 
20693
class addAmazonItem_args:
20694
  """
20695
  Attributes:
20696
   - amazonlisted
20697
  """
20698
 
20699
  thrift_spec = (
20700
    None, # 0
20701
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
20702
  )
20703
 
20704
  def __init__(self, amazonlisted=None,):
20705
    self.amazonlisted = amazonlisted
20706
 
20707
  def read(self, iprot):
20708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20710
      return
20711
    iprot.readStructBegin()
20712
    while True:
20713
      (fname, ftype, fid) = iprot.readFieldBegin()
20714
      if ftype == TType.STOP:
20715
        break
20716
      if fid == 1:
20717
        if ftype == TType.STRUCT:
20718
          self.amazonlisted = Amazonlisted()
20719
          self.amazonlisted.read(iprot)
20720
        else:
20721
          iprot.skip(ftype)
20722
      else:
20723
        iprot.skip(ftype)
20724
      iprot.readFieldEnd()
20725
    iprot.readStructEnd()
20726
 
20727
  def write(self, oprot):
20728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20730
      return
20731
    oprot.writeStructBegin('addAmazonItem_args')
20732
    if self.amazonlisted is not None:
20733
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
20734
      self.amazonlisted.write(oprot)
20735
      oprot.writeFieldEnd()
20736
    oprot.writeFieldStop()
20737
    oprot.writeStructEnd()
20738
 
20739
  def validate(self):
20740
    return
20741
 
20742
 
20743
  def __repr__(self):
20744
    L = ['%s=%r' % (key, value)
20745
      for key, value in self.__dict__.iteritems()]
20746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20747
 
20748
  def __eq__(self, other):
20749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20750
 
20751
  def __ne__(self, other):
20752
    return not (self == other)
20753
 
20754
class addAmazonItem_result:
20755
 
20756
  thrift_spec = (
20757
  )
20758
 
20759
  def read(self, iprot):
20760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20762
      return
20763
    iprot.readStructBegin()
20764
    while True:
20765
      (fname, ftype, fid) = iprot.readFieldBegin()
20766
      if ftype == TType.STOP:
20767
        break
20768
      else:
20769
        iprot.skip(ftype)
20770
      iprot.readFieldEnd()
20771
    iprot.readStructEnd()
20772
 
20773
  def write(self, oprot):
20774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20776
      return
20777
    oprot.writeStructBegin('addAmazonItem_result')
20778
    oprot.writeFieldStop()
20779
    oprot.writeStructEnd()
20780
 
20781
  def validate(self):
20782
    return
20783
 
20784
 
20785
  def __repr__(self):
20786
    L = ['%s=%r' % (key, value)
20787
      for key, value in self.__dict__.iteritems()]
20788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20789
 
20790
  def __eq__(self, other):
20791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20792
 
20793
  def __ne__(self, other):
20794
    return not (self == other)
7291 vikram.rag 20795
 
20796
class getAsinItems_args:
20797
 
20798
  thrift_spec = (
20799
  )
20800
 
20801
  def read(self, iprot):
20802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20804
      return
20805
    iprot.readStructBegin()
20806
    while True:
20807
      (fname, ftype, fid) = iprot.readFieldBegin()
20808
      if ftype == TType.STOP:
20809
        break
20810
      else:
20811
        iprot.skip(ftype)
20812
      iprot.readFieldEnd()
20813
    iprot.readStructEnd()
20814
 
20815
  def write(self, oprot):
20816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20818
      return
20819
    oprot.writeStructBegin('getAsinItems_args')
20820
    oprot.writeFieldStop()
20821
    oprot.writeStructEnd()
20822
 
20823
  def validate(self):
20824
    return
20825
 
20826
 
20827
  def __repr__(self):
20828
    L = ['%s=%r' % (key, value)
20829
      for key, value in self.__dict__.iteritems()]
20830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20831
 
20832
  def __eq__(self, other):
20833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20834
 
20835
  def __ne__(self, other):
20836
    return not (self == other)
20837
 
20838
class getAsinItems_result:
20839
  """
20840
  Attributes:
20841
   - success
20842
  """
20843
 
20844
  thrift_spec = (
20845
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20846
  )
20847
 
20848
  def __init__(self, success=None,):
20849
    self.success = success
20850
 
20851
  def read(self, iprot):
20852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20854
      return
20855
    iprot.readStructBegin()
20856
    while True:
20857
      (fname, ftype, fid) = iprot.readFieldBegin()
20858
      if ftype == TType.STOP:
20859
        break
20860
      if fid == 0:
20861
        if ftype == TType.LIST:
20862
          self.success = []
9155 kshitij.so 20863
          (_etype442, _size439) = iprot.readListBegin()
20864
          for _i443 in xrange(_size439):
20865
            _elem444 = Item()
20866
            _elem444.read(iprot)
20867
            self.success.append(_elem444)
7291 vikram.rag 20868
          iprot.readListEnd()
20869
        else:
20870
          iprot.skip(ftype)
20871
      else:
20872
        iprot.skip(ftype)
20873
      iprot.readFieldEnd()
20874
    iprot.readStructEnd()
20875
 
20876
  def write(self, oprot):
20877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20879
      return
20880
    oprot.writeStructBegin('getAsinItems_result')
20881
    if self.success is not None:
20882
      oprot.writeFieldBegin('success', TType.LIST, 0)
20883
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20884
      for iter445 in self.success:
20885
        iter445.write(oprot)
7291 vikram.rag 20886
      oprot.writeListEnd()
20887
      oprot.writeFieldEnd()
20888
    oprot.writeFieldStop()
20889
    oprot.writeStructEnd()
20890
 
20891
  def validate(self):
20892
    return
20893
 
20894
 
20895
  def __repr__(self):
20896
    L = ['%s=%r' % (key, value)
20897
      for key, value in self.__dict__.iteritems()]
20898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20899
 
20900
  def __eq__(self, other):
20901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20902
 
20903
  def __ne__(self, other):
20904
    return not (self == other)
20905
 
20906
class getAllFbaListedItems_args:
20907
 
20908
  thrift_spec = (
20909
  )
20910
 
20911
  def read(self, iprot):
20912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20914
      return
20915
    iprot.readStructBegin()
20916
    while True:
20917
      (fname, ftype, fid) = iprot.readFieldBegin()
20918
      if ftype == TType.STOP:
20919
        break
20920
      else:
20921
        iprot.skip(ftype)
20922
      iprot.readFieldEnd()
20923
    iprot.readStructEnd()
20924
 
20925
  def write(self, oprot):
20926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20928
      return
20929
    oprot.writeStructBegin('getAllFbaListedItems_args')
20930
    oprot.writeFieldStop()
20931
    oprot.writeStructEnd()
20932
 
20933
  def validate(self):
20934
    return
20935
 
20936
 
20937
  def __repr__(self):
20938
    L = ['%s=%r' % (key, value)
20939
      for key, value in self.__dict__.iteritems()]
20940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20941
 
20942
  def __eq__(self, other):
20943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20944
 
20945
  def __ne__(self, other):
20946
    return not (self == other)
20947
 
20948
class getAllFbaListedItems_result:
20949
  """
20950
  Attributes:
20951
   - success
20952
  """
20953
 
20954
  thrift_spec = (
20955
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20956
  )
20957
 
20958
  def __init__(self, success=None,):
20959
    self.success = success
20960
 
20961
  def read(self, iprot):
20962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20964
      return
20965
    iprot.readStructBegin()
20966
    while True:
20967
      (fname, ftype, fid) = iprot.readFieldBegin()
20968
      if ftype == TType.STOP:
20969
        break
20970
      if fid == 0:
20971
        if ftype == TType.LIST:
20972
          self.success = []
9155 kshitij.so 20973
          (_etype449, _size446) = iprot.readListBegin()
20974
          for _i450 in xrange(_size446):
20975
            _elem451 = Amazonlisted()
20976
            _elem451.read(iprot)
20977
            self.success.append(_elem451)
7291 vikram.rag 20978
          iprot.readListEnd()
20979
        else:
20980
          iprot.skip(ftype)
20981
      else:
20982
        iprot.skip(ftype)
20983
      iprot.readFieldEnd()
20984
    iprot.readStructEnd()
20985
 
20986
  def write(self, oprot):
20987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20989
      return
20990
    oprot.writeStructBegin('getAllFbaListedItems_result')
20991
    if self.success is not None:
20992
      oprot.writeFieldBegin('success', TType.LIST, 0)
20993
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20994
      for iter452 in self.success:
20995
        iter452.write(oprot)
7291 vikram.rag 20996
      oprot.writeListEnd()
20997
      oprot.writeFieldEnd()
20998
    oprot.writeFieldStop()
20999
    oprot.writeStructEnd()
21000
 
21001
  def validate(self):
21002
    return
21003
 
21004
 
21005
  def __repr__(self):
21006
    L = ['%s=%r' % (key, value)
21007
      for key, value in self.__dict__.iteritems()]
21008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21009
 
21010
  def __eq__(self, other):
21011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21012
 
21013
  def __ne__(self, other):
21014
    return not (self == other)
21015
 
21016
class getAllNonFbaListedItems_args:
21017
 
21018
  thrift_spec = (
21019
  )
21020
 
21021
  def read(self, iprot):
21022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21024
      return
21025
    iprot.readStructBegin()
21026
    while True:
21027
      (fname, ftype, fid) = iprot.readFieldBegin()
21028
      if ftype == TType.STOP:
21029
        break
21030
      else:
21031
        iprot.skip(ftype)
21032
      iprot.readFieldEnd()
21033
    iprot.readStructEnd()
21034
 
21035
  def write(self, oprot):
21036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21038
      return
21039
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
21040
    oprot.writeFieldStop()
21041
    oprot.writeStructEnd()
21042
 
21043
  def validate(self):
21044
    return
21045
 
21046
 
21047
  def __repr__(self):
21048
    L = ['%s=%r' % (key, value)
21049
      for key, value in self.__dict__.iteritems()]
21050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21051
 
21052
  def __eq__(self, other):
21053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21054
 
21055
  def __ne__(self, other):
21056
    return not (self == other)
21057
 
21058
class getAllNonFbaListedItems_result:
21059
  """
21060
  Attributes:
21061
   - success
21062
  """
21063
 
21064
  thrift_spec = (
21065
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21066
  )
21067
 
21068
  def __init__(self, success=None,):
21069
    self.success = success
21070
 
21071
  def read(self, iprot):
21072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21074
      return
21075
    iprot.readStructBegin()
21076
    while True:
21077
      (fname, ftype, fid) = iprot.readFieldBegin()
21078
      if ftype == TType.STOP:
21079
        break
21080
      if fid == 0:
21081
        if ftype == TType.LIST:
21082
          self.success = []
9155 kshitij.so 21083
          (_etype456, _size453) = iprot.readListBegin()
21084
          for _i457 in xrange(_size453):
21085
            _elem458 = Amazonlisted()
21086
            _elem458.read(iprot)
21087
            self.success.append(_elem458)
7291 vikram.rag 21088
          iprot.readListEnd()
21089
        else:
21090
          iprot.skip(ftype)
21091
      else:
21092
        iprot.skip(ftype)
21093
      iprot.readFieldEnd()
21094
    iprot.readStructEnd()
21095
 
21096
  def write(self, oprot):
21097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21099
      return
21100
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
21101
    if self.success is not None:
21102
      oprot.writeFieldBegin('success', TType.LIST, 0)
21103
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21104
      for iter459 in self.success:
21105
        iter459.write(oprot)
7291 vikram.rag 21106
      oprot.writeListEnd()
21107
      oprot.writeFieldEnd()
21108
    oprot.writeFieldStop()
21109
    oprot.writeStructEnd()
21110
 
21111
  def validate(self):
21112
    return
21113
 
21114
 
21115
  def __repr__(self):
21116
    L = ['%s=%r' % (key, value)
21117
      for key, value in self.__dict__.iteritems()]
21118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21119
 
21120
  def __eq__(self, other):
21121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21122
 
21123
  def __ne__(self, other):
21124
    return not (self == other)
7460 kshitij.so 21125
 
21126
class updateItemInventory_args:
21127
  """
21128
  Attributes:
21129
   - itemId
21130
   - holdInventory
21131
   - defaultInventory
21132
  """
21133
 
21134
  thrift_spec = (
21135
    None, # 0
21136
    (1, TType.I64, 'itemId', None, None, ), # 1
21137
    (2, TType.I64, 'holdInventory', None, None, ), # 2
21138
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
21139
  )
21140
 
21141
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
21142
    self.itemId = itemId
21143
    self.holdInventory = holdInventory
21144
    self.defaultInventory = defaultInventory
21145
 
21146
  def read(self, iprot):
21147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21149
      return
21150
    iprot.readStructBegin()
21151
    while True:
21152
      (fname, ftype, fid) = iprot.readFieldBegin()
21153
      if ftype == TType.STOP:
21154
        break
21155
      if fid == 1:
21156
        if ftype == TType.I64:
21157
          self.itemId = iprot.readI64();
21158
        else:
21159
          iprot.skip(ftype)
21160
      elif fid == 2:
21161
        if ftype == TType.I64:
21162
          self.holdInventory = iprot.readI64();
21163
        else:
21164
          iprot.skip(ftype)
21165
      elif fid == 3:
21166
        if ftype == TType.I64:
21167
          self.defaultInventory = iprot.readI64();
21168
        else:
21169
          iprot.skip(ftype)
21170
      else:
21171
        iprot.skip(ftype)
21172
      iprot.readFieldEnd()
21173
    iprot.readStructEnd()
21174
 
21175
  def write(self, oprot):
21176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21178
      return
21179
    oprot.writeStructBegin('updateItemInventory_args')
21180
    if self.itemId is not None:
21181
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21182
      oprot.writeI64(self.itemId)
21183
      oprot.writeFieldEnd()
21184
    if self.holdInventory is not None:
21185
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
21186
      oprot.writeI64(self.holdInventory)
21187
      oprot.writeFieldEnd()
21188
    if self.defaultInventory is not None:
21189
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
21190
      oprot.writeI64(self.defaultInventory)
21191
      oprot.writeFieldEnd()
21192
    oprot.writeFieldStop()
21193
    oprot.writeStructEnd()
21194
 
21195
  def validate(self):
21196
    return
21197
 
21198
 
21199
  def __repr__(self):
21200
    L = ['%s=%r' % (key, value)
21201
      for key, value in self.__dict__.iteritems()]
21202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21203
 
21204
  def __eq__(self, other):
21205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21206
 
21207
  def __ne__(self, other):
21208
    return not (self == other)
21209
 
21210
class updateItemInventory_result:
21211
  """
21212
  Attributes:
21213
   - success
21214
  """
21215
 
21216
  thrift_spec = (
21217
    (0, TType.BOOL, 'success', None, None, ), # 0
21218
  )
21219
 
21220
  def __init__(self, success=None,):
21221
    self.success = success
21222
 
21223
  def read(self, iprot):
21224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21226
      return
21227
    iprot.readStructBegin()
21228
    while True:
21229
      (fname, ftype, fid) = iprot.readFieldBegin()
21230
      if ftype == TType.STOP:
21231
        break
21232
      if fid == 0:
21233
        if ftype == TType.BOOL:
21234
          self.success = iprot.readBool();
21235
        else:
21236
          iprot.skip(ftype)
21237
      else:
21238
        iprot.skip(ftype)
21239
      iprot.readFieldEnd()
21240
    iprot.readStructEnd()
21241
 
21242
  def write(self, oprot):
21243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21245
      return
21246
    oprot.writeStructBegin('updateItemInventory_result')
21247
    if self.success is not None:
21248
      oprot.writeFieldBegin('success', TType.BOOL, 0)
21249
      oprot.writeBool(self.success)
21250
      oprot.writeFieldEnd()
21251
    oprot.writeFieldStop()
21252
    oprot.writeStructEnd()
21253
 
21254
  def validate(self):
21255
    return
21256
 
21257
 
21258
  def __repr__(self):
21259
    L = ['%s=%r' % (key, value)
21260
      for key, value in self.__dict__.iteritems()]
21261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21262
 
21263
  def __eq__(self, other):
21264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21265
 
21266
  def __ne__(self, other):
21267
    return not (self == other)
7770 kshitij.so 21268
 
21269
class updateTimestampForAmazonFeeds_args:
21270
  """
21271
  Attributes:
21272
   - type
21273
   - sku
21274
   - timestamp
21275
  """
21276
 
21277
  thrift_spec = (
21278
    None, # 0
21279
    (1, TType.STRING, 'type', None, None, ), # 1
21280
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
21281
    (3, TType.I64, 'timestamp', None, None, ), # 3
21282
  )
21283
 
21284
  def __init__(self, type=None, sku=None, timestamp=None,):
21285
    self.type = type
21286
    self.sku = sku
21287
    self.timestamp = timestamp
21288
 
21289
  def read(self, iprot):
21290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21292
      return
21293
    iprot.readStructBegin()
21294
    while True:
21295
      (fname, ftype, fid) = iprot.readFieldBegin()
21296
      if ftype == TType.STOP:
21297
        break
21298
      if fid == 1:
21299
        if ftype == TType.STRING:
21300
          self.type = iprot.readString();
21301
        else:
21302
          iprot.skip(ftype)
21303
      elif fid == 2:
21304
        if ftype == TType.LIST:
21305
          self.sku = []
9155 kshitij.so 21306
          (_etype463, _size460) = iprot.readListBegin()
21307
          for _i464 in xrange(_size460):
21308
            _elem465 = iprot.readI64();
21309
            self.sku.append(_elem465)
7770 kshitij.so 21310
          iprot.readListEnd()
21311
        else:
21312
          iprot.skip(ftype)
21313
      elif fid == 3:
21314
        if ftype == TType.I64:
21315
          self.timestamp = iprot.readI64();
21316
        else:
21317
          iprot.skip(ftype)
21318
      else:
21319
        iprot.skip(ftype)
21320
      iprot.readFieldEnd()
21321
    iprot.readStructEnd()
21322
 
21323
  def write(self, oprot):
21324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21326
      return
21327
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
21328
    if self.type is not None:
21329
      oprot.writeFieldBegin('type', TType.STRING, 1)
21330
      oprot.writeString(self.type)
21331
      oprot.writeFieldEnd()
21332
    if self.sku is not None:
21333
      oprot.writeFieldBegin('sku', TType.LIST, 2)
21334
      oprot.writeListBegin(TType.I64, len(self.sku))
9155 kshitij.so 21335
      for iter466 in self.sku:
21336
        oprot.writeI64(iter466)
7770 kshitij.so 21337
      oprot.writeListEnd()
21338
      oprot.writeFieldEnd()
21339
    if self.timestamp is not None:
21340
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
21341
      oprot.writeI64(self.timestamp)
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 updateTimestampForAmazonFeeds_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('updateTimestampForAmazonFeeds_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)
7897 amar.kumar 21419
 
21420
class getAllParentCategories_args:
21421
 
21422
  thrift_spec = (
21423
  )
21424
 
21425
  def read(self, iprot):
21426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21428
      return
21429
    iprot.readStructBegin()
21430
    while True:
21431
      (fname, ftype, fid) = iprot.readFieldBegin()
21432
      if ftype == TType.STOP:
21433
        break
21434
      else:
21435
        iprot.skip(ftype)
21436
      iprot.readFieldEnd()
21437
    iprot.readStructEnd()
21438
 
21439
  def write(self, oprot):
21440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21442
      return
21443
    oprot.writeStructBegin('getAllParentCategories_args')
21444
    oprot.writeFieldStop()
21445
    oprot.writeStructEnd()
21446
 
21447
  def validate(self):
21448
    return
21449
 
21450
 
21451
  def __repr__(self):
21452
    L = ['%s=%r' % (key, value)
21453
      for key, value in self.__dict__.iteritems()]
21454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21455
 
21456
  def __eq__(self, other):
21457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21458
 
21459
  def __ne__(self, other):
21460
    return not (self == other)
21461
 
21462
class getAllParentCategories_result:
21463
  """
21464
  Attributes:
21465
   - success
21466
  """
21467
 
21468
  thrift_spec = (
21469
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
21470
  )
21471
 
21472
  def __init__(self, success=None,):
21473
    self.success = success
21474
 
21475
  def read(self, iprot):
21476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21478
      return
21479
    iprot.readStructBegin()
21480
    while True:
21481
      (fname, ftype, fid) = iprot.readFieldBegin()
21482
      if ftype == TType.STOP:
21483
        break
21484
      if fid == 0:
21485
        if ftype == TType.LIST:
21486
          self.success = []
9155 kshitij.so 21487
          (_etype470, _size467) = iprot.readListBegin()
21488
          for _i471 in xrange(_size467):
21489
            _elem472 = Category()
21490
            _elem472.read(iprot)
21491
            self.success.append(_elem472)
7897 amar.kumar 21492
          iprot.readListEnd()
21493
        else:
21494
          iprot.skip(ftype)
21495
      else:
21496
        iprot.skip(ftype)
21497
      iprot.readFieldEnd()
21498
    iprot.readStructEnd()
21499
 
21500
  def write(self, oprot):
21501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21503
      return
21504
    oprot.writeStructBegin('getAllParentCategories_result')
21505
    if self.success is not None:
21506
      oprot.writeFieldBegin('success', TType.LIST, 0)
21507
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21508
      for iter473 in self.success:
21509
        iter473.write(oprot)
7897 amar.kumar 21510
      oprot.writeListEnd()
21511
      oprot.writeFieldEnd()
21512
    oprot.writeFieldStop()
21513
    oprot.writeStructEnd()
21514
 
21515
  def validate(self):
21516
    return
21517
 
21518
 
21519
  def __repr__(self):
21520
    L = ['%s=%r' % (key, value)
21521
      for key, value in self.__dict__.iteritems()]
21522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21523
 
21524
  def __eq__(self, other):
21525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21526
 
21527
  def __ne__(self, other):
21528
    return not (self == other)
7977 kshitij.so 21529
 
21530
class addPageViewEvent_args:
21531
  """
21532
  Attributes:
21533
   - pageViewEvents
21534
  """
21535
 
21536
  thrift_spec = (
21537
    None, # 0
21538
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
21539
  )
21540
 
21541
  def __init__(self, pageViewEvents=None,):
21542
    self.pageViewEvents = pageViewEvents
21543
 
21544
  def read(self, iprot):
21545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21547
      return
21548
    iprot.readStructBegin()
21549
    while True:
21550
      (fname, ftype, fid) = iprot.readFieldBegin()
21551
      if ftype == TType.STOP:
21552
        break
21553
      if fid == 1:
21554
        if ftype == TType.STRUCT:
21555
          self.pageViewEvents = PageViewEvents()
21556
          self.pageViewEvents.read(iprot)
21557
        else:
21558
          iprot.skip(ftype)
21559
      else:
21560
        iprot.skip(ftype)
21561
      iprot.readFieldEnd()
21562
    iprot.readStructEnd()
21563
 
21564
  def write(self, oprot):
21565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21567
      return
21568
    oprot.writeStructBegin('addPageViewEvent_args')
21569
    if self.pageViewEvents is not None:
21570
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
21571
      self.pageViewEvents.write(oprot)
21572
      oprot.writeFieldEnd()
21573
    oprot.writeFieldStop()
21574
    oprot.writeStructEnd()
21575
 
21576
  def validate(self):
21577
    return
21578
 
21579
 
21580
  def __repr__(self):
21581
    L = ['%s=%r' % (key, value)
21582
      for key, value in self.__dict__.iteritems()]
21583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21584
 
21585
  def __eq__(self, other):
21586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21587
 
21588
  def __ne__(self, other):
21589
    return not (self == other)
21590
 
21591
class addPageViewEvent_result:
21592
 
21593
  thrift_spec = (
21594
  )
21595
 
21596
  def read(self, iprot):
21597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21599
      return
21600
    iprot.readStructBegin()
21601
    while True:
21602
      (fname, ftype, fid) = iprot.readFieldBegin()
21603
      if ftype == TType.STOP:
21604
        break
21605
      else:
21606
        iprot.skip(ftype)
21607
      iprot.readFieldEnd()
21608
    iprot.readStructEnd()
21609
 
21610
  def write(self, oprot):
21611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21613
      return
21614
    oprot.writeStructBegin('addPageViewEvent_result')
21615
    oprot.writeFieldStop()
21616
    oprot.writeStructEnd()
21617
 
21618
  def validate(self):
21619
    return
21620
 
21621
 
21622
  def __repr__(self):
21623
    L = ['%s=%r' % (key, value)
21624
      for key, value in self.__dict__.iteritems()]
21625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21626
 
21627
  def __eq__(self, other):
21628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21629
 
21630
  def __ne__(self, other):
21631
    return not (self == other)
21632
 
21633
class addCartEvent_args:
21634
  """
21635
  Attributes:
21636
   - cartEvents
21637
  """
21638
 
21639
  thrift_spec = (
21640
    None, # 0
21641
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
21642
  )
21643
 
21644
  def __init__(self, cartEvents=None,):
21645
    self.cartEvents = cartEvents
21646
 
21647
  def read(self, iprot):
21648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21650
      return
21651
    iprot.readStructBegin()
21652
    while True:
21653
      (fname, ftype, fid) = iprot.readFieldBegin()
21654
      if ftype == TType.STOP:
21655
        break
21656
      if fid == 1:
21657
        if ftype == TType.STRUCT:
21658
          self.cartEvents = CartEvents()
21659
          self.cartEvents.read(iprot)
21660
        else:
21661
          iprot.skip(ftype)
21662
      else:
21663
        iprot.skip(ftype)
21664
      iprot.readFieldEnd()
21665
    iprot.readStructEnd()
21666
 
21667
  def write(self, oprot):
21668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21670
      return
21671
    oprot.writeStructBegin('addCartEvent_args')
21672
    if self.cartEvents is not None:
21673
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
21674
      self.cartEvents.write(oprot)
21675
      oprot.writeFieldEnd()
21676
    oprot.writeFieldStop()
21677
    oprot.writeStructEnd()
21678
 
21679
  def validate(self):
21680
    return
21681
 
21682
 
21683
  def __repr__(self):
21684
    L = ['%s=%r' % (key, value)
21685
      for key, value in self.__dict__.iteritems()]
21686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21687
 
21688
  def __eq__(self, other):
21689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21690
 
21691
  def __ne__(self, other):
21692
    return not (self == other)
21693
 
21694
class addCartEvent_result:
21695
 
21696
  thrift_spec = (
21697
  )
21698
 
21699
  def read(self, iprot):
21700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21702
      return
21703
    iprot.readStructBegin()
21704
    while True:
21705
      (fname, ftype, fid) = iprot.readFieldBegin()
21706
      if ftype == TType.STOP:
21707
        break
21708
      else:
21709
        iprot.skip(ftype)
21710
      iprot.readFieldEnd()
21711
    iprot.readStructEnd()
21712
 
21713
  def write(self, oprot):
21714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21716
      return
21717
    oprot.writeStructBegin('addCartEvent_result')
21718
    oprot.writeFieldStop()
21719
    oprot.writeStructEnd()
21720
 
21721
  def validate(self):
21722
    return
21723
 
21724
 
21725
  def __repr__(self):
21726
    L = ['%s=%r' % (key, value)
21727
      for key, value in self.__dict__.iteritems()]
21728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21729
 
21730
  def __eq__(self, other):
21731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21732
 
21733
  def __ne__(self, other):
21734
    return not (self == other)
8139 kshitij.so 21735
 
8182 amar.kumar 21736
class addEbayItem_args:
21737
  """
21738
  Attributes:
21739
   - ebayItem
21740
  """
21741
 
21742
  thrift_spec = (
21743
    None, # 0
21744
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
21745
  )
21746
 
21747
  def __init__(self, ebayItem=None,):
21748
    self.ebayItem = ebayItem
21749
 
21750
  def read(self, iprot):
21751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21753
      return
21754
    iprot.readStructBegin()
21755
    while True:
21756
      (fname, ftype, fid) = iprot.readFieldBegin()
21757
      if ftype == TType.STOP:
21758
        break
21759
      if fid == 1:
21760
        if ftype == TType.STRUCT:
21761
          self.ebayItem = EbayItem()
21762
          self.ebayItem.read(iprot)
21763
        else:
21764
          iprot.skip(ftype)
21765
      else:
21766
        iprot.skip(ftype)
21767
      iprot.readFieldEnd()
21768
    iprot.readStructEnd()
21769
 
21770
  def write(self, oprot):
21771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21773
      return
21774
    oprot.writeStructBegin('addEbayItem_args')
21775
    if self.ebayItem is not None:
21776
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
21777
      self.ebayItem.write(oprot)
21778
      oprot.writeFieldEnd()
21779
    oprot.writeFieldStop()
21780
    oprot.writeStructEnd()
21781
 
21782
  def validate(self):
21783
    return
21784
 
21785
 
21786
  def __repr__(self):
21787
    L = ['%s=%r' % (key, value)
21788
      for key, value in self.__dict__.iteritems()]
21789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21790
 
21791
  def __eq__(self, other):
21792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21793
 
21794
  def __ne__(self, other):
21795
    return not (self == other)
21796
 
21797
class addEbayItem_result:
21798
 
21799
  thrift_spec = (
21800
  )
21801
 
21802
  def read(self, iprot):
21803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21805
      return
21806
    iprot.readStructBegin()
21807
    while True:
21808
      (fname, ftype, fid) = iprot.readFieldBegin()
21809
      if ftype == TType.STOP:
21810
        break
21811
      else:
21812
        iprot.skip(ftype)
21813
      iprot.readFieldEnd()
21814
    iprot.readStructEnd()
21815
 
21816
  def write(self, oprot):
21817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21819
      return
21820
    oprot.writeStructBegin('addEbayItem_result')
21821
    oprot.writeFieldStop()
21822
    oprot.writeStructEnd()
21823
 
21824
  def validate(self):
21825
    return
21826
 
21827
 
21828
  def __repr__(self):
21829
    L = ['%s=%r' % (key, value)
21830
      for key, value in self.__dict__.iteritems()]
21831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21832
 
21833
  def __eq__(self, other):
21834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21835
 
21836
  def __ne__(self, other):
21837
    return not (self == other)
21838
 
21839
class getEbayItem_args:
21840
  """
21841
  Attributes:
21842
   - listingId
21843
  """
21844
 
21845
  thrift_spec = (
21846
    None, # 0
21847
    (1, TType.STRING, 'listingId', None, None, ), # 1
21848
  )
21849
 
21850
  def __init__(self, listingId=None,):
21851
    self.listingId = listingId
21852
 
21853
  def read(self, iprot):
21854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21856
      return
21857
    iprot.readStructBegin()
21858
    while True:
21859
      (fname, ftype, fid) = iprot.readFieldBegin()
21860
      if ftype == TType.STOP:
21861
        break
21862
      if fid == 1:
21863
        if ftype == TType.STRING:
21864
          self.listingId = iprot.readString();
21865
        else:
21866
          iprot.skip(ftype)
21867
      else:
21868
        iprot.skip(ftype)
21869
      iprot.readFieldEnd()
21870
    iprot.readStructEnd()
21871
 
21872
  def write(self, oprot):
21873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21875
      return
21876
    oprot.writeStructBegin('getEbayItem_args')
21877
    if self.listingId is not None:
21878
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
21879
      oprot.writeString(self.listingId)
21880
      oprot.writeFieldEnd()
21881
    oprot.writeFieldStop()
21882
    oprot.writeStructEnd()
21883
 
21884
  def validate(self):
21885
    return
21886
 
21887
 
21888
  def __repr__(self):
21889
    L = ['%s=%r' % (key, value)
21890
      for key, value in self.__dict__.iteritems()]
21891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21892
 
21893
  def __eq__(self, other):
21894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21895
 
21896
  def __ne__(self, other):
21897
    return not (self == other)
21898
 
21899
class getEbayItem_result:
21900
  """
21901
  Attributes:
21902
   - success
21903
  """
21904
 
21905
  thrift_spec = (
21906
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
21907
  )
21908
 
21909
  def __init__(self, success=None,):
21910
    self.success = success
21911
 
21912
  def read(self, iprot):
21913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21915
      return
21916
    iprot.readStructBegin()
21917
    while True:
21918
      (fname, ftype, fid) = iprot.readFieldBegin()
21919
      if ftype == TType.STOP:
21920
        break
21921
      if fid == 0:
21922
        if ftype == TType.STRUCT:
21923
          self.success = EbayItem()
21924
          self.success.read(iprot)
21925
        else:
21926
          iprot.skip(ftype)
21927
      else:
21928
        iprot.skip(ftype)
21929
      iprot.readFieldEnd()
21930
    iprot.readStructEnd()
21931
 
21932
  def write(self, oprot):
21933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21935
      return
21936
    oprot.writeStructBegin('getEbayItem_result')
21937
    if self.success is not None:
21938
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21939
      self.success.write(oprot)
21940
      oprot.writeFieldEnd()
21941
    oprot.writeFieldStop()
21942
    oprot.writeStructEnd()
21943
 
21944
  def validate(self):
21945
    return
21946
 
21947
 
21948
  def __repr__(self):
21949
    L = ['%s=%r' % (key, value)
21950
      for key, value in self.__dict__.iteritems()]
21951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21952
 
21953
  def __eq__(self, other):
21954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21955
 
21956
  def __ne__(self, other):
21957
    return not (self == other)
21958
 
21959
class updateEbayItem_args:
21960
  """
21961
  Attributes:
21962
   - ebayItem
21963
  """
21964
 
21965
  thrift_spec = (
21966
    None, # 0
21967
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
21968
  )
21969
 
21970
  def __init__(self, ebayItem=None,):
21971
    self.ebayItem = ebayItem
21972
 
21973
  def read(self, iprot):
21974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21976
      return
21977
    iprot.readStructBegin()
21978
    while True:
21979
      (fname, ftype, fid) = iprot.readFieldBegin()
21980
      if ftype == TType.STOP:
21981
        break
21982
      if fid == 1:
21983
        if ftype == TType.STRUCT:
21984
          self.ebayItem = EbayItem()
21985
          self.ebayItem.read(iprot)
21986
        else:
21987
          iprot.skip(ftype)
21988
      else:
21989
        iprot.skip(ftype)
21990
      iprot.readFieldEnd()
21991
    iprot.readStructEnd()
21992
 
21993
  def write(self, oprot):
21994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21996
      return
21997
    oprot.writeStructBegin('updateEbayItem_args')
21998
    if self.ebayItem is not None:
21999
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
22000
      self.ebayItem.write(oprot)
22001
      oprot.writeFieldEnd()
22002
    oprot.writeFieldStop()
22003
    oprot.writeStructEnd()
22004
 
22005
  def validate(self):
22006
    return
22007
 
22008
 
22009
  def __repr__(self):
22010
    L = ['%s=%r' % (key, value)
22011
      for key, value in self.__dict__.iteritems()]
22012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22013
 
22014
  def __eq__(self, other):
22015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22016
 
22017
  def __ne__(self, other):
22018
    return not (self == other)
22019
 
22020
class updateEbayItem_result:
22021
 
22022
  thrift_spec = (
22023
  )
22024
 
22025
  def read(self, iprot):
22026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22028
      return
22029
    iprot.readStructBegin()
22030
    while True:
22031
      (fname, ftype, fid) = iprot.readFieldBegin()
22032
      if ftype == TType.STOP:
22033
        break
22034
      else:
22035
        iprot.skip(ftype)
22036
      iprot.readFieldEnd()
22037
    iprot.readStructEnd()
22038
 
22039
  def write(self, oprot):
22040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22042
      return
22043
    oprot.writeStructBegin('updateEbayItem_result')
22044
    oprot.writeFieldStop()
22045
    oprot.writeStructEnd()
22046
 
22047
  def validate(self):
22048
    return
22049
 
22050
 
22051
  def __repr__(self):
22052
    L = ['%s=%r' % (key, value)
22053
      for key, value in self.__dict__.iteritems()]
22054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22055
 
22056
  def __eq__(self, other):
22057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22058
 
22059
  def __ne__(self, other):
22060
    return not (self == other)
22061
 
8139 kshitij.so 22062
class getAmazonListedItems_args:
22063
  """
22064
  Attributes:
22065
   - offset
22066
   - limit
22067
  """
22068
 
22069
  thrift_spec = (
22070
    None, # 0
22071
    (1, TType.I64, 'offset', None, None, ), # 1
22072
    (2, TType.I64, 'limit', None, None, ), # 2
22073
  )
22074
 
22075
  def __init__(self, offset=None, limit=None,):
22076
    self.offset = offset
22077
    self.limit = limit
22078
 
22079
  def read(self, iprot):
22080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22082
      return
22083
    iprot.readStructBegin()
22084
    while True:
22085
      (fname, ftype, fid) = iprot.readFieldBegin()
22086
      if ftype == TType.STOP:
22087
        break
22088
      if fid == 1:
22089
        if ftype == TType.I64:
22090
          self.offset = iprot.readI64();
22091
        else:
22092
          iprot.skip(ftype)
22093
      elif fid == 2:
22094
        if ftype == TType.I64:
22095
          self.limit = iprot.readI64();
22096
        else:
22097
          iprot.skip(ftype)
22098
      else:
22099
        iprot.skip(ftype)
22100
      iprot.readFieldEnd()
22101
    iprot.readStructEnd()
22102
 
22103
  def write(self, oprot):
22104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22106
      return
22107
    oprot.writeStructBegin('getAmazonListedItems_args')
22108
    if self.offset is not None:
22109
      oprot.writeFieldBegin('offset', TType.I64, 1)
22110
      oprot.writeI64(self.offset)
22111
      oprot.writeFieldEnd()
22112
    if self.limit is not None:
22113
      oprot.writeFieldBegin('limit', TType.I64, 2)
22114
      oprot.writeI64(self.limit)
22115
      oprot.writeFieldEnd()
22116
    oprot.writeFieldStop()
22117
    oprot.writeStructEnd()
22118
 
22119
  def validate(self):
22120
    return
22121
 
22122
 
22123
  def __repr__(self):
22124
    L = ['%s=%r' % (key, value)
22125
      for key, value in self.__dict__.iteritems()]
22126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22127
 
22128
  def __eq__(self, other):
22129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22130
 
22131
  def __ne__(self, other):
22132
    return not (self == other)
22133
 
22134
class getAmazonListedItems_result:
22135
  """
22136
  Attributes:
22137
   - success
22138
  """
22139
 
22140
  thrift_spec = (
22141
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22142
  )
22143
 
22144
  def __init__(self, success=None,):
22145
    self.success = success
22146
 
22147
  def read(self, iprot):
22148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22150
      return
22151
    iprot.readStructBegin()
22152
    while True:
22153
      (fname, ftype, fid) = iprot.readFieldBegin()
22154
      if ftype == TType.STOP:
22155
        break
22156
      if fid == 0:
22157
        if ftype == TType.LIST:
22158
          self.success = []
9155 kshitij.so 22159
          (_etype477, _size474) = iprot.readListBegin()
22160
          for _i478 in xrange(_size474):
22161
            _elem479 = Amazonlisted()
22162
            _elem479.read(iprot)
22163
            self.success.append(_elem479)
8139 kshitij.so 22164
          iprot.readListEnd()
22165
        else:
22166
          iprot.skip(ftype)
22167
      else:
22168
        iprot.skip(ftype)
22169
      iprot.readFieldEnd()
22170
    iprot.readStructEnd()
22171
 
22172
  def write(self, oprot):
22173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22175
      return
22176
    oprot.writeStructBegin('getAmazonListedItems_result')
22177
    if self.success is not None:
22178
      oprot.writeFieldBegin('success', TType.LIST, 0)
22179
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22180
      for iter480 in self.success:
22181
        iter480.write(oprot)
8139 kshitij.so 22182
      oprot.writeListEnd()
22183
      oprot.writeFieldEnd()
22184
    oprot.writeFieldStop()
22185
    oprot.writeStructEnd()
22186
 
22187
  def validate(self):
22188
    return
22189
 
22190
 
22191
  def __repr__(self):
22192
    L = ['%s=%r' % (key, value)
22193
      for key, value in self.__dict__.iteritems()]
22194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22195
 
22196
  def __eq__(self, other):
22197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22198
 
22199
  def __ne__(self, other):
22200
    return not (self == other)
8168 kshitij.so 22201
 
22202
class updateAmazonAttributesInBulk_args:
22203
  """
22204
  Attributes:
22205
   - amazonlisted
22206
  """
22207
 
22208
  thrift_spec = (
22209
    None, # 0
22210
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
22211
  )
22212
 
22213
  def __init__(self, amazonlisted=None,):
22214
    self.amazonlisted = amazonlisted
22215
 
22216
  def read(self, iprot):
22217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22219
      return
22220
    iprot.readStructBegin()
22221
    while True:
22222
      (fname, ftype, fid) = iprot.readFieldBegin()
22223
      if ftype == TType.STOP:
22224
        break
22225
      if fid == 1:
22226
        if ftype == TType.MAP:
22227
          self.amazonlisted = {}
9155 kshitij.so 22228
          (_ktype482, _vtype483, _size481 ) = iprot.readMapBegin() 
22229
          for _i485 in xrange(_size481):
22230
            _key486 = iprot.readI64();
22231
            _val487 = Amazonlisted()
22232
            _val487.read(iprot)
22233
            self.amazonlisted[_key486] = _val487
8168 kshitij.so 22234
          iprot.readMapEnd()
22235
        else:
22236
          iprot.skip(ftype)
22237
      else:
22238
        iprot.skip(ftype)
22239
      iprot.readFieldEnd()
22240
    iprot.readStructEnd()
22241
 
22242
  def write(self, oprot):
22243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22245
      return
22246
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
22247
    if self.amazonlisted is not None:
22248
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
22249
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
9155 kshitij.so 22250
      for kiter488,viter489 in self.amazonlisted.items():
22251
        oprot.writeI64(kiter488)
22252
        viter489.write(oprot)
8168 kshitij.so 22253
      oprot.writeMapEnd()
22254
      oprot.writeFieldEnd()
22255
    oprot.writeFieldStop()
22256
    oprot.writeStructEnd()
22257
 
22258
  def validate(self):
22259
    return
22260
 
22261
 
22262
  def __repr__(self):
22263
    L = ['%s=%r' % (key, value)
22264
      for key, value in self.__dict__.iteritems()]
22265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22266
 
22267
  def __eq__(self, other):
22268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22269
 
22270
  def __ne__(self, other):
22271
    return not (self == other)
22272
 
22273
class updateAmazonAttributesInBulk_result:
22274
  """
22275
  Attributes:
22276
   - success
22277
  """
22278
 
22279
  thrift_spec = (
22280
    (0, TType.BOOL, 'success', None, None, ), # 0
22281
  )
22282
 
22283
  def __init__(self, success=None,):
22284
    self.success = success
22285
 
22286
  def read(self, iprot):
22287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22289
      return
22290
    iprot.readStructBegin()
22291
    while True:
22292
      (fname, ftype, fid) = iprot.readFieldBegin()
22293
      if ftype == TType.STOP:
22294
        break
22295
      if fid == 0:
22296
        if ftype == TType.BOOL:
22297
          self.success = iprot.readBool();
22298
        else:
22299
          iprot.skip(ftype)
22300
      else:
22301
        iprot.skip(ftype)
22302
      iprot.readFieldEnd()
22303
    iprot.readStructEnd()
22304
 
22305
  def write(self, oprot):
22306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22308
      return
22309
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
22310
    if self.success is not None:
22311
      oprot.writeFieldBegin('success', TType.BOOL, 0)
22312
      oprot.writeBool(self.success)
22313
      oprot.writeFieldEnd()
22314
    oprot.writeFieldStop()
22315
    oprot.writeStructEnd()
22316
 
22317
  def validate(self):
22318
    return
22319
 
22320
 
22321
  def __repr__(self):
22322
    L = ['%s=%r' % (key, value)
22323
      for key, value in self.__dict__.iteritems()]
22324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22325
 
22326
  def __eq__(self, other):
22327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22328
 
22329
  def __ne__(self, other):
22330
    return not (self == other)
8379 vikram.rag 22331
 
22332
class getAllItemstoListOnFba_args:
22333
 
22334
  thrift_spec = (
22335
  )
22336
 
22337
  def read(self, iprot):
22338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22340
      return
22341
    iprot.readStructBegin()
22342
    while True:
22343
      (fname, ftype, fid) = iprot.readFieldBegin()
22344
      if ftype == TType.STOP:
22345
        break
22346
      else:
22347
        iprot.skip(ftype)
22348
      iprot.readFieldEnd()
22349
    iprot.readStructEnd()
22350
 
22351
  def write(self, oprot):
22352
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22353
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22354
      return
22355
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
22356
    oprot.writeFieldStop()
22357
    oprot.writeStructEnd()
22358
 
22359
  def validate(self):
22360
    return
22361
 
22362
 
22363
  def __repr__(self):
22364
    L = ['%s=%r' % (key, value)
22365
      for key, value in self.__dict__.iteritems()]
22366
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22367
 
22368
  def __eq__(self, other):
22369
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22370
 
22371
  def __ne__(self, other):
22372
    return not (self == other)
22373
 
22374
class getAllItemstoListOnFba_result:
22375
  """
22376
  Attributes:
22377
   - success
22378
  """
22379
 
22380
  thrift_spec = (
22381
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22382
  )
22383
 
22384
  def __init__(self, success=None,):
22385
    self.success = success
22386
 
22387
  def read(self, iprot):
22388
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22389
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22390
      return
22391
    iprot.readStructBegin()
22392
    while True:
22393
      (fname, ftype, fid) = iprot.readFieldBegin()
22394
      if ftype == TType.STOP:
22395
        break
22396
      if fid == 0:
22397
        if ftype == TType.LIST:
22398
          self.success = []
9155 kshitij.so 22399
          (_etype493, _size490) = iprot.readListBegin()
22400
          for _i494 in xrange(_size490):
22401
            _elem495 = Amazonlisted()
22402
            _elem495.read(iprot)
22403
            self.success.append(_elem495)
8379 vikram.rag 22404
          iprot.readListEnd()
22405
        else:
22406
          iprot.skip(ftype)
22407
      else:
22408
        iprot.skip(ftype)
22409
      iprot.readFieldEnd()
22410
    iprot.readStructEnd()
22411
 
22412
  def write(self, oprot):
22413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22415
      return
22416
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
22417
    if self.success is not None:
22418
      oprot.writeFieldBegin('success', TType.LIST, 0)
22419
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22420
      for iter496 in self.success:
22421
        iter496.write(oprot)
8379 vikram.rag 22422
      oprot.writeListEnd()
22423
      oprot.writeFieldEnd()
22424
    oprot.writeFieldStop()
22425
    oprot.writeStructEnd()
22426
 
22427
  def validate(self):
22428
    return
22429
 
22430
 
22431
  def __repr__(self):
22432
    L = ['%s=%r' % (key, value)
22433
      for key, value in self.__dict__.iteritems()]
22434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22435
 
22436
  def __eq__(self, other):
22437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22438
 
22439
  def __ne__(self, other):
22440
    return not (self == other)
22441
 
22442
class getAllItemstoListOnNonFba_args:
22443
 
22444
  thrift_spec = (
22445
  )
22446
 
22447
  def read(self, iprot):
22448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22450
      return
22451
    iprot.readStructBegin()
22452
    while True:
22453
      (fname, ftype, fid) = iprot.readFieldBegin()
22454
      if ftype == TType.STOP:
22455
        break
22456
      else:
22457
        iprot.skip(ftype)
22458
      iprot.readFieldEnd()
22459
    iprot.readStructEnd()
22460
 
22461
  def write(self, oprot):
22462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22464
      return
22465
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
22466
    oprot.writeFieldStop()
22467
    oprot.writeStructEnd()
22468
 
22469
  def validate(self):
22470
    return
22471
 
22472
 
22473
  def __repr__(self):
22474
    L = ['%s=%r' % (key, value)
22475
      for key, value in self.__dict__.iteritems()]
22476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22477
 
22478
  def __eq__(self, other):
22479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22480
 
22481
  def __ne__(self, other):
22482
    return not (self == other)
22483
 
22484
class getAllItemstoListOnNonFba_result:
22485
  """
22486
  Attributes:
22487
   - success
22488
  """
22489
 
22490
  thrift_spec = (
22491
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22492
  )
22493
 
22494
  def __init__(self, success=None,):
22495
    self.success = success
22496
 
22497
  def read(self, iprot):
22498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22500
      return
22501
    iprot.readStructBegin()
22502
    while True:
22503
      (fname, ftype, fid) = iprot.readFieldBegin()
22504
      if ftype == TType.STOP:
22505
        break
22506
      if fid == 0:
22507
        if ftype == TType.LIST:
22508
          self.success = []
9155 kshitij.so 22509
          (_etype500, _size497) = iprot.readListBegin()
22510
          for _i501 in xrange(_size497):
22511
            _elem502 = Amazonlisted()
22512
            _elem502.read(iprot)
22513
            self.success.append(_elem502)
8379 vikram.rag 22514
          iprot.readListEnd()
22515
        else:
22516
          iprot.skip(ftype)
22517
      else:
22518
        iprot.skip(ftype)
22519
      iprot.readFieldEnd()
22520
    iprot.readStructEnd()
22521
 
22522
  def write(self, oprot):
22523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22525
      return
22526
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
22527
    if self.success is not None:
22528
      oprot.writeFieldBegin('success', TType.LIST, 0)
22529
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22530
      for iter503 in self.success:
22531
        iter503.write(oprot)
8379 vikram.rag 22532
      oprot.writeListEnd()
22533
      oprot.writeFieldEnd()
22534
    oprot.writeFieldStop()
22535
    oprot.writeStructEnd()
22536
 
22537
  def validate(self):
22538
    return
22539
 
22540
 
22541
  def __repr__(self):
22542
    L = ['%s=%r' % (key, value)
22543
      for key, value in self.__dict__.iteritems()]
22544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22545
 
22546
  def __eq__(self, other):
22547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22548
 
22549
  def __ne__(self, other):
22550
    return not (self == other)
8616 vikram.rag 22551
 
9242 kshitij.so 22552
class updateAsin_args:
22553
  """
22554
  Attributes:
22555
   - item
22556
  """
8616 vikram.rag 22557
 
22558
  thrift_spec = (
9242 kshitij.so 22559
    None, # 0
22560
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 22561
  )
22562
 
9242 kshitij.so 22563
  def __init__(self, item=None,):
22564
    self.item = item
22565
 
8616 vikram.rag 22566
  def read(self, iprot):
22567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22569
      return
22570
    iprot.readStructBegin()
22571
    while True:
22572
      (fname, ftype, fid) = iprot.readFieldBegin()
22573
      if ftype == TType.STOP:
22574
        break
9242 kshitij.so 22575
      if fid == 1:
22576
        if ftype == TType.MAP:
22577
          self.item = {}
22578
          (_ktype505, _vtype506, _size504 ) = iprot.readMapBegin() 
22579
          for _i508 in xrange(_size504):
22580
            _key509 = iprot.readI64();
22581
            _val510 = Item()
22582
            _val510.read(iprot)
22583
            self.item[_key509] = _val510
22584
          iprot.readMapEnd()
22585
        else:
22586
          iprot.skip(ftype)
8616 vikram.rag 22587
      else:
22588
        iprot.skip(ftype)
22589
      iprot.readFieldEnd()
22590
    iprot.readStructEnd()
22591
 
22592
  def write(self, oprot):
22593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22595
      return
9242 kshitij.so 22596
    oprot.writeStructBegin('updateAsin_args')
22597
    if self.item is not None:
22598
      oprot.writeFieldBegin('item', TType.MAP, 1)
22599
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
22600
      for kiter511,viter512 in self.item.items():
22601
        oprot.writeI64(kiter511)
22602
        viter512.write(oprot)
22603
      oprot.writeMapEnd()
22604
      oprot.writeFieldEnd()
8616 vikram.rag 22605
    oprot.writeFieldStop()
22606
    oprot.writeStructEnd()
22607
 
22608
  def validate(self):
22609
    return
22610
 
22611
 
22612
  def __repr__(self):
22613
    L = ['%s=%r' % (key, value)
22614
      for key, value in self.__dict__.iteritems()]
22615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22616
 
22617
  def __eq__(self, other):
22618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22619
 
22620
  def __ne__(self, other):
22621
    return not (self == other)
22622
 
9242 kshitij.so 22623
class updateAsin_result:
8616 vikram.rag 22624
 
22625
  thrift_spec = (
22626
  )
22627
 
22628
  def read(self, iprot):
22629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22631
      return
22632
    iprot.readStructBegin()
22633
    while True:
22634
      (fname, ftype, fid) = iprot.readFieldBegin()
22635
      if ftype == TType.STOP:
22636
        break
22637
      else:
22638
        iprot.skip(ftype)
22639
      iprot.readFieldEnd()
22640
    iprot.readStructEnd()
22641
 
22642
  def write(self, oprot):
22643
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22644
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22645
      return
9242 kshitij.so 22646
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 22647
    oprot.writeFieldStop()
22648
    oprot.writeStructEnd()
22649
 
22650
  def validate(self):
22651
    return
22652
 
22653
 
22654
  def __repr__(self):
22655
    L = ['%s=%r' % (key, value)
22656
      for key, value in self.__dict__.iteritems()]
22657
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22658
 
22659
  def __eq__(self, other):
22660
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22661
 
22662
  def __ne__(self, other):
22663
    return not (self == other)
8619 kshitij.so 22664
 
9242 kshitij.so 22665
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 22666
  """
22667
  Attributes:
9242 kshitij.so 22668
   - snapdealitem
8619 kshitij.so 22669
  """
22670
 
9242 kshitij.so 22671
  thrift_spec = None
22672
  def __init__(self, snapdealitem=None,):
22673
    self.snapdealitem = snapdealitem
8619 kshitij.so 22674
 
22675
  def read(self, iprot):
22676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22678
      return
22679
    iprot.readStructBegin()
22680
    while True:
22681
      (fname, ftype, fid) = iprot.readFieldBegin()
22682
      if ftype == TType.STOP:
22683
        break
9242 kshitij.so 22684
      if fid == -1:
22685
        if ftype == TType.STRUCT:
22686
          self.snapdealitem = SnapdealItem()
22687
          self.snapdealitem.read(iprot)
8619 kshitij.so 22688
        else:
22689
          iprot.skip(ftype)
22690
      else:
22691
        iprot.skip(ftype)
22692
      iprot.readFieldEnd()
22693
    iprot.readStructEnd()
22694
 
22695
  def write(self, oprot):
22696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22698
      return
9242 kshitij.so 22699
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
22700
    if self.snapdealitem is not None:
22701
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
22702
      self.snapdealitem.write(oprot)
8619 kshitij.so 22703
      oprot.writeFieldEnd()
22704
    oprot.writeFieldStop()
22705
    oprot.writeStructEnd()
22706
 
22707
  def validate(self):
22708
    return
22709
 
22710
 
22711
  def __repr__(self):
22712
    L = ['%s=%r' % (key, value)
22713
      for key, value in self.__dict__.iteritems()]
22714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22715
 
22716
  def __eq__(self, other):
22717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22718
 
22719
  def __ne__(self, other):
22720
    return not (self == other)
22721
 
9242 kshitij.so 22722
class addOrUpdateSnapdealItem_result:
22723
  """
22724
  Attributes:
22725
   - success
22726
  """
8619 kshitij.so 22727
 
22728
  thrift_spec = (
9242 kshitij.so 22729
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 22730
  )
22731
 
9242 kshitij.so 22732
  def __init__(self, success=None,):
22733
    self.success = success
22734
 
8619 kshitij.so 22735
  def read(self, iprot):
22736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22738
      return
22739
    iprot.readStructBegin()
22740
    while True:
22741
      (fname, ftype, fid) = iprot.readFieldBegin()
22742
      if ftype == TType.STOP:
22743
        break
9242 kshitij.so 22744
      if fid == 0:
22745
        if ftype == TType.BOOL:
22746
          self.success = iprot.readBool();
22747
        else:
22748
          iprot.skip(ftype)
8619 kshitij.so 22749
      else:
22750
        iprot.skip(ftype)
22751
      iprot.readFieldEnd()
22752
    iprot.readStructEnd()
22753
 
22754
  def write(self, oprot):
22755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22757
      return
9242 kshitij.so 22758
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
22759
    if self.success is not None:
22760
      oprot.writeFieldBegin('success', TType.BOOL, 0)
22761
      oprot.writeBool(self.success)
22762
      oprot.writeFieldEnd()
8619 kshitij.so 22763
    oprot.writeFieldStop()
22764
    oprot.writeStructEnd()
22765
 
22766
  def validate(self):
22767
    return
22768
 
22769
 
22770
  def __repr__(self):
22771
    L = ['%s=%r' % (key, value)
22772
      for key, value in self.__dict__.iteritems()]
22773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22774
 
22775
  def __eq__(self, other):
22776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22777
 
22778
  def __ne__(self, other):
22779
    return not (self == other)
8739 vikram.rag 22780
 
9242 kshitij.so 22781
class getSnapdealItem_args:
8739 vikram.rag 22782
  """
22783
  Attributes:
9242 kshitij.so 22784
   - item_id
8739 vikram.rag 22785
  """
22786
 
9242 kshitij.so 22787
  thrift_spec = (
22788
    None, # 0
22789
    (1, TType.I64, 'item_id', None, None, ), # 1
22790
  )
8739 vikram.rag 22791
 
9242 kshitij.so 22792
  def __init__(self, item_id=None,):
22793
    self.item_id = item_id
22794
 
8739 vikram.rag 22795
  def read(self, iprot):
22796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22798
      return
22799
    iprot.readStructBegin()
22800
    while True:
22801
      (fname, ftype, fid) = iprot.readFieldBegin()
22802
      if ftype == TType.STOP:
22803
        break
9242 kshitij.so 22804
      if fid == 1:
22805
        if ftype == TType.I64:
22806
          self.item_id = iprot.readI64();
8739 vikram.rag 22807
        else:
22808
          iprot.skip(ftype)
22809
      else:
22810
        iprot.skip(ftype)
22811
      iprot.readFieldEnd()
22812
    iprot.readStructEnd()
22813
 
22814
  def write(self, oprot):
22815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22817
      return
9242 kshitij.so 22818
    oprot.writeStructBegin('getSnapdealItem_args')
22819
    if self.item_id is not None:
22820
      oprot.writeFieldBegin('item_id', TType.I64, 1)
22821
      oprot.writeI64(self.item_id)
8739 vikram.rag 22822
      oprot.writeFieldEnd()
22823
    oprot.writeFieldStop()
22824
    oprot.writeStructEnd()
22825
 
22826
  def validate(self):
22827
    return
22828
 
22829
 
22830
  def __repr__(self):
22831
    L = ['%s=%r' % (key, value)
22832
      for key, value in self.__dict__.iteritems()]
22833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22834
 
22835
  def __eq__(self, other):
22836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22837
 
22838
  def __ne__(self, other):
22839
    return not (self == other)
22840
 
9242 kshitij.so 22841
class getSnapdealItem_result:
8739 vikram.rag 22842
  """
22843
  Attributes:
22844
   - success
22845
  """
22846
 
22847
  thrift_spec = (
9242 kshitij.so 22848
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 22849
  )
22850
 
22851
  def __init__(self, success=None,):
22852
    self.success = success
22853
 
22854
  def read(self, iprot):
22855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22857
      return
22858
    iprot.readStructBegin()
22859
    while True:
22860
      (fname, ftype, fid) = iprot.readFieldBegin()
22861
      if ftype == TType.STOP:
22862
        break
22863
      if fid == 0:
9242 kshitij.so 22864
        if ftype == TType.STRUCT:
22865
          self.success = SnapdealItem()
22866
          self.success.read(iprot)
8739 vikram.rag 22867
        else:
22868
          iprot.skip(ftype)
22869
      else:
22870
        iprot.skip(ftype)
22871
      iprot.readFieldEnd()
22872
    iprot.readStructEnd()
22873
 
22874
  def write(self, oprot):
22875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22877
      return
9242 kshitij.so 22878
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 22879
    if self.success is not None:
9242 kshitij.so 22880
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22881
      self.success.write(oprot)
8739 vikram.rag 22882
      oprot.writeFieldEnd()
22883
    oprot.writeFieldStop()
22884
    oprot.writeStructEnd()
22885
 
22886
  def validate(self):
22887
    return
22888
 
22889
 
22890
  def __repr__(self):
22891
    L = ['%s=%r' % (key, value)
22892
      for key, value in self.__dict__.iteritems()]
22893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22894
 
22895
  def __eq__(self, other):
22896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22897
 
22898
  def __ne__(self, other):
22899
    return not (self == other)
22900
 
9242 kshitij.so 22901
class getSnapdealItemDetails_args:
8739 vikram.rag 22902
  """
22903
  Attributes:
22904
   - item_id
22905
  """
22906
 
22907
  thrift_spec = (
22908
    None, # 0
22909
    (1, TType.I64, 'item_id', None, None, ), # 1
22910
  )
22911
 
22912
  def __init__(self, item_id=None,):
22913
    self.item_id = item_id
22914
 
22915
  def read(self, iprot):
22916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22918
      return
22919
    iprot.readStructBegin()
22920
    while True:
22921
      (fname, ftype, fid) = iprot.readFieldBegin()
22922
      if ftype == TType.STOP:
22923
        break
22924
      if fid == 1:
22925
        if ftype == TType.I64:
22926
          self.item_id = iprot.readI64();
22927
        else:
22928
          iprot.skip(ftype)
22929
      else:
22930
        iprot.skip(ftype)
22931
      iprot.readFieldEnd()
22932
    iprot.readStructEnd()
22933
 
22934
  def write(self, oprot):
22935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22937
      return
9242 kshitij.so 22938
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 22939
    if self.item_id is not None:
22940
      oprot.writeFieldBegin('item_id', TType.I64, 1)
22941
      oprot.writeI64(self.item_id)
22942
      oprot.writeFieldEnd()
22943
    oprot.writeFieldStop()
22944
    oprot.writeStructEnd()
22945
 
22946
  def validate(self):
22947
    return
22948
 
22949
 
22950
  def __repr__(self):
22951
    L = ['%s=%r' % (key, value)
22952
      for key, value in self.__dict__.iteritems()]
22953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22954
 
22955
  def __eq__(self, other):
22956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22957
 
22958
  def __ne__(self, other):
22959
    return not (self == other)
22960
 
9242 kshitij.so 22961
class getSnapdealItemDetails_result:
8739 vikram.rag 22962
  """
22963
  Attributes:
22964
   - success
22965
  """
22966
 
22967
  thrift_spec = (
9242 kshitij.so 22968
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 22969
  )
22970
 
22971
  def __init__(self, success=None,):
22972
    self.success = success
22973
 
22974
  def read(self, iprot):
22975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22977
      return
22978
    iprot.readStructBegin()
22979
    while True:
22980
      (fname, ftype, fid) = iprot.readFieldBegin()
22981
      if ftype == TType.STOP:
22982
        break
22983
      if fid == 0:
22984
        if ftype == TType.STRUCT:
9242 kshitij.so 22985
          self.success = SnapdealItemDetails()
8739 vikram.rag 22986
          self.success.read(iprot)
22987
        else:
22988
          iprot.skip(ftype)
22989
      else:
22990
        iprot.skip(ftype)
22991
      iprot.readFieldEnd()
22992
    iprot.readStructEnd()
22993
 
22994
  def write(self, oprot):
22995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22997
      return
9242 kshitij.so 22998
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 22999
    if self.success is not None:
23000
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23001
      self.success.write(oprot)
23002
      oprot.writeFieldEnd()
23003
    oprot.writeFieldStop()
23004
    oprot.writeStructEnd()
23005
 
23006
  def validate(self):
23007
    return
23008
 
23009
 
23010
  def __repr__(self):
23011
    L = ['%s=%r' % (key, value)
23012
      for key, value in self.__dict__.iteritems()]
23013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23014
 
23015
  def __eq__(self, other):
23016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23017
 
23018
  def __ne__(self, other):
23019
    return not (self == other)
23020
 
23021
class getAllSnapdealItems_args:
23022
 
23023
  thrift_spec = (
23024
  )
23025
 
23026
  def read(self, iprot):
23027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23029
      return
23030
    iprot.readStructBegin()
23031
    while True:
23032
      (fname, ftype, fid) = iprot.readFieldBegin()
23033
      if ftype == TType.STOP:
23034
        break
23035
      else:
23036
        iprot.skip(ftype)
23037
      iprot.readFieldEnd()
23038
    iprot.readStructEnd()
23039
 
23040
  def write(self, oprot):
23041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23043
      return
23044
    oprot.writeStructBegin('getAllSnapdealItems_args')
23045
    oprot.writeFieldStop()
23046
    oprot.writeStructEnd()
23047
 
23048
  def validate(self):
23049
    return
23050
 
23051
 
23052
  def __repr__(self):
23053
    L = ['%s=%r' % (key, value)
23054
      for key, value in self.__dict__.iteritems()]
23055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23056
 
23057
  def __eq__(self, other):
23058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23059
 
23060
  def __ne__(self, other):
23061
    return not (self == other)
23062
 
23063
class getAllSnapdealItems_result:
23064
  """
23065
  Attributes:
23066
   - success
23067
  """
23068
 
23069
  thrift_spec = (
9242 kshitij.so 23070
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 23071
  )
23072
 
23073
  def __init__(self, success=None,):
23074
    self.success = success
23075
 
23076
  def read(self, iprot):
23077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23079
      return
23080
    iprot.readStructBegin()
23081
    while True:
23082
      (fname, ftype, fid) = iprot.readFieldBegin()
23083
      if ftype == TType.STOP:
23084
        break
23085
      if fid == 0:
23086
        if ftype == TType.LIST:
23087
          self.success = []
9242 kshitij.so 23088
          (_etype516, _size513) = iprot.readListBegin()
23089
          for _i517 in xrange(_size513):
23090
            _elem518 = SnapdealItemDetails()
23091
            _elem518.read(iprot)
23092
            self.success.append(_elem518)
23093
          iprot.readListEnd()
23094
        else:
23095
          iprot.skip(ftype)
23096
      else:
23097
        iprot.skip(ftype)
23098
      iprot.readFieldEnd()
23099
    iprot.readStructEnd()
23100
 
23101
  def write(self, oprot):
23102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23104
      return
23105
    oprot.writeStructBegin('getAllSnapdealItems_result')
23106
    if self.success is not None:
23107
      oprot.writeFieldBegin('success', TType.LIST, 0)
23108
      oprot.writeListBegin(TType.STRUCT, len(self.success))
23109
      for iter519 in self.success:
23110
        iter519.write(oprot)
23111
      oprot.writeListEnd()
23112
      oprot.writeFieldEnd()
23113
    oprot.writeFieldStop()
23114
    oprot.writeStructEnd()
23115
 
23116
  def validate(self):
23117
    return
23118
 
23119
 
23120
  def __repr__(self):
23121
    L = ['%s=%r' % (key, value)
23122
      for key, value in self.__dict__.iteritems()]
23123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23124
 
23125
  def __eq__(self, other):
23126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23127
 
23128
  def __ne__(self, other):
23129
    return not (self == other)
23130
 
23131
class getSnapdealItems_args:
23132
  """
23133
  Attributes:
23134
   - offset
23135
   - limit
23136
  """
23137
 
23138
  thrift_spec = (
23139
    None, # 0
23140
    (1, TType.I64, 'offset', None, None, ), # 1
23141
    (2, TType.I64, 'limit', None, None, ), # 2
23142
  )
23143
 
23144
  def __init__(self, offset=None, limit=None,):
23145
    self.offset = offset
23146
    self.limit = limit
23147
 
23148
  def read(self, iprot):
23149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23151
      return
23152
    iprot.readStructBegin()
23153
    while True:
23154
      (fname, ftype, fid) = iprot.readFieldBegin()
23155
      if ftype == TType.STOP:
23156
        break
23157
      if fid == 1:
23158
        if ftype == TType.I64:
23159
          self.offset = iprot.readI64();
23160
        else:
23161
          iprot.skip(ftype)
23162
      elif fid == 2:
23163
        if ftype == TType.I64:
23164
          self.limit = iprot.readI64();
23165
        else:
23166
          iprot.skip(ftype)
23167
      else:
23168
        iprot.skip(ftype)
23169
      iprot.readFieldEnd()
23170
    iprot.readStructEnd()
23171
 
23172
  def write(self, oprot):
23173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23175
      return
23176
    oprot.writeStructBegin('getSnapdealItems_args')
23177
    if self.offset is not None:
23178
      oprot.writeFieldBegin('offset', TType.I64, 1)
23179
      oprot.writeI64(self.offset)
23180
      oprot.writeFieldEnd()
23181
    if self.limit is not None:
23182
      oprot.writeFieldBegin('limit', TType.I64, 2)
23183
      oprot.writeI64(self.limit)
23184
      oprot.writeFieldEnd()
23185
    oprot.writeFieldStop()
23186
    oprot.writeStructEnd()
23187
 
23188
  def validate(self):
23189
    return
23190
 
23191
 
23192
  def __repr__(self):
23193
    L = ['%s=%r' % (key, value)
23194
      for key, value in self.__dict__.iteritems()]
23195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23196
 
23197
  def __eq__(self, other):
23198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23199
 
23200
  def __ne__(self, other):
23201
    return not (self == other)
23202
 
23203
class getSnapdealItems_result:
23204
  """
23205
  Attributes:
23206
   - success
23207
  """
23208
 
23209
  thrift_spec = (
23210
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
23211
  )
23212
 
23213
  def __init__(self, success=None,):
23214
    self.success = success
23215
 
23216
  def read(self, iprot):
23217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23219
      return
23220
    iprot.readStructBegin()
23221
    while True:
23222
      (fname, ftype, fid) = iprot.readFieldBegin()
23223
      if ftype == TType.STOP:
23224
        break
23225
      if fid == 0:
23226
        if ftype == TType.LIST:
23227
          self.success = []
9155 kshitij.so 23228
          (_etype523, _size520) = iprot.readListBegin()
23229
          for _i524 in xrange(_size520):
9242 kshitij.so 23230
            _elem525 = SnapdealItemDetails()
9155 kshitij.so 23231
            _elem525.read(iprot)
23232
            self.success.append(_elem525)
8739 vikram.rag 23233
          iprot.readListEnd()
23234
        else:
23235
          iprot.skip(ftype)
23236
      else:
23237
        iprot.skip(ftype)
23238
      iprot.readFieldEnd()
23239
    iprot.readStructEnd()
23240
 
23241
  def write(self, oprot):
23242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23244
      return
9242 kshitij.so 23245
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 23246
    if self.success is not None:
23247
      oprot.writeFieldBegin('success', TType.LIST, 0)
23248
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 23249
      for iter526 in self.success:
23250
        iter526.write(oprot)
8739 vikram.rag 23251
      oprot.writeListEnd()
23252
      oprot.writeFieldEnd()
23253
    oprot.writeFieldStop()
23254
    oprot.writeStructEnd()
23255
 
23256
  def validate(self):
23257
    return
23258
 
23259
 
23260
  def __repr__(self):
23261
    L = ['%s=%r' % (key, value)
23262
      for key, value in self.__dict__.iteritems()]
23263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23264
 
23265
  def __eq__(self, other):
23266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23267
 
23268
  def __ne__(self, other):
23269
    return not (self == other)
9242 kshitij.so 23270
 
23271
class searchSnapdealItems_args:
23272
  """
23273
  Attributes:
23274
   - searchTerm
23275
   - offset
23276
   - limit
23277
  """
23278
 
23279
  thrift_spec = (
23280
    None, # 0
23281
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
23282
    (2, TType.I64, 'offset', None, None, ), # 2
23283
    (3, TType.I64, 'limit', None, None, ), # 3
23284
  )
23285
 
23286
  def __init__(self, searchTerm=None, offset=None, limit=None,):
23287
    self.searchTerm = searchTerm
23288
    self.offset = offset
23289
    self.limit = limit
23290
 
23291
  def read(self, iprot):
23292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23294
      return
23295
    iprot.readStructBegin()
23296
    while True:
23297
      (fname, ftype, fid) = iprot.readFieldBegin()
23298
      if ftype == TType.STOP:
23299
        break
23300
      if fid == 1:
23301
        if ftype == TType.LIST:
23302
          self.searchTerm = []
23303
          (_etype530, _size527) = iprot.readListBegin()
23304
          for _i531 in xrange(_size527):
23305
            _elem532 = iprot.readString();
23306
            self.searchTerm.append(_elem532)
23307
          iprot.readListEnd()
23308
        else:
23309
          iprot.skip(ftype)
23310
      elif fid == 2:
23311
        if ftype == TType.I64:
23312
          self.offset = iprot.readI64();
23313
        else:
23314
          iprot.skip(ftype)
23315
      elif fid == 3:
23316
        if ftype == TType.I64:
23317
          self.limit = iprot.readI64();
23318
        else:
23319
          iprot.skip(ftype)
23320
      else:
23321
        iprot.skip(ftype)
23322
      iprot.readFieldEnd()
23323
    iprot.readStructEnd()
23324
 
23325
  def write(self, oprot):
23326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23328
      return
23329
    oprot.writeStructBegin('searchSnapdealItems_args')
23330
    if self.searchTerm is not None:
23331
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
23332
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
23333
      for iter533 in self.searchTerm:
23334
        oprot.writeString(iter533)
23335
      oprot.writeListEnd()
23336
      oprot.writeFieldEnd()
23337
    if self.offset is not None:
23338
      oprot.writeFieldBegin('offset', TType.I64, 2)
23339
      oprot.writeI64(self.offset)
23340
      oprot.writeFieldEnd()
23341
    if self.limit is not None:
23342
      oprot.writeFieldBegin('limit', TType.I64, 3)
23343
      oprot.writeI64(self.limit)
23344
      oprot.writeFieldEnd()
23345
    oprot.writeFieldStop()
23346
    oprot.writeStructEnd()
23347
 
23348
  def validate(self):
23349
    return
23350
 
23351
 
23352
  def __repr__(self):
23353
    L = ['%s=%r' % (key, value)
23354
      for key, value in self.__dict__.iteritems()]
23355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23356
 
23357
  def __eq__(self, other):
23358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23359
 
23360
  def __ne__(self, other):
23361
    return not (self == other)
23362
 
23363
class searchSnapdealItems_result:
23364
  """
23365
  Attributes:
23366
   - success
23367
  """
23368
 
23369
  thrift_spec = (
23370
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
23371
  )
23372
 
23373
  def __init__(self, success=None,):
23374
    self.success = success
23375
 
23376
  def read(self, iprot):
23377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23379
      return
23380
    iprot.readStructBegin()
23381
    while True:
23382
      (fname, ftype, fid) = iprot.readFieldBegin()
23383
      if ftype == TType.STOP:
23384
        break
23385
      if fid == 0:
23386
        if ftype == TType.LIST:
23387
          self.success = []
23388
          (_etype537, _size534) = iprot.readListBegin()
23389
          for _i538 in xrange(_size534):
23390
            _elem539 = SnapdealItemDetails()
23391
            _elem539.read(iprot)
23392
            self.success.append(_elem539)
23393
          iprot.readListEnd()
23394
        else:
23395
          iprot.skip(ftype)
23396
      else:
23397
        iprot.skip(ftype)
23398
      iprot.readFieldEnd()
23399
    iprot.readStructEnd()
23400
 
23401
  def write(self, oprot):
23402
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23403
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23404
      return
23405
    oprot.writeStructBegin('searchSnapdealItems_result')
23406
    if self.success is not None:
23407
      oprot.writeFieldBegin('success', TType.LIST, 0)
23408
      oprot.writeListBegin(TType.STRUCT, len(self.success))
23409
      for iter540 in self.success:
23410
        iter540.write(oprot)
23411
      oprot.writeListEnd()
23412
      oprot.writeFieldEnd()
23413
    oprot.writeFieldStop()
23414
    oprot.writeStructEnd()
23415
 
23416
  def validate(self):
23417
    return
23418
 
23419
 
23420
  def __repr__(self):
23421
    L = ['%s=%r' % (key, value)
23422
      for key, value in self.__dict__.iteritems()]
23423
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23424
 
23425
  def __eq__(self, other):
23426
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23427
 
23428
  def __ne__(self, other):
23429
    return not (self == other)
23430
 
23431
class getCountForSnapdealItems_args:
23432
 
23433
  thrift_spec = (
23434
  )
23435
 
23436
  def read(self, iprot):
23437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23439
      return
23440
    iprot.readStructBegin()
23441
    while True:
23442
      (fname, ftype, fid) = iprot.readFieldBegin()
23443
      if ftype == TType.STOP:
23444
        break
23445
      else:
23446
        iprot.skip(ftype)
23447
      iprot.readFieldEnd()
23448
    iprot.readStructEnd()
23449
 
23450
  def write(self, oprot):
23451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23453
      return
23454
    oprot.writeStructBegin('getCountForSnapdealItems_args')
23455
    oprot.writeFieldStop()
23456
    oprot.writeStructEnd()
23457
 
23458
  def validate(self):
23459
    return
23460
 
23461
 
23462
  def __repr__(self):
23463
    L = ['%s=%r' % (key, value)
23464
      for key, value in self.__dict__.iteritems()]
23465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23466
 
23467
  def __eq__(self, other):
23468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23469
 
23470
  def __ne__(self, other):
23471
    return not (self == other)
23472
 
23473
class getCountForSnapdealItems_result:
23474
  """
23475
  Attributes:
23476
   - success
23477
  """
23478
 
23479
  thrift_spec = (
23480
    (0, TType.I64, 'success', None, None, ), # 0
23481
  )
23482
 
23483
  def __init__(self, success=None,):
23484
    self.success = success
23485
 
23486
  def read(self, iprot):
23487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23489
      return
23490
    iprot.readStructBegin()
23491
    while True:
23492
      (fname, ftype, fid) = iprot.readFieldBegin()
23493
      if ftype == TType.STOP:
23494
        break
23495
      if fid == 0:
23496
        if ftype == TType.I64:
23497
          self.success = iprot.readI64();
23498
        else:
23499
          iprot.skip(ftype)
23500
      else:
23501
        iprot.skip(ftype)
23502
      iprot.readFieldEnd()
23503
    iprot.readStructEnd()
23504
 
23505
  def write(self, oprot):
23506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23508
      return
23509
    oprot.writeStructBegin('getCountForSnapdealItems_result')
23510
    if self.success is not None:
23511
      oprot.writeFieldBegin('success', TType.I64, 0)
23512
      oprot.writeI64(self.success)
23513
      oprot.writeFieldEnd()
23514
    oprot.writeFieldStop()
23515
    oprot.writeStructEnd()
23516
 
23517
  def validate(self):
23518
    return
23519
 
23520
 
23521
  def __repr__(self):
23522
    L = ['%s=%r' % (key, value)
23523
      for key, value in self.__dict__.iteritems()]
23524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23525
 
23526
  def __eq__(self, other):
23527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23528
 
23529
  def __ne__(self, other):
23530
    return not (self == other)
23531
 
23532
class getSnapdealSearchResultCount_args:
23533
  """
23534
  Attributes:
23535
   - searchTerm
23536
  """
23537
 
23538
  thrift_spec = (
23539
    None, # 0
23540
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
23541
  )
23542
 
23543
  def __init__(self, searchTerm=None,):
23544
    self.searchTerm = searchTerm
23545
 
23546
  def read(self, iprot):
23547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23549
      return
23550
    iprot.readStructBegin()
23551
    while True:
23552
      (fname, ftype, fid) = iprot.readFieldBegin()
23553
      if ftype == TType.STOP:
23554
        break
23555
      if fid == 1:
23556
        if ftype == TType.LIST:
23557
          self.searchTerm = []
23558
          (_etype544, _size541) = iprot.readListBegin()
23559
          for _i545 in xrange(_size541):
23560
            _elem546 = iprot.readString();
23561
            self.searchTerm.append(_elem546)
23562
          iprot.readListEnd()
23563
        else:
23564
          iprot.skip(ftype)
23565
      else:
23566
        iprot.skip(ftype)
23567
      iprot.readFieldEnd()
23568
    iprot.readStructEnd()
23569
 
23570
  def write(self, oprot):
23571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23573
      return
23574
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
23575
    if self.searchTerm is not None:
23576
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
23577
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
23578
      for iter547 in self.searchTerm:
23579
        oprot.writeString(iter547)
23580
      oprot.writeListEnd()
23581
      oprot.writeFieldEnd()
23582
    oprot.writeFieldStop()
23583
    oprot.writeStructEnd()
23584
 
23585
  def validate(self):
23586
    return
23587
 
23588
 
23589
  def __repr__(self):
23590
    L = ['%s=%r' % (key, value)
23591
      for key, value in self.__dict__.iteritems()]
23592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23593
 
23594
  def __eq__(self, other):
23595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23596
 
23597
  def __ne__(self, other):
23598
    return not (self == other)
23599
 
23600
class getSnapdealSearchResultCount_result:
23601
  """
23602
  Attributes:
23603
   - success
23604
  """
23605
 
23606
  thrift_spec = (
23607
    (0, TType.I64, 'success', None, None, ), # 0
23608
  )
23609
 
23610
  def __init__(self, success=None,):
23611
    self.success = success
23612
 
23613
  def read(self, iprot):
23614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23616
      return
23617
    iprot.readStructBegin()
23618
    while True:
23619
      (fname, ftype, fid) = iprot.readFieldBegin()
23620
      if ftype == TType.STOP:
23621
        break
23622
      if fid == 0:
23623
        if ftype == TType.I64:
23624
          self.success = iprot.readI64();
23625
        else:
23626
          iprot.skip(ftype)
23627
      else:
23628
        iprot.skip(ftype)
23629
      iprot.readFieldEnd()
23630
    iprot.readStructEnd()
23631
 
23632
  def write(self, oprot):
23633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23635
      return
23636
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
23637
    if self.success is not None:
23638
      oprot.writeFieldBegin('success', TType.I64, 0)
23639
      oprot.writeI64(self.success)
23640
      oprot.writeFieldEnd()
23641
    oprot.writeFieldStop()
23642
    oprot.writeStructEnd()
23643
 
23644
  def validate(self):
23645
    return
23646
 
23647
 
23648
  def __repr__(self):
23649
    L = ['%s=%r' % (key, value)
23650
      for key, value in self.__dict__.iteritems()]
23651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23652
 
23653
  def __eq__(self, other):
23654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23655
 
23656
  def __ne__(self, other):
23657
    return not (self == other)
9299 kshitij.so 23658
 
23659
class getPrefferedInsurerForItem_args:
23660
  """
23661
  Attributes:
23662
   - itemId
23663
   - insurerType
23664
  """
23665
 
23666
  thrift_spec = (
23667
    None, # 0
23668
    (1, TType.I64, 'itemId', None, None, ), # 1
23669
    (2, TType.I32, 'insurerType', None, None, ), # 2
23670
  )
23671
 
23672
  def __init__(self, itemId=None, insurerType=None,):
23673
    self.itemId = itemId
23674
    self.insurerType = insurerType
23675
 
23676
  def read(self, iprot):
23677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23679
      return
23680
    iprot.readStructBegin()
23681
    while True:
23682
      (fname, ftype, fid) = iprot.readFieldBegin()
23683
      if ftype == TType.STOP:
23684
        break
23685
      if fid == 1:
23686
        if ftype == TType.I64:
23687
          self.itemId = iprot.readI64();
23688
        else:
23689
          iprot.skip(ftype)
23690
      elif fid == 2:
23691
        if ftype == TType.I32:
23692
          self.insurerType = iprot.readI32();
23693
        else:
23694
          iprot.skip(ftype)
23695
      else:
23696
        iprot.skip(ftype)
23697
      iprot.readFieldEnd()
23698
    iprot.readStructEnd()
23699
 
23700
  def write(self, oprot):
23701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23703
      return
23704
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
23705
    if self.itemId is not None:
23706
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23707
      oprot.writeI64(self.itemId)
23708
      oprot.writeFieldEnd()
23709
    if self.insurerType is not None:
23710
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
23711
      oprot.writeI32(self.insurerType)
23712
      oprot.writeFieldEnd()
23713
    oprot.writeFieldStop()
23714
    oprot.writeStructEnd()
23715
 
23716
  def validate(self):
23717
    return
23718
 
23719
 
23720
  def __repr__(self):
23721
    L = ['%s=%r' % (key, value)
23722
      for key, value in self.__dict__.iteritems()]
23723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23724
 
23725
  def __eq__(self, other):
23726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23727
 
23728
  def __ne__(self, other):
23729
    return not (self == other)
23730
 
23731
class getPrefferedInsurerForItem_result:
23732
  """
23733
  Attributes:
23734
   - success
23735
  """
23736
 
23737
  thrift_spec = (
23738
    (0, TType.I64, 'success', None, None, ), # 0
23739
  )
23740
 
23741
  def __init__(self, success=None,):
23742
    self.success = success
23743
 
23744
  def read(self, iprot):
23745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23747
      return
23748
    iprot.readStructBegin()
23749
    while True:
23750
      (fname, ftype, fid) = iprot.readFieldBegin()
23751
      if ftype == TType.STOP:
23752
        break
23753
      if fid == 0:
23754
        if ftype == TType.I64:
23755
          self.success = iprot.readI64();
23756
        else:
23757
          iprot.skip(ftype)
23758
      else:
23759
        iprot.skip(ftype)
23760
      iprot.readFieldEnd()
23761
    iprot.readStructEnd()
23762
 
23763
  def write(self, oprot):
23764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23766
      return
23767
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
23768
    if self.success is not None:
23769
      oprot.writeFieldBegin('success', TType.I64, 0)
23770
      oprot.writeI64(self.success)
23771
      oprot.writeFieldEnd()
23772
    oprot.writeFieldStop()
23773
    oprot.writeStructEnd()
23774
 
23775
  def validate(self):
23776
    return
23777
 
23778
 
23779
  def __repr__(self):
23780
    L = ['%s=%r' % (key, value)
23781
      for key, value in self.__dict__.iteritems()]
23782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23783
 
23784
  def __eq__(self, other):
23785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23786
 
23787
  def __ne__(self, other):
23788
    return not (self == other)
9456 vikram.rag 23789
 
23790
class getSnapdealItembySkuAtSnapdeal_args:
23791
  """
23792
  Attributes:
23793
   - skuAtSnapdeal
23794
  """
23795
 
23796
  thrift_spec = None
23797
  def __init__(self, skuAtSnapdeal=None,):
23798
    self.skuAtSnapdeal = skuAtSnapdeal
23799
 
23800
  def read(self, iprot):
23801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23803
      return
23804
    iprot.readStructBegin()
23805
    while True:
23806
      (fname, ftype, fid) = iprot.readFieldBegin()
23807
      if ftype == TType.STOP:
23808
        break
23809
      if fid == -1:
23810
        if ftype == TType.STRING:
23811
          self.skuAtSnapdeal = iprot.readString();
23812
        else:
23813
          iprot.skip(ftype)
23814
      else:
23815
        iprot.skip(ftype)
23816
      iprot.readFieldEnd()
23817
    iprot.readStructEnd()
23818
 
23819
  def write(self, oprot):
23820
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23821
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23822
      return
23823
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
23824
    if self.skuAtSnapdeal is not None:
23825
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
23826
      oprot.writeString(self.skuAtSnapdeal)
23827
      oprot.writeFieldEnd()
23828
    oprot.writeFieldStop()
23829
    oprot.writeStructEnd()
23830
 
23831
  def validate(self):
23832
    return
23833
 
23834
 
23835
  def __repr__(self):
23836
    L = ['%s=%r' % (key, value)
23837
      for key, value in self.__dict__.iteritems()]
23838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23839
 
23840
  def __eq__(self, other):
23841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23842
 
23843
  def __ne__(self, other):
23844
    return not (self == other)
23845
 
23846
class getSnapdealItembySkuAtSnapdeal_result:
23847
  """
23848
  Attributes:
23849
   - success
23850
  """
23851
 
23852
  thrift_spec = (
23853
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
23854
  )
23855
 
23856
  def __init__(self, success=None,):
23857
    self.success = success
23858
 
23859
  def read(self, iprot):
23860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23862
      return
23863
    iprot.readStructBegin()
23864
    while True:
23865
      (fname, ftype, fid) = iprot.readFieldBegin()
23866
      if ftype == TType.STOP:
23867
        break
23868
      if fid == 0:
23869
        if ftype == TType.STRUCT:
23870
          self.success = SnapdealItem()
23871
          self.success.read(iprot)
23872
        else:
23873
          iprot.skip(ftype)
23874
      else:
23875
        iprot.skip(ftype)
23876
      iprot.readFieldEnd()
23877
    iprot.readStructEnd()
23878
 
23879
  def write(self, oprot):
23880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23882
      return
23883
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
23884
    if self.success is not None:
23885
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23886
      self.success.write(oprot)
23887
      oprot.writeFieldEnd()
23888
    oprot.writeFieldStop()
23889
    oprot.writeStructEnd()
23890
 
23891
  def validate(self):
23892
    return
23893
 
23894
 
23895
  def __repr__(self):
23896
    L = ['%s=%r' % (key, value)
23897
      for key, value in self.__dict__.iteritems()]
23898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23899
 
23900
  def __eq__(self, other):
23901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23902
 
23903
  def __ne__(self, other):
23904
    return not (self == other)
9621 manish.sha 23905
 
23906
class getProductFeedSubmit_args:
23907
  """
23908
  Attributes:
23909
   - catalogItemId
23910
  """
23911
 
23912
  thrift_spec = (
23913
    None, # 0
23914
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
23915
  )
23916
 
23917
  def __init__(self, catalogItemId=None,):
23918
    self.catalogItemId = catalogItemId
23919
 
23920
  def read(self, iprot):
23921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23923
      return
23924
    iprot.readStructBegin()
23925
    while True:
23926
      (fname, ftype, fid) = iprot.readFieldBegin()
23927
      if ftype == TType.STOP:
23928
        break
23929
      if fid == 1:
23930
        if ftype == TType.I64:
23931
          self.catalogItemId = iprot.readI64();
23932
        else:
23933
          iprot.skip(ftype)
23934
      else:
23935
        iprot.skip(ftype)
23936
      iprot.readFieldEnd()
23937
    iprot.readStructEnd()
23938
 
23939
  def write(self, oprot):
23940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23942
      return
23943
    oprot.writeStructBegin('getProductFeedSubmit_args')
23944
    if self.catalogItemId is not None:
23945
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
23946
      oprot.writeI64(self.catalogItemId)
23947
      oprot.writeFieldEnd()
23948
    oprot.writeFieldStop()
23949
    oprot.writeStructEnd()
23950
 
23951
  def validate(self):
23952
    return
23953
 
23954
 
23955
  def __repr__(self):
23956
    L = ['%s=%r' % (key, value)
23957
      for key, value in self.__dict__.iteritems()]
23958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23959
 
23960
  def __eq__(self, other):
23961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23962
 
23963
  def __ne__(self, other):
23964
    return not (self == other)
23965
 
23966
class getProductFeedSubmit_result:
23967
  """
23968
  Attributes:
23969
   - success
23970
   - cex
23971
  """
23972
 
23973
  thrift_spec = (
23974
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
23975
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
23976
  )
23977
 
23978
  def __init__(self, success=None, cex=None,):
23979
    self.success = success
23980
    self.cex = cex
23981
 
23982
  def read(self, iprot):
23983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23985
      return
23986
    iprot.readStructBegin()
23987
    while True:
23988
      (fname, ftype, fid) = iprot.readFieldBegin()
23989
      if ftype == TType.STOP:
23990
        break
23991
      if fid == 0:
23992
        if ftype == TType.STRUCT:
23993
          self.success = ProductFeedSubmit()
23994
          self.success.read(iprot)
23995
        else:
23996
          iprot.skip(ftype)
23997
      elif fid == 1:
23998
        if ftype == TType.STRUCT:
23999
          self.cex = CatalogServiceException()
24000
          self.cex.read(iprot)
24001
        else:
24002
          iprot.skip(ftype)
24003
      else:
24004
        iprot.skip(ftype)
24005
      iprot.readFieldEnd()
24006
    iprot.readStructEnd()
24007
 
24008
  def write(self, oprot):
24009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24011
      return
24012
    oprot.writeStructBegin('getProductFeedSubmit_result')
24013
    if self.success is not None:
24014
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24015
      self.success.write(oprot)
24016
      oprot.writeFieldEnd()
24017
    if self.cex is not None:
24018
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24019
      self.cex.write(oprot)
24020
      oprot.writeFieldEnd()
24021
    oprot.writeFieldStop()
24022
    oprot.writeStructEnd()
24023
 
24024
  def validate(self):
24025
    return
24026
 
24027
 
24028
  def __repr__(self):
24029
    L = ['%s=%r' % (key, value)
24030
      for key, value in self.__dict__.iteritems()]
24031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24032
 
24033
  def __eq__(self, other):
24034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24035
 
24036
  def __ne__(self, other):
24037
    return not (self == other)
24038
 
24039
class addProductFeedSubmit_args:
24040
  """
24041
  Attributes:
24042
   - productFeedSubmit
24043
  """
24044
 
24045
  thrift_spec = (
24046
    None, # 0
24047
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
24048
  )
24049
 
24050
  def __init__(self, productFeedSubmit=None,):
24051
    self.productFeedSubmit = productFeedSubmit
24052
 
24053
  def read(self, iprot):
24054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24056
      return
24057
    iprot.readStructBegin()
24058
    while True:
24059
      (fname, ftype, fid) = iprot.readFieldBegin()
24060
      if ftype == TType.STOP:
24061
        break
24062
      if fid == 1:
24063
        if ftype == TType.STRUCT:
24064
          self.productFeedSubmit = ProductFeedSubmit()
24065
          self.productFeedSubmit.read(iprot)
24066
        else:
24067
          iprot.skip(ftype)
24068
      else:
24069
        iprot.skip(ftype)
24070
      iprot.readFieldEnd()
24071
    iprot.readStructEnd()
24072
 
24073
  def write(self, oprot):
24074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24076
      return
24077
    oprot.writeStructBegin('addProductFeedSubmit_args')
24078
    if self.productFeedSubmit is not None:
24079
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
24080
      self.productFeedSubmit.write(oprot)
24081
      oprot.writeFieldEnd()
24082
    oprot.writeFieldStop()
24083
    oprot.writeStructEnd()
24084
 
24085
  def validate(self):
24086
    return
24087
 
24088
 
24089
  def __repr__(self):
24090
    L = ['%s=%r' % (key, value)
24091
      for key, value in self.__dict__.iteritems()]
24092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24093
 
24094
  def __eq__(self, other):
24095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24096
 
24097
  def __ne__(self, other):
24098
    return not (self == other)
24099
 
24100
class addProductFeedSubmit_result:
24101
  """
24102
  Attributes:
24103
   - success
24104
   - cex
24105
  """
24106
 
24107
  thrift_spec = (
24108
    (0, TType.BOOL, 'success', None, None, ), # 0
24109
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24110
  )
24111
 
24112
  def __init__(self, success=None, cex=None,):
24113
    self.success = success
24114
    self.cex = cex
24115
 
24116
  def read(self, iprot):
24117
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24118
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24119
      return
24120
    iprot.readStructBegin()
24121
    while True:
24122
      (fname, ftype, fid) = iprot.readFieldBegin()
24123
      if ftype == TType.STOP:
24124
        break
24125
      if fid == 0:
24126
        if ftype == TType.BOOL:
24127
          self.success = iprot.readBool();
24128
        else:
24129
          iprot.skip(ftype)
24130
      elif fid == 1:
24131
        if ftype == TType.STRUCT:
24132
          self.cex = CatalogServiceException()
24133
          self.cex.read(iprot)
24134
        else:
24135
          iprot.skip(ftype)
24136
      else:
24137
        iprot.skip(ftype)
24138
      iprot.readFieldEnd()
24139
    iprot.readStructEnd()
24140
 
24141
  def write(self, oprot):
24142
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24143
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24144
      return
24145
    oprot.writeStructBegin('addProductFeedSubmit_result')
24146
    if self.success is not None:
24147
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24148
      oprot.writeBool(self.success)
24149
      oprot.writeFieldEnd()
24150
    if self.cex is not None:
24151
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24152
      self.cex.write(oprot)
24153
      oprot.writeFieldEnd()
24154
    oprot.writeFieldStop()
24155
    oprot.writeStructEnd()
24156
 
24157
  def validate(self):
24158
    return
24159
 
24160
 
24161
  def __repr__(self):
24162
    L = ['%s=%r' % (key, value)
24163
      for key, value in self.__dict__.iteritems()]
24164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24165
 
24166
  def __eq__(self, other):
24167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24168
 
24169
  def __ne__(self, other):
24170
    return not (self == other)
24171
 
24172
class updateProductFeedSubmit_args:
24173
  """
24174
  Attributes:
24175
   - productFeedSubmit
24176
  """
24177
 
24178
  thrift_spec = (
24179
    None, # 0
24180
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
24181
  )
24182
 
24183
  def __init__(self, productFeedSubmit=None,):
24184
    self.productFeedSubmit = productFeedSubmit
24185
 
24186
  def read(self, iprot):
24187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24189
      return
24190
    iprot.readStructBegin()
24191
    while True:
24192
      (fname, ftype, fid) = iprot.readFieldBegin()
24193
      if ftype == TType.STOP:
24194
        break
24195
      if fid == 1:
24196
        if ftype == TType.STRUCT:
24197
          self.productFeedSubmit = ProductFeedSubmit()
24198
          self.productFeedSubmit.read(iprot)
24199
        else:
24200
          iprot.skip(ftype)
24201
      else:
24202
        iprot.skip(ftype)
24203
      iprot.readFieldEnd()
24204
    iprot.readStructEnd()
24205
 
24206
  def write(self, oprot):
24207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24209
      return
24210
    oprot.writeStructBegin('updateProductFeedSubmit_args')
24211
    if self.productFeedSubmit is not None:
24212
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
24213
      self.productFeedSubmit.write(oprot)
24214
      oprot.writeFieldEnd()
24215
    oprot.writeFieldStop()
24216
    oprot.writeStructEnd()
24217
 
24218
  def validate(self):
24219
    return
24220
 
24221
 
24222
  def __repr__(self):
24223
    L = ['%s=%r' % (key, value)
24224
      for key, value in self.__dict__.iteritems()]
24225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24226
 
24227
  def __eq__(self, other):
24228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24229
 
24230
  def __ne__(self, other):
24231
    return not (self == other)
24232
 
24233
class updateProductFeedSubmit_result:
24234
  """
24235
  Attributes:
24236
   - success
24237
   - cex
24238
  """
24239
 
24240
  thrift_spec = (
24241
    (0, TType.BOOL, 'success', None, None, ), # 0
24242
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24243
  )
24244
 
24245
  def __init__(self, success=None, cex=None,):
24246
    self.success = success
24247
    self.cex = cex
24248
 
24249
  def read(self, iprot):
24250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24252
      return
24253
    iprot.readStructBegin()
24254
    while True:
24255
      (fname, ftype, fid) = iprot.readFieldBegin()
24256
      if ftype == TType.STOP:
24257
        break
24258
      if fid == 0:
24259
        if ftype == TType.BOOL:
24260
          self.success = iprot.readBool();
24261
        else:
24262
          iprot.skip(ftype)
24263
      elif fid == 1:
24264
        if ftype == TType.STRUCT:
24265
          self.cex = CatalogServiceException()
24266
          self.cex.read(iprot)
24267
        else:
24268
          iprot.skip(ftype)
24269
      else:
24270
        iprot.skip(ftype)
24271
      iprot.readFieldEnd()
24272
    iprot.readStructEnd()
24273
 
24274
  def write(self, oprot):
24275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24277
      return
24278
    oprot.writeStructBegin('updateProductFeedSubmit_result')
24279
    if self.success is not None:
24280
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24281
      oprot.writeBool(self.success)
24282
      oprot.writeFieldEnd()
24283
    if self.cex is not None:
24284
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24285
      self.cex.write(oprot)
24286
      oprot.writeFieldEnd()
24287
    oprot.writeFieldStop()
24288
    oprot.writeStructEnd()
24289
 
24290
  def validate(self):
24291
    return
24292
 
24293
 
24294
  def __repr__(self):
24295
    L = ['%s=%r' % (key, value)
24296
      for key, value in self.__dict__.iteritems()]
24297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24298
 
24299
  def __eq__(self, other):
24300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24301
 
24302
  def __ne__(self, other):
24303
    return not (self == other)
24304
 
24305
class deleteProductFeedSubmit_args:
24306
  """
24307
  Attributes:
24308
   - catalogItemId
24309
  """
24310
 
24311
  thrift_spec = (
24312
    None, # 0
24313
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
24314
  )
24315
 
24316
  def __init__(self, catalogItemId=None,):
24317
    self.catalogItemId = catalogItemId
24318
 
24319
  def read(self, iprot):
24320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24322
      return
24323
    iprot.readStructBegin()
24324
    while True:
24325
      (fname, ftype, fid) = iprot.readFieldBegin()
24326
      if ftype == TType.STOP:
24327
        break
24328
      if fid == 1:
24329
        if ftype == TType.I64:
24330
          self.catalogItemId = iprot.readI64();
24331
        else:
24332
          iprot.skip(ftype)
24333
      else:
24334
        iprot.skip(ftype)
24335
      iprot.readFieldEnd()
24336
    iprot.readStructEnd()
24337
 
24338
  def write(self, oprot):
24339
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24340
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24341
      return
24342
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
24343
    if self.catalogItemId is not None:
24344
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
24345
      oprot.writeI64(self.catalogItemId)
24346
      oprot.writeFieldEnd()
24347
    oprot.writeFieldStop()
24348
    oprot.writeStructEnd()
24349
 
24350
  def validate(self):
24351
    return
24352
 
24353
 
24354
  def __repr__(self):
24355
    L = ['%s=%r' % (key, value)
24356
      for key, value in self.__dict__.iteritems()]
24357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24358
 
24359
  def __eq__(self, other):
24360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24361
 
24362
  def __ne__(self, other):
24363
    return not (self == other)
24364
 
24365
class deleteProductFeedSubmit_result:
24366
  """
24367
  Attributes:
24368
   - success
24369
   - cex
24370
  """
24371
 
24372
  thrift_spec = (
24373
    (0, TType.BOOL, 'success', None, None, ), # 0
24374
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24375
  )
24376
 
24377
  def __init__(self, success=None, cex=None,):
24378
    self.success = success
24379
    self.cex = cex
24380
 
24381
  def read(self, iprot):
24382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24384
      return
24385
    iprot.readStructBegin()
24386
    while True:
24387
      (fname, ftype, fid) = iprot.readFieldBegin()
24388
      if ftype == TType.STOP:
24389
        break
24390
      if fid == 0:
24391
        if ftype == TType.BOOL:
24392
          self.success = iprot.readBool();
24393
        else:
24394
          iprot.skip(ftype)
24395
      elif fid == 1:
24396
        if ftype == TType.STRUCT:
24397
          self.cex = CatalogServiceException()
24398
          self.cex.read(iprot)
24399
        else:
24400
          iprot.skip(ftype)
24401
      else:
24402
        iprot.skip(ftype)
24403
      iprot.readFieldEnd()
24404
    iprot.readStructEnd()
24405
 
24406
  def write(self, oprot):
24407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24409
      return
24410
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
24411
    if self.success is not None:
24412
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24413
      oprot.writeBool(self.success)
24414
      oprot.writeFieldEnd()
24415
    if self.cex is not None:
24416
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24417
      self.cex.write(oprot)
24418
      oprot.writeFieldEnd()
24419
    oprot.writeFieldStop()
24420
    oprot.writeStructEnd()
24421
 
24422
  def validate(self):
24423
    return
24424
 
24425
 
24426
  def __repr__(self):
24427
    L = ['%s=%r' % (key, value)
24428
      for key, value in self.__dict__.iteritems()]
24429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24430
 
24431
  def __eq__(self, other):
24432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24433
 
24434
  def __ne__(self, other):
24435
    return not (self == other)
24436
 
24437
class getAllProductFeedSubmit_args:
24438
 
24439
  thrift_spec = (
24440
  )
24441
 
24442
  def read(self, iprot):
24443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24445
      return
24446
    iprot.readStructBegin()
24447
    while True:
24448
      (fname, ftype, fid) = iprot.readFieldBegin()
24449
      if ftype == TType.STOP:
24450
        break
24451
      else:
24452
        iprot.skip(ftype)
24453
      iprot.readFieldEnd()
24454
    iprot.readStructEnd()
24455
 
24456
  def write(self, oprot):
24457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24459
      return
24460
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
24461
    oprot.writeFieldStop()
24462
    oprot.writeStructEnd()
24463
 
24464
  def validate(self):
24465
    return
24466
 
24467
 
24468
  def __repr__(self):
24469
    L = ['%s=%r' % (key, value)
24470
      for key, value in self.__dict__.iteritems()]
24471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24472
 
24473
  def __eq__(self, other):
24474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24475
 
24476
  def __ne__(self, other):
24477
    return not (self == other)
24478
 
24479
class getAllProductFeedSubmit_result:
24480
  """
24481
  Attributes:
24482
   - success
24483
   - cex
24484
  """
24485
 
24486
  thrift_spec = (
24487
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
24488
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24489
  )
24490
 
24491
  def __init__(self, success=None, cex=None,):
24492
    self.success = success
24493
    self.cex = cex
24494
 
24495
  def read(self, iprot):
24496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24498
      return
24499
    iprot.readStructBegin()
24500
    while True:
24501
      (fname, ftype, fid) = iprot.readFieldBegin()
24502
      if ftype == TType.STOP:
24503
        break
24504
      if fid == 0:
24505
        if ftype == TType.LIST:
24506
          self.success = []
24507
          (_etype551, _size548) = iprot.readListBegin()
24508
          for _i552 in xrange(_size548):
24509
            _elem553 = ProductFeedSubmit()
24510
            _elem553.read(iprot)
24511
            self.success.append(_elem553)
24512
          iprot.readListEnd()
24513
        else:
24514
          iprot.skip(ftype)
24515
      elif fid == 1:
24516
        if ftype == TType.STRUCT:
24517
          self.cex = CatalogServiceException()
24518
          self.cex.read(iprot)
24519
        else:
24520
          iprot.skip(ftype)
24521
      else:
24522
        iprot.skip(ftype)
24523
      iprot.readFieldEnd()
24524
    iprot.readStructEnd()
24525
 
24526
  def write(self, oprot):
24527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24529
      return
24530
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
24531
    if self.success is not None:
24532
      oprot.writeFieldBegin('success', TType.LIST, 0)
24533
      oprot.writeListBegin(TType.STRUCT, len(self.success))
24534
      for iter554 in self.success:
24535
        iter554.write(oprot)
24536
      oprot.writeListEnd()
24537
      oprot.writeFieldEnd()
24538
    if self.cex is not None:
24539
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24540
      self.cex.write(oprot)
24541
      oprot.writeFieldEnd()
24542
    oprot.writeFieldStop()
24543
    oprot.writeStructEnd()
24544
 
24545
  def validate(self):
24546
    return
24547
 
24548
 
24549
  def __repr__(self):
24550
    L = ['%s=%r' % (key, value)
24551
      for key, value in self.__dict__.iteritems()]
24552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24553
 
24554
  def __eq__(self, other):
24555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24556
 
24557
  def __ne__(self, other):
24558
    return not (self == other)
9724 kshitij.so 24559
 
24560
class getMarketplacedetailsForItem_args:
24561
  """
24562
  Attributes:
24563
   - itemId
24564
   - sourceId
24565
  """
24566
 
24567
  thrift_spec = (
24568
    None, # 0
24569
    (1, TType.I64, 'itemId', None, None, ), # 1
24570
    (2, TType.I64, 'sourceId', None, None, ), # 2
24571
  )
24572
 
24573
  def __init__(self, itemId=None, sourceId=None,):
24574
    self.itemId = itemId
24575
    self.sourceId = sourceId
24576
 
24577
  def read(self, iprot):
24578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24580
      return
24581
    iprot.readStructBegin()
24582
    while True:
24583
      (fname, ftype, fid) = iprot.readFieldBegin()
24584
      if ftype == TType.STOP:
24585
        break
24586
      if fid == 1:
24587
        if ftype == TType.I64:
24588
          self.itemId = iprot.readI64();
24589
        else:
24590
          iprot.skip(ftype)
24591
      elif fid == 2:
24592
        if ftype == TType.I64:
24593
          self.sourceId = iprot.readI64();
24594
        else:
24595
          iprot.skip(ftype)
24596
      else:
24597
        iprot.skip(ftype)
24598
      iprot.readFieldEnd()
24599
    iprot.readStructEnd()
24600
 
24601
  def write(self, oprot):
24602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24604
      return
24605
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
24606
    if self.itemId is not None:
24607
      oprot.writeFieldBegin('itemId', TType.I64, 1)
24608
      oprot.writeI64(self.itemId)
24609
      oprot.writeFieldEnd()
24610
    if self.sourceId is not None:
24611
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
24612
      oprot.writeI64(self.sourceId)
24613
      oprot.writeFieldEnd()
24614
    oprot.writeFieldStop()
24615
    oprot.writeStructEnd()
24616
 
24617
  def validate(self):
24618
    return
24619
 
24620
 
24621
  def __repr__(self):
24622
    L = ['%s=%r' % (key, value)
24623
      for key, value in self.__dict__.iteritems()]
24624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24625
 
24626
  def __eq__(self, other):
24627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24628
 
24629
  def __ne__(self, other):
24630
    return not (self == other)
24631
 
24632
class getMarketplacedetailsForItem_result:
24633
  """
24634
  Attributes:
24635
   - success
24636
  """
24637
 
24638
  thrift_spec = (
24639
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
24640
  )
24641
 
24642
  def __init__(self, success=None,):
24643
    self.success = success
24644
 
24645
  def read(self, iprot):
24646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24648
      return
24649
    iprot.readStructBegin()
24650
    while True:
24651
      (fname, ftype, fid) = iprot.readFieldBegin()
24652
      if ftype == TType.STOP:
24653
        break
24654
      if fid == 0:
24655
        if ftype == TType.STRUCT:
24656
          self.success = MarketplaceItems()
24657
          self.success.read(iprot)
24658
        else:
24659
          iprot.skip(ftype)
24660
      else:
24661
        iprot.skip(ftype)
24662
      iprot.readFieldEnd()
24663
    iprot.readStructEnd()
24664
 
24665
  def write(self, oprot):
24666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24668
      return
24669
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
24670
    if self.success is not None:
24671
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24672
      self.success.write(oprot)
24673
      oprot.writeFieldEnd()
24674
    oprot.writeFieldStop()
24675
    oprot.writeStructEnd()
24676
 
24677
  def validate(self):
24678
    return
24679
 
24680
 
24681
  def __repr__(self):
24682
    L = ['%s=%r' % (key, value)
24683
      for key, value in self.__dict__.iteritems()]
24684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24685
 
24686
  def __eq__(self, other):
24687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24688
 
24689
  def __ne__(self, other):
24690
    return not (self == other)
24691
 
24692
class updateMarketplaceAttributesForItem_args:
24693
  """
24694
  Attributes:
24695
   - marketPlaceItem
24696
  """
24697
 
24698
  thrift_spec = (
24699
    None, # 0
24700
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
24701
  )
24702
 
24703
  def __init__(self, marketPlaceItem=None,):
24704
    self.marketPlaceItem = marketPlaceItem
24705
 
24706
  def read(self, iprot):
24707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24709
      return
24710
    iprot.readStructBegin()
24711
    while True:
24712
      (fname, ftype, fid) = iprot.readFieldBegin()
24713
      if ftype == TType.STOP:
24714
        break
24715
      if fid == 1:
24716
        if ftype == TType.STRUCT:
24717
          self.marketPlaceItem = MarketplaceItems()
24718
          self.marketPlaceItem.read(iprot)
24719
        else:
24720
          iprot.skip(ftype)
24721
      else:
24722
        iprot.skip(ftype)
24723
      iprot.readFieldEnd()
24724
    iprot.readStructEnd()
24725
 
24726
  def write(self, oprot):
24727
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24728
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24729
      return
24730
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
24731
    if self.marketPlaceItem is not None:
24732
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
24733
      self.marketPlaceItem.write(oprot)
24734
      oprot.writeFieldEnd()
24735
    oprot.writeFieldStop()
24736
    oprot.writeStructEnd()
24737
 
24738
  def validate(self):
24739
    return
24740
 
24741
 
24742
  def __repr__(self):
24743
    L = ['%s=%r' % (key, value)
24744
      for key, value in self.__dict__.iteritems()]
24745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24746
 
24747
  def __eq__(self, other):
24748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24749
 
24750
  def __ne__(self, other):
24751
    return not (self == other)
24752
 
24753
class updateMarketplaceAttributesForItem_result:
24754
  """
24755
  Attributes:
24756
   - success
24757
  """
24758
 
24759
  thrift_spec = (
24760
    (0, TType.BOOL, 'success', None, None, ), # 0
24761
  )
24762
 
24763
  def __init__(self, success=None,):
24764
    self.success = success
24765
 
24766
  def read(self, iprot):
24767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24769
      return
24770
    iprot.readStructBegin()
24771
    while True:
24772
      (fname, ftype, fid) = iprot.readFieldBegin()
24773
      if ftype == TType.STOP:
24774
        break
24775
      if fid == 0:
24776
        if ftype == TType.BOOL:
24777
          self.success = iprot.readBool();
24778
        else:
24779
          iprot.skip(ftype)
24780
      else:
24781
        iprot.skip(ftype)
24782
      iprot.readFieldEnd()
24783
    iprot.readStructEnd()
24784
 
24785
  def write(self, oprot):
24786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24788
      return
24789
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
24790
    if self.success is not None:
24791
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24792
      oprot.writeBool(self.success)
24793
      oprot.writeFieldEnd()
24794
    oprot.writeFieldStop()
24795
    oprot.writeStructEnd()
24796
 
24797
  def validate(self):
24798
    return
24799
 
24800
 
24801
  def __repr__(self):
24802
    L = ['%s=%r' % (key, value)
24803
      for key, value in self.__dict__.iteritems()]
24804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24805
 
24806
  def __eq__(self, other):
24807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24808
 
24809
  def __ne__(self, other):
24810
    return not (self == other)