Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addItem(self, item):
21
    """
22
    Availability and inventory attributes
23
 
24
    Parameters:
25
     - item
26
    """
27
    pass
28
 
29
  def updateItem(self, item):
30
    """
31
    Parameters:
32
     - item
33
    """
34
    pass
35
 
36
  def isActive(self, itemId):
37
    """
38
    Checks if the item given to the corresponding itemId is active. If it's active,
39
    whether it's risky and if it's risky, its inventory position.
40
 
41
    Parameters:
42
     - itemId
43
    """
44
    pass
45
 
7438 amit.gupta 46
  def getItemsStatus(self, itemIds):
47
    """
48
    Parameters:
49
     - itemIds
50
    """
51
    pass
52
 
5944 mandeep.dh 53
  def getItemStatusDescription(self, itemId):
54
    """
55
    Parameters:
56
     - itemId
57
    """
58
    pass
59
 
60
  def startItemOn(self, item_id, timestamp):
61
    """
62
    Parameters:
63
     - item_id
64
     - timestamp
65
    """
66
    pass
67
 
68
  def retireItemOn(self, item_id, timestamp):
69
    """
70
    Parameters:
71
     - item_id
72
     - timestamp
73
    """
74
    pass
75
 
76
  def changeItemStatus(self, item_id, timestamp, newstatus):
77
    """
78
    Parameters:
79
     - item_id
80
     - timestamp
81
     - newstatus
82
    """
83
    pass
84
 
85
  def getItem(self, item_id):
86
    """
87
    Parameters:
88
     - item_id
89
    """
90
    pass
91
 
92
  def getItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getValidItemsByCatalogId(self, catalog_item_id):
100
    """
101
    Parameters:
102
     - catalog_item_id
103
    """
104
    pass
105
 
106
  def getAllItems(self, isActive):
107
    """
108
    Parameters:
109
     - isActive
110
    """
111
    pass
112
 
113
  def getAllItemsByStatus(self, itemStatus):
114
    """
115
    Parameters:
116
     - itemStatus
117
    """
118
    pass
119
 
9253 rajveer 120
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 121
    """
122
    Parameters:
123
     - entityId
124
     - category
125
     - brand
126
     - modelName
127
     - modelNumber
9253 rajveer 128
     - isAndroid
5944 mandeep.dh 129
    """
130
    pass
131
 
132
  def getAllItemsInRange(self, offset, limit):
133
    """
134
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
135
 
136
    Parameters:
137
     - offset
138
     - limit
139
    """
140
    pass
141
 
142
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
143
    """
144
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
145
 
146
    Parameters:
147
     - itemStatus
148
     - offset
149
     - limit
150
    """
151
    pass
152
 
153
  def getItemCountByStatus(self, useStatus, itemStatus):
154
    """
155
    Gets a count of all items by status
156
 
157
    Parameters:
158
     - useStatus
159
     - itemStatus
160
    """
161
    pass
162
 
163
  def getBestSellers(self, ):
164
    pass
165
 
166
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
167
    """
168
    Parameters:
169
     - beginIndex
170
     - totalItems
171
     - brand
172
     - category
173
    """
174
    pass
175
 
176
  def getBestSellersCount(self, ):
177
    pass
178
 
179
  def getBestDeals(self, ):
180
    pass
181
 
182
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
183
    """
184
    Parameters:
185
     - beginIndex
186
     - totalItems
187
     - brand
188
     - category
189
    """
190
    pass
191
 
192
  def getBestDealsCount(self, ):
193
    pass
194
 
195
  def getComingSoon(self, ):
196
    pass
197
 
198
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
199
    """
200
    Parameters:
201
     - beginIndex
202
     - totalItems
203
     - brand
204
     - category
205
    """
206
    pass
207
 
208
  def getComingSoonCount(self, ):
209
    pass
210
 
211
  def getLatestArrivals(self, ):
212
    """
213
    Returns a list of items sorted in the descending order by start date.
214
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
215
    """
216
    pass
217
 
218
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
219
    """
220
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
221
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
222
 
223
    Parameters:
224
     - beginIndex
225
     - totalItems
226
     - brand
227
     - categories
228
    """
229
    pass
230
 
231
  def getLatestArrivalsCount(self, ):
232
    """
233
    Get the total number of latest arrivals we are willing to show.
234
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
235
    """
236
    pass
237
 
238
  def generateNewEntityID(self, ):
239
    pass
240
 
241
  def addCategory(self, category):
242
    """
243
    All category related functions
244
 
245
    Parameters:
246
     - category
247
    """
248
    pass
249
 
250
  def getCategory(self, id):
251
    """
252
    Parameters:
253
     - id
254
    """
255
    pass
256
 
257
  def getAllCategories(self, ):
258
    pass
259
 
260
  def getAllSimilarItems(self, itemId):
261
    """
262
    Returns the list of similar items.
263
 
264
    Parameters:
265
     - itemId
266
    """
267
    pass
268
 
269
  def addSimilarItem(self, itemId, catalogItemId):
270
    """
271
    Adds similar item.
272
 
273
    Parameters:
274
     - itemId
275
     - catalogItemId
276
    """
277
    pass
278
 
6512 kshitij.so 279
  def addTag(self, displayName, itemId):
280
    """
281
    Tag Related
282
 
283
    Parameters:
284
     - displayName
285
     - itemId
286
    """
287
    pass
288
 
289
  def deleteEntityTag(self, displayName, itemId):
290
    """
291
    Parameters:
292
     - displayName
293
     - itemId
294
    """
295
    pass
296
 
297
  def deleteTag(self, displayName):
298
    """
299
    Parameters:
300
     - displayName
301
    """
302
    pass
303
 
304
  def getAllTags(self, ):
305
    pass
306
 
307
  def getAllEntitiesByTagName(self, displayName):
308
    """
309
    Parameters:
310
     - displayName
311
    """
312
    pass
313
 
6845 amit.gupta 314
  def getAllEntityTags(self, ):
315
    pass
316
 
8590 kshitij.so 317
  def addBanner(self, bannerCongregate):
6850 kshitij.so 318
    """
8579 kshitij.so 319
    Banner Related
320
 
6850 kshitij.so 321
    Parameters:
8590 kshitij.so 322
     - bannerCongregate
6850 kshitij.so 323
    """
324
    pass
325
 
8579 kshitij.so 326
  def updateBanner(self, banner):
327
    """
328
    Parameters:
329
     - banner
330
    """
331
    pass
332
 
6850 kshitij.so 333
  def getAllBanners(self, ):
334
    pass
335
 
9155 kshitij.so 336
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 337
    """
338
    Parameters:
339
     - bannerName
9155 kshitij.so 340
     - bannerType
6850 kshitij.so 341
    """
342
    pass
343
 
9155 kshitij.so 344
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 345
    """
346
    Parameters:
347
     - bannerName
9155 kshitij.so 348
     - bannerType
6850 kshitij.so 349
    """
350
    pass
351
 
352
  def getActiveBanners(self, ):
353
    pass
354
 
8579 kshitij.so 355
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 356
    """
357
    Parameters:
8579 kshitij.so 358
     - bannerMaps
6849 kshitij.so 359
    """
360
    pass
361
 
8579 kshitij.so 362
  def updateBannerMap(self, bannerMap):
363
    """
364
    Parameters:
365
     - bannerMap
366
    """
367
    pass
368
 
6849 kshitij.so 369
  def deleteBannerMap(self, bannerName):
370
    """
371
    Parameters:
372
     - bannerName
373
    """
374
    pass
375
 
9155 kshitij.so 376
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 377
    """
378
    Parameters:
379
     - bannerName
9155 kshitij.so 380
     - bannerType
6849 kshitij.so 381
    """
382
    pass
383
 
8579 kshitij.so 384
  def addBannerUri(self, bannerUriMappings):
385
    """
386
    Parameters:
387
     - bannerUriMappings
388
    """
389
    pass
390
 
9155 kshitij.so 391
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 392
    """
393
    Parameters:
394
     - bannerName
9155 kshitij.so 395
     - bannerType
8579 kshitij.so 396
    """
397
    pass
398
 
399
  def addCampaign(self, campaign):
400
    """
401
    Parameters:
402
     - campaign
403
    """
404
    pass
405
 
406
  def getCampaigns(self, campaignName):
407
    """
408
    Parameters:
409
     - campaignName
410
    """
411
    pass
412
 
413
  def deleteCampaign(self, campaignId):
414
    """
415
    Parameters:
416
     - campaignId
417
    """
418
    pass
419
 
420
  def getAllCampaigns(self, ):
421
    pass
422
 
9155 kshitij.so 423
  def getActiveBannersForMobileSite(self, ):
424
    pass
425
 
5944 mandeep.dh 426
  def deleteSimilarItem(self, itemId, catalogItemId):
427
    """
428
    Delete similar item.
429
 
430
    Parameters:
431
     - itemId
432
     - catalogItemId
433
    """
434
    pass
435
 
436
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
437
    """
438
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
439
    If yes, returns the itemId else returns 0
440
 
441
    Parameters:
442
     - brand
443
     - modelNumber
444
     - modelName
445
     - color
446
    """
447
    pass
448
 
449
  def validateRiskyStatus(self, itemId):
450
    """
451
    Check wether item is risky and change status if inventory is not available for risky items
452
 
453
    Parameters:
454
     - itemId
455
    """
456
    pass
457
 
458
  def changeItemRiskyFlag(self, itemId, risky):
459
    """
460
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
461
 
462
    Parameters:
463
     - itemId
464
     - risky
465
    """
466
    pass
467
 
468
  def getItemsByRiskyFlag(self, ):
469
    """
470
    Returns list of items marked as risky.
471
    """
472
    pass
473
 
474
  def getItemsForMasterSheet(self, category, brand):
475
    """
476
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
477
 
478
    Parameters:
479
     - category
480
     - brand
481
    """
482
    pass
483
 
484
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
485
    """
486
    Returns list of catalog ids of items with same similarity index as of the given itemId
487
 
488
    Parameters:
489
     - beginIndex
490
     - totalItems
491
     - itemId
492
    """
493
    pass
494
 
495
  def addProductNotification(self, itemId, email):
496
    """
497
    Add user requests for out of stock items. Once user will ask for notify me an entry will
498
 
499
    Parameters:
500
     - itemId
501
     - email
502
    """
503
    pass
504
 
505
  def sendProductNotifications(self, ):
506
    """
507
    Send the product notifications to the users for items which has stock.
508
    """
509
    pass
510
 
511
  def getAllBrandsByCategory(self, categoryId):
512
    """
513
    Returns list of brand names for a given category Id
514
 
515
    Parameters:
516
     - categoryId
517
    """
518
    pass
519
 
520
  def getAllBrands(self, ):
521
    """
522
    Returns list of brand names
523
    """
524
    pass
525
 
526
  def getAllSources(self, ):
527
    """
528
    Return list of all sources
529
    """
530
    pass
531
 
532
  def getItemPricingBySource(self, itemId, sourceId):
533
    """
534
    Returns the pricing information of an item. If no information is found, exception will be thrown.
535
 
536
    Parameters:
537
     - itemId
538
     - sourceId
539
    """
540
    pass
541
 
542
  def addSourceItemPricing(self, sourceItemPricing):
543
    """
544
    Adds prices to be displayed corresponding to the item if user comes from a source.
545
    If item is not found or source is not found, it will throw exception.
546
 
547
    Parameters:
548
     - sourceItemPricing
549
    """
550
    pass
551
 
552
  def getAllSourcePricing(self, itemId):
553
    """
554
    Returns the list of source pricing information of an item.
555
    Raises an exception if item not found corresponding to itemId
556
 
557
    Parameters:
558
     - itemId
559
    """
560
    pass
561
 
562
  def getItemForSource(self, item_id, sourceId):
563
    """
564
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
565
 
566
    Parameters:
567
     - item_id
568
     - sourceId
569
    """
570
    pass
571
 
572
  def searchItemsInRange(self, searchTerms, offset, limit):
573
    """
574
    Searches items matching the the given terms in the catalog and returns results within the specified range.
575
 
576
    Parameters:
577
     - searchTerms
578
     - offset
579
     - limit
580
    """
581
    pass
582
 
583
  def getSearchResultCount(self, searchTerms):
584
    """
585
    Gets the count of search results for the given search terms so that the user can go through all the pages.
586
 
587
    Parameters:
588
     - searchTerms
589
    """
590
    pass
591
 
592
  def getProductNotifications(self, startDateTime):
593
    """
594
    Returns a list of product notifications added after a supplied datetime
595
 
596
    Parameters:
597
     - startDateTime
598
    """
599
    pass
600
 
7897 amar.kumar 601
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 602
    """
603
    Returns a list of count of requests for product notification against each item
604
 
605
    Parameters:
606
     - startDateTime
7897 amar.kumar 607
     - categoryId
5944 mandeep.dh 608
    """
609
    pass
610
 
611
  def addAuthorizationLog(self, itemId, username, reason):
612
    """
613
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
614
 
615
    Parameters:
616
     - itemId
617
     - username
618
     - reason
619
    """
620
    pass
621
 
622
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
623
    """
624
    Parameters:
625
     - catalog_item_id
626
     - voucherType
627
     - voucherAmount
628
    """
629
    pass
630
 
631
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
632
    """
633
    Parameters:
634
     - catalog_item_id
635
     - voucherType
636
    """
637
    pass
638
 
639
  def getVoucherAmount(self, itemId, voucherType):
640
    """
641
    Parameters:
642
     - itemId
643
     - voucherType
644
    """
645
    pass
646
 
647
  def getAllItemVouchers(self, itemId):
648
    """
649
    Parameters:
650
     - itemId
651
    """
652
    pass
653
 
654
  def isValidCatalogItemId(self, catalog_item_id):
655
    """
656
    Parameters:
657
     - catalog_item_id
658
    """
659
    pass
660
 
7330 amit.gupta 661
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 662
    """
663
    Parameters:
664
     - itemId
7330 amit.gupta 665
     - stateId
6039 amit.gupta 666
     - price
667
    """
668
    pass
5944 mandeep.dh 669
 
6039 amit.gupta 670
  def getVatAmountForItem(self, itemId, price):
671
    """
672
    Parameters:
673
     - itemId
674
     - price
675
    """
676
    pass
677
 
6531 vikram.rag 678
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
679
    """
680
    Parameters:
681
     - offset
682
     - limit
683
    """
684
    pass
6039 amit.gupta 685
 
6821 amar.kumar 686
  def getAllAliveItems(self, ):
687
    pass
688
 
6921 anupam.sin 689
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 690
    """
691
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 692
 
6805 anupam.sin 693
    Parameters:
694
     - itemId
6921 anupam.sin 695
     - price
6805 anupam.sin 696
     - insurerId
697
     - quantity
698
    """
699
    pass
700
 
701
  def getInsurer(self, insurerId):
702
    """
703
    Parameters:
704
     - insurerId
705
    """
706
    pass
707
 
6838 vikram.rag 708
  def getAllInsurers(self, ):
709
    pass
6805 anupam.sin 710
 
6962 rajveer 711
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
712
    """
713
    Parameters:
714
     - insurerId
715
     - amount
716
    """
717
    pass
6838 vikram.rag 718
 
7190 amar.kumar 719
  def getFreebieForItem(self, itemId):
720
    """
721
    Parameters:
722
     - itemId
723
    """
724
    pass
6962 rajveer 725
 
7190 amar.kumar 726
  def addOrUpdateFreebieForItem(self, freebieItem):
727
    """
728
    Parameters:
729
     - freebieItem
730
    """
731
    pass
732
 
7272 amit.gupta 733
  def addOrUpdateBrandInfo(self, brandInfo):
734
    """
735
    Parameters:
736
     - brandInfo
737
    """
738
    pass
739
 
740
  def getBrandInfo(self, ):
741
    pass
742
 
7256 rajveer 743
  def getStorePricing(self, itemId):
744
    """
745
    Parameters:
746
     - itemId
747
    """
748
    pass
7190 amar.kumar 749
 
7306 rajveer 750
  def getStorePricings(self, itemIds):
751
    """
752
    Parameters:
753
     - itemIds
754
    """
755
    pass
756
 
7382 rajveer 757
  def updateStorePricing(self, sp, allColors):
7265 rajveer 758
    """
759
    Parameters:
760
     - sp
7382 rajveer 761
     - allColors
7265 rajveer 762
    """
763
    pass
7256 rajveer 764
 
7281 kshitij.so 765
  def getAllAmazonListedItems(self, ):
766
    pass
7265 rajveer 767
 
8619 kshitij.so 768
  def searchAmazonItems(self, searchTerm, offset, limit):
769
    """
770
    Parameters:
771
     - searchTerm
772
     - offset
773
     - limit
774
    """
775
    pass
776
 
777
  def getAmazonSearchResultCount(self, searchTerm):
778
    """
779
    Parameters:
780
     - searchTerm
781
    """
782
    pass
783
 
784
  def getCountForAmazonlistedItems(self, ):
785
    pass
786
 
7281 kshitij.so 787
  def getAmazonItemDetails(self, itemId):
788
    """
789
    Parameters:
790
     - itemId
791
    """
792
    pass
793
 
8168 kshitij.so 794
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 795
    """
796
    Parameters:
8168 kshitij.so 797
     - amazonlisted
7281 kshitij.so 798
    """
799
    pass
800
 
801
  def addAmazonItem(self, amazonlisted):
802
    """
803
    Parameters:
804
     - amazonlisted
805
    """
806
    pass
807
 
7291 vikram.rag 808
  def getAsinItems(self, ):
809
    pass
7281 kshitij.so 810
 
7291 vikram.rag 811
  def getAllFbaListedItems(self, ):
812
    pass
813
 
814
  def getAllNonFbaListedItems(self, ):
815
    pass
816
 
7460 kshitij.so 817
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
818
    """
819
    Parameters:
820
     - itemId
821
     - holdInventory
822
     - defaultInventory
823
    """
824
    pass
7291 vikram.rag 825
 
7770 kshitij.so 826
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
827
    """
828
    Parameters:
829
     - type
830
     - sku
831
     - timestamp
832
    """
833
    pass
7460 kshitij.so 834
 
7897 amar.kumar 835
  def getAllParentCategories(self, ):
836
    pass
7770 kshitij.so 837
 
7977 kshitij.so 838
  def addPageViewEvent(self, pageViewEvents):
839
    """
840
    Parameters:
841
     - pageViewEvents
842
    """
843
    pass
7897 amar.kumar 844
 
7977 kshitij.so 845
  def addCartEvent(self, cartEvents):
846
    """
847
    Parameters:
848
     - cartEvents
849
    """
850
    pass
851
 
8182 amar.kumar 852
  def addEbayItem(self, ebayItem):
853
    """
854
    Parameters:
855
     - ebayItem
856
    """
857
    pass
858
 
859
  def getEbayItem(self, listingId):
860
    """
861
    Parameters:
862
     - listingId
863
    """
864
    pass
865
 
866
  def updateEbayItem(self, ebayItem):
867
    """
868
    Parameters:
869
     - ebayItem
870
    """
871
    pass
872
 
8139 kshitij.so 873
  def getAmazonListedItems(self, offset, limit):
874
    """
875
    Parameters:
876
     - offset
877
     - limit
878
    """
879
    pass
7977 kshitij.so 880
 
8168 kshitij.so 881
  def updateAmazonAttributesInBulk(self, amazonlisted):
882
    """
883
    Parameters:
884
     - amazonlisted
885
    """
886
    pass
8139 kshitij.so 887
 
8379 vikram.rag 888
  def getAllItemstoListOnFba(self, ):
889
    pass
8168 kshitij.so 890
 
8379 vikram.rag 891
  def getAllItemstoListOnNonFba(self, ):
892
    pass
893
 
8619 kshitij.so 894
  def updateAsin(self, item):
895
    """
896
    Parameters:
897
     - item
898
    """
899
    pass
8616 vikram.rag 900
 
8739 vikram.rag 901
  def addOrUpdateSnapdealItem(self, snapdealitem):
902
    """
903
    Parameters:
904
     - snapdealitem
905
    """
906
    pass
8619 kshitij.so 907
 
8739 vikram.rag 908
  def getSnapdealItem(self, item_id):
909
    """
910
    Parameters:
911
     - item_id
912
    """
913
    pass
914
 
9242 kshitij.so 915
  def getSnapdealItemDetails(self, item_id):
916
    """
917
    Parameters:
918
     - item_id
919
    """
920
    pass
921
 
8739 vikram.rag 922
  def getAllSnapdealItems(self, ):
923
    pass
924
 
9242 kshitij.so 925
  def getSnapdealItems(self, offset, limit):
926
    """
927
    Parameters:
928
     - offset
929
     - limit
930
    """
931
    pass
8739 vikram.rag 932
 
9242 kshitij.so 933
  def searchSnapdealItems(self, searchTerm, offset, limit):
934
    """
935
    Parameters:
936
     - searchTerm
937
     - offset
938
     - limit
939
    """
940
    pass
941
 
942
  def getCountForSnapdealItems(self, ):
943
    pass
944
 
945
  def getSnapdealSearchResultCount(self, searchTerm):
946
    """
947
    Parameters:
948
     - searchTerm
949
    """
950
    pass
951
 
9299 kshitij.so 952
  def getPrefferedInsurerForItem(self, itemId, insurerType):
953
    """
954
    Parameters:
955
     - itemId
956
     - insurerType
957
    """
958
    pass
9242 kshitij.so 959
 
9456 vikram.rag 960
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
961
    """
962
    Parameters:
963
     - skuAtSnapdeal
964
    """
965
    pass
9299 kshitij.so 966
 
9621 manish.sha 967
  def getProductFeedSubmit(self, catalogItemId):
968
    """
969
    Parameters:
970
     - catalogItemId
971
    """
972
    pass
9456 vikram.rag 973
 
9621 manish.sha 974
  def addProductFeedSubmit(self, productFeedSubmit):
975
    """
976
    Parameters:
977
     - productFeedSubmit
978
    """
979
    pass
980
 
981
  def updateProductFeedSubmit(self, productFeedSubmit):
982
    """
983
    Parameters:
984
     - productFeedSubmit
985
    """
986
    pass
987
 
988
  def deleteProductFeedSubmit(self, catalogItemId):
989
    """
990
    Parameters:
991
     - catalogItemId
992
    """
993
    pass
994
 
995
  def getAllProductFeedSubmit(self, ):
996
    pass
997
 
9724 kshitij.so 998
  def getMarketplacedetailsForItem(self, itemId, sourceId):
999
    """
1000
    Parameters:
1001
     - itemId
1002
     - sourceId
1003
    """
1004
    pass
9621 manish.sha 1005
 
9724 kshitij.so 1006
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
1007
    """
1008
    Parameters:
1009
     - marketPlaceItem
1010
    """
1011
    pass
1012
 
9779 kshitij.so 1013
  def getCostingForMarketplace(self, source, item_id):
1014
    """
1015
    Parameters:
1016
     - source
1017
     - item_id
1018
    """
1019
    pass
1020
 
9776 vikram.rag 1021
  def getMarketPlaceItemsForPriceUpdate(self, source):
1022
    """
1023
    Parameters:
1024
     - source
1025
    """
1026
    pass
9724 kshitij.so 1027
 
9816 kshitij.so 1028
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 1029
    """
1030
    Parameters:
1031
     - skulist
1032
     - timestamp
9816 kshitij.so 1033
     - source
9776 vikram.rag 1034
    """
1035
    pass
1036
 
9861 rajveer 1037
  def updateItemHoldInventory(self, itemHoldMap):
1038
    """
1039
    Parameters:
1040
     - itemHoldMap
1041
    """
1042
    pass
9776 vikram.rag 1043
 
9895 vikram.rag 1044
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
1045
    """
1046
    Parameters:
1047
     - item_id
1048
     - vendor_id
1049
     - nlc
1050
    """
1051
    pass
9861 rajveer 1052
 
9945 vikram.rag 1053
  def getAllFlipkartItems(self, ):
1054
    pass
9895 vikram.rag 1055
 
10097 kshitij.so 1056
  def addOrUpdateFlipkartItem(self, flipkartitem):
1057
    """
1058
    Parameters:
1059
     - flipkartitem
1060
    """
1061
    pass
9945 vikram.rag 1062
 
10097 kshitij.so 1063
  def getFlipkartItem(self, item_id):
1064
    """
1065
    Parameters:
1066
     - item_id
1067
    """
1068
    pass
1069
 
1070
  def getFlipkartItemDetails(self, item_id):
1071
    """
1072
    Parameters:
1073
     - item_id
1074
    """
1075
    pass
1076
 
1077
  def getFlipkartItems(self, offset, limit):
1078
    """
1079
    Parameters:
1080
     - offset
1081
     - limit
1082
    """
1083
    pass
1084
 
1085
  def searchFlipkartItems(self, searchTerm, offset, limit):
1086
    """
1087
    Parameters:
1088
     - searchTerm
1089
     - offset
1090
     - limit
1091
    """
1092
    pass
1093
 
1094
  def getCountForFlipkartItems(self, ):
1095
    pass
1096
 
1097
  def getFlipkartSearchResultCount(self, searchTerm):
1098
    """
1099
    Parameters:
1100
     - searchTerm
1101
    """
1102
    pass
1103
 
1104
  def getAllFkItems(self, ):
1105
    pass
1106
 
10140 vikram.rag 1107
  def getFlipkartItemBySkyAtFlipkart(self, sku):
1108
    """
1109
    Parameters:
1110
     - sku
1111
    """
1112
    pass
10097 kshitij.so 1113
 
11015 kshitij.so 1114
  def getMarketplaceHistory(self, source, offset, itemId):
1115
    """
1116
    Parameters:
1117
     - source
1118
     - offset
1119
     - itemId
1120
    """
1121
    pass
1122
 
10909 vikram.rag 1123
  def getAllFbbListedItems(self, ):
1124
    pass
10140 vikram.rag 1125
 
10924 vikram.rag 1126
  def getAllFbbPricingItems(self, ):
1127
    pass
10909 vikram.rag 1128
 
11015 kshitij.so 1129
  def getCountForMarketplaceHistory(self, source, itemId):
1130
    """
1131
    Parameters:
1132
     - source
1133
     - itemId
1134
    """
1135
    pass
10924 vikram.rag 1136
 
11015 kshitij.so 1137
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
1138
    """
1139
    Parameters:
1140
     - source
1141
     - startDate
1142
     - endDate
1143
     - offset
1144
     - limit
1145
     - itemId
1146
    """
1147
    pass
1148
 
11531 vikram.rag 1149
  def getPrivateDealDetails(self, item_id):
1150
    """
1151
    Parameters:
1152
     - item_id
1153
    """
1154
    pass
11015 kshitij.so 1155
 
11531 vikram.rag 1156
  def getPrivateDealItems(self, offset, limit):
1157
    """
1158
    Parameters:
1159
     - offset
1160
     - limit
1161
    """
1162
    pass
1163
 
11653 amit.gupta 1164
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
1165
    """
1166
    Parameters:
1167
     - itemIds
1168
     - daysDelta
1169
    """
11592 amit.gupta 1170
    pass
1171
 
11531 vikram.rag 1172
  def addOrUpdatePrivateDeal(self, privateDeal):
1173
    """
1174
    Parameters:
1175
     - privateDeal
1176
    """
1177
    pass
1178
 
11635 vikram.rag 1179
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
1180
    """
1181
    Parameters:
1182
     - beginIndex
1183
     - totalItems
1184
    """
1185
    pass
11531 vikram.rag 1186
 
11645 amit.gupta 1187
  def getPrivateDealsCount(self, ):
1188
    pass
11635 vikram.rag 1189
 
11905 kshitij.so 1190
  def getAmazonOutSyncItems(self, item_id):
1191
    """
1192
    Parameters:
1193
     - item_id
1194
    """
1195
    pass
11645 amit.gupta 1196
 
11905 kshitij.so 1197
  def getAllPrivateDealsComparison(self, ):
1198
    pass
1199
 
12133 kshitij.so 1200
  def getAllSnapdealMarketplaceItem(self, ):
1201
    pass
11905 kshitij.so 1202
 
12133 kshitij.so 1203
  def getAllFlipkartMarketplaceItem(self, ):
1204
    pass
1205
 
12243 kshitij.so 1206
  def addCompetitorScraping(self, competitorPricingMap):
1207
    """
1208
    Parameters:
1209
     - competitorPricingMap
1210
    """
1211
    pass
12133 kshitij.so 1212
 
12243 kshitij.so 1213
  def getPreviousCompetitorScraping(self, delta):
1214
    """
1215
    Parameters:
1216
     - delta
1217
    """
1218
    pass
1219
 
12256 kshitij.so 1220
  def getUploadResultById(self, uploadId):
1221
    """
1222
    Parameters:
1223
     - uploadId
1224
    """
1225
    pass
12243 kshitij.so 1226
 
12363 kshitij.so 1227
  def addAmazonPromotion(self, amazonPromotions):
1228
    """
1229
    Parameters:
1230
     - amazonPromotions
1231
    """
1232
    pass
12256 kshitij.so 1233
 
12363 kshitij.so 1234
  def getAmazonPromotion(self, startDate, endDate):
1235
    """
1236
    Parameters:
1237
     - startDate
1238
     - endDate
1239
    """
1240
    pass
1241
 
1242
  def updateAmazonPromotion(self, amazonPromotions):
1243
    """
1244
    Parameters:
1245
     - amazonPromotions
1246
    """
1247
    pass
1248
 
1249
 
5944 mandeep.dh 1250
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1251
  def __init__(self, iprot, oprot=None):
1252
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1253
 
1254
  def addItem(self, item):
1255
    """
1256
    Availability and inventory attributes
1257
 
1258
    Parameters:
1259
     - item
1260
    """
1261
    self.send_addItem(item)
1262
    return self.recv_addItem()
1263
 
1264
  def send_addItem(self, item):
1265
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1266
    args = addItem_args()
1267
    args.item = item
1268
    args.write(self._oprot)
1269
    self._oprot.writeMessageEnd()
1270
    self._oprot.trans.flush()
1271
 
1272
  def recv_addItem(self, ):
1273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1274
    if mtype == TMessageType.EXCEPTION:
1275
      x = TApplicationException()
1276
      x.read(self._iprot)
1277
      self._iprot.readMessageEnd()
1278
      raise x
1279
    result = addItem_result()
1280
    result.read(self._iprot)
1281
    self._iprot.readMessageEnd()
1282
    if result.success is not None:
1283
      return result.success
1284
    if result.cex is not None:
1285
      raise result.cex
1286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1287
 
1288
  def updateItem(self, item):
1289
    """
1290
    Parameters:
1291
     - item
1292
    """
1293
    self.send_updateItem(item)
1294
    return self.recv_updateItem()
1295
 
1296
  def send_updateItem(self, item):
1297
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1298
    args = updateItem_args()
1299
    args.item = item
1300
    args.write(self._oprot)
1301
    self._oprot.writeMessageEnd()
1302
    self._oprot.trans.flush()
1303
 
1304
  def recv_updateItem(self, ):
1305
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1306
    if mtype == TMessageType.EXCEPTION:
1307
      x = TApplicationException()
1308
      x.read(self._iprot)
1309
      self._iprot.readMessageEnd()
1310
      raise x
1311
    result = updateItem_result()
1312
    result.read(self._iprot)
1313
    self._iprot.readMessageEnd()
1314
    if result.success is not None:
1315
      return result.success
1316
    if result.cex is not None:
1317
      raise result.cex
1318
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1319
 
1320
  def isActive(self, itemId):
1321
    """
1322
    Checks if the item given to the corresponding itemId is active. If it's active,
1323
    whether it's risky and if it's risky, its inventory position.
1324
 
1325
    Parameters:
1326
     - itemId
1327
    """
1328
    self.send_isActive(itemId)
1329
    return self.recv_isActive()
1330
 
1331
  def send_isActive(self, itemId):
1332
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1333
    args = isActive_args()
1334
    args.itemId = itemId
1335
    args.write(self._oprot)
1336
    self._oprot.writeMessageEnd()
1337
    self._oprot.trans.flush()
1338
 
1339
  def recv_isActive(self, ):
1340
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1341
    if mtype == TMessageType.EXCEPTION:
1342
      x = TApplicationException()
1343
      x.read(self._iprot)
1344
      self._iprot.readMessageEnd()
1345
      raise x
1346
    result = isActive_result()
1347
    result.read(self._iprot)
1348
    self._iprot.readMessageEnd()
1349
    if result.success is not None:
1350
      return result.success
1351
    if result.isex is not None:
1352
      raise result.isex
1353
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1354
 
7438 amit.gupta 1355
  def getItemsStatus(self, itemIds):
1356
    """
1357
    Parameters:
1358
     - itemIds
1359
    """
1360
    self.send_getItemsStatus(itemIds)
1361
    return self.recv_getItemsStatus()
1362
 
1363
  def send_getItemsStatus(self, itemIds):
1364
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1365
    args = getItemsStatus_args()
1366
    args.itemIds = itemIds
1367
    args.write(self._oprot)
1368
    self._oprot.writeMessageEnd()
1369
    self._oprot.trans.flush()
1370
 
1371
  def recv_getItemsStatus(self, ):
1372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1373
    if mtype == TMessageType.EXCEPTION:
1374
      x = TApplicationException()
1375
      x.read(self._iprot)
1376
      self._iprot.readMessageEnd()
1377
      raise x
1378
    result = getItemsStatus_result()
1379
    result.read(self._iprot)
1380
    self._iprot.readMessageEnd()
1381
    if result.success is not None:
1382
      return result.success
1383
    if result.isex is not None:
1384
      raise result.isex
1385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1386
 
5944 mandeep.dh 1387
  def getItemStatusDescription(self, itemId):
1388
    """
1389
    Parameters:
1390
     - itemId
1391
    """
1392
    self.send_getItemStatusDescription(itemId)
1393
    return self.recv_getItemStatusDescription()
1394
 
1395
  def send_getItemStatusDescription(self, itemId):
1396
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1397
    args = getItemStatusDescription_args()
1398
    args.itemId = itemId
1399
    args.write(self._oprot)
1400
    self._oprot.writeMessageEnd()
1401
    self._oprot.trans.flush()
1402
 
1403
  def recv_getItemStatusDescription(self, ):
1404
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1405
    if mtype == TMessageType.EXCEPTION:
1406
      x = TApplicationException()
1407
      x.read(self._iprot)
1408
      self._iprot.readMessageEnd()
1409
      raise x
1410
    result = getItemStatusDescription_result()
1411
    result.read(self._iprot)
1412
    self._iprot.readMessageEnd()
1413
    if result.success is not None:
1414
      return result.success
1415
    if result.isex is not None:
1416
      raise result.isex
1417
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1418
 
1419
  def startItemOn(self, item_id, timestamp):
1420
    """
1421
    Parameters:
1422
     - item_id
1423
     - timestamp
1424
    """
1425
    self.send_startItemOn(item_id, timestamp)
1426
    self.recv_startItemOn()
1427
 
1428
  def send_startItemOn(self, item_id, timestamp):
1429
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1430
    args = startItemOn_args()
1431
    args.item_id = item_id
1432
    args.timestamp = timestamp
1433
    args.write(self._oprot)
1434
    self._oprot.writeMessageEnd()
1435
    self._oprot.trans.flush()
1436
 
1437
  def recv_startItemOn(self, ):
1438
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1439
    if mtype == TMessageType.EXCEPTION:
1440
      x = TApplicationException()
1441
      x.read(self._iprot)
1442
      self._iprot.readMessageEnd()
1443
      raise x
1444
    result = startItemOn_result()
1445
    result.read(self._iprot)
1446
    self._iprot.readMessageEnd()
1447
    if result.cex is not None:
1448
      raise result.cex
1449
    return
1450
 
1451
  def retireItemOn(self, item_id, timestamp):
1452
    """
1453
    Parameters:
1454
     - item_id
1455
     - timestamp
1456
    """
1457
    self.send_retireItemOn(item_id, timestamp)
1458
    self.recv_retireItemOn()
1459
 
1460
  def send_retireItemOn(self, item_id, timestamp):
1461
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1462
    args = retireItemOn_args()
1463
    args.item_id = item_id
1464
    args.timestamp = timestamp
1465
    args.write(self._oprot)
1466
    self._oprot.writeMessageEnd()
1467
    self._oprot.trans.flush()
1468
 
1469
  def recv_retireItemOn(self, ):
1470
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1471
    if mtype == TMessageType.EXCEPTION:
1472
      x = TApplicationException()
1473
      x.read(self._iprot)
1474
      self._iprot.readMessageEnd()
1475
      raise x
1476
    result = retireItemOn_result()
1477
    result.read(self._iprot)
1478
    self._iprot.readMessageEnd()
1479
    if result.cex is not None:
1480
      raise result.cex
1481
    return
1482
 
1483
  def changeItemStatus(self, item_id, timestamp, newstatus):
1484
    """
1485
    Parameters:
1486
     - item_id
1487
     - timestamp
1488
     - newstatus
1489
    """
1490
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1491
    self.recv_changeItemStatus()
1492
 
1493
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1494
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1495
    args = changeItemStatus_args()
1496
    args.item_id = item_id
1497
    args.timestamp = timestamp
1498
    args.newstatus = newstatus
1499
    args.write(self._oprot)
1500
    self._oprot.writeMessageEnd()
1501
    self._oprot.trans.flush()
1502
 
1503
  def recv_changeItemStatus(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 = changeItemStatus_result()
1511
    result.read(self._iprot)
1512
    self._iprot.readMessageEnd()
1513
    if result.cex is not None:
1514
      raise result.cex
1515
    return
1516
 
1517
  def getItem(self, item_id):
1518
    """
1519
    Parameters:
1520
     - item_id
1521
    """
1522
    self.send_getItem(item_id)
1523
    return self.recv_getItem()
1524
 
1525
  def send_getItem(self, item_id):
1526
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1527
    args = getItem_args()
1528
    args.item_id = item_id
1529
    args.write(self._oprot)
1530
    self._oprot.writeMessageEnd()
1531
    self._oprot.trans.flush()
1532
 
1533
  def recv_getItem(self, ):
1534
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1535
    if mtype == TMessageType.EXCEPTION:
1536
      x = TApplicationException()
1537
      x.read(self._iprot)
1538
      self._iprot.readMessageEnd()
1539
      raise x
1540
    result = getItem_result()
1541
    result.read(self._iprot)
1542
    self._iprot.readMessageEnd()
1543
    if result.success is not None:
1544
      return result.success
1545
    if result.cex is not None:
1546
      raise result.cex
1547
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1548
 
1549
  def getItemsByCatalogId(self, catalog_item_id):
1550
    """
1551
    Parameters:
1552
     - catalog_item_id
1553
    """
1554
    self.send_getItemsByCatalogId(catalog_item_id)
1555
    return self.recv_getItemsByCatalogId()
1556
 
1557
  def send_getItemsByCatalogId(self, catalog_item_id):
1558
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1559
    args = getItemsByCatalogId_args()
1560
    args.catalog_item_id = catalog_item_id
1561
    args.write(self._oprot)
1562
    self._oprot.writeMessageEnd()
1563
    self._oprot.trans.flush()
1564
 
1565
  def recv_getItemsByCatalogId(self, ):
1566
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1567
    if mtype == TMessageType.EXCEPTION:
1568
      x = TApplicationException()
1569
      x.read(self._iprot)
1570
      self._iprot.readMessageEnd()
1571
      raise x
1572
    result = getItemsByCatalogId_result()
1573
    result.read(self._iprot)
1574
    self._iprot.readMessageEnd()
1575
    if result.success is not None:
1576
      return result.success
1577
    if result.cex is not None:
1578
      raise result.cex
1579
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1580
 
1581
  def getValidItemsByCatalogId(self, catalog_item_id):
1582
    """
1583
    Parameters:
1584
     - catalog_item_id
1585
    """
1586
    self.send_getValidItemsByCatalogId(catalog_item_id)
1587
    return self.recv_getValidItemsByCatalogId()
1588
 
1589
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1590
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1591
    args = getValidItemsByCatalogId_args()
1592
    args.catalog_item_id = catalog_item_id
1593
    args.write(self._oprot)
1594
    self._oprot.writeMessageEnd()
1595
    self._oprot.trans.flush()
1596
 
1597
  def recv_getValidItemsByCatalogId(self, ):
1598
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1599
    if mtype == TMessageType.EXCEPTION:
1600
      x = TApplicationException()
1601
      x.read(self._iprot)
1602
      self._iprot.readMessageEnd()
1603
      raise x
1604
    result = getValidItemsByCatalogId_result()
1605
    result.read(self._iprot)
1606
    self._iprot.readMessageEnd()
1607
    if result.success is not None:
1608
      return result.success
1609
    if result.cex is not None:
1610
      raise result.cex
1611
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1612
 
1613
  def getAllItems(self, isActive):
1614
    """
1615
    Parameters:
1616
     - isActive
1617
    """
1618
    self.send_getAllItems(isActive)
1619
    return self.recv_getAllItems()
1620
 
1621
  def send_getAllItems(self, isActive):
1622
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1623
    args = getAllItems_args()
1624
    args.isActive = isActive
1625
    args.write(self._oprot)
1626
    self._oprot.writeMessageEnd()
1627
    self._oprot.trans.flush()
1628
 
1629
  def recv_getAllItems(self, ):
1630
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1631
    if mtype == TMessageType.EXCEPTION:
1632
      x = TApplicationException()
1633
      x.read(self._iprot)
1634
      self._iprot.readMessageEnd()
1635
      raise x
1636
    result = getAllItems_result()
1637
    result.read(self._iprot)
1638
    self._iprot.readMessageEnd()
1639
    if result.success is not None:
1640
      return result.success
1641
    if result.cex is not None:
1642
      raise result.cex
1643
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1644
 
1645
  def getAllItemsByStatus(self, itemStatus):
1646
    """
1647
    Parameters:
1648
     - itemStatus
1649
    """
1650
    self.send_getAllItemsByStatus(itemStatus)
1651
    return self.recv_getAllItemsByStatus()
1652
 
1653
  def send_getAllItemsByStatus(self, itemStatus):
1654
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1655
    args = getAllItemsByStatus_args()
1656
    args.itemStatus = itemStatus
1657
    args.write(self._oprot)
1658
    self._oprot.writeMessageEnd()
1659
    self._oprot.trans.flush()
1660
 
1661
  def recv_getAllItemsByStatus(self, ):
1662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1663
    if mtype == TMessageType.EXCEPTION:
1664
      x = TApplicationException()
1665
      x.read(self._iprot)
1666
      self._iprot.readMessageEnd()
1667
      raise x
1668
    result = getAllItemsByStatus_result()
1669
    result.read(self._iprot)
1670
    self._iprot.readMessageEnd()
1671
    if result.success is not None:
1672
      return result.success
1673
    if result.cex is not None:
1674
      raise result.cex
1675
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1676
 
9253 rajveer 1677
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1678
    """
1679
    Parameters:
1680
     - entityId
1681
     - category
1682
     - brand
1683
     - modelName
1684
     - modelNumber
9253 rajveer 1685
     - isAndroid
5944 mandeep.dh 1686
    """
9253 rajveer 1687
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1688
    return self.recv_markItemAsContentComplete()
1689
 
9253 rajveer 1690
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1691
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1692
    args = markItemAsContentComplete_args()
1693
    args.entityId = entityId
1694
    args.category = category
1695
    args.brand = brand
1696
    args.modelName = modelName
1697
    args.modelNumber = modelNumber
9253 rajveer 1698
    args.isAndroid = isAndroid
5944 mandeep.dh 1699
    args.write(self._oprot)
1700
    self._oprot.writeMessageEnd()
1701
    self._oprot.trans.flush()
1702
 
1703
  def recv_markItemAsContentComplete(self, ):
1704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1705
    if mtype == TMessageType.EXCEPTION:
1706
      x = TApplicationException()
1707
      x.read(self._iprot)
1708
      self._iprot.readMessageEnd()
1709
      raise x
1710
    result = markItemAsContentComplete_result()
1711
    result.read(self._iprot)
1712
    self._iprot.readMessageEnd()
1713
    if result.success is not None:
1714
      return result.success
1715
    if result.cex is not None:
1716
      raise result.cex
1717
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1718
 
1719
  def getAllItemsInRange(self, offset, limit):
1720
    """
1721
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1722
 
1723
    Parameters:
1724
     - offset
1725
     - limit
1726
    """
1727
    self.send_getAllItemsInRange(offset, limit)
1728
    return self.recv_getAllItemsInRange()
1729
 
1730
  def send_getAllItemsInRange(self, offset, limit):
1731
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1732
    args = getAllItemsInRange_args()
1733
    args.offset = offset
1734
    args.limit = limit
1735
    args.write(self._oprot)
1736
    self._oprot.writeMessageEnd()
1737
    self._oprot.trans.flush()
1738
 
1739
  def recv_getAllItemsInRange(self, ):
1740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1741
    if mtype == TMessageType.EXCEPTION:
1742
      x = TApplicationException()
1743
      x.read(self._iprot)
1744
      self._iprot.readMessageEnd()
1745
      raise x
1746
    result = getAllItemsInRange_result()
1747
    result.read(self._iprot)
1748
    self._iprot.readMessageEnd()
1749
    if result.success is not None:
1750
      return result.success
1751
    if result.cex is not None:
1752
      raise result.cex
1753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1754
 
1755
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1756
    """
1757
    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.
1758
 
1759
    Parameters:
1760
     - itemStatus
1761
     - offset
1762
     - limit
1763
    """
1764
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1765
    return self.recv_getAllItemsByStatusInRange()
1766
 
1767
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1768
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1769
    args = getAllItemsByStatusInRange_args()
1770
    args.itemStatus = itemStatus
1771
    args.offset = offset
1772
    args.limit = limit
1773
    args.write(self._oprot)
1774
    self._oprot.writeMessageEnd()
1775
    self._oprot.trans.flush()
1776
 
1777
  def recv_getAllItemsByStatusInRange(self, ):
1778
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1779
    if mtype == TMessageType.EXCEPTION:
1780
      x = TApplicationException()
1781
      x.read(self._iprot)
1782
      self._iprot.readMessageEnd()
1783
      raise x
1784
    result = getAllItemsByStatusInRange_result()
1785
    result.read(self._iprot)
1786
    self._iprot.readMessageEnd()
1787
    if result.success is not None:
1788
      return result.success
1789
    if result.cex is not None:
1790
      raise result.cex
1791
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1792
 
1793
  def getItemCountByStatus(self, useStatus, itemStatus):
1794
    """
1795
    Gets a count of all items by status
1796
 
1797
    Parameters:
1798
     - useStatus
1799
     - itemStatus
1800
    """
1801
    self.send_getItemCountByStatus(useStatus, itemStatus)
1802
    return self.recv_getItemCountByStatus()
1803
 
1804
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1805
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1806
    args = getItemCountByStatus_args()
1807
    args.useStatus = useStatus
1808
    args.itemStatus = itemStatus
1809
    args.write(self._oprot)
1810
    self._oprot.writeMessageEnd()
1811
    self._oprot.trans.flush()
1812
 
1813
  def recv_getItemCountByStatus(self, ):
1814
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1815
    if mtype == TMessageType.EXCEPTION:
1816
      x = TApplicationException()
1817
      x.read(self._iprot)
1818
      self._iprot.readMessageEnd()
1819
      raise x
1820
    result = getItemCountByStatus_result()
1821
    result.read(self._iprot)
1822
    self._iprot.readMessageEnd()
1823
    if result.success is not None:
1824
      return result.success
1825
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1826
 
1827
  def getBestSellers(self, ):
1828
    self.send_getBestSellers()
1829
    return self.recv_getBestSellers()
1830
 
1831
  def send_getBestSellers(self, ):
1832
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1833
    args = getBestSellers_args()
1834
    args.write(self._oprot)
1835
    self._oprot.writeMessageEnd()
1836
    self._oprot.trans.flush()
1837
 
1838
  def recv_getBestSellers(self, ):
1839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1840
    if mtype == TMessageType.EXCEPTION:
1841
      x = TApplicationException()
1842
      x.read(self._iprot)
1843
      self._iprot.readMessageEnd()
1844
      raise x
1845
    result = getBestSellers_result()
1846
    result.read(self._iprot)
1847
    self._iprot.readMessageEnd()
1848
    if result.success is not None:
1849
      return result.success
1850
    if result.isex is not None:
1851
      raise result.isex
1852
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1853
 
1854
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1855
    """
1856
    Parameters:
1857
     - beginIndex
1858
     - totalItems
1859
     - brand
1860
     - category
1861
    """
1862
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1863
    return self.recv_getBestSellersCatalogIds()
1864
 
1865
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1866
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1867
    args = getBestSellersCatalogIds_args()
1868
    args.beginIndex = beginIndex
1869
    args.totalItems = totalItems
1870
    args.brand = brand
1871
    args.category = category
1872
    args.write(self._oprot)
1873
    self._oprot.writeMessageEnd()
1874
    self._oprot.trans.flush()
1875
 
1876
  def recv_getBestSellersCatalogIds(self, ):
1877
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1878
    if mtype == TMessageType.EXCEPTION:
1879
      x = TApplicationException()
1880
      x.read(self._iprot)
1881
      self._iprot.readMessageEnd()
1882
      raise x
1883
    result = getBestSellersCatalogIds_result()
1884
    result.read(self._iprot)
1885
    self._iprot.readMessageEnd()
1886
    if result.success is not None:
1887
      return result.success
1888
    if result.cex is not None:
1889
      raise result.cex
1890
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1891
 
1892
  def getBestSellersCount(self, ):
1893
    self.send_getBestSellersCount()
1894
    return self.recv_getBestSellersCount()
1895
 
1896
  def send_getBestSellersCount(self, ):
1897
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1898
    args = getBestSellersCount_args()
1899
    args.write(self._oprot)
1900
    self._oprot.writeMessageEnd()
1901
    self._oprot.trans.flush()
1902
 
1903
  def recv_getBestSellersCount(self, ):
1904
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1905
    if mtype == TMessageType.EXCEPTION:
1906
      x = TApplicationException()
1907
      x.read(self._iprot)
1908
      self._iprot.readMessageEnd()
1909
      raise x
1910
    result = getBestSellersCount_result()
1911
    result.read(self._iprot)
1912
    self._iprot.readMessageEnd()
1913
    if result.success is not None:
1914
      return result.success
1915
    if result.cex is not None:
1916
      raise result.cex
1917
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1918
 
1919
  def getBestDeals(self, ):
1920
    self.send_getBestDeals()
1921
    return self.recv_getBestDeals()
1922
 
1923
  def send_getBestDeals(self, ):
1924
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1925
    args = getBestDeals_args()
1926
    args.write(self._oprot)
1927
    self._oprot.writeMessageEnd()
1928
    self._oprot.trans.flush()
1929
 
1930
  def recv_getBestDeals(self, ):
1931
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1932
    if mtype == TMessageType.EXCEPTION:
1933
      x = TApplicationException()
1934
      x.read(self._iprot)
1935
      self._iprot.readMessageEnd()
1936
      raise x
1937
    result = getBestDeals_result()
1938
    result.read(self._iprot)
1939
    self._iprot.readMessageEnd()
1940
    if result.success is not None:
1941
      return result.success
1942
    if result.isex is not None:
1943
      raise result.isex
1944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1945
 
1946
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1947
    """
1948
    Parameters:
1949
     - beginIndex
1950
     - totalItems
1951
     - brand
1952
     - category
1953
    """
1954
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1955
    return self.recv_getBestDealsCatalogIds()
1956
 
1957
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1958
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1959
    args = getBestDealsCatalogIds_args()
1960
    args.beginIndex = beginIndex
1961
    args.totalItems = totalItems
1962
    args.brand = brand
1963
    args.category = category
1964
    args.write(self._oprot)
1965
    self._oprot.writeMessageEnd()
1966
    self._oprot.trans.flush()
1967
 
1968
  def recv_getBestDealsCatalogIds(self, ):
1969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1970
    if mtype == TMessageType.EXCEPTION:
1971
      x = TApplicationException()
1972
      x.read(self._iprot)
1973
      self._iprot.readMessageEnd()
1974
      raise x
1975
    result = getBestDealsCatalogIds_result()
1976
    result.read(self._iprot)
1977
    self._iprot.readMessageEnd()
1978
    if result.success is not None:
1979
      return result.success
1980
    if result.cex is not None:
1981
      raise result.cex
1982
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1983
 
1984
  def getBestDealsCount(self, ):
1985
    self.send_getBestDealsCount()
1986
    return self.recv_getBestDealsCount()
1987
 
1988
  def send_getBestDealsCount(self, ):
1989
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1990
    args = getBestDealsCount_args()
1991
    args.write(self._oprot)
1992
    self._oprot.writeMessageEnd()
1993
    self._oprot.trans.flush()
1994
 
1995
  def recv_getBestDealsCount(self, ):
1996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1997
    if mtype == TMessageType.EXCEPTION:
1998
      x = TApplicationException()
1999
      x.read(self._iprot)
2000
      self._iprot.readMessageEnd()
2001
      raise x
2002
    result = getBestDealsCount_result()
2003
    result.read(self._iprot)
2004
    self._iprot.readMessageEnd()
2005
    if result.success is not None:
2006
      return result.success
2007
    if result.cex is not None:
2008
      raise result.cex
2009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
2010
 
2011
  def getComingSoon(self, ):
2012
    self.send_getComingSoon()
2013
    return self.recv_getComingSoon()
2014
 
2015
  def send_getComingSoon(self, ):
2016
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
2017
    args = getComingSoon_args()
2018
    args.write(self._oprot)
2019
    self._oprot.writeMessageEnd()
2020
    self._oprot.trans.flush()
2021
 
2022
  def recv_getComingSoon(self, ):
2023
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2024
    if mtype == TMessageType.EXCEPTION:
2025
      x = TApplicationException()
2026
      x.read(self._iprot)
2027
      self._iprot.readMessageEnd()
2028
      raise x
2029
    result = getComingSoon_result()
2030
    result.read(self._iprot)
2031
    self._iprot.readMessageEnd()
2032
    if result.success is not None:
2033
      return result.success
2034
    if result.isex is not None:
2035
      raise result.isex
2036
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
2037
 
2038
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2039
    """
2040
    Parameters:
2041
     - beginIndex
2042
     - totalItems
2043
     - brand
2044
     - category
2045
    """
2046
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
2047
    return self.recv_getComingSoonCatalogIds()
2048
 
2049
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2050
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
2051
    args = getComingSoonCatalogIds_args()
2052
    args.beginIndex = beginIndex
2053
    args.totalItems = totalItems
2054
    args.brand = brand
2055
    args.category = category
2056
    args.write(self._oprot)
2057
    self._oprot.writeMessageEnd()
2058
    self._oprot.trans.flush()
2059
 
2060
  def recv_getComingSoonCatalogIds(self, ):
2061
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2062
    if mtype == TMessageType.EXCEPTION:
2063
      x = TApplicationException()
2064
      x.read(self._iprot)
2065
      self._iprot.readMessageEnd()
2066
      raise x
2067
    result = getComingSoonCatalogIds_result()
2068
    result.read(self._iprot)
2069
    self._iprot.readMessageEnd()
2070
    if result.success is not None:
2071
      return result.success
2072
    if result.cex is not None:
2073
      raise result.cex
2074
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
2075
 
2076
  def getComingSoonCount(self, ):
2077
    self.send_getComingSoonCount()
2078
    return self.recv_getComingSoonCount()
2079
 
2080
  def send_getComingSoonCount(self, ):
2081
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
2082
    args = getComingSoonCount_args()
2083
    args.write(self._oprot)
2084
    self._oprot.writeMessageEnd()
2085
    self._oprot.trans.flush()
2086
 
2087
  def recv_getComingSoonCount(self, ):
2088
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2089
    if mtype == TMessageType.EXCEPTION:
2090
      x = TApplicationException()
2091
      x.read(self._iprot)
2092
      self._iprot.readMessageEnd()
2093
      raise x
2094
    result = getComingSoonCount_result()
2095
    result.read(self._iprot)
2096
    self._iprot.readMessageEnd()
2097
    if result.success is not None:
2098
      return result.success
2099
    if result.cex is not None:
2100
      raise result.cex
2101
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
2102
 
2103
  def getLatestArrivals(self, ):
2104
    """
2105
    Returns a list of items sorted in the descending order by start date.
2106
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
2107
    """
2108
    self.send_getLatestArrivals()
2109
    return self.recv_getLatestArrivals()
2110
 
2111
  def send_getLatestArrivals(self, ):
2112
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
2113
    args = getLatestArrivals_args()
2114
    args.write(self._oprot)
2115
    self._oprot.writeMessageEnd()
2116
    self._oprot.trans.flush()
2117
 
2118
  def recv_getLatestArrivals(self, ):
2119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2120
    if mtype == TMessageType.EXCEPTION:
2121
      x = TApplicationException()
2122
      x.read(self._iprot)
2123
      self._iprot.readMessageEnd()
2124
      raise x
2125
    result = getLatestArrivals_result()
2126
    result.read(self._iprot)
2127
    self._iprot.readMessageEnd()
2128
    if result.success is not None:
2129
      return result.success
2130
    if result.isex is not None:
2131
      raise result.isex
2132
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
2133
 
2134
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2135
    """
2136
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
2137
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
2138
 
2139
    Parameters:
2140
     - beginIndex
2141
     - totalItems
2142
     - brand
2143
     - categories
2144
    """
2145
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2146
    return self.recv_getLatestArrivalsCatalogIds()
2147
 
2148
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2149
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2150
    args = getLatestArrivalsCatalogIds_args()
2151
    args.beginIndex = beginIndex
2152
    args.totalItems = totalItems
2153
    args.brand = brand
2154
    args.categories = categories
2155
    args.write(self._oprot)
2156
    self._oprot.writeMessageEnd()
2157
    self._oprot.trans.flush()
2158
 
2159
  def recv_getLatestArrivalsCatalogIds(self, ):
2160
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2161
    if mtype == TMessageType.EXCEPTION:
2162
      x = TApplicationException()
2163
      x.read(self._iprot)
2164
      self._iprot.readMessageEnd()
2165
      raise x
2166
    result = getLatestArrivalsCatalogIds_result()
2167
    result.read(self._iprot)
2168
    self._iprot.readMessageEnd()
2169
    if result.success is not None:
2170
      return result.success
2171
    if result.cex is not None:
2172
      raise result.cex
2173
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2174
 
2175
  def getLatestArrivalsCount(self, ):
2176
    """
2177
    Get the total number of latest arrivals we are willing to show.
2178
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2179
    """
2180
    self.send_getLatestArrivalsCount()
2181
    return self.recv_getLatestArrivalsCount()
2182
 
2183
  def send_getLatestArrivalsCount(self, ):
2184
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2185
    args = getLatestArrivalsCount_args()
2186
    args.write(self._oprot)
2187
    self._oprot.writeMessageEnd()
2188
    self._oprot.trans.flush()
2189
 
2190
  def recv_getLatestArrivalsCount(self, ):
2191
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2192
    if mtype == TMessageType.EXCEPTION:
2193
      x = TApplicationException()
2194
      x.read(self._iprot)
2195
      self._iprot.readMessageEnd()
2196
      raise x
2197
    result = getLatestArrivalsCount_result()
2198
    result.read(self._iprot)
2199
    self._iprot.readMessageEnd()
2200
    if result.success is not None:
2201
      return result.success
2202
    if result.cex is not None:
2203
      raise result.cex
2204
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2205
 
2206
  def generateNewEntityID(self, ):
2207
    self.send_generateNewEntityID()
2208
    return self.recv_generateNewEntityID()
2209
 
2210
  def send_generateNewEntityID(self, ):
2211
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2212
    args = generateNewEntityID_args()
2213
    args.write(self._oprot)
2214
    self._oprot.writeMessageEnd()
2215
    self._oprot.trans.flush()
2216
 
2217
  def recv_generateNewEntityID(self, ):
2218
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2219
    if mtype == TMessageType.EXCEPTION:
2220
      x = TApplicationException()
2221
      x.read(self._iprot)
2222
      self._iprot.readMessageEnd()
2223
      raise x
2224
    result = generateNewEntityID_result()
2225
    result.read(self._iprot)
2226
    self._iprot.readMessageEnd()
2227
    if result.success is not None:
2228
      return result.success
2229
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2230
 
2231
  def addCategory(self, category):
2232
    """
2233
    All category related functions
2234
 
2235
    Parameters:
2236
     - category
2237
    """
2238
    self.send_addCategory(category)
2239
    return self.recv_addCategory()
2240
 
2241
  def send_addCategory(self, category):
2242
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2243
    args = addCategory_args()
2244
    args.category = category
2245
    args.write(self._oprot)
2246
    self._oprot.writeMessageEnd()
2247
    self._oprot.trans.flush()
2248
 
2249
  def recv_addCategory(self, ):
2250
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2251
    if mtype == TMessageType.EXCEPTION:
2252
      x = TApplicationException()
2253
      x.read(self._iprot)
2254
      self._iprot.readMessageEnd()
2255
      raise x
2256
    result = addCategory_result()
2257
    result.read(self._iprot)
2258
    self._iprot.readMessageEnd()
2259
    if result.success is not None:
2260
      return result.success
2261
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2262
 
2263
  def getCategory(self, id):
2264
    """
2265
    Parameters:
2266
     - id
2267
    """
2268
    self.send_getCategory(id)
2269
    return self.recv_getCategory()
2270
 
2271
  def send_getCategory(self, id):
2272
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2273
    args = getCategory_args()
2274
    args.id = id
2275
    args.write(self._oprot)
2276
    self._oprot.writeMessageEnd()
2277
    self._oprot.trans.flush()
2278
 
2279
  def recv_getCategory(self, ):
2280
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2281
    if mtype == TMessageType.EXCEPTION:
2282
      x = TApplicationException()
2283
      x.read(self._iprot)
2284
      self._iprot.readMessageEnd()
2285
      raise x
2286
    result = getCategory_result()
2287
    result.read(self._iprot)
2288
    self._iprot.readMessageEnd()
2289
    if result.success is not None:
2290
      return result.success
2291
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2292
 
2293
  def getAllCategories(self, ):
2294
    self.send_getAllCategories()
2295
    return self.recv_getAllCategories()
2296
 
2297
  def send_getAllCategories(self, ):
2298
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2299
    args = getAllCategories_args()
2300
    args.write(self._oprot)
2301
    self._oprot.writeMessageEnd()
2302
    self._oprot.trans.flush()
2303
 
2304
  def recv_getAllCategories(self, ):
2305
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2306
    if mtype == TMessageType.EXCEPTION:
2307
      x = TApplicationException()
2308
      x.read(self._iprot)
2309
      self._iprot.readMessageEnd()
2310
      raise x
2311
    result = getAllCategories_result()
2312
    result.read(self._iprot)
2313
    self._iprot.readMessageEnd()
2314
    if result.success is not None:
2315
      return result.success
2316
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2317
 
2318
  def getAllSimilarItems(self, itemId):
2319
    """
2320
    Returns the list of similar items.
2321
 
2322
    Parameters:
2323
     - itemId
2324
    """
2325
    self.send_getAllSimilarItems(itemId)
2326
    return self.recv_getAllSimilarItems()
2327
 
2328
  def send_getAllSimilarItems(self, itemId):
2329
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2330
    args = getAllSimilarItems_args()
2331
    args.itemId = itemId
2332
    args.write(self._oprot)
2333
    self._oprot.writeMessageEnd()
2334
    self._oprot.trans.flush()
2335
 
2336
  def recv_getAllSimilarItems(self, ):
2337
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2338
    if mtype == TMessageType.EXCEPTION:
2339
      x = TApplicationException()
2340
      x.read(self._iprot)
2341
      self._iprot.readMessageEnd()
2342
      raise x
2343
    result = getAllSimilarItems_result()
2344
    result.read(self._iprot)
2345
    self._iprot.readMessageEnd()
2346
    if result.success is not None:
2347
      return result.success
2348
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2349
 
2350
  def addSimilarItem(self, itemId, catalogItemId):
2351
    """
2352
    Adds similar item.
2353
 
2354
    Parameters:
2355
     - itemId
2356
     - catalogItemId
2357
    """
2358
    self.send_addSimilarItem(itemId, catalogItemId)
2359
    return self.recv_addSimilarItem()
2360
 
2361
  def send_addSimilarItem(self, itemId, catalogItemId):
2362
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2363
    args = addSimilarItem_args()
2364
    args.itemId = itemId
2365
    args.catalogItemId = catalogItemId
2366
    args.write(self._oprot)
2367
    self._oprot.writeMessageEnd()
2368
    self._oprot.trans.flush()
2369
 
2370
  def recv_addSimilarItem(self, ):
2371
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2372
    if mtype == TMessageType.EXCEPTION:
2373
      x = TApplicationException()
2374
      x.read(self._iprot)
2375
      self._iprot.readMessageEnd()
2376
      raise x
2377
    result = addSimilarItem_result()
2378
    result.read(self._iprot)
2379
    self._iprot.readMessageEnd()
2380
    if result.success is not None:
2381
      return result.success
2382
    if result.cex is not None:
2383
      raise result.cex
2384
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2385
 
6512 kshitij.so 2386
  def addTag(self, displayName, itemId):
2387
    """
2388
    Tag Related
2389
 
2390
    Parameters:
2391
     - displayName
2392
     - itemId
2393
    """
2394
    self.send_addTag(displayName, itemId)
2395
    return self.recv_addTag()
2396
 
2397
  def send_addTag(self, displayName, itemId):
2398
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2399
    args = addTag_args()
2400
    args.displayName = displayName
2401
    args.itemId = itemId
2402
    args.write(self._oprot)
2403
    self._oprot.writeMessageEnd()
2404
    self._oprot.trans.flush()
2405
 
2406
  def recv_addTag(self, ):
2407
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2408
    if mtype == TMessageType.EXCEPTION:
2409
      x = TApplicationException()
2410
      x.read(self._iprot)
2411
      self._iprot.readMessageEnd()
2412
      raise x
2413
    result = addTag_result()
2414
    result.read(self._iprot)
2415
    self._iprot.readMessageEnd()
2416
    if result.success is not None:
2417
      return result.success
2418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2419
 
2420
  def deleteEntityTag(self, displayName, itemId):
2421
    """
2422
    Parameters:
2423
     - displayName
2424
     - itemId
2425
    """
2426
    self.send_deleteEntityTag(displayName, itemId)
2427
    return self.recv_deleteEntityTag()
2428
 
2429
  def send_deleteEntityTag(self, displayName, itemId):
2430
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2431
    args = deleteEntityTag_args()
2432
    args.displayName = displayName
2433
    args.itemId = itemId
2434
    args.write(self._oprot)
2435
    self._oprot.writeMessageEnd()
2436
    self._oprot.trans.flush()
2437
 
2438
  def recv_deleteEntityTag(self, ):
2439
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2440
    if mtype == TMessageType.EXCEPTION:
2441
      x = TApplicationException()
2442
      x.read(self._iprot)
2443
      self._iprot.readMessageEnd()
2444
      raise x
2445
    result = deleteEntityTag_result()
2446
    result.read(self._iprot)
2447
    self._iprot.readMessageEnd()
2448
    if result.success is not None:
2449
      return result.success
2450
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2451
 
2452
  def deleteTag(self, displayName):
2453
    """
2454
    Parameters:
2455
     - displayName
2456
    """
2457
    self.send_deleteTag(displayName)
2458
    return self.recv_deleteTag()
2459
 
2460
  def send_deleteTag(self, displayName):
2461
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2462
    args = deleteTag_args()
2463
    args.displayName = displayName
2464
    args.write(self._oprot)
2465
    self._oprot.writeMessageEnd()
2466
    self._oprot.trans.flush()
2467
 
2468
  def recv_deleteTag(self, ):
2469
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2470
    if mtype == TMessageType.EXCEPTION:
2471
      x = TApplicationException()
2472
      x.read(self._iprot)
2473
      self._iprot.readMessageEnd()
2474
      raise x
2475
    result = deleteTag_result()
2476
    result.read(self._iprot)
2477
    self._iprot.readMessageEnd()
2478
    if result.success is not None:
2479
      return result.success
2480
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2481
 
2482
  def getAllTags(self, ):
2483
    self.send_getAllTags()
2484
    return self.recv_getAllTags()
2485
 
2486
  def send_getAllTags(self, ):
2487
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2488
    args = getAllTags_args()
2489
    args.write(self._oprot)
2490
    self._oprot.writeMessageEnd()
2491
    self._oprot.trans.flush()
2492
 
2493
  def recv_getAllTags(self, ):
2494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2495
    if mtype == TMessageType.EXCEPTION:
2496
      x = TApplicationException()
2497
      x.read(self._iprot)
2498
      self._iprot.readMessageEnd()
2499
      raise x
2500
    result = getAllTags_result()
2501
    result.read(self._iprot)
2502
    self._iprot.readMessageEnd()
2503
    if result.success is not None:
2504
      return result.success
2505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2506
 
2507
  def getAllEntitiesByTagName(self, displayName):
2508
    """
2509
    Parameters:
2510
     - displayName
2511
    """
2512
    self.send_getAllEntitiesByTagName(displayName)
2513
    return self.recv_getAllEntitiesByTagName()
2514
 
2515
  def send_getAllEntitiesByTagName(self, displayName):
2516
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2517
    args = getAllEntitiesByTagName_args()
2518
    args.displayName = displayName
2519
    args.write(self._oprot)
2520
    self._oprot.writeMessageEnd()
2521
    self._oprot.trans.flush()
2522
 
2523
  def recv_getAllEntitiesByTagName(self, ):
2524
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2525
    if mtype == TMessageType.EXCEPTION:
2526
      x = TApplicationException()
2527
      x.read(self._iprot)
2528
      self._iprot.readMessageEnd()
2529
      raise x
2530
    result = getAllEntitiesByTagName_result()
2531
    result.read(self._iprot)
2532
    self._iprot.readMessageEnd()
2533
    if result.success is not None:
2534
      return result.success
2535
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2536
 
6845 amit.gupta 2537
  def getAllEntityTags(self, ):
2538
    self.send_getAllEntityTags()
2539
    return self.recv_getAllEntityTags()
2540
 
2541
  def send_getAllEntityTags(self, ):
2542
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2543
    args = getAllEntityTags_args()
2544
    args.write(self._oprot)
2545
    self._oprot.writeMessageEnd()
2546
    self._oprot.trans.flush()
2547
 
2548
  def recv_getAllEntityTags(self, ):
2549
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2550
    if mtype == TMessageType.EXCEPTION:
2551
      x = TApplicationException()
2552
      x.read(self._iprot)
2553
      self._iprot.readMessageEnd()
2554
      raise x
2555
    result = getAllEntityTags_result()
2556
    result.read(self._iprot)
2557
    self._iprot.readMessageEnd()
2558
    if result.success is not None:
2559
      return result.success
2560
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2561
 
8590 kshitij.so 2562
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2563
    """
8579 kshitij.so 2564
    Banner Related
2565
 
6850 kshitij.so 2566
    Parameters:
8590 kshitij.so 2567
     - bannerCongregate
6850 kshitij.so 2568
    """
8590 kshitij.so 2569
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2570
    return self.recv_addBanner()
6850 kshitij.so 2571
 
8590 kshitij.so 2572
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2573
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2574
    args = addBanner_args()
8590 kshitij.so 2575
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2576
    args.write(self._oprot)
2577
    self._oprot.writeMessageEnd()
2578
    self._oprot.trans.flush()
2579
 
2580
  def recv_addBanner(self, ):
2581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2582
    if mtype == TMessageType.EXCEPTION:
2583
      x = TApplicationException()
2584
      x.read(self._iprot)
2585
      self._iprot.readMessageEnd()
2586
      raise x
2587
    result = addBanner_result()
2588
    result.read(self._iprot)
2589
    self._iprot.readMessageEnd()
10097 kshitij.so 2590
    if result.success is not None:
2591
      return result.success
2592
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2593
 
8579 kshitij.so 2594
  def updateBanner(self, banner):
2595
    """
2596
    Parameters:
2597
     - banner
2598
    """
2599
    self.send_updateBanner(banner)
2600
    return self.recv_updateBanner()
2601
 
2602
  def send_updateBanner(self, banner):
2603
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2604
    args = updateBanner_args()
2605
    args.banner = banner
2606
    args.write(self._oprot)
2607
    self._oprot.writeMessageEnd()
2608
    self._oprot.trans.flush()
2609
 
2610
  def recv_updateBanner(self, ):
2611
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2612
    if mtype == TMessageType.EXCEPTION:
2613
      x = TApplicationException()
2614
      x.read(self._iprot)
2615
      self._iprot.readMessageEnd()
2616
      raise x
2617
    result = updateBanner_result()
2618
    result.read(self._iprot)
2619
    self._iprot.readMessageEnd()
2620
    if result.success is not None:
2621
      return result.success
2622
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2623
 
6850 kshitij.so 2624
  def getAllBanners(self, ):
2625
    self.send_getAllBanners()
2626
    return self.recv_getAllBanners()
2627
 
2628
  def send_getAllBanners(self, ):
2629
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2630
    args = getAllBanners_args()
2631
    args.write(self._oprot)
2632
    self._oprot.writeMessageEnd()
2633
    self._oprot.trans.flush()
2634
 
2635
  def recv_getAllBanners(self, ):
2636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2637
    if mtype == TMessageType.EXCEPTION:
2638
      x = TApplicationException()
2639
      x.read(self._iprot)
2640
      self._iprot.readMessageEnd()
2641
      raise x
2642
    result = getAllBanners_result()
2643
    result.read(self._iprot)
2644
    self._iprot.readMessageEnd()
2645
    if result.success is not None:
2646
      return result.success
2647
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2648
 
9155 kshitij.so 2649
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2650
    """
2651
    Parameters:
2652
     - bannerName
9155 kshitij.so 2653
     - bannerType
6850 kshitij.so 2654
    """
9155 kshitij.so 2655
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2656
    return self.recv_deleteBanner()
2657
 
9155 kshitij.so 2658
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2659
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2660
    args = deleteBanner_args()
2661
    args.bannerName = bannerName
9155 kshitij.so 2662
    args.bannerType = bannerType
6850 kshitij.so 2663
    args.write(self._oprot)
2664
    self._oprot.writeMessageEnd()
2665
    self._oprot.trans.flush()
2666
 
2667
  def recv_deleteBanner(self, ):
2668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2669
    if mtype == TMessageType.EXCEPTION:
2670
      x = TApplicationException()
2671
      x.read(self._iprot)
2672
      self._iprot.readMessageEnd()
2673
      raise x
2674
    result = deleteBanner_result()
2675
    result.read(self._iprot)
2676
    self._iprot.readMessageEnd()
2677
    if result.success is not None:
2678
      return result.success
2679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2680
 
9155 kshitij.so 2681
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2682
    """
2683
    Parameters:
2684
     - bannerName
9155 kshitij.so 2685
     - bannerType
6850 kshitij.so 2686
    """
9155 kshitij.so 2687
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2688
    return self.recv_getBannerDetails()
2689
 
9155 kshitij.so 2690
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2691
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2692
    args = getBannerDetails_args()
2693
    args.bannerName = bannerName
9155 kshitij.so 2694
    args.bannerType = bannerType
6850 kshitij.so 2695
    args.write(self._oprot)
2696
    self._oprot.writeMessageEnd()
2697
    self._oprot.trans.flush()
2698
 
2699
  def recv_getBannerDetails(self, ):
2700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2701
    if mtype == TMessageType.EXCEPTION:
2702
      x = TApplicationException()
2703
      x.read(self._iprot)
2704
      self._iprot.readMessageEnd()
2705
      raise x
2706
    result = getBannerDetails_result()
2707
    result.read(self._iprot)
2708
    self._iprot.readMessageEnd()
2709
    if result.success is not None:
2710
      return result.success
2711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2712
 
2713
  def getActiveBanners(self, ):
2714
    self.send_getActiveBanners()
2715
    return self.recv_getActiveBanners()
2716
 
2717
  def send_getActiveBanners(self, ):
2718
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2719
    args = getActiveBanners_args()
2720
    args.write(self._oprot)
2721
    self._oprot.writeMessageEnd()
2722
    self._oprot.trans.flush()
2723
 
2724
  def recv_getActiveBanners(self, ):
2725
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2726
    if mtype == TMessageType.EXCEPTION:
2727
      x = TApplicationException()
2728
      x.read(self._iprot)
2729
      self._iprot.readMessageEnd()
2730
      raise x
2731
    result = getActiveBanners_result()
2732
    result.read(self._iprot)
2733
    self._iprot.readMessageEnd()
2734
    if result.success is not None:
2735
      return result.success
2736
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2737
 
8579 kshitij.so 2738
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2739
    """
2740
    Parameters:
8579 kshitij.so 2741
     - bannerMaps
6849 kshitij.so 2742
    """
8579 kshitij.so 2743
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2744
    return self.recv_addBannerMap()
2745
 
8579 kshitij.so 2746
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2747
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2748
    args = addBannerMap_args()
8579 kshitij.so 2749
    args.bannerMaps = bannerMaps
6849 kshitij.so 2750
    args.write(self._oprot)
2751
    self._oprot.writeMessageEnd()
2752
    self._oprot.trans.flush()
2753
 
2754
  def recv_addBannerMap(self, ):
2755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2756
    if mtype == TMessageType.EXCEPTION:
2757
      x = TApplicationException()
2758
      x.read(self._iprot)
2759
      self._iprot.readMessageEnd()
2760
      raise x
2761
    result = addBannerMap_result()
2762
    result.read(self._iprot)
2763
    self._iprot.readMessageEnd()
2764
    if result.success is not None:
2765
      return result.success
2766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2767
 
8579 kshitij.so 2768
  def updateBannerMap(self, bannerMap):
2769
    """
2770
    Parameters:
2771
     - bannerMap
2772
    """
2773
    self.send_updateBannerMap(bannerMap)
2774
    return self.recv_updateBannerMap()
2775
 
2776
  def send_updateBannerMap(self, bannerMap):
2777
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2778
    args = updateBannerMap_args()
2779
    args.bannerMap = bannerMap
2780
    args.write(self._oprot)
2781
    self._oprot.writeMessageEnd()
2782
    self._oprot.trans.flush()
2783
 
2784
  def recv_updateBannerMap(self, ):
2785
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2786
    if mtype == TMessageType.EXCEPTION:
2787
      x = TApplicationException()
2788
      x.read(self._iprot)
2789
      self._iprot.readMessageEnd()
2790
      raise x
2791
    result = updateBannerMap_result()
2792
    result.read(self._iprot)
2793
    self._iprot.readMessageEnd()
2794
    if result.success is not None:
2795
      return result.success
2796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2797
 
6849 kshitij.so 2798
  def deleteBannerMap(self, bannerName):
2799
    """
2800
    Parameters:
2801
     - bannerName
2802
    """
2803
    self.send_deleteBannerMap(bannerName)
2804
    return self.recv_deleteBannerMap()
2805
 
2806
  def send_deleteBannerMap(self, bannerName):
2807
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2808
    args = deleteBannerMap_args()
2809
    args.bannerName = bannerName
2810
    args.write(self._oprot)
2811
    self._oprot.writeMessageEnd()
2812
    self._oprot.trans.flush()
2813
 
2814
  def recv_deleteBannerMap(self, ):
2815
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2816
    if mtype == TMessageType.EXCEPTION:
2817
      x = TApplicationException()
2818
      x.read(self._iprot)
2819
      self._iprot.readMessageEnd()
2820
      raise x
2821
    result = deleteBannerMap_result()
2822
    result.read(self._iprot)
2823
    self._iprot.readMessageEnd()
2824
    if result.success is not None:
2825
      return result.success
2826
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2827
 
9155 kshitij.so 2828
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2829
    """
2830
    Parameters:
2831
     - bannerName
9155 kshitij.so 2832
     - bannerType
6849 kshitij.so 2833
    """
9155 kshitij.so 2834
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2835
    return self.recv_getBannerMapDetails()
2836
 
9155 kshitij.so 2837
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2838
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2839
    args = getBannerMapDetails_args()
2840
    args.bannerName = bannerName
9155 kshitij.so 2841
    args.bannerType = bannerType
6849 kshitij.so 2842
    args.write(self._oprot)
2843
    self._oprot.writeMessageEnd()
2844
    self._oprot.trans.flush()
2845
 
2846
  def recv_getBannerMapDetails(self, ):
2847
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2848
    if mtype == TMessageType.EXCEPTION:
2849
      x = TApplicationException()
2850
      x.read(self._iprot)
2851
      self._iprot.readMessageEnd()
2852
      raise x
2853
    result = getBannerMapDetails_result()
2854
    result.read(self._iprot)
2855
    self._iprot.readMessageEnd()
2856
    if result.success is not None:
2857
      return result.success
2858
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2859
 
8579 kshitij.so 2860
  def addBannerUri(self, bannerUriMappings):
2861
    """
2862
    Parameters:
2863
     - bannerUriMappings
2864
    """
2865
    self.send_addBannerUri(bannerUriMappings)
2866
    self.recv_addBannerUri()
2867
 
2868
  def send_addBannerUri(self, bannerUriMappings):
2869
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2870
    args = addBannerUri_args()
2871
    args.bannerUriMappings = bannerUriMappings
2872
    args.write(self._oprot)
2873
    self._oprot.writeMessageEnd()
2874
    self._oprot.trans.flush()
2875
 
2876
  def recv_addBannerUri(self, ):
2877
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2878
    if mtype == TMessageType.EXCEPTION:
2879
      x = TApplicationException()
2880
      x.read(self._iprot)
2881
      self._iprot.readMessageEnd()
2882
      raise x
2883
    result = addBannerUri_result()
2884
    result.read(self._iprot)
2885
    self._iprot.readMessageEnd()
2886
    return
2887
 
9155 kshitij.so 2888
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2889
    """
2890
    Parameters:
2891
     - bannerName
9155 kshitij.so 2892
     - bannerType
8579 kshitij.so 2893
    """
9155 kshitij.so 2894
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2895
    return self.recv_getUriMapping()
2896
 
9155 kshitij.so 2897
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2898
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2899
    args = getUriMapping_args()
2900
    args.bannerName = bannerName
9155 kshitij.so 2901
    args.bannerType = bannerType
8579 kshitij.so 2902
    args.write(self._oprot)
2903
    self._oprot.writeMessageEnd()
2904
    self._oprot.trans.flush()
2905
 
2906
  def recv_getUriMapping(self, ):
2907
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2908
    if mtype == TMessageType.EXCEPTION:
2909
      x = TApplicationException()
2910
      x.read(self._iprot)
2911
      self._iprot.readMessageEnd()
2912
      raise x
2913
    result = getUriMapping_result()
2914
    result.read(self._iprot)
2915
    self._iprot.readMessageEnd()
2916
    if result.success is not None:
2917
      return result.success
2918
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2919
 
2920
  def addCampaign(self, campaign):
2921
    """
2922
    Parameters:
2923
     - campaign
2924
    """
2925
    self.send_addCampaign(campaign)
2926
    self.recv_addCampaign()
2927
 
2928
  def send_addCampaign(self, campaign):
2929
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2930
    args = addCampaign_args()
2931
    args.campaign = campaign
2932
    args.write(self._oprot)
2933
    self._oprot.writeMessageEnd()
2934
    self._oprot.trans.flush()
2935
 
2936
  def recv_addCampaign(self, ):
2937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2938
    if mtype == TMessageType.EXCEPTION:
2939
      x = TApplicationException()
2940
      x.read(self._iprot)
2941
      self._iprot.readMessageEnd()
2942
      raise x
2943
    result = addCampaign_result()
2944
    result.read(self._iprot)
2945
    self._iprot.readMessageEnd()
2946
    return
2947
 
2948
  def getCampaigns(self, campaignName):
2949
    """
2950
    Parameters:
2951
     - campaignName
2952
    """
2953
    self.send_getCampaigns(campaignName)
2954
    return self.recv_getCampaigns()
2955
 
2956
  def send_getCampaigns(self, campaignName):
2957
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
2958
    args = getCampaigns_args()
2959
    args.campaignName = campaignName
2960
    args.write(self._oprot)
2961
    self._oprot.writeMessageEnd()
2962
    self._oprot.trans.flush()
2963
 
2964
  def recv_getCampaigns(self, ):
2965
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2966
    if mtype == TMessageType.EXCEPTION:
2967
      x = TApplicationException()
2968
      x.read(self._iprot)
2969
      self._iprot.readMessageEnd()
2970
      raise x
2971
    result = getCampaigns_result()
2972
    result.read(self._iprot)
2973
    self._iprot.readMessageEnd()
2974
    if result.success is not None:
2975
      return result.success
2976
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
2977
 
2978
  def deleteCampaign(self, campaignId):
2979
    """
2980
    Parameters:
2981
     - campaignId
2982
    """
2983
    self.send_deleteCampaign(campaignId)
2984
    self.recv_deleteCampaign()
2985
 
2986
  def send_deleteCampaign(self, campaignId):
2987
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
2988
    args = deleteCampaign_args()
2989
    args.campaignId = campaignId
2990
    args.write(self._oprot)
2991
    self._oprot.writeMessageEnd()
2992
    self._oprot.trans.flush()
2993
 
2994
  def recv_deleteCampaign(self, ):
2995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2996
    if mtype == TMessageType.EXCEPTION:
2997
      x = TApplicationException()
2998
      x.read(self._iprot)
2999
      self._iprot.readMessageEnd()
3000
      raise x
3001
    result = deleteCampaign_result()
3002
    result.read(self._iprot)
3003
    self._iprot.readMessageEnd()
3004
    return
3005
 
3006
  def getAllCampaigns(self, ):
3007
    self.send_getAllCampaigns()
3008
    return self.recv_getAllCampaigns()
3009
 
3010
  def send_getAllCampaigns(self, ):
3011
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
3012
    args = getAllCampaigns_args()
3013
    args.write(self._oprot)
3014
    self._oprot.writeMessageEnd()
3015
    self._oprot.trans.flush()
3016
 
3017
  def recv_getAllCampaigns(self, ):
3018
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3019
    if mtype == TMessageType.EXCEPTION:
3020
      x = TApplicationException()
3021
      x.read(self._iprot)
3022
      self._iprot.readMessageEnd()
3023
      raise x
3024
    result = getAllCampaigns_result()
3025
    result.read(self._iprot)
3026
    self._iprot.readMessageEnd()
3027
    if result.success is not None:
3028
      return result.success
3029
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
3030
 
9155 kshitij.so 3031
  def getActiveBannersForMobileSite(self, ):
3032
    self.send_getActiveBannersForMobileSite()
3033
    return self.recv_getActiveBannersForMobileSite()
3034
 
3035
  def send_getActiveBannersForMobileSite(self, ):
3036
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
3037
    args = getActiveBannersForMobileSite_args()
3038
    args.write(self._oprot)
3039
    self._oprot.writeMessageEnd()
3040
    self._oprot.trans.flush()
3041
 
3042
  def recv_getActiveBannersForMobileSite(self, ):
3043
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3044
    if mtype == TMessageType.EXCEPTION:
3045
      x = TApplicationException()
3046
      x.read(self._iprot)
3047
      self._iprot.readMessageEnd()
3048
      raise x
3049
    result = getActiveBannersForMobileSite_result()
3050
    result.read(self._iprot)
3051
    self._iprot.readMessageEnd()
3052
    if result.success is not None:
3053
      return result.success
3054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
3055
 
5944 mandeep.dh 3056
  def deleteSimilarItem(self, itemId, catalogItemId):
3057
    """
3058
    Delete similar item.
3059
 
3060
    Parameters:
3061
     - itemId
3062
     - catalogItemId
3063
    """
3064
    self.send_deleteSimilarItem(itemId, catalogItemId)
3065
    return self.recv_deleteSimilarItem()
3066
 
3067
  def send_deleteSimilarItem(self, itemId, catalogItemId):
3068
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
3069
    args = deleteSimilarItem_args()
3070
    args.itemId = itemId
3071
    args.catalogItemId = catalogItemId
3072
    args.write(self._oprot)
3073
    self._oprot.writeMessageEnd()
3074
    self._oprot.trans.flush()
3075
 
3076
  def recv_deleteSimilarItem(self, ):
3077
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3078
    if mtype == TMessageType.EXCEPTION:
3079
      x = TApplicationException()
3080
      x.read(self._iprot)
3081
      self._iprot.readMessageEnd()
3082
      raise x
3083
    result = deleteSimilarItem_result()
3084
    result.read(self._iprot)
3085
    self._iprot.readMessageEnd()
3086
    if result.success is not None:
3087
      return result.success
3088
    if result.cex is not None:
3089
      raise result.cex
3090
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
3091
 
3092
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
3093
    """
3094
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
3095
    If yes, returns the itemId else returns 0
3096
 
3097
    Parameters:
3098
     - brand
3099
     - modelNumber
3100
     - modelName
3101
     - color
3102
    """
3103
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
3104
    return self.recv_checkSimilarItem()
3105
 
3106
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
3107
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
3108
    args = checkSimilarItem_args()
3109
    args.brand = brand
3110
    args.modelNumber = modelNumber
3111
    args.modelName = modelName
3112
    args.color = color
3113
    args.write(self._oprot)
3114
    self._oprot.writeMessageEnd()
3115
    self._oprot.trans.flush()
3116
 
3117
  def recv_checkSimilarItem(self, ):
3118
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3119
    if mtype == TMessageType.EXCEPTION:
3120
      x = TApplicationException()
3121
      x.read(self._iprot)
3122
      self._iprot.readMessageEnd()
3123
      raise x
3124
    result = checkSimilarItem_result()
3125
    result.read(self._iprot)
3126
    self._iprot.readMessageEnd()
3127
    if result.success is not None:
3128
      return result.success
3129
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
3130
 
3131
  def validateRiskyStatus(self, itemId):
3132
    """
3133
    Check wether item is risky and change status if inventory is not available for risky items
3134
 
3135
    Parameters:
3136
     - itemId
3137
    """
3138
    self.send_validateRiskyStatus(itemId)
3139
    self.recv_validateRiskyStatus()
3140
 
3141
  def send_validateRiskyStatus(self, itemId):
3142
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3143
    args = validateRiskyStatus_args()
3144
    args.itemId = itemId
3145
    args.write(self._oprot)
3146
    self._oprot.writeMessageEnd()
3147
    self._oprot.trans.flush()
3148
 
3149
  def recv_validateRiskyStatus(self, ):
3150
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3151
    if mtype == TMessageType.EXCEPTION:
3152
      x = TApplicationException()
3153
      x.read(self._iprot)
3154
      self._iprot.readMessageEnd()
3155
      raise x
3156
    result = validateRiskyStatus_result()
3157
    result.read(self._iprot)
3158
    self._iprot.readMessageEnd()
3159
    return
3160
 
3161
  def changeItemRiskyFlag(self, itemId, risky):
3162
    """
3163
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3164
 
3165
    Parameters:
3166
     - itemId
3167
     - risky
3168
    """
3169
    self.send_changeItemRiskyFlag(itemId, risky)
3170
    self.recv_changeItemRiskyFlag()
3171
 
3172
  def send_changeItemRiskyFlag(self, itemId, risky):
3173
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3174
    args = changeItemRiskyFlag_args()
3175
    args.itemId = itemId
3176
    args.risky = risky
3177
    args.write(self._oprot)
3178
    self._oprot.writeMessageEnd()
3179
    self._oprot.trans.flush()
3180
 
3181
  def recv_changeItemRiskyFlag(self, ):
3182
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3183
    if mtype == TMessageType.EXCEPTION:
3184
      x = TApplicationException()
3185
      x.read(self._iprot)
3186
      self._iprot.readMessageEnd()
3187
      raise x
3188
    result = changeItemRiskyFlag_result()
3189
    result.read(self._iprot)
3190
    self._iprot.readMessageEnd()
3191
    return
3192
 
3193
  def getItemsByRiskyFlag(self, ):
3194
    """
3195
    Returns list of items marked as risky.
3196
    """
3197
    self.send_getItemsByRiskyFlag()
3198
    return self.recv_getItemsByRiskyFlag()
3199
 
3200
  def send_getItemsByRiskyFlag(self, ):
3201
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3202
    args = getItemsByRiskyFlag_args()
3203
    args.write(self._oprot)
3204
    self._oprot.writeMessageEnd()
3205
    self._oprot.trans.flush()
3206
 
3207
  def recv_getItemsByRiskyFlag(self, ):
3208
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3209
    if mtype == TMessageType.EXCEPTION:
3210
      x = TApplicationException()
3211
      x.read(self._iprot)
3212
      self._iprot.readMessageEnd()
3213
      raise x
3214
    result = getItemsByRiskyFlag_result()
3215
    result.read(self._iprot)
3216
    self._iprot.readMessageEnd()
3217
    if result.success is not None:
3218
      return result.success
3219
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3220
 
3221
  def getItemsForMasterSheet(self, category, brand):
3222
    """
3223
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3224
 
3225
    Parameters:
3226
     - category
3227
     - brand
3228
    """
3229
    self.send_getItemsForMasterSheet(category, brand)
3230
    return self.recv_getItemsForMasterSheet()
3231
 
3232
  def send_getItemsForMasterSheet(self, category, brand):
3233
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3234
    args = getItemsForMasterSheet_args()
3235
    args.category = category
3236
    args.brand = brand
3237
    args.write(self._oprot)
3238
    self._oprot.writeMessageEnd()
3239
    self._oprot.trans.flush()
3240
 
3241
  def recv_getItemsForMasterSheet(self, ):
3242
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3243
    if mtype == TMessageType.EXCEPTION:
3244
      x = TApplicationException()
3245
      x.read(self._iprot)
3246
      self._iprot.readMessageEnd()
3247
      raise x
3248
    result = getItemsForMasterSheet_result()
3249
    result.read(self._iprot)
3250
    self._iprot.readMessageEnd()
3251
    if result.success is not None:
3252
      return result.success
3253
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3254
 
3255
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3256
    """
3257
    Returns list of catalog ids of items with same similarity index as of the given itemId
3258
 
3259
    Parameters:
3260
     - beginIndex
3261
     - totalItems
3262
     - itemId
3263
    """
3264
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3265
    return self.recv_getSimilarItemsCatalogIds()
3266
 
3267
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3268
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3269
    args = getSimilarItemsCatalogIds_args()
3270
    args.beginIndex = beginIndex
3271
    args.totalItems = totalItems
3272
    args.itemId = itemId
3273
    args.write(self._oprot)
3274
    self._oprot.writeMessageEnd()
3275
    self._oprot.trans.flush()
3276
 
3277
  def recv_getSimilarItemsCatalogIds(self, ):
3278
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3279
    if mtype == TMessageType.EXCEPTION:
3280
      x = TApplicationException()
3281
      x.read(self._iprot)
3282
      self._iprot.readMessageEnd()
3283
      raise x
3284
    result = getSimilarItemsCatalogIds_result()
3285
    result.read(self._iprot)
3286
    self._iprot.readMessageEnd()
3287
    if result.success is not None:
3288
      return result.success
3289
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3290
 
3291
  def addProductNotification(self, itemId, email):
3292
    """
3293
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3294
 
3295
    Parameters:
3296
     - itemId
3297
     - email
3298
    """
3299
    self.send_addProductNotification(itemId, email)
3300
    return self.recv_addProductNotification()
3301
 
3302
  def send_addProductNotification(self, itemId, email):
3303
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3304
    args = addProductNotification_args()
3305
    args.itemId = itemId
3306
    args.email = email
3307
    args.write(self._oprot)
3308
    self._oprot.writeMessageEnd()
3309
    self._oprot.trans.flush()
3310
 
3311
  def recv_addProductNotification(self, ):
3312
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3313
    if mtype == TMessageType.EXCEPTION:
3314
      x = TApplicationException()
3315
      x.read(self._iprot)
3316
      self._iprot.readMessageEnd()
3317
      raise x
3318
    result = addProductNotification_result()
3319
    result.read(self._iprot)
3320
    self._iprot.readMessageEnd()
3321
    if result.success is not None:
3322
      return result.success
3323
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3324
 
3325
  def sendProductNotifications(self, ):
3326
    """
3327
    Send the product notifications to the users for items which has stock.
3328
    """
3329
    self.send_sendProductNotifications()
3330
    return self.recv_sendProductNotifications()
3331
 
3332
  def send_sendProductNotifications(self, ):
3333
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3334
    args = sendProductNotifications_args()
3335
    args.write(self._oprot)
3336
    self._oprot.writeMessageEnd()
3337
    self._oprot.trans.flush()
3338
 
3339
  def recv_sendProductNotifications(self, ):
3340
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3341
    if mtype == TMessageType.EXCEPTION:
3342
      x = TApplicationException()
3343
      x.read(self._iprot)
3344
      self._iprot.readMessageEnd()
3345
      raise x
3346
    result = sendProductNotifications_result()
3347
    result.read(self._iprot)
3348
    self._iprot.readMessageEnd()
3349
    if result.success is not None:
3350
      return result.success
3351
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3352
 
3353
  def getAllBrandsByCategory(self, categoryId):
3354
    """
3355
    Returns list of brand names for a given category Id
3356
 
3357
    Parameters:
3358
     - categoryId
3359
    """
3360
    self.send_getAllBrandsByCategory(categoryId)
3361
    return self.recv_getAllBrandsByCategory()
3362
 
3363
  def send_getAllBrandsByCategory(self, categoryId):
3364
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3365
    args = getAllBrandsByCategory_args()
3366
    args.categoryId = categoryId
3367
    args.write(self._oprot)
3368
    self._oprot.writeMessageEnd()
3369
    self._oprot.trans.flush()
3370
 
3371
  def recv_getAllBrandsByCategory(self, ):
3372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3373
    if mtype == TMessageType.EXCEPTION:
3374
      x = TApplicationException()
3375
      x.read(self._iprot)
3376
      self._iprot.readMessageEnd()
3377
      raise x
3378
    result = getAllBrandsByCategory_result()
3379
    result.read(self._iprot)
3380
    self._iprot.readMessageEnd()
3381
    if result.success is not None:
3382
      return result.success
3383
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3384
 
3385
  def getAllBrands(self, ):
3386
    """
3387
    Returns list of brand names
3388
    """
3389
    self.send_getAllBrands()
3390
    return self.recv_getAllBrands()
3391
 
3392
  def send_getAllBrands(self, ):
3393
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3394
    args = getAllBrands_args()
3395
    args.write(self._oprot)
3396
    self._oprot.writeMessageEnd()
3397
    self._oprot.trans.flush()
3398
 
3399
  def recv_getAllBrands(self, ):
3400
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3401
    if mtype == TMessageType.EXCEPTION:
3402
      x = TApplicationException()
3403
      x.read(self._iprot)
3404
      self._iprot.readMessageEnd()
3405
      raise x
3406
    result = getAllBrands_result()
3407
    result.read(self._iprot)
3408
    self._iprot.readMessageEnd()
3409
    if result.success is not None:
3410
      return result.success
3411
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3412
 
3413
  def getAllSources(self, ):
3414
    """
3415
    Return list of all sources
3416
    """
3417
    self.send_getAllSources()
3418
    return self.recv_getAllSources()
3419
 
3420
  def send_getAllSources(self, ):
3421
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3422
    args = getAllSources_args()
3423
    args.write(self._oprot)
3424
    self._oprot.writeMessageEnd()
3425
    self._oprot.trans.flush()
3426
 
3427
  def recv_getAllSources(self, ):
3428
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3429
    if mtype == TMessageType.EXCEPTION:
3430
      x = TApplicationException()
3431
      x.read(self._iprot)
3432
      self._iprot.readMessageEnd()
3433
      raise x
3434
    result = getAllSources_result()
3435
    result.read(self._iprot)
3436
    self._iprot.readMessageEnd()
3437
    if result.success is not None:
3438
      return result.success
3439
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3440
 
3441
  def getItemPricingBySource(self, itemId, sourceId):
3442
    """
3443
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3444
 
3445
    Parameters:
3446
     - itemId
3447
     - sourceId
3448
    """
3449
    self.send_getItemPricingBySource(itemId, sourceId)
3450
    return self.recv_getItemPricingBySource()
3451
 
3452
  def send_getItemPricingBySource(self, itemId, sourceId):
3453
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3454
    args = getItemPricingBySource_args()
3455
    args.itemId = itemId
3456
    args.sourceId = sourceId
3457
    args.write(self._oprot)
3458
    self._oprot.writeMessageEnd()
3459
    self._oprot.trans.flush()
3460
 
3461
  def recv_getItemPricingBySource(self, ):
3462
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3463
    if mtype == TMessageType.EXCEPTION:
3464
      x = TApplicationException()
3465
      x.read(self._iprot)
3466
      self._iprot.readMessageEnd()
3467
      raise x
3468
    result = getItemPricingBySource_result()
3469
    result.read(self._iprot)
3470
    self._iprot.readMessageEnd()
3471
    if result.success is not None:
3472
      return result.success
3473
    if result.cex is not None:
3474
      raise result.cex
3475
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3476
 
3477
  def addSourceItemPricing(self, sourceItemPricing):
3478
    """
3479
    Adds prices to be displayed corresponding to the item if user comes from a source.
3480
    If item is not found or source is not found, it will throw exception.
3481
 
3482
    Parameters:
3483
     - sourceItemPricing
3484
    """
3485
    self.send_addSourceItemPricing(sourceItemPricing)
3486
    self.recv_addSourceItemPricing()
3487
 
3488
  def send_addSourceItemPricing(self, sourceItemPricing):
3489
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3490
    args = addSourceItemPricing_args()
3491
    args.sourceItemPricing = sourceItemPricing
3492
    args.write(self._oprot)
3493
    self._oprot.writeMessageEnd()
3494
    self._oprot.trans.flush()
3495
 
3496
  def recv_addSourceItemPricing(self, ):
3497
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3498
    if mtype == TMessageType.EXCEPTION:
3499
      x = TApplicationException()
3500
      x.read(self._iprot)
3501
      self._iprot.readMessageEnd()
3502
      raise x
3503
    result = addSourceItemPricing_result()
3504
    result.read(self._iprot)
3505
    self._iprot.readMessageEnd()
3506
    if result.cex is not None:
3507
      raise result.cex
3508
    return
3509
 
3510
  def getAllSourcePricing(self, itemId):
3511
    """
3512
    Returns the list of source pricing information of an item.
3513
    Raises an exception if item not found corresponding to itemId
3514
 
3515
    Parameters:
3516
     - itemId
3517
    """
3518
    self.send_getAllSourcePricing(itemId)
3519
    return self.recv_getAllSourcePricing()
3520
 
3521
  def send_getAllSourcePricing(self, itemId):
3522
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3523
    args = getAllSourcePricing_args()
3524
    args.itemId = itemId
3525
    args.write(self._oprot)
3526
    self._oprot.writeMessageEnd()
3527
    self._oprot.trans.flush()
3528
 
3529
  def recv_getAllSourcePricing(self, ):
3530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3531
    if mtype == TMessageType.EXCEPTION:
3532
      x = TApplicationException()
3533
      x.read(self._iprot)
3534
      self._iprot.readMessageEnd()
3535
      raise x
3536
    result = getAllSourcePricing_result()
3537
    result.read(self._iprot)
3538
    self._iprot.readMessageEnd()
3539
    if result.success is not None:
3540
      return result.success
3541
    if result.cex is not None:
3542
      raise result.cex
3543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3544
 
3545
  def getItemForSource(self, item_id, sourceId):
3546
    """
3547
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3548
 
3549
    Parameters:
3550
     - item_id
3551
     - sourceId
3552
    """
3553
    self.send_getItemForSource(item_id, sourceId)
3554
    return self.recv_getItemForSource()
3555
 
3556
  def send_getItemForSource(self, item_id, sourceId):
3557
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3558
    args = getItemForSource_args()
3559
    args.item_id = item_id
3560
    args.sourceId = sourceId
3561
    args.write(self._oprot)
3562
    self._oprot.writeMessageEnd()
3563
    self._oprot.trans.flush()
3564
 
3565
  def recv_getItemForSource(self, ):
3566
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3567
    if mtype == TMessageType.EXCEPTION:
3568
      x = TApplicationException()
3569
      x.read(self._iprot)
3570
      self._iprot.readMessageEnd()
3571
      raise x
3572
    result = getItemForSource_result()
3573
    result.read(self._iprot)
3574
    self._iprot.readMessageEnd()
3575
    if result.success is not None:
3576
      return result.success
3577
    if result.cex is not None:
3578
      raise result.cex
3579
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3580
 
3581
  def searchItemsInRange(self, searchTerms, offset, limit):
3582
    """
3583
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3584
 
3585
    Parameters:
3586
     - searchTerms
3587
     - offset
3588
     - limit
3589
    """
3590
    self.send_searchItemsInRange(searchTerms, offset, limit)
3591
    return self.recv_searchItemsInRange()
3592
 
3593
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3594
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3595
    args = searchItemsInRange_args()
3596
    args.searchTerms = searchTerms
3597
    args.offset = offset
3598
    args.limit = limit
3599
    args.write(self._oprot)
3600
    self._oprot.writeMessageEnd()
3601
    self._oprot.trans.flush()
3602
 
3603
  def recv_searchItemsInRange(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 = searchItemsInRange_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, "searchItemsInRange failed: unknown result");
3616
 
3617
  def getSearchResultCount(self, searchTerms):
3618
    """
3619
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3620
 
3621
    Parameters:
3622
     - searchTerms
3623
    """
3624
    self.send_getSearchResultCount(searchTerms)
3625
    return self.recv_getSearchResultCount()
3626
 
3627
  def send_getSearchResultCount(self, searchTerms):
3628
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3629
    args = getSearchResultCount_args()
3630
    args.searchTerms = searchTerms
3631
    args.write(self._oprot)
3632
    self._oprot.writeMessageEnd()
3633
    self._oprot.trans.flush()
3634
 
3635
  def recv_getSearchResultCount(self, ):
3636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3637
    if mtype == TMessageType.EXCEPTION:
3638
      x = TApplicationException()
3639
      x.read(self._iprot)
3640
      self._iprot.readMessageEnd()
3641
      raise x
3642
    result = getSearchResultCount_result()
3643
    result.read(self._iprot)
3644
    self._iprot.readMessageEnd()
3645
    if result.success is not None:
3646
      return result.success
3647
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3648
 
3649
  def getProductNotifications(self, startDateTime):
3650
    """
3651
    Returns a list of product notifications added after a supplied datetime
3652
 
3653
    Parameters:
3654
     - startDateTime
3655
    """
3656
    self.send_getProductNotifications(startDateTime)
3657
    return self.recv_getProductNotifications()
3658
 
3659
  def send_getProductNotifications(self, startDateTime):
3660
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3661
    args = getProductNotifications_args()
3662
    args.startDateTime = startDateTime
3663
    args.write(self._oprot)
3664
    self._oprot.writeMessageEnd()
3665
    self._oprot.trans.flush()
3666
 
3667
  def recv_getProductNotifications(self, ):
3668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3669
    if mtype == TMessageType.EXCEPTION:
3670
      x = TApplicationException()
3671
      x.read(self._iprot)
3672
      self._iprot.readMessageEnd()
3673
      raise x
3674
    result = getProductNotifications_result()
3675
    result.read(self._iprot)
3676
    self._iprot.readMessageEnd()
3677
    if result.success is not None:
3678
      return result.success
3679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3680
 
7897 amar.kumar 3681
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3682
    """
3683
    Returns a list of count of requests for product notification against each item
3684
 
3685
    Parameters:
3686
     - startDateTime
7897 amar.kumar 3687
     - categoryId
5944 mandeep.dh 3688
    """
7897 amar.kumar 3689
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3690
    return self.recv_getProductNotificationRequestCount()
3691
 
7897 amar.kumar 3692
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3693
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3694
    args = getProductNotificationRequestCount_args()
3695
    args.startDateTime = startDateTime
7897 amar.kumar 3696
    args.categoryId = categoryId
5944 mandeep.dh 3697
    args.write(self._oprot)
3698
    self._oprot.writeMessageEnd()
3699
    self._oprot.trans.flush()
3700
 
3701
  def recv_getProductNotificationRequestCount(self, ):
3702
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3703
    if mtype == TMessageType.EXCEPTION:
3704
      x = TApplicationException()
3705
      x.read(self._iprot)
3706
      self._iprot.readMessageEnd()
3707
      raise x
3708
    result = getProductNotificationRequestCount_result()
3709
    result.read(self._iprot)
3710
    self._iprot.readMessageEnd()
3711
    if result.success is not None:
3712
      return result.success
3713
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3714
 
3715
  def addAuthorizationLog(self, itemId, username, reason):
3716
    """
3717
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3718
 
3719
    Parameters:
3720
     - itemId
3721
     - username
3722
     - reason
3723
    """
3724
    self.send_addAuthorizationLog(itemId, username, reason)
3725
    return self.recv_addAuthorizationLog()
3726
 
3727
  def send_addAuthorizationLog(self, itemId, username, reason):
3728
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3729
    args = addAuthorizationLog_args()
3730
    args.itemId = itemId
3731
    args.username = username
3732
    args.reason = reason
3733
    args.write(self._oprot)
3734
    self._oprot.writeMessageEnd()
3735
    self._oprot.trans.flush()
3736
 
3737
  def recv_addAuthorizationLog(self, ):
3738
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3739
    if mtype == TMessageType.EXCEPTION:
3740
      x = TApplicationException()
3741
      x.read(self._iprot)
3742
      self._iprot.readMessageEnd()
3743
      raise x
3744
    result = addAuthorizationLog_result()
3745
    result.read(self._iprot)
3746
    self._iprot.readMessageEnd()
3747
    if result.success is not None:
3748
      return result.success
3749
    if result.cex is not None:
3750
      raise result.cex
3751
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3752
 
3753
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3754
    """
3755
    Parameters:
3756
     - catalog_item_id
3757
     - voucherType
3758
     - voucherAmount
3759
    """
3760
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3761
    return self.recv_addupdateVoucherForItem()
3762
 
3763
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3764
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3765
    args = addupdateVoucherForItem_args()
3766
    args.catalog_item_id = catalog_item_id
3767
    args.voucherType = voucherType
3768
    args.voucherAmount = voucherAmount
3769
    args.write(self._oprot)
3770
    self._oprot.writeMessageEnd()
3771
    self._oprot.trans.flush()
3772
 
3773
  def recv_addupdateVoucherForItem(self, ):
3774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3775
    if mtype == TMessageType.EXCEPTION:
3776
      x = TApplicationException()
3777
      x.read(self._iprot)
3778
      self._iprot.readMessageEnd()
3779
      raise x
3780
    result = addupdateVoucherForItem_result()
3781
    result.read(self._iprot)
3782
    self._iprot.readMessageEnd()
3783
    if result.success is not None:
3784
      return result.success
3785
    if result.cex is not None:
3786
      raise result.cex
3787
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3788
 
3789
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3790
    """
3791
    Parameters:
3792
     - catalog_item_id
3793
     - voucherType
3794
    """
3795
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3796
    return self.recv_deleteVoucherForItem()
3797
 
3798
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3799
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3800
    args = deleteVoucherForItem_args()
3801
    args.catalog_item_id = catalog_item_id
3802
    args.voucherType = voucherType
3803
    args.write(self._oprot)
3804
    self._oprot.writeMessageEnd()
3805
    self._oprot.trans.flush()
3806
 
3807
  def recv_deleteVoucherForItem(self, ):
3808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3809
    if mtype == TMessageType.EXCEPTION:
3810
      x = TApplicationException()
3811
      x.read(self._iprot)
3812
      self._iprot.readMessageEnd()
3813
      raise x
3814
    result = deleteVoucherForItem_result()
3815
    result.read(self._iprot)
3816
    self._iprot.readMessageEnd()
3817
    if result.success is not None:
3818
      return result.success
3819
    if result.cex is not None:
3820
      raise result.cex
3821
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3822
 
3823
  def getVoucherAmount(self, itemId, voucherType):
3824
    """
3825
    Parameters:
3826
     - itemId
3827
     - voucherType
3828
    """
3829
    self.send_getVoucherAmount(itemId, voucherType)
3830
    return self.recv_getVoucherAmount()
3831
 
3832
  def send_getVoucherAmount(self, itemId, voucherType):
3833
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3834
    args = getVoucherAmount_args()
3835
    args.itemId = itemId
3836
    args.voucherType = voucherType
3837
    args.write(self._oprot)
3838
    self._oprot.writeMessageEnd()
3839
    self._oprot.trans.flush()
3840
 
3841
  def recv_getVoucherAmount(self, ):
3842
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3843
    if mtype == TMessageType.EXCEPTION:
3844
      x = TApplicationException()
3845
      x.read(self._iprot)
3846
      self._iprot.readMessageEnd()
3847
      raise x
3848
    result = getVoucherAmount_result()
3849
    result.read(self._iprot)
3850
    self._iprot.readMessageEnd()
3851
    if result.success is not None:
3852
      return result.success
3853
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3854
 
3855
  def getAllItemVouchers(self, itemId):
3856
    """
3857
    Parameters:
3858
     - itemId
3859
    """
3860
    self.send_getAllItemVouchers(itemId)
3861
    return self.recv_getAllItemVouchers()
3862
 
3863
  def send_getAllItemVouchers(self, itemId):
3864
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3865
    args = getAllItemVouchers_args()
3866
    args.itemId = itemId
3867
    args.write(self._oprot)
3868
    self._oprot.writeMessageEnd()
3869
    self._oprot.trans.flush()
3870
 
3871
  def recv_getAllItemVouchers(self, ):
3872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3873
    if mtype == TMessageType.EXCEPTION:
3874
      x = TApplicationException()
3875
      x.read(self._iprot)
3876
      self._iprot.readMessageEnd()
3877
      raise x
3878
    result = getAllItemVouchers_result()
3879
    result.read(self._iprot)
3880
    self._iprot.readMessageEnd()
3881
    if result.success is not None:
3882
      return result.success
3883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3884
 
3885
  def isValidCatalogItemId(self, catalog_item_id):
3886
    """
3887
    Parameters:
3888
     - catalog_item_id
3889
    """
3890
    self.send_isValidCatalogItemId(catalog_item_id)
3891
    return self.recv_isValidCatalogItemId()
3892
 
3893
  def send_isValidCatalogItemId(self, catalog_item_id):
3894
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3895
    args = isValidCatalogItemId_args()
3896
    args.catalog_item_id = catalog_item_id
3897
    args.write(self._oprot)
3898
    self._oprot.writeMessageEnd()
3899
    self._oprot.trans.flush()
3900
 
3901
  def recv_isValidCatalogItemId(self, ):
3902
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3903
    if mtype == TMessageType.EXCEPTION:
3904
      x = TApplicationException()
3905
      x.read(self._iprot)
3906
      self._iprot.readMessageEnd()
3907
      raise x
3908
    result = isValidCatalogItemId_result()
3909
    result.read(self._iprot)
3910
    self._iprot.readMessageEnd()
3911
    if result.success is not None:
3912
      return result.success
3913
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3914
 
7330 amit.gupta 3915
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3916
    """
3917
    Parameters:
3918
     - itemId
7330 amit.gupta 3919
     - stateId
6039 amit.gupta 3920
     - price
3921
    """
7330 amit.gupta 3922
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3923
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3924
 
7330 amit.gupta 3925
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3926
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3927
    args = getVatPercentageForItem_args()
3928
    args.itemId = itemId
7330 amit.gupta 3929
    args.stateId = stateId
6039 amit.gupta 3930
    args.price = price
3931
    args.write(self._oprot)
3932
    self._oprot.writeMessageEnd()
3933
    self._oprot.trans.flush()
3934
 
3935
  def recv_getVatPercentageForItem(self, ):
3936
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3937
    if mtype == TMessageType.EXCEPTION:
3938
      x = TApplicationException()
3939
      x.read(self._iprot)
3940
      self._iprot.readMessageEnd()
3941
      raise x
3942
    result = getVatPercentageForItem_result()
3943
    result.read(self._iprot)
3944
    self._iprot.readMessageEnd()
3945
    if result.success is not None:
3946
      return result.success
7340 amit.gupta 3947
    if result.cex is not None:
3948
      raise result.cex
6039 amit.gupta 3949
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3950
 
3951
  def getVatAmountForItem(self, itemId, price):
3952
    """
3953
    Parameters:
3954
     - itemId
3955
     - price
3956
    """
3957
    self.send_getVatAmountForItem(itemId, price)
3958
    return self.recv_getVatAmountForItem()
3959
 
3960
  def send_getVatAmountForItem(self, itemId, price):
3961
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3962
    args = getVatAmountForItem_args()
3963
    args.itemId = itemId
3964
    args.price = price
3965
    args.write(self._oprot)
3966
    self._oprot.writeMessageEnd()
3967
    self._oprot.trans.flush()
3968
 
3969
  def recv_getVatAmountForItem(self, ):
3970
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3971
    if mtype == TMessageType.EXCEPTION:
3972
      x = TApplicationException()
3973
      x.read(self._iprot)
3974
      self._iprot.readMessageEnd()
3975
      raise x
3976
    result = getVatAmountForItem_result()
3977
    result.read(self._iprot)
3978
    self._iprot.readMessageEnd()
3979
    if result.success is not None:
3980
      return result.success
3981
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3982
 
6531 vikram.rag 3983
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3984
    """
3985
    Parameters:
3986
     - offset
3987
     - limit
3988
    """
3989
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3990
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3991
 
6531 vikram.rag 3992
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3993
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3994
    args = getAllIgnoredInventoryUpdateItemsList_args()
3995
    args.offset = offset
3996
    args.limit = limit
3997
    args.write(self._oprot)
3998
    self._oprot.writeMessageEnd()
3999
    self._oprot.trans.flush()
4000
 
4001
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
4002
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4003
    if mtype == TMessageType.EXCEPTION:
4004
      x = TApplicationException()
4005
      x.read(self._iprot)
4006
      self._iprot.readMessageEnd()
4007
      raise x
4008
    result = getAllIgnoredInventoryUpdateItemsList_result()
4009
    result.read(self._iprot)
4010
    self._iprot.readMessageEnd()
4011
    if result.success is not None:
4012
      return result.success
4013
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
4014
 
6821 amar.kumar 4015
  def getAllAliveItems(self, ):
4016
    self.send_getAllAliveItems()
4017
    return self.recv_getAllAliveItems()
4018
 
4019
  def send_getAllAliveItems(self, ):
4020
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
4021
    args = getAllAliveItems_args()
4022
    args.write(self._oprot)
4023
    self._oprot.writeMessageEnd()
4024
    self._oprot.trans.flush()
4025
 
4026
  def recv_getAllAliveItems(self, ):
4027
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4028
    if mtype == TMessageType.EXCEPTION:
4029
      x = TApplicationException()
4030
      x.read(self._iprot)
4031
      self._iprot.readMessageEnd()
4032
      raise x
4033
    result = getAllAliveItems_result()
4034
    result.read(self._iprot)
4035
    self._iprot.readMessageEnd()
4036
    if result.success is not None:
4037
      return result.success
4038
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
4039
 
6921 anupam.sin 4040
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4041
    """
4042
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 4043
 
6805 anupam.sin 4044
    Parameters:
4045
     - itemId
6921 anupam.sin 4046
     - price
6805 anupam.sin 4047
     - insurerId
4048
     - quantity
4049
    """
6921 anupam.sin 4050
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 4051
    return self.recv_getInsuranceAmount()
4052
 
6921 anupam.sin 4053
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4054
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
4055
    args = getInsuranceAmount_args()
4056
    args.itemId = itemId
6921 anupam.sin 4057
    args.price = price
6805 anupam.sin 4058
    args.insurerId = insurerId
4059
    args.quantity = quantity
4060
    args.write(self._oprot)
4061
    self._oprot.writeMessageEnd()
4062
    self._oprot.trans.flush()
4063
 
4064
  def recv_getInsuranceAmount(self, ):
4065
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4066
    if mtype == TMessageType.EXCEPTION:
4067
      x = TApplicationException()
4068
      x.read(self._iprot)
4069
      self._iprot.readMessageEnd()
4070
      raise x
4071
    result = getInsuranceAmount_result()
4072
    result.read(self._iprot)
4073
    self._iprot.readMessageEnd()
4074
    if result.success is not None:
4075
      return result.success
4076
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
4077
 
4078
  def getInsurer(self, insurerId):
4079
    """
4080
    Parameters:
4081
     - insurerId
4082
    """
4083
    self.send_getInsurer(insurerId)
4084
    return self.recv_getInsurer()
4085
 
4086
  def send_getInsurer(self, insurerId):
4087
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
4088
    args = getInsurer_args()
4089
    args.insurerId = insurerId
4090
    args.write(self._oprot)
4091
    self._oprot.writeMessageEnd()
4092
    self._oprot.trans.flush()
4093
 
4094
  def recv_getInsurer(self, ):
4095
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4096
    if mtype == TMessageType.EXCEPTION:
4097
      x = TApplicationException()
4098
      x.read(self._iprot)
4099
      self._iprot.readMessageEnd()
4100
      raise x
4101
    result = getInsurer_result()
4102
    result.read(self._iprot)
4103
    self._iprot.readMessageEnd()
4104
    if result.success is not None:
4105
      return result.success
4106
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
4107
 
6838 vikram.rag 4108
  def getAllInsurers(self, ):
4109
    self.send_getAllInsurers()
4110
    return self.recv_getAllInsurers()
6805 anupam.sin 4111
 
6838 vikram.rag 4112
  def send_getAllInsurers(self, ):
4113
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
4114
    args = getAllInsurers_args()
4115
    args.write(self._oprot)
4116
    self._oprot.writeMessageEnd()
4117
    self._oprot.trans.flush()
4118
 
4119
  def recv_getAllInsurers(self, ):
4120
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4121
    if mtype == TMessageType.EXCEPTION:
4122
      x = TApplicationException()
4123
      x.read(self._iprot)
4124
      self._iprot.readMessageEnd()
4125
      raise x
4126
    result = getAllInsurers_result()
4127
    result.read(self._iprot)
4128
    self._iprot.readMessageEnd()
4129
    if result.success is not None:
4130
      return result.success
4131
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
4132
 
6962 rajveer 4133
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
4134
    """
4135
    Parameters:
4136
     - insurerId
4137
     - amount
4138
    """
4139
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
4140
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 4141
 
6962 rajveer 4142
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4143
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4144
    args = updateInsuranceDeclaredAmount_args()
4145
    args.insurerId = insurerId
4146
    args.amount = amount
4147
    args.write(self._oprot)
4148
    self._oprot.writeMessageEnd()
4149
    self._oprot.trans.flush()
4150
 
4151
  def recv_updateInsuranceDeclaredAmount(self, ):
4152
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4153
    if mtype == TMessageType.EXCEPTION:
4154
      x = TApplicationException()
4155
      x.read(self._iprot)
4156
      self._iprot.readMessageEnd()
4157
      raise x
4158
    result = updateInsuranceDeclaredAmount_result()
4159
    result.read(self._iprot)
4160
    self._iprot.readMessageEnd()
4161
    return
4162
 
7190 amar.kumar 4163
  def getFreebieForItem(self, itemId):
4164
    """
4165
    Parameters:
4166
     - itemId
4167
    """
4168
    self.send_getFreebieForItem(itemId)
4169
    return self.recv_getFreebieForItem()
6962 rajveer 4170
 
7190 amar.kumar 4171
  def send_getFreebieForItem(self, itemId):
4172
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4173
    args = getFreebieForItem_args()
4174
    args.itemId = itemId
4175
    args.write(self._oprot)
4176
    self._oprot.writeMessageEnd()
4177
    self._oprot.trans.flush()
4178
 
4179
  def recv_getFreebieForItem(self, ):
4180
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4181
    if mtype == TMessageType.EXCEPTION:
4182
      x = TApplicationException()
4183
      x.read(self._iprot)
4184
      self._iprot.readMessageEnd()
4185
      raise x
4186
    result = getFreebieForItem_result()
4187
    result.read(self._iprot)
4188
    self._iprot.readMessageEnd()
4189
    if result.success is not None:
4190
      return result.success
4191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4192
 
4193
  def addOrUpdateFreebieForItem(self, freebieItem):
4194
    """
4195
    Parameters:
4196
     - freebieItem
4197
    """
4198
    self.send_addOrUpdateFreebieForItem(freebieItem)
4199
    self.recv_addOrUpdateFreebieForItem()
4200
 
4201
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4202
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4203
    args = addOrUpdateFreebieForItem_args()
4204
    args.freebieItem = freebieItem
4205
    args.write(self._oprot)
4206
    self._oprot.writeMessageEnd()
4207
    self._oprot.trans.flush()
4208
 
4209
  def recv_addOrUpdateFreebieForItem(self, ):
4210
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4211
    if mtype == TMessageType.EXCEPTION:
4212
      x = TApplicationException()
4213
      x.read(self._iprot)
4214
      self._iprot.readMessageEnd()
4215
      raise x
4216
    result = addOrUpdateFreebieForItem_result()
4217
    result.read(self._iprot)
4218
    self._iprot.readMessageEnd()
4219
    return
4220
 
7272 amit.gupta 4221
  def addOrUpdateBrandInfo(self, brandInfo):
4222
    """
4223
    Parameters:
4224
     - brandInfo
4225
    """
4226
    self.send_addOrUpdateBrandInfo(brandInfo)
4227
    self.recv_addOrUpdateBrandInfo()
4228
 
4229
  def send_addOrUpdateBrandInfo(self, brandInfo):
4230
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4231
    args = addOrUpdateBrandInfo_args()
4232
    args.brandInfo = brandInfo
4233
    args.write(self._oprot)
4234
    self._oprot.writeMessageEnd()
4235
    self._oprot.trans.flush()
4236
 
4237
  def recv_addOrUpdateBrandInfo(self, ):
4238
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4239
    if mtype == TMessageType.EXCEPTION:
4240
      x = TApplicationException()
4241
      x.read(self._iprot)
4242
      self._iprot.readMessageEnd()
4243
      raise x
4244
    result = addOrUpdateBrandInfo_result()
4245
    result.read(self._iprot)
4246
    self._iprot.readMessageEnd()
4247
    return
4248
 
4249
  def getBrandInfo(self, ):
4250
    self.send_getBrandInfo()
4251
    return self.recv_getBrandInfo()
4252
 
4253
  def send_getBrandInfo(self, ):
4254
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4255
    args = getBrandInfo_args()
4256
    args.write(self._oprot)
4257
    self._oprot.writeMessageEnd()
4258
    self._oprot.trans.flush()
4259
 
4260
  def recv_getBrandInfo(self, ):
4261
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4262
    if mtype == TMessageType.EXCEPTION:
4263
      x = TApplicationException()
4264
      x.read(self._iprot)
4265
      self._iprot.readMessageEnd()
4266
      raise x
4267
    result = getBrandInfo_result()
4268
    result.read(self._iprot)
4269
    self._iprot.readMessageEnd()
4270
    if result.success is not None:
4271
      return result.success
4272
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4273
 
7256 rajveer 4274
  def getStorePricing(self, itemId):
4275
    """
4276
    Parameters:
4277
     - itemId
4278
    """
4279
    self.send_getStorePricing(itemId)
4280
    return self.recv_getStorePricing()
7190 amar.kumar 4281
 
7256 rajveer 4282
  def send_getStorePricing(self, itemId):
4283
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4284
    args = getStorePricing_args()
4285
    args.itemId = itemId
4286
    args.write(self._oprot)
4287
    self._oprot.writeMessageEnd()
4288
    self._oprot.trans.flush()
4289
 
4290
  def recv_getStorePricing(self, ):
4291
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4292
    if mtype == TMessageType.EXCEPTION:
4293
      x = TApplicationException()
4294
      x.read(self._iprot)
4295
      self._iprot.readMessageEnd()
4296
      raise x
4297
    result = getStorePricing_result()
4298
    result.read(self._iprot)
4299
    self._iprot.readMessageEnd()
4300
    if result.success is not None:
4301
      return result.success
4302
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4303
 
7306 rajveer 4304
  def getStorePricings(self, itemIds):
4305
    """
4306
    Parameters:
4307
     - itemIds
4308
    """
4309
    self.send_getStorePricings(itemIds)
4310
    return self.recv_getStorePricings()
4311
 
4312
  def send_getStorePricings(self, itemIds):
4313
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4314
    args = getStorePricings_args()
4315
    args.itemIds = itemIds
4316
    args.write(self._oprot)
4317
    self._oprot.writeMessageEnd()
4318
    self._oprot.trans.flush()
4319
 
4320
  def recv_getStorePricings(self, ):
4321
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4322
    if mtype == TMessageType.EXCEPTION:
4323
      x = TApplicationException()
4324
      x.read(self._iprot)
4325
      self._iprot.readMessageEnd()
4326
      raise x
4327
    result = getStorePricings_result()
4328
    result.read(self._iprot)
4329
    self._iprot.readMessageEnd()
4330
    if result.success is not None:
4331
      return result.success
4332
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4333
 
7382 rajveer 4334
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4335
    """
4336
    Parameters:
4337
     - sp
7382 rajveer 4338
     - allColors
7265 rajveer 4339
    """
7382 rajveer 4340
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4341
    self.recv_updateStorePricing()
7256 rajveer 4342
 
7382 rajveer 4343
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4344
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4345
    args = updateStorePricing_args()
4346
    args.sp = sp
7382 rajveer 4347
    args.allColors = allColors
7265 rajveer 4348
    args.write(self._oprot)
4349
    self._oprot.writeMessageEnd()
4350
    self._oprot.trans.flush()
4351
 
4352
  def recv_updateStorePricing(self, ):
4353
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4354
    if mtype == TMessageType.EXCEPTION:
4355
      x = TApplicationException()
4356
      x.read(self._iprot)
4357
      self._iprot.readMessageEnd()
4358
      raise x
4359
    result = updateStorePricing_result()
4360
    result.read(self._iprot)
4361
    self._iprot.readMessageEnd()
4362
    return
4363
 
7281 kshitij.so 4364
  def getAllAmazonListedItems(self, ):
4365
    self.send_getAllAmazonListedItems()
4366
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4367
 
7281 kshitij.so 4368
  def send_getAllAmazonListedItems(self, ):
4369
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4370
    args = getAllAmazonListedItems_args()
4371
    args.write(self._oprot)
4372
    self._oprot.writeMessageEnd()
4373
    self._oprot.trans.flush()
4374
 
4375
  def recv_getAllAmazonListedItems(self, ):
4376
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4377
    if mtype == TMessageType.EXCEPTION:
4378
      x = TApplicationException()
4379
      x.read(self._iprot)
4380
      self._iprot.readMessageEnd()
4381
      raise x
4382
    result = getAllAmazonListedItems_result()
4383
    result.read(self._iprot)
4384
    self._iprot.readMessageEnd()
4385
    if result.success is not None:
4386
      return result.success
4387
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4388
 
8619 kshitij.so 4389
  def searchAmazonItems(self, searchTerm, offset, limit):
4390
    """
4391
    Parameters:
4392
     - searchTerm
4393
     - offset
4394
     - limit
4395
    """
4396
    self.send_searchAmazonItems(searchTerm, offset, limit)
4397
    return self.recv_searchAmazonItems()
4398
 
4399
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4400
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4401
    args = searchAmazonItems_args()
4402
    args.searchTerm = searchTerm
4403
    args.offset = offset
4404
    args.limit = limit
4405
    args.write(self._oprot)
4406
    self._oprot.writeMessageEnd()
4407
    self._oprot.trans.flush()
4408
 
4409
  def recv_searchAmazonItems(self, ):
4410
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4411
    if mtype == TMessageType.EXCEPTION:
4412
      x = TApplicationException()
4413
      x.read(self._iprot)
4414
      self._iprot.readMessageEnd()
4415
      raise x
4416
    result = searchAmazonItems_result()
4417
    result.read(self._iprot)
4418
    self._iprot.readMessageEnd()
4419
    if result.success is not None:
4420
      return result.success
4421
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4422
 
4423
  def getAmazonSearchResultCount(self, searchTerm):
4424
    """
4425
    Parameters:
4426
     - searchTerm
4427
    """
4428
    self.send_getAmazonSearchResultCount(searchTerm)
4429
    return self.recv_getAmazonSearchResultCount()
4430
 
4431
  def send_getAmazonSearchResultCount(self, searchTerm):
4432
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4433
    args = getAmazonSearchResultCount_args()
4434
    args.searchTerm = searchTerm
4435
    args.write(self._oprot)
4436
    self._oprot.writeMessageEnd()
4437
    self._oprot.trans.flush()
4438
 
4439
  def recv_getAmazonSearchResultCount(self, ):
4440
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4441
    if mtype == TMessageType.EXCEPTION:
4442
      x = TApplicationException()
4443
      x.read(self._iprot)
4444
      self._iprot.readMessageEnd()
4445
      raise x
4446
    result = getAmazonSearchResultCount_result()
4447
    result.read(self._iprot)
4448
    self._iprot.readMessageEnd()
4449
    if result.success is not None:
4450
      return result.success
4451
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4452
 
4453
  def getCountForAmazonlistedItems(self, ):
4454
    self.send_getCountForAmazonlistedItems()
4455
    return self.recv_getCountForAmazonlistedItems()
4456
 
4457
  def send_getCountForAmazonlistedItems(self, ):
4458
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4459
    args = getCountForAmazonlistedItems_args()
4460
    args.write(self._oprot)
4461
    self._oprot.writeMessageEnd()
4462
    self._oprot.trans.flush()
4463
 
4464
  def recv_getCountForAmazonlistedItems(self, ):
4465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4466
    if mtype == TMessageType.EXCEPTION:
4467
      x = TApplicationException()
4468
      x.read(self._iprot)
4469
      self._iprot.readMessageEnd()
4470
      raise x
4471
    result = getCountForAmazonlistedItems_result()
4472
    result.read(self._iprot)
4473
    self._iprot.readMessageEnd()
4474
    if result.success is not None:
4475
      return result.success
4476
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4477
 
7281 kshitij.so 4478
  def getAmazonItemDetails(self, itemId):
4479
    """
4480
    Parameters:
4481
     - itemId
4482
    """
4483
    self.send_getAmazonItemDetails(itemId)
4484
    return self.recv_getAmazonItemDetails()
4485
 
4486
  def send_getAmazonItemDetails(self, itemId):
4487
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4488
    args = getAmazonItemDetails_args()
4489
    args.itemId = itemId
4490
    args.write(self._oprot)
4491
    self._oprot.writeMessageEnd()
4492
    self._oprot.trans.flush()
4493
 
4494
  def recv_getAmazonItemDetails(self, ):
4495
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4496
    if mtype == TMessageType.EXCEPTION:
4497
      x = TApplicationException()
4498
      x.read(self._iprot)
4499
      self._iprot.readMessageEnd()
4500
      raise x
4501
    result = getAmazonItemDetails_result()
4502
    result.read(self._iprot)
4503
    self._iprot.readMessageEnd()
4504
    if result.success is not None:
4505
      return result.success
4506
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4507
 
8168 kshitij.so 4508
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4509
    """
4510
    Parameters:
8168 kshitij.so 4511
     - amazonlisted
7281 kshitij.so 4512
    """
8168 kshitij.so 4513
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4514
    self.recv_updateAmazonItemDetails()
4515
 
8168 kshitij.so 4516
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4517
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4518
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4519
    args.amazonlisted = amazonlisted
7281 kshitij.so 4520
    args.write(self._oprot)
4521
    self._oprot.writeMessageEnd()
4522
    self._oprot.trans.flush()
4523
 
4524
  def recv_updateAmazonItemDetails(self, ):
4525
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4526
    if mtype == TMessageType.EXCEPTION:
4527
      x = TApplicationException()
4528
      x.read(self._iprot)
4529
      self._iprot.readMessageEnd()
4530
      raise x
4531
    result = updateAmazonItemDetails_result()
4532
    result.read(self._iprot)
4533
    self._iprot.readMessageEnd()
4534
    return
4535
 
4536
  def addAmazonItem(self, amazonlisted):
4537
    """
4538
    Parameters:
4539
     - amazonlisted
4540
    """
4541
    self.send_addAmazonItem(amazonlisted)
4542
    self.recv_addAmazonItem()
4543
 
4544
  def send_addAmazonItem(self, amazonlisted):
4545
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4546
    args = addAmazonItem_args()
4547
    args.amazonlisted = amazonlisted
4548
    args.write(self._oprot)
4549
    self._oprot.writeMessageEnd()
4550
    self._oprot.trans.flush()
4551
 
4552
  def recv_addAmazonItem(self, ):
4553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4554
    if mtype == TMessageType.EXCEPTION:
4555
      x = TApplicationException()
4556
      x.read(self._iprot)
4557
      self._iprot.readMessageEnd()
4558
      raise x
4559
    result = addAmazonItem_result()
4560
    result.read(self._iprot)
4561
    self._iprot.readMessageEnd()
4562
    return
4563
 
7291 vikram.rag 4564
  def getAsinItems(self, ):
4565
    self.send_getAsinItems()
4566
    return self.recv_getAsinItems()
7281 kshitij.so 4567
 
7291 vikram.rag 4568
  def send_getAsinItems(self, ):
4569
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4570
    args = getAsinItems_args()
4571
    args.write(self._oprot)
4572
    self._oprot.writeMessageEnd()
4573
    self._oprot.trans.flush()
4574
 
4575
  def recv_getAsinItems(self, ):
4576
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4577
    if mtype == TMessageType.EXCEPTION:
4578
      x = TApplicationException()
4579
      x.read(self._iprot)
4580
      self._iprot.readMessageEnd()
4581
      raise x
4582
    result = getAsinItems_result()
4583
    result.read(self._iprot)
4584
    self._iprot.readMessageEnd()
4585
    if result.success is not None:
4586
      return result.success
4587
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4588
 
4589
  def getAllFbaListedItems(self, ):
4590
    self.send_getAllFbaListedItems()
4591
    return self.recv_getAllFbaListedItems()
4592
 
4593
  def send_getAllFbaListedItems(self, ):
4594
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4595
    args = getAllFbaListedItems_args()
4596
    args.write(self._oprot)
4597
    self._oprot.writeMessageEnd()
4598
    self._oprot.trans.flush()
4599
 
4600
  def recv_getAllFbaListedItems(self, ):
4601
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4602
    if mtype == TMessageType.EXCEPTION:
4603
      x = TApplicationException()
4604
      x.read(self._iprot)
4605
      self._iprot.readMessageEnd()
4606
      raise x
4607
    result = getAllFbaListedItems_result()
4608
    result.read(self._iprot)
4609
    self._iprot.readMessageEnd()
4610
    if result.success is not None:
4611
      return result.success
4612
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4613
 
4614
  def getAllNonFbaListedItems(self, ):
4615
    self.send_getAllNonFbaListedItems()
4616
    return self.recv_getAllNonFbaListedItems()
4617
 
4618
  def send_getAllNonFbaListedItems(self, ):
4619
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4620
    args = getAllNonFbaListedItems_args()
4621
    args.write(self._oprot)
4622
    self._oprot.writeMessageEnd()
4623
    self._oprot.trans.flush()
4624
 
4625
  def recv_getAllNonFbaListedItems(self, ):
4626
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4627
    if mtype == TMessageType.EXCEPTION:
4628
      x = TApplicationException()
4629
      x.read(self._iprot)
4630
      self._iprot.readMessageEnd()
4631
      raise x
4632
    result = getAllNonFbaListedItems_result()
4633
    result.read(self._iprot)
4634
    self._iprot.readMessageEnd()
4635
    if result.success is not None:
4636
      return result.success
4637
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4638
 
7460 kshitij.so 4639
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4640
    """
4641
    Parameters:
4642
     - itemId
4643
     - holdInventory
4644
     - defaultInventory
4645
    """
4646
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4647
    return self.recv_updateItemInventory()
7291 vikram.rag 4648
 
7460 kshitij.so 4649
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4650
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4651
    args = updateItemInventory_args()
4652
    args.itemId = itemId
4653
    args.holdInventory = holdInventory
4654
    args.defaultInventory = defaultInventory
4655
    args.write(self._oprot)
4656
    self._oprot.writeMessageEnd()
4657
    self._oprot.trans.flush()
4658
 
4659
  def recv_updateItemInventory(self, ):
4660
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4661
    if mtype == TMessageType.EXCEPTION:
4662
      x = TApplicationException()
4663
      x.read(self._iprot)
4664
      self._iprot.readMessageEnd()
4665
      raise x
4666
    result = updateItemInventory_result()
4667
    result.read(self._iprot)
4668
    self._iprot.readMessageEnd()
4669
    if result.success is not None:
4670
      return result.success
4671
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4672
 
7770 kshitij.so 4673
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4674
    """
4675
    Parameters:
4676
     - type
4677
     - sku
4678
     - timestamp
4679
    """
4680
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4681
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4682
 
7770 kshitij.so 4683
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4684
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4685
    args = updateTimestampForAmazonFeeds_args()
4686
    args.type = type
4687
    args.sku = sku
4688
    args.timestamp = timestamp
4689
    args.write(self._oprot)
4690
    self._oprot.writeMessageEnd()
4691
    self._oprot.trans.flush()
4692
 
4693
  def recv_updateTimestampForAmazonFeeds(self, ):
4694
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4695
    if mtype == TMessageType.EXCEPTION:
4696
      x = TApplicationException()
4697
      x.read(self._iprot)
4698
      self._iprot.readMessageEnd()
4699
      raise x
4700
    result = updateTimestampForAmazonFeeds_result()
4701
    result.read(self._iprot)
4702
    self._iprot.readMessageEnd()
4703
    if result.success is not None:
4704
      return result.success
4705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4706
 
7897 amar.kumar 4707
  def getAllParentCategories(self, ):
4708
    self.send_getAllParentCategories()
4709
    return self.recv_getAllParentCategories()
7770 kshitij.so 4710
 
7897 amar.kumar 4711
  def send_getAllParentCategories(self, ):
4712
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4713
    args = getAllParentCategories_args()
4714
    args.write(self._oprot)
4715
    self._oprot.writeMessageEnd()
4716
    self._oprot.trans.flush()
4717
 
4718
  def recv_getAllParentCategories(self, ):
4719
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4720
    if mtype == TMessageType.EXCEPTION:
4721
      x = TApplicationException()
4722
      x.read(self._iprot)
4723
      self._iprot.readMessageEnd()
4724
      raise x
4725
    result = getAllParentCategories_result()
4726
    result.read(self._iprot)
4727
    self._iprot.readMessageEnd()
4728
    if result.success is not None:
4729
      return result.success
4730
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4731
 
7977 kshitij.so 4732
  def addPageViewEvent(self, pageViewEvents):
4733
    """
4734
    Parameters:
4735
     - pageViewEvents
4736
    """
4737
    self.send_addPageViewEvent(pageViewEvents)
4738
    self.recv_addPageViewEvent()
7897 amar.kumar 4739
 
7977 kshitij.so 4740
  def send_addPageViewEvent(self, pageViewEvents):
4741
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4742
    args = addPageViewEvent_args()
4743
    args.pageViewEvents = pageViewEvents
4744
    args.write(self._oprot)
4745
    self._oprot.writeMessageEnd()
4746
    self._oprot.trans.flush()
4747
 
4748
  def recv_addPageViewEvent(self, ):
4749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4750
    if mtype == TMessageType.EXCEPTION:
4751
      x = TApplicationException()
4752
      x.read(self._iprot)
4753
      self._iprot.readMessageEnd()
4754
      raise x
4755
    result = addPageViewEvent_result()
4756
    result.read(self._iprot)
4757
    self._iprot.readMessageEnd()
4758
    return
4759
 
4760
  def addCartEvent(self, cartEvents):
4761
    """
4762
    Parameters:
4763
     - cartEvents
4764
    """
4765
    self.send_addCartEvent(cartEvents)
4766
    self.recv_addCartEvent()
4767
 
4768
  def send_addCartEvent(self, cartEvents):
4769
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4770
    args = addCartEvent_args()
4771
    args.cartEvents = cartEvents
4772
    args.write(self._oprot)
4773
    self._oprot.writeMessageEnd()
4774
    self._oprot.trans.flush()
4775
 
4776
  def recv_addCartEvent(self, ):
4777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4778
    if mtype == TMessageType.EXCEPTION:
4779
      x = TApplicationException()
4780
      x.read(self._iprot)
4781
      self._iprot.readMessageEnd()
4782
      raise x
4783
    result = addCartEvent_result()
4784
    result.read(self._iprot)
4785
    self._iprot.readMessageEnd()
4786
    return
4787
 
8182 amar.kumar 4788
  def addEbayItem(self, ebayItem):
4789
    """
4790
    Parameters:
4791
     - ebayItem
4792
    """
4793
    self.send_addEbayItem(ebayItem)
4794
    self.recv_addEbayItem()
4795
 
4796
  def send_addEbayItem(self, ebayItem):
4797
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4798
    args = addEbayItem_args()
4799
    args.ebayItem = ebayItem
4800
    args.write(self._oprot)
4801
    self._oprot.writeMessageEnd()
4802
    self._oprot.trans.flush()
4803
 
4804
  def recv_addEbayItem(self, ):
4805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4806
    if mtype == TMessageType.EXCEPTION:
4807
      x = TApplicationException()
4808
      x.read(self._iprot)
4809
      self._iprot.readMessageEnd()
4810
      raise x
4811
    result = addEbayItem_result()
4812
    result.read(self._iprot)
4813
    self._iprot.readMessageEnd()
4814
    return
4815
 
4816
  def getEbayItem(self, listingId):
4817
    """
4818
    Parameters:
4819
     - listingId
4820
    """
4821
    self.send_getEbayItem(listingId)
4822
    return self.recv_getEbayItem()
4823
 
4824
  def send_getEbayItem(self, listingId):
4825
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4826
    args = getEbayItem_args()
4827
    args.listingId = listingId
4828
    args.write(self._oprot)
4829
    self._oprot.writeMessageEnd()
4830
    self._oprot.trans.flush()
4831
 
4832
  def recv_getEbayItem(self, ):
4833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4834
    if mtype == TMessageType.EXCEPTION:
4835
      x = TApplicationException()
4836
      x.read(self._iprot)
4837
      self._iprot.readMessageEnd()
4838
      raise x
4839
    result = getEbayItem_result()
4840
    result.read(self._iprot)
4841
    self._iprot.readMessageEnd()
4842
    if result.success is not None:
4843
      return result.success
4844
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4845
 
4846
  def updateEbayItem(self, ebayItem):
4847
    """
4848
    Parameters:
4849
     - ebayItem
4850
    """
4851
    self.send_updateEbayItem(ebayItem)
4852
    self.recv_updateEbayItem()
4853
 
4854
  def send_updateEbayItem(self, ebayItem):
4855
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4856
    args = updateEbayItem_args()
4857
    args.ebayItem = ebayItem
4858
    args.write(self._oprot)
4859
    self._oprot.writeMessageEnd()
4860
    self._oprot.trans.flush()
4861
 
4862
  def recv_updateEbayItem(self, ):
4863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4864
    if mtype == TMessageType.EXCEPTION:
4865
      x = TApplicationException()
4866
      x.read(self._iprot)
4867
      self._iprot.readMessageEnd()
4868
      raise x
4869
    result = updateEbayItem_result()
4870
    result.read(self._iprot)
4871
    self._iprot.readMessageEnd()
4872
    return
4873
 
8139 kshitij.so 4874
  def getAmazonListedItems(self, offset, limit):
4875
    """
4876
    Parameters:
4877
     - offset
4878
     - limit
4879
    """
4880
    self.send_getAmazonListedItems(offset, limit)
4881
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4882
 
8139 kshitij.so 4883
  def send_getAmazonListedItems(self, offset, limit):
4884
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4885
    args = getAmazonListedItems_args()
4886
    args.offset = offset
4887
    args.limit = limit
4888
    args.write(self._oprot)
4889
    self._oprot.writeMessageEnd()
4890
    self._oprot.trans.flush()
4891
 
4892
  def recv_getAmazonListedItems(self, ):
4893
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4894
    if mtype == TMessageType.EXCEPTION:
4895
      x = TApplicationException()
4896
      x.read(self._iprot)
4897
      self._iprot.readMessageEnd()
4898
      raise x
4899
    result = getAmazonListedItems_result()
4900
    result.read(self._iprot)
4901
    self._iprot.readMessageEnd()
4902
    if result.success is not None:
4903
      return result.success
4904
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4905
 
8168 kshitij.so 4906
  def updateAmazonAttributesInBulk(self, amazonlisted):
4907
    """
4908
    Parameters:
4909
     - amazonlisted
4910
    """
4911
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4912
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4913
 
8168 kshitij.so 4914
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4915
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4916
    args = updateAmazonAttributesInBulk_args()
4917
    args.amazonlisted = amazonlisted
4918
    args.write(self._oprot)
4919
    self._oprot.writeMessageEnd()
4920
    self._oprot.trans.flush()
4921
 
4922
  def recv_updateAmazonAttributesInBulk(self, ):
4923
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4924
    if mtype == TMessageType.EXCEPTION:
4925
      x = TApplicationException()
4926
      x.read(self._iprot)
4927
      self._iprot.readMessageEnd()
4928
      raise x
4929
    result = updateAmazonAttributesInBulk_result()
4930
    result.read(self._iprot)
4931
    self._iprot.readMessageEnd()
4932
    if result.success is not None:
4933
      return result.success
4934
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4935
 
8379 vikram.rag 4936
  def getAllItemstoListOnFba(self, ):
4937
    self.send_getAllItemstoListOnFba()
4938
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 4939
 
8379 vikram.rag 4940
  def send_getAllItemstoListOnFba(self, ):
4941
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
4942
    args = getAllItemstoListOnFba_args()
4943
    args.write(self._oprot)
4944
    self._oprot.writeMessageEnd()
4945
    self._oprot.trans.flush()
4946
 
4947
  def recv_getAllItemstoListOnFba(self, ):
4948
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4949
    if mtype == TMessageType.EXCEPTION:
4950
      x = TApplicationException()
4951
      x.read(self._iprot)
4952
      self._iprot.readMessageEnd()
4953
      raise x
4954
    result = getAllItemstoListOnFba_result()
4955
    result.read(self._iprot)
4956
    self._iprot.readMessageEnd()
4957
    if result.success is not None:
4958
      return result.success
4959
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
4960
 
4961
  def getAllItemstoListOnNonFba(self, ):
4962
    self.send_getAllItemstoListOnNonFba()
4963
    return self.recv_getAllItemstoListOnNonFba()
4964
 
4965
  def send_getAllItemstoListOnNonFba(self, ):
4966
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
4967
    args = getAllItemstoListOnNonFba_args()
4968
    args.write(self._oprot)
4969
    self._oprot.writeMessageEnd()
4970
    self._oprot.trans.flush()
4971
 
4972
  def recv_getAllItemstoListOnNonFba(self, ):
4973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4974
    if mtype == TMessageType.EXCEPTION:
4975
      x = TApplicationException()
4976
      x.read(self._iprot)
4977
      self._iprot.readMessageEnd()
4978
      raise x
4979
    result = getAllItemstoListOnNonFba_result()
4980
    result.read(self._iprot)
4981
    self._iprot.readMessageEnd()
4982
    if result.success is not None:
4983
      return result.success
4984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4985
 
8619 kshitij.so 4986
  def updateAsin(self, item):
4987
    """
4988
    Parameters:
4989
     - item
4990
    """
4991
    self.send_updateAsin(item)
4992
    self.recv_updateAsin()
8616 vikram.rag 4993
 
8619 kshitij.so 4994
  def send_updateAsin(self, item):
4995
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
4996
    args = updateAsin_args()
4997
    args.item = item
4998
    args.write(self._oprot)
4999
    self._oprot.writeMessageEnd()
5000
    self._oprot.trans.flush()
5001
 
5002
  def recv_updateAsin(self, ):
5003
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5004
    if mtype == TMessageType.EXCEPTION:
5005
      x = TApplicationException()
5006
      x.read(self._iprot)
5007
      self._iprot.readMessageEnd()
5008
      raise x
5009
    result = updateAsin_result()
5010
    result.read(self._iprot)
5011
    self._iprot.readMessageEnd()
5012
    return
5013
 
8739 vikram.rag 5014
  def addOrUpdateSnapdealItem(self, snapdealitem):
5015
    """
5016
    Parameters:
5017
     - snapdealitem
5018
    """
5019
    self.send_addOrUpdateSnapdealItem(snapdealitem)
5020
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 5021
 
8739 vikram.rag 5022
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
5023
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
5024
    args = addOrUpdateSnapdealItem_args()
5025
    args.snapdealitem = snapdealitem
5026
    args.write(self._oprot)
5027
    self._oprot.writeMessageEnd()
5028
    self._oprot.trans.flush()
5029
 
5030
  def recv_addOrUpdateSnapdealItem(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 = addOrUpdateSnapdealItem_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, "addOrUpdateSnapdealItem failed: unknown result");
5043
 
5044
  def getSnapdealItem(self, item_id):
5045
    """
5046
    Parameters:
5047
     - item_id
5048
    """
5049
    self.send_getSnapdealItem(item_id)
5050
    return self.recv_getSnapdealItem()
5051
 
5052
  def send_getSnapdealItem(self, item_id):
5053
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
5054
    args = getSnapdealItem_args()
5055
    args.item_id = item_id
5056
    args.write(self._oprot)
5057
    self._oprot.writeMessageEnd()
5058
    self._oprot.trans.flush()
5059
 
5060
  def recv_getSnapdealItem(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 = getSnapdealItem_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, "getSnapdealItem failed: unknown result");
5073
 
9242 kshitij.so 5074
  def getSnapdealItemDetails(self, item_id):
5075
    """
5076
    Parameters:
5077
     - item_id
5078
    """
5079
    self.send_getSnapdealItemDetails(item_id)
5080
    return self.recv_getSnapdealItemDetails()
5081
 
5082
  def send_getSnapdealItemDetails(self, item_id):
5083
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
5084
    args = getSnapdealItemDetails_args()
5085
    args.item_id = item_id
5086
    args.write(self._oprot)
5087
    self._oprot.writeMessageEnd()
5088
    self._oprot.trans.flush()
5089
 
5090
  def recv_getSnapdealItemDetails(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 = getSnapdealItemDetails_result()
5098
    result.read(self._iprot)
5099
    self._iprot.readMessageEnd()
5100
    if result.success is not None:
5101
      return result.success
5102
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
5103
 
8739 vikram.rag 5104
  def getAllSnapdealItems(self, ):
5105
    self.send_getAllSnapdealItems()
5106
    return self.recv_getAllSnapdealItems()
5107
 
5108
  def send_getAllSnapdealItems(self, ):
5109
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
5110
    args = getAllSnapdealItems_args()
5111
    args.write(self._oprot)
5112
    self._oprot.writeMessageEnd()
5113
    self._oprot.trans.flush()
5114
 
5115
  def recv_getAllSnapdealItems(self, ):
5116
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5117
    if mtype == TMessageType.EXCEPTION:
5118
      x = TApplicationException()
5119
      x.read(self._iprot)
5120
      self._iprot.readMessageEnd()
5121
      raise x
5122
    result = getAllSnapdealItems_result()
5123
    result.read(self._iprot)
5124
    self._iprot.readMessageEnd()
5125
    if result.success is not None:
5126
      return result.success
5127
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
5128
 
9242 kshitij.so 5129
  def getSnapdealItems(self, offset, limit):
5130
    """
5131
    Parameters:
5132
     - offset
5133
     - limit
5134
    """
5135
    self.send_getSnapdealItems(offset, limit)
5136
    return self.recv_getSnapdealItems()
8739 vikram.rag 5137
 
9242 kshitij.so 5138
  def send_getSnapdealItems(self, offset, limit):
5139
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
5140
    args = getSnapdealItems_args()
5141
    args.offset = offset
5142
    args.limit = limit
5143
    args.write(self._oprot)
5144
    self._oprot.writeMessageEnd()
5145
    self._oprot.trans.flush()
5146
 
5147
  def recv_getSnapdealItems(self, ):
5148
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5149
    if mtype == TMessageType.EXCEPTION:
5150
      x = TApplicationException()
5151
      x.read(self._iprot)
5152
      self._iprot.readMessageEnd()
5153
      raise x
5154
    result = getSnapdealItems_result()
5155
    result.read(self._iprot)
5156
    self._iprot.readMessageEnd()
5157
    if result.success is not None:
5158
      return result.success
5159
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5160
 
5161
  def searchSnapdealItems(self, searchTerm, offset, limit):
5162
    """
5163
    Parameters:
5164
     - searchTerm
5165
     - offset
5166
     - limit
5167
    """
5168
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5169
    return self.recv_searchSnapdealItems()
5170
 
5171
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5172
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5173
    args = searchSnapdealItems_args()
5174
    args.searchTerm = searchTerm
5175
    args.offset = offset
5176
    args.limit = limit
5177
    args.write(self._oprot)
5178
    self._oprot.writeMessageEnd()
5179
    self._oprot.trans.flush()
5180
 
5181
  def recv_searchSnapdealItems(self, ):
5182
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5183
    if mtype == TMessageType.EXCEPTION:
5184
      x = TApplicationException()
5185
      x.read(self._iprot)
5186
      self._iprot.readMessageEnd()
5187
      raise x
5188
    result = searchSnapdealItems_result()
5189
    result.read(self._iprot)
5190
    self._iprot.readMessageEnd()
5191
    if result.success is not None:
5192
      return result.success
5193
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5194
 
5195
  def getCountForSnapdealItems(self, ):
5196
    self.send_getCountForSnapdealItems()
5197
    return self.recv_getCountForSnapdealItems()
5198
 
5199
  def send_getCountForSnapdealItems(self, ):
5200
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5201
    args = getCountForSnapdealItems_args()
5202
    args.write(self._oprot)
5203
    self._oprot.writeMessageEnd()
5204
    self._oprot.trans.flush()
5205
 
5206
  def recv_getCountForSnapdealItems(self, ):
5207
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5208
    if mtype == TMessageType.EXCEPTION:
5209
      x = TApplicationException()
5210
      x.read(self._iprot)
5211
      self._iprot.readMessageEnd()
5212
      raise x
5213
    result = getCountForSnapdealItems_result()
5214
    result.read(self._iprot)
5215
    self._iprot.readMessageEnd()
5216
    if result.success is not None:
5217
      return result.success
5218
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5219
 
5220
  def getSnapdealSearchResultCount(self, searchTerm):
5221
    """
5222
    Parameters:
5223
     - searchTerm
5224
    """
5225
    self.send_getSnapdealSearchResultCount(searchTerm)
5226
    return self.recv_getSnapdealSearchResultCount()
5227
 
5228
  def send_getSnapdealSearchResultCount(self, searchTerm):
5229
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5230
    args = getSnapdealSearchResultCount_args()
5231
    args.searchTerm = searchTerm
5232
    args.write(self._oprot)
5233
    self._oprot.writeMessageEnd()
5234
    self._oprot.trans.flush()
5235
 
5236
  def recv_getSnapdealSearchResultCount(self, ):
5237
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5238
    if mtype == TMessageType.EXCEPTION:
5239
      x = TApplicationException()
5240
      x.read(self._iprot)
5241
      self._iprot.readMessageEnd()
5242
      raise x
5243
    result = getSnapdealSearchResultCount_result()
5244
    result.read(self._iprot)
5245
    self._iprot.readMessageEnd()
5246
    if result.success is not None:
5247
      return result.success
5248
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5249
 
9299 kshitij.so 5250
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5251
    """
5252
    Parameters:
5253
     - itemId
5254
     - insurerType
5255
    """
5256
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5257
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5258
 
9299 kshitij.so 5259
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5260
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5261
    args = getPrefferedInsurerForItem_args()
5262
    args.itemId = itemId
5263
    args.insurerType = insurerType
5264
    args.write(self._oprot)
5265
    self._oprot.writeMessageEnd()
5266
    self._oprot.trans.flush()
5267
 
5268
  def recv_getPrefferedInsurerForItem(self, ):
5269
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5270
    if mtype == TMessageType.EXCEPTION:
5271
      x = TApplicationException()
5272
      x.read(self._iprot)
5273
      self._iprot.readMessageEnd()
5274
      raise x
5275
    result = getPrefferedInsurerForItem_result()
5276
    result.read(self._iprot)
5277
    self._iprot.readMessageEnd()
5278
    if result.success is not None:
5279
      return result.success
5280
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5281
 
9456 vikram.rag 5282
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5283
    """
5284
    Parameters:
5285
     - skuAtSnapdeal
5286
    """
5287
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5288
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5289
 
9456 vikram.rag 5290
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5291
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5292
    args = getSnapdealItembySkuAtSnapdeal_args()
5293
    args.skuAtSnapdeal = skuAtSnapdeal
5294
    args.write(self._oprot)
5295
    self._oprot.writeMessageEnd()
5296
    self._oprot.trans.flush()
5297
 
5298
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5300
    if mtype == TMessageType.EXCEPTION:
5301
      x = TApplicationException()
5302
      x.read(self._iprot)
5303
      self._iprot.readMessageEnd()
5304
      raise x
5305
    result = getSnapdealItembySkuAtSnapdeal_result()
5306
    result.read(self._iprot)
5307
    self._iprot.readMessageEnd()
5308
    if result.success is not None:
5309
      return result.success
5310
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5311
 
9621 manish.sha 5312
  def getProductFeedSubmit(self, catalogItemId):
5313
    """
5314
    Parameters:
5315
     - catalogItemId
5316
    """
5317
    self.send_getProductFeedSubmit(catalogItemId)
5318
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5319
 
9621 manish.sha 5320
  def send_getProductFeedSubmit(self, catalogItemId):
5321
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5322
    args = getProductFeedSubmit_args()
5323
    args.catalogItemId = catalogItemId
5324
    args.write(self._oprot)
5325
    self._oprot.writeMessageEnd()
5326
    self._oprot.trans.flush()
5327
 
5328
  def recv_getProductFeedSubmit(self, ):
5329
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5330
    if mtype == TMessageType.EXCEPTION:
5331
      x = TApplicationException()
5332
      x.read(self._iprot)
5333
      self._iprot.readMessageEnd()
5334
      raise x
5335
    result = getProductFeedSubmit_result()
5336
    result.read(self._iprot)
5337
    self._iprot.readMessageEnd()
5338
    if result.success is not None:
5339
      return result.success
5340
    if result.cex is not None:
5341
      raise result.cex
5342
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5343
 
5344
  def addProductFeedSubmit(self, productFeedSubmit):
5345
    """
5346
    Parameters:
5347
     - productFeedSubmit
5348
    """
5349
    self.send_addProductFeedSubmit(productFeedSubmit)
5350
    return self.recv_addProductFeedSubmit()
5351
 
5352
  def send_addProductFeedSubmit(self, productFeedSubmit):
5353
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5354
    args = addProductFeedSubmit_args()
5355
    args.productFeedSubmit = productFeedSubmit
5356
    args.write(self._oprot)
5357
    self._oprot.writeMessageEnd()
5358
    self._oprot.trans.flush()
5359
 
5360
  def recv_addProductFeedSubmit(self, ):
5361
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5362
    if mtype == TMessageType.EXCEPTION:
5363
      x = TApplicationException()
5364
      x.read(self._iprot)
5365
      self._iprot.readMessageEnd()
5366
      raise x
5367
    result = addProductFeedSubmit_result()
5368
    result.read(self._iprot)
5369
    self._iprot.readMessageEnd()
5370
    if result.success is not None:
5371
      return result.success
5372
    if result.cex is not None:
5373
      raise result.cex
5374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5375
 
5376
  def updateProductFeedSubmit(self, productFeedSubmit):
5377
    """
5378
    Parameters:
5379
     - productFeedSubmit
5380
    """
5381
    self.send_updateProductFeedSubmit(productFeedSubmit)
5382
    return self.recv_updateProductFeedSubmit()
5383
 
5384
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5385
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5386
    args = updateProductFeedSubmit_args()
5387
    args.productFeedSubmit = productFeedSubmit
5388
    args.write(self._oprot)
5389
    self._oprot.writeMessageEnd()
5390
    self._oprot.trans.flush()
5391
 
5392
  def recv_updateProductFeedSubmit(self, ):
5393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5394
    if mtype == TMessageType.EXCEPTION:
5395
      x = TApplicationException()
5396
      x.read(self._iprot)
5397
      self._iprot.readMessageEnd()
5398
      raise x
5399
    result = updateProductFeedSubmit_result()
5400
    result.read(self._iprot)
5401
    self._iprot.readMessageEnd()
5402
    if result.success is not None:
5403
      return result.success
5404
    if result.cex is not None:
5405
      raise result.cex
5406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5407
 
5408
  def deleteProductFeedSubmit(self, catalogItemId):
5409
    """
5410
    Parameters:
5411
     - catalogItemId
5412
    """
5413
    self.send_deleteProductFeedSubmit(catalogItemId)
5414
    return self.recv_deleteProductFeedSubmit()
5415
 
5416
  def send_deleteProductFeedSubmit(self, catalogItemId):
5417
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5418
    args = deleteProductFeedSubmit_args()
5419
    args.catalogItemId = catalogItemId
5420
    args.write(self._oprot)
5421
    self._oprot.writeMessageEnd()
5422
    self._oprot.trans.flush()
5423
 
5424
  def recv_deleteProductFeedSubmit(self, ):
5425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5426
    if mtype == TMessageType.EXCEPTION:
5427
      x = TApplicationException()
5428
      x.read(self._iprot)
5429
      self._iprot.readMessageEnd()
5430
      raise x
5431
    result = deleteProductFeedSubmit_result()
5432
    result.read(self._iprot)
5433
    self._iprot.readMessageEnd()
5434
    if result.success is not None:
5435
      return result.success
5436
    if result.cex is not None:
5437
      raise result.cex
5438
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5439
 
5440
  def getAllProductFeedSubmit(self, ):
5441
    self.send_getAllProductFeedSubmit()
5442
    return self.recv_getAllProductFeedSubmit()
5443
 
5444
  def send_getAllProductFeedSubmit(self, ):
5445
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5446
    args = getAllProductFeedSubmit_args()
5447
    args.write(self._oprot)
5448
    self._oprot.writeMessageEnd()
5449
    self._oprot.trans.flush()
5450
 
5451
  def recv_getAllProductFeedSubmit(self, ):
5452
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5453
    if mtype == TMessageType.EXCEPTION:
5454
      x = TApplicationException()
5455
      x.read(self._iprot)
5456
      self._iprot.readMessageEnd()
5457
      raise x
5458
    result = getAllProductFeedSubmit_result()
5459
    result.read(self._iprot)
5460
    self._iprot.readMessageEnd()
5461
    if result.success is not None:
5462
      return result.success
5463
    if result.cex is not None:
5464
      raise result.cex
5465
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5466
 
9724 kshitij.so 5467
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5468
    """
5469
    Parameters:
5470
     - itemId
5471
     - sourceId
5472
    """
5473
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5474
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5475
 
9724 kshitij.so 5476
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5477
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5478
    args = getMarketplacedetailsForItem_args()
5479
    args.itemId = itemId
5480
    args.sourceId = sourceId
5481
    args.write(self._oprot)
5482
    self._oprot.writeMessageEnd()
5483
    self._oprot.trans.flush()
5484
 
5485
  def recv_getMarketplacedetailsForItem(self, ):
5486
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5487
    if mtype == TMessageType.EXCEPTION:
5488
      x = TApplicationException()
5489
      x.read(self._iprot)
5490
      self._iprot.readMessageEnd()
5491
      raise x
5492
    result = getMarketplacedetailsForItem_result()
5493
    result.read(self._iprot)
5494
    self._iprot.readMessageEnd()
5495
    if result.success is not None:
5496
      return result.success
5497
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5498
 
5499
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5500
    """
5501
    Parameters:
5502
     - marketPlaceItem
5503
    """
5504
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5505
    return self.recv_updateMarketplaceAttributesForItem()
5506
 
5507
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5508
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5509
    args = updateMarketplaceAttributesForItem_args()
5510
    args.marketPlaceItem = marketPlaceItem
5511
    args.write(self._oprot)
5512
    self._oprot.writeMessageEnd()
5513
    self._oprot.trans.flush()
5514
 
5515
  def recv_updateMarketplaceAttributesForItem(self, ):
5516
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5517
    if mtype == TMessageType.EXCEPTION:
5518
      x = TApplicationException()
5519
      x.read(self._iprot)
5520
      self._iprot.readMessageEnd()
5521
      raise x
5522
    result = updateMarketplaceAttributesForItem_result()
5523
    result.read(self._iprot)
5524
    self._iprot.readMessageEnd()
5525
    if result.success is not None:
5526
      return result.success
5527
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5528
 
9779 kshitij.so 5529
  def getCostingForMarketplace(self, source, item_id):
5530
    """
5531
    Parameters:
5532
     - source
5533
     - item_id
5534
    """
5535
    self.send_getCostingForMarketplace(source, item_id)
5536
    return self.recv_getCostingForMarketplace()
5537
 
5538
  def send_getCostingForMarketplace(self, source, item_id):
5539
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5540
    args = getCostingForMarketplace_args()
5541
    args.source = source
5542
    args.item_id = item_id
5543
    args.write(self._oprot)
5544
    self._oprot.writeMessageEnd()
5545
    self._oprot.trans.flush()
5546
 
5547
  def recv_getCostingForMarketplace(self, ):
5548
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5549
    if mtype == TMessageType.EXCEPTION:
5550
      x = TApplicationException()
5551
      x.read(self._iprot)
5552
      self._iprot.readMessageEnd()
5553
      raise x
5554
    result = getCostingForMarketplace_result()
5555
    result.read(self._iprot)
5556
    self._iprot.readMessageEnd()
5557
    if result.success is not None:
5558
      return result.success
5559
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5560
 
9776 vikram.rag 5561
  def getMarketPlaceItemsForPriceUpdate(self, source):
5562
    """
5563
    Parameters:
5564
     - source
5565
    """
5566
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5567
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5568
 
9776 vikram.rag 5569
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5570
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5571
    args = getMarketPlaceItemsForPriceUpdate_args()
5572
    args.source = source
5573
    args.write(self._oprot)
5574
    self._oprot.writeMessageEnd()
5575
    self._oprot.trans.flush()
5576
 
5577
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5578
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5579
    if mtype == TMessageType.EXCEPTION:
5580
      x = TApplicationException()
5581
      x.read(self._iprot)
5582
      self._iprot.readMessageEnd()
5583
      raise x
5584
    result = getMarketPlaceItemsForPriceUpdate_result()
5585
    result.read(self._iprot)
5586
    self._iprot.readMessageEnd()
5587
    if result.success is not None:
5588
      return result.success
5589
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5590
 
9816 kshitij.so 5591
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5592
    """
5593
    Parameters:
5594
     - skulist
5595
     - timestamp
9816 kshitij.so 5596
     - source
9776 vikram.rag 5597
    """
9816 kshitij.so 5598
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5599
    self.recv_updateMarketPlacePriceUpdateStatus()
5600
 
9816 kshitij.so 5601
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5602
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5603
    args = updateMarketPlacePriceUpdateStatus_args()
5604
    args.skulist = skulist
5605
    args.timestamp = timestamp
9816 kshitij.so 5606
    args.source = source
9776 vikram.rag 5607
    args.write(self._oprot)
5608
    self._oprot.writeMessageEnd()
5609
    self._oprot.trans.flush()
5610
 
5611
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5612
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5613
    if mtype == TMessageType.EXCEPTION:
5614
      x = TApplicationException()
5615
      x.read(self._iprot)
5616
      self._iprot.readMessageEnd()
5617
      raise x
5618
    result = updateMarketPlacePriceUpdateStatus_result()
5619
    result.read(self._iprot)
5620
    self._iprot.readMessageEnd()
5621
    return
5622
 
9861 rajveer 5623
  def updateItemHoldInventory(self, itemHoldMap):
5624
    """
5625
    Parameters:
5626
     - itemHoldMap
5627
    """
5628
    self.send_updateItemHoldInventory(itemHoldMap)
5629
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5630
 
9861 rajveer 5631
  def send_updateItemHoldInventory(self, itemHoldMap):
5632
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5633
    args = updateItemHoldInventory_args()
5634
    args.itemHoldMap = itemHoldMap
5635
    args.write(self._oprot)
5636
    self._oprot.writeMessageEnd()
5637
    self._oprot.trans.flush()
5638
 
5639
  def recv_updateItemHoldInventory(self, ):
5640
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5641
    if mtype == TMessageType.EXCEPTION:
5642
      x = TApplicationException()
5643
      x.read(self._iprot)
5644
      self._iprot.readMessageEnd()
5645
      raise x
5646
    result = updateItemHoldInventory_result()
5647
    result.read(self._iprot)
5648
    self._iprot.readMessageEnd()
5649
    return
5650
 
9895 vikram.rag 5651
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5652
    """
5653
    Parameters:
5654
     - item_id
5655
     - vendor_id
5656
     - nlc
5657
    """
5658
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5659
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5660
 
9895 vikram.rag 5661
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5662
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5663
    args = updateNlcAtMarketplaces_args()
5664
    args.item_id = item_id
5665
    args.vendor_id = vendor_id
5666
    args.nlc = nlc
5667
    args.write(self._oprot)
5668
    self._oprot.writeMessageEnd()
5669
    self._oprot.trans.flush()
5670
 
5671
  def recv_updateNlcAtMarketplaces(self, ):
5672
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5673
    if mtype == TMessageType.EXCEPTION:
5674
      x = TApplicationException()
5675
      x.read(self._iprot)
5676
      self._iprot.readMessageEnd()
5677
      raise x
5678
    result = updateNlcAtMarketplaces_result()
5679
    result.read(self._iprot)
5680
    self._iprot.readMessageEnd()
5681
    return
5682
 
9945 vikram.rag 5683
  def getAllFlipkartItems(self, ):
5684
    self.send_getAllFlipkartItems()
5685
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5686
 
9945 vikram.rag 5687
  def send_getAllFlipkartItems(self, ):
5688
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5689
    args = getAllFlipkartItems_args()
5690
    args.write(self._oprot)
5691
    self._oprot.writeMessageEnd()
5692
    self._oprot.trans.flush()
5693
 
5694
  def recv_getAllFlipkartItems(self, ):
5695
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5696
    if mtype == TMessageType.EXCEPTION:
5697
      x = TApplicationException()
5698
      x.read(self._iprot)
5699
      self._iprot.readMessageEnd()
5700
      raise x
5701
    result = getAllFlipkartItems_result()
5702
    result.read(self._iprot)
5703
    self._iprot.readMessageEnd()
5704
    if result.success is not None:
5705
      return result.success
5706
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5707
 
10097 kshitij.so 5708
  def addOrUpdateFlipkartItem(self, flipkartitem):
5709
    """
5710
    Parameters:
5711
     - flipkartitem
5712
    """
5713
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5714
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5715
 
10097 kshitij.so 5716
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5717
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5718
    args = addOrUpdateFlipkartItem_args()
5719
    args.flipkartitem = flipkartitem
5720
    args.write(self._oprot)
5721
    self._oprot.writeMessageEnd()
5722
    self._oprot.trans.flush()
5723
 
5724
  def recv_addOrUpdateFlipkartItem(self, ):
5725
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5726
    if mtype == TMessageType.EXCEPTION:
5727
      x = TApplicationException()
5728
      x.read(self._iprot)
5729
      self._iprot.readMessageEnd()
5730
      raise x
5731
    result = addOrUpdateFlipkartItem_result()
5732
    result.read(self._iprot)
5733
    self._iprot.readMessageEnd()
5734
    if result.success is not None:
5735
      return result.success
5736
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5737
 
5738
  def getFlipkartItem(self, item_id):
5739
    """
5740
    Parameters:
5741
     - item_id
5742
    """
5743
    self.send_getFlipkartItem(item_id)
5744
    return self.recv_getFlipkartItem()
5745
 
5746
  def send_getFlipkartItem(self, item_id):
5747
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5748
    args = getFlipkartItem_args()
5749
    args.item_id = item_id
5750
    args.write(self._oprot)
5751
    self._oprot.writeMessageEnd()
5752
    self._oprot.trans.flush()
5753
 
5754
  def recv_getFlipkartItem(self, ):
5755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5756
    if mtype == TMessageType.EXCEPTION:
5757
      x = TApplicationException()
5758
      x.read(self._iprot)
5759
      self._iprot.readMessageEnd()
5760
      raise x
5761
    result = getFlipkartItem_result()
5762
    result.read(self._iprot)
5763
    self._iprot.readMessageEnd()
5764
    if result.success is not None:
5765
      return result.success
5766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5767
 
5768
  def getFlipkartItemDetails(self, item_id):
5769
    """
5770
    Parameters:
5771
     - item_id
5772
    """
5773
    self.send_getFlipkartItemDetails(item_id)
5774
    return self.recv_getFlipkartItemDetails()
5775
 
5776
  def send_getFlipkartItemDetails(self, item_id):
5777
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5778
    args = getFlipkartItemDetails_args()
5779
    args.item_id = item_id
5780
    args.write(self._oprot)
5781
    self._oprot.writeMessageEnd()
5782
    self._oprot.trans.flush()
5783
 
5784
  def recv_getFlipkartItemDetails(self, ):
5785
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5786
    if mtype == TMessageType.EXCEPTION:
5787
      x = TApplicationException()
5788
      x.read(self._iprot)
5789
      self._iprot.readMessageEnd()
5790
      raise x
5791
    result = getFlipkartItemDetails_result()
5792
    result.read(self._iprot)
5793
    self._iprot.readMessageEnd()
5794
    if result.success is not None:
5795
      return result.success
5796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5797
 
5798
  def getFlipkartItems(self, offset, limit):
5799
    """
5800
    Parameters:
5801
     - offset
5802
     - limit
5803
    """
5804
    self.send_getFlipkartItems(offset, limit)
5805
    return self.recv_getFlipkartItems()
5806
 
5807
  def send_getFlipkartItems(self, offset, limit):
5808
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5809
    args = getFlipkartItems_args()
5810
    args.offset = offset
5811
    args.limit = limit
5812
    args.write(self._oprot)
5813
    self._oprot.writeMessageEnd()
5814
    self._oprot.trans.flush()
5815
 
5816
  def recv_getFlipkartItems(self, ):
5817
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5818
    if mtype == TMessageType.EXCEPTION:
5819
      x = TApplicationException()
5820
      x.read(self._iprot)
5821
      self._iprot.readMessageEnd()
5822
      raise x
5823
    result = getFlipkartItems_result()
5824
    result.read(self._iprot)
5825
    self._iprot.readMessageEnd()
5826
    if result.success is not None:
5827
      return result.success
5828
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5829
 
5830
  def searchFlipkartItems(self, searchTerm, offset, limit):
5831
    """
5832
    Parameters:
5833
     - searchTerm
5834
     - offset
5835
     - limit
5836
    """
5837
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5838
    return self.recv_searchFlipkartItems()
5839
 
5840
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5841
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5842
    args = searchFlipkartItems_args()
5843
    args.searchTerm = searchTerm
5844
    args.offset = offset
5845
    args.limit = limit
5846
    args.write(self._oprot)
5847
    self._oprot.writeMessageEnd()
5848
    self._oprot.trans.flush()
5849
 
5850
  def recv_searchFlipkartItems(self, ):
5851
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5852
    if mtype == TMessageType.EXCEPTION:
5853
      x = TApplicationException()
5854
      x.read(self._iprot)
5855
      self._iprot.readMessageEnd()
5856
      raise x
5857
    result = searchFlipkartItems_result()
5858
    result.read(self._iprot)
5859
    self._iprot.readMessageEnd()
5860
    if result.success is not None:
5861
      return result.success
5862
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5863
 
5864
  def getCountForFlipkartItems(self, ):
5865
    self.send_getCountForFlipkartItems()
5866
    return self.recv_getCountForFlipkartItems()
5867
 
5868
  def send_getCountForFlipkartItems(self, ):
5869
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
5870
    args = getCountForFlipkartItems_args()
5871
    args.write(self._oprot)
5872
    self._oprot.writeMessageEnd()
5873
    self._oprot.trans.flush()
5874
 
5875
  def recv_getCountForFlipkartItems(self, ):
5876
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5877
    if mtype == TMessageType.EXCEPTION:
5878
      x = TApplicationException()
5879
      x.read(self._iprot)
5880
      self._iprot.readMessageEnd()
5881
      raise x
5882
    result = getCountForFlipkartItems_result()
5883
    result.read(self._iprot)
5884
    self._iprot.readMessageEnd()
5885
    if result.success is not None:
5886
      return result.success
5887
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
5888
 
5889
  def getFlipkartSearchResultCount(self, searchTerm):
5890
    """
5891
    Parameters:
5892
     - searchTerm
5893
    """
5894
    self.send_getFlipkartSearchResultCount(searchTerm)
5895
    return self.recv_getFlipkartSearchResultCount()
5896
 
5897
  def send_getFlipkartSearchResultCount(self, searchTerm):
5898
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
5899
    args = getFlipkartSearchResultCount_args()
5900
    args.searchTerm = searchTerm
5901
    args.write(self._oprot)
5902
    self._oprot.writeMessageEnd()
5903
    self._oprot.trans.flush()
5904
 
5905
  def recv_getFlipkartSearchResultCount(self, ):
5906
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5907
    if mtype == TMessageType.EXCEPTION:
5908
      x = TApplicationException()
5909
      x.read(self._iprot)
5910
      self._iprot.readMessageEnd()
5911
      raise x
5912
    result = getFlipkartSearchResultCount_result()
5913
    result.read(self._iprot)
5914
    self._iprot.readMessageEnd()
5915
    if result.success is not None:
5916
      return result.success
5917
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
5918
 
5919
  def getAllFkItems(self, ):
5920
    self.send_getAllFkItems()
5921
    return self.recv_getAllFkItems()
5922
 
5923
  def send_getAllFkItems(self, ):
5924
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
5925
    args = getAllFkItems_args()
5926
    args.write(self._oprot)
5927
    self._oprot.writeMessageEnd()
5928
    self._oprot.trans.flush()
5929
 
5930
  def recv_getAllFkItems(self, ):
5931
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5932
    if mtype == TMessageType.EXCEPTION:
5933
      x = TApplicationException()
5934
      x.read(self._iprot)
5935
      self._iprot.readMessageEnd()
5936
      raise x
5937
    result = getAllFkItems_result()
5938
    result.read(self._iprot)
5939
    self._iprot.readMessageEnd()
5940
    if result.success is not None:
5941
      return result.success
5942
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
5943
 
10140 vikram.rag 5944
  def getFlipkartItemBySkyAtFlipkart(self, sku):
5945
    """
5946
    Parameters:
5947
     - sku
5948
    """
5949
    self.send_getFlipkartItemBySkyAtFlipkart(sku)
5950
    return self.recv_getFlipkartItemBySkyAtFlipkart()
10097 kshitij.so 5951
 
10140 vikram.rag 5952
  def send_getFlipkartItemBySkyAtFlipkart(self, sku):
5953
    self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)
5954
    args = getFlipkartItemBySkyAtFlipkart_args()
5955
    args.sku = sku
5956
    args.write(self._oprot)
5957
    self._oprot.writeMessageEnd()
5958
    self._oprot.trans.flush()
5959
 
5960
  def recv_getFlipkartItemBySkyAtFlipkart(self, ):
5961
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5962
    if mtype == TMessageType.EXCEPTION:
5963
      x = TApplicationException()
5964
      x.read(self._iprot)
5965
      self._iprot.readMessageEnd()
5966
      raise x
5967
    result = getFlipkartItemBySkyAtFlipkart_result()
5968
    result.read(self._iprot)
5969
    self._iprot.readMessageEnd()
5970
    if result.success is not None:
5971
      return result.success
5972
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
5973
 
11015 kshitij.so 5974
  def getMarketplaceHistory(self, source, offset, itemId):
5975
    """
5976
    Parameters:
5977
     - source
5978
     - offset
5979
     - itemId
5980
    """
5981
    self.send_getMarketplaceHistory(source, offset, itemId)
5982
    return self.recv_getMarketplaceHistory()
5983
 
5984
  def send_getMarketplaceHistory(self, source, offset, itemId):
5985
    self._oprot.writeMessageBegin('getMarketplaceHistory', TMessageType.CALL, self._seqid)
5986
    args = getMarketplaceHistory_args()
5987
    args.source = source
5988
    args.offset = offset
5989
    args.itemId = itemId
5990
    args.write(self._oprot)
5991
    self._oprot.writeMessageEnd()
5992
    self._oprot.trans.flush()
5993
 
5994
  def recv_getMarketplaceHistory(self, ):
5995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5996
    if mtype == TMessageType.EXCEPTION:
5997
      x = TApplicationException()
5998
      x.read(self._iprot)
5999
      self._iprot.readMessageEnd()
6000
      raise x
6001
    result = getMarketplaceHistory_result()
6002
    result.read(self._iprot)
6003
    self._iprot.readMessageEnd()
6004
    if result.success is not None:
6005
      return result.success
6006
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");
6007
 
10909 vikram.rag 6008
  def getAllFbbListedItems(self, ):
6009
    self.send_getAllFbbListedItems()
6010
    return self.recv_getAllFbbListedItems()
10140 vikram.rag 6011
 
10909 vikram.rag 6012
  def send_getAllFbbListedItems(self, ):
6013
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
6014
    args = getAllFbbListedItems_args()
6015
    args.write(self._oprot)
6016
    self._oprot.writeMessageEnd()
6017
    self._oprot.trans.flush()
6018
 
6019
  def recv_getAllFbbListedItems(self, ):
6020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6021
    if mtype == TMessageType.EXCEPTION:
6022
      x = TApplicationException()
6023
      x.read(self._iprot)
6024
      self._iprot.readMessageEnd()
6025
      raise x
6026
    result = getAllFbbListedItems_result()
6027
    result.read(self._iprot)
6028
    self._iprot.readMessageEnd()
6029
    if result.success is not None:
6030
      return result.success
6031
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
6032
 
10924 vikram.rag 6033
  def getAllFbbPricingItems(self, ):
6034
    self.send_getAllFbbPricingItems()
6035
    return self.recv_getAllFbbPricingItems()
10909 vikram.rag 6036
 
10924 vikram.rag 6037
  def send_getAllFbbPricingItems(self, ):
6038
    self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)
6039
    args = getAllFbbPricingItems_args()
6040
    args.write(self._oprot)
6041
    self._oprot.writeMessageEnd()
6042
    self._oprot.trans.flush()
6043
 
6044
  def recv_getAllFbbPricingItems(self, ):
6045
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6046
    if mtype == TMessageType.EXCEPTION:
6047
      x = TApplicationException()
6048
      x.read(self._iprot)
6049
      self._iprot.readMessageEnd()
6050
      raise x
6051
    result = getAllFbbPricingItems_result()
6052
    result.read(self._iprot)
6053
    self._iprot.readMessageEnd()
6054
    if result.success is not None:
6055
      return result.success
6056
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
6057
 
11015 kshitij.so 6058
  def getCountForMarketplaceHistory(self, source, itemId):
6059
    """
6060
    Parameters:
6061
     - source
6062
     - itemId
6063
    """
6064
    self.send_getCountForMarketplaceHistory(source, itemId)
6065
    return self.recv_getCountForMarketplaceHistory()
10924 vikram.rag 6066
 
11015 kshitij.so 6067
  def send_getCountForMarketplaceHistory(self, source, itemId):
6068
    self._oprot.writeMessageBegin('getCountForMarketplaceHistory', TMessageType.CALL, self._seqid)
6069
    args = getCountForMarketplaceHistory_args()
6070
    args.source = source
6071
    args.itemId = itemId
6072
    args.write(self._oprot)
6073
    self._oprot.writeMessageEnd()
6074
    self._oprot.trans.flush()
6075
 
6076
  def recv_getCountForMarketplaceHistory(self, ):
6077
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6078
    if mtype == TMessageType.EXCEPTION:
6079
      x = TApplicationException()
6080
      x.read(self._iprot)
6081
      self._iprot.readMessageEnd()
6082
      raise x
6083
    result = getCountForMarketplaceHistory_result()
6084
    result.read(self._iprot)
6085
    self._iprot.readMessageEnd()
6086
    if result.success is not None:
6087
      return result.success
6088
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");
6089
 
6090
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6091
    """
6092
    Parameters:
6093
     - source
6094
     - startDate
6095
     - endDate
6096
     - offset
6097
     - limit
6098
     - itemId
6099
    """
6100
    self.send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId)
6101
    return self.recv_getMarketplaceHistoryByDate()
6102
 
6103
  def send_getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6104
    self._oprot.writeMessageBegin('getMarketplaceHistoryByDate', TMessageType.CALL, self._seqid)
6105
    args = getMarketplaceHistoryByDate_args()
6106
    args.source = source
6107
    args.startDate = startDate
6108
    args.endDate = endDate
6109
    args.offset = offset
6110
    args.limit = limit
6111
    args.itemId = itemId
6112
    args.write(self._oprot)
6113
    self._oprot.writeMessageEnd()
6114
    self._oprot.trans.flush()
6115
 
6116
  def recv_getMarketplaceHistoryByDate(self, ):
6117
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6118
    if mtype == TMessageType.EXCEPTION:
6119
      x = TApplicationException()
6120
      x.read(self._iprot)
6121
      self._iprot.readMessageEnd()
6122
      raise x
6123
    result = getMarketplaceHistoryByDate_result()
6124
    result.read(self._iprot)
6125
    self._iprot.readMessageEnd()
6126
    if result.success is not None:
6127
      return result.success
6128
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6129
 
11531 vikram.rag 6130
  def getPrivateDealDetails(self, item_id):
6131
    """
6132
    Parameters:
6133
     - item_id
6134
    """
6135
    self.send_getPrivateDealDetails(item_id)
6136
    return self.recv_getPrivateDealDetails()
11015 kshitij.so 6137
 
11531 vikram.rag 6138
  def send_getPrivateDealDetails(self, item_id):
6139
    self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)
6140
    args = getPrivateDealDetails_args()
6141
    args.item_id = item_id
6142
    args.write(self._oprot)
6143
    self._oprot.writeMessageEnd()
6144
    self._oprot.trans.flush()
6145
 
6146
  def recv_getPrivateDealDetails(self, ):
6147
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6148
    if mtype == TMessageType.EXCEPTION:
6149
      x = TApplicationException()
6150
      x.read(self._iprot)
6151
      self._iprot.readMessageEnd()
6152
      raise x
6153
    result = getPrivateDealDetails_result()
6154
    result.read(self._iprot)
6155
    self._iprot.readMessageEnd()
6156
    if result.success is not None:
6157
      return result.success
6158
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
6159
 
6160
  def getPrivateDealItems(self, offset, limit):
6161
    """
6162
    Parameters:
6163
     - offset
6164
     - limit
6165
    """
6166
    self.send_getPrivateDealItems(offset, limit)
6167
    return self.recv_getPrivateDealItems()
6168
 
6169
  def send_getPrivateDealItems(self, offset, limit):
6170
    self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)
6171
    args = getPrivateDealItems_args()
6172
    args.offset = offset
6173
    args.limit = limit
6174
    args.write(self._oprot)
6175
    self._oprot.writeMessageEnd()
6176
    self._oprot.trans.flush()
6177
 
6178
  def recv_getPrivateDealItems(self, ):
6179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6180
    if mtype == TMessageType.EXCEPTION:
6181
      x = TApplicationException()
6182
      x.read(self._iprot)
6183
      self._iprot.readMessageEnd()
6184
      raise x
6185
    result = getPrivateDealItems_result()
6186
    result.read(self._iprot)
6187
    self._iprot.readMessageEnd()
6188
    if result.success is not None:
6189
      return result.success
6190
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
6191
 
11653 amit.gupta 6192
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
6193
    """
6194
    Parameters:
6195
     - itemIds
6196
     - daysDelta
6197
    """
6198
    self.send_getAllActivePrivateDeals(itemIds, daysDelta)
11592 amit.gupta 6199
    return self.recv_getAllActivePrivateDeals()
6200
 
11653 amit.gupta 6201
  def send_getAllActivePrivateDeals(self, itemIds, daysDelta):
11592 amit.gupta 6202
    self._oprot.writeMessageBegin('getAllActivePrivateDeals', TMessageType.CALL, self._seqid)
6203
    args = getAllActivePrivateDeals_args()
11653 amit.gupta 6204
    args.itemIds = itemIds
6205
    args.daysDelta = daysDelta
11592 amit.gupta 6206
    args.write(self._oprot)
6207
    self._oprot.writeMessageEnd()
6208
    self._oprot.trans.flush()
6209
 
6210
  def recv_getAllActivePrivateDeals(self, ):
6211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6212
    if mtype == TMessageType.EXCEPTION:
6213
      x = TApplicationException()
6214
      x.read(self._iprot)
6215
      self._iprot.readMessageEnd()
6216
      raise x
6217
    result = getAllActivePrivateDeals_result()
6218
    result.read(self._iprot)
6219
    self._iprot.readMessageEnd()
6220
    if result.success is not None:
6221
      return result.success
6222
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");
6223
 
11531 vikram.rag 6224
  def addOrUpdatePrivateDeal(self, privateDeal):
6225
    """
6226
    Parameters:
6227
     - privateDeal
6228
    """
6229
    self.send_addOrUpdatePrivateDeal(privateDeal)
6230
    return self.recv_addOrUpdatePrivateDeal()
6231
 
6232
  def send_addOrUpdatePrivateDeal(self, privateDeal):
6233
    self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)
6234
    args = addOrUpdatePrivateDeal_args()
6235
    args.privateDeal = privateDeal
6236
    args.write(self._oprot)
6237
    self._oprot.writeMessageEnd()
6238
    self._oprot.trans.flush()
6239
 
6240
  def recv_addOrUpdatePrivateDeal(self, ):
6241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6242
    if mtype == TMessageType.EXCEPTION:
6243
      x = TApplicationException()
6244
      x.read(self._iprot)
6245
      self._iprot.readMessageEnd()
6246
      raise x
6247
    result = addOrUpdatePrivateDeal_result()
6248
    result.read(self._iprot)
6249
    self._iprot.readMessageEnd()
6250
    if result.success is not None:
6251
      return result.success
6252
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
6253
 
11635 vikram.rag 6254
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6255
    """
6256
    Parameters:
6257
     - beginIndex
6258
     - totalItems
6259
    """
6260
    self.send_getPrivateDealsCatalogIds(beginIndex, totalItems)
6261
    return self.recv_getPrivateDealsCatalogIds()
11531 vikram.rag 6262
 
11635 vikram.rag 6263
  def send_getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6264
    self._oprot.writeMessageBegin('getPrivateDealsCatalogIds', TMessageType.CALL, self._seqid)
6265
    args = getPrivateDealsCatalogIds_args()
6266
    args.beginIndex = beginIndex
6267
    args.totalItems = totalItems
6268
    args.write(self._oprot)
6269
    self._oprot.writeMessageEnd()
6270
    self._oprot.trans.flush()
6271
 
6272
  def recv_getPrivateDealsCatalogIds(self, ):
6273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6274
    if mtype == TMessageType.EXCEPTION:
6275
      x = TApplicationException()
6276
      x.read(self._iprot)
6277
      self._iprot.readMessageEnd()
6278
      raise x
6279
    result = getPrivateDealsCatalogIds_result()
6280
    result.read(self._iprot)
6281
    self._iprot.readMessageEnd()
6282
    if result.success is not None:
6283
      return result.success
6284
    if result.cex is not None:
6285
      raise result.cex
6286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
6287
 
11645 amit.gupta 6288
  def getPrivateDealsCount(self, ):
6289
    self.send_getPrivateDealsCount()
6290
    return self.recv_getPrivateDealsCount()
11635 vikram.rag 6291
 
11645 amit.gupta 6292
  def send_getPrivateDealsCount(self, ):
6293
    self._oprot.writeMessageBegin('getPrivateDealsCount', TMessageType.CALL, self._seqid)
6294
    args = getPrivateDealsCount_args()
6295
    args.write(self._oprot)
6296
    self._oprot.writeMessageEnd()
6297
    self._oprot.trans.flush()
6298
 
6299
  def recv_getPrivateDealsCount(self, ):
6300
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6301
    if mtype == TMessageType.EXCEPTION:
6302
      x = TApplicationException()
6303
      x.read(self._iprot)
6304
      self._iprot.readMessageEnd()
6305
      raise x
6306
    result = getPrivateDealsCount_result()
6307
    result.read(self._iprot)
6308
    self._iprot.readMessageEnd()
6309
    if result.success is not None:
6310
      return result.success
6311
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
6312
 
11905 kshitij.so 6313
  def getAmazonOutSyncItems(self, item_id):
6314
    """
6315
    Parameters:
6316
     - item_id
6317
    """
6318
    self.send_getAmazonOutSyncItems(item_id)
6319
    return self.recv_getAmazonOutSyncItems()
11645 amit.gupta 6320
 
11905 kshitij.so 6321
  def send_getAmazonOutSyncItems(self, item_id):
6322
    self._oprot.writeMessageBegin('getAmazonOutSyncItems', TMessageType.CALL, self._seqid)
6323
    args = getAmazonOutSyncItems_args()
6324
    args.item_id = item_id
6325
    args.write(self._oprot)
6326
    self._oprot.writeMessageEnd()
6327
    self._oprot.trans.flush()
6328
 
6329
  def recv_getAmazonOutSyncItems(self, ):
6330
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6331
    if mtype == TMessageType.EXCEPTION:
6332
      x = TApplicationException()
6333
      x.read(self._iprot)
6334
      self._iprot.readMessageEnd()
6335
      raise x
6336
    result = getAmazonOutSyncItems_result()
6337
    result.read(self._iprot)
6338
    self._iprot.readMessageEnd()
6339
    if result.success is not None:
6340
      return result.success
6341
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");
6342
 
6343
  def getAllPrivateDealsComparison(self, ):
6344
    self.send_getAllPrivateDealsComparison()
6345
    return self.recv_getAllPrivateDealsComparison()
6346
 
6347
  def send_getAllPrivateDealsComparison(self, ):
6348
    self._oprot.writeMessageBegin('getAllPrivateDealsComparison', TMessageType.CALL, self._seqid)
6349
    args = getAllPrivateDealsComparison_args()
6350
    args.write(self._oprot)
6351
    self._oprot.writeMessageEnd()
6352
    self._oprot.trans.flush()
6353
 
6354
  def recv_getAllPrivateDealsComparison(self, ):
6355
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6356
    if mtype == TMessageType.EXCEPTION:
6357
      x = TApplicationException()
6358
      x.read(self._iprot)
6359
      self._iprot.readMessageEnd()
6360
      raise x
6361
    result = getAllPrivateDealsComparison_result()
6362
    result.read(self._iprot)
6363
    self._iprot.readMessageEnd()
6364
    if result.success is not None:
6365
      return result.success
6366
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
6367
 
12133 kshitij.so 6368
  def getAllSnapdealMarketplaceItem(self, ):
6369
    self.send_getAllSnapdealMarketplaceItem()
6370
    return self.recv_getAllSnapdealMarketplaceItem()
11905 kshitij.so 6371
 
12133 kshitij.so 6372
  def send_getAllSnapdealMarketplaceItem(self, ):
6373
    self._oprot.writeMessageBegin('getAllSnapdealMarketplaceItem', TMessageType.CALL, self._seqid)
6374
    args = getAllSnapdealMarketplaceItem_args()
6375
    args.write(self._oprot)
6376
    self._oprot.writeMessageEnd()
6377
    self._oprot.trans.flush()
6378
 
6379
  def recv_getAllSnapdealMarketplaceItem(self, ):
6380
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6381
    if mtype == TMessageType.EXCEPTION:
6382
      x = TApplicationException()
6383
      x.read(self._iprot)
6384
      self._iprot.readMessageEnd()
6385
      raise x
6386
    result = getAllSnapdealMarketplaceItem_result()
6387
    result.read(self._iprot)
6388
    self._iprot.readMessageEnd()
6389
    if result.success is not None:
6390
      return result.success
6391
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");
6392
 
6393
  def getAllFlipkartMarketplaceItem(self, ):
6394
    self.send_getAllFlipkartMarketplaceItem()
6395
    return self.recv_getAllFlipkartMarketplaceItem()
6396
 
6397
  def send_getAllFlipkartMarketplaceItem(self, ):
6398
    self._oprot.writeMessageBegin('getAllFlipkartMarketplaceItem', TMessageType.CALL, self._seqid)
6399
    args = getAllFlipkartMarketplaceItem_args()
6400
    args.write(self._oprot)
6401
    self._oprot.writeMessageEnd()
6402
    self._oprot.trans.flush()
6403
 
6404
  def recv_getAllFlipkartMarketplaceItem(self, ):
6405
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6406
    if mtype == TMessageType.EXCEPTION:
6407
      x = TApplicationException()
6408
      x.read(self._iprot)
6409
      self._iprot.readMessageEnd()
6410
      raise x
6411
    result = getAllFlipkartMarketplaceItem_result()
6412
    result.read(self._iprot)
6413
    self._iprot.readMessageEnd()
6414
    if result.success is not None:
6415
      return result.success
6416
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");
6417
 
12243 kshitij.so 6418
  def addCompetitorScraping(self, competitorPricingMap):
6419
    """
6420
    Parameters:
6421
     - competitorPricingMap
6422
    """
6423
    self.send_addCompetitorScraping(competitorPricingMap)
6424
    self.recv_addCompetitorScraping()
12133 kshitij.so 6425
 
12243 kshitij.so 6426
  def send_addCompetitorScraping(self, competitorPricingMap):
6427
    self._oprot.writeMessageBegin('addCompetitorScraping', TMessageType.CALL, self._seqid)
6428
    args = addCompetitorScraping_args()
6429
    args.competitorPricingMap = competitorPricingMap
6430
    args.write(self._oprot)
6431
    self._oprot.writeMessageEnd()
6432
    self._oprot.trans.flush()
6433
 
6434
  def recv_addCompetitorScraping(self, ):
6435
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6436
    if mtype == TMessageType.EXCEPTION:
6437
      x = TApplicationException()
6438
      x.read(self._iprot)
6439
      self._iprot.readMessageEnd()
6440
      raise x
6441
    result = addCompetitorScraping_result()
6442
    result.read(self._iprot)
6443
    self._iprot.readMessageEnd()
6444
    return
6445
 
6446
  def getPreviousCompetitorScraping(self, delta):
6447
    """
6448
    Parameters:
6449
     - delta
6450
    """
6451
    self.send_getPreviousCompetitorScraping(delta)
6452
    return self.recv_getPreviousCompetitorScraping()
6453
 
6454
  def send_getPreviousCompetitorScraping(self, delta):
6455
    self._oprot.writeMessageBegin('getPreviousCompetitorScraping', TMessageType.CALL, self._seqid)
6456
    args = getPreviousCompetitorScraping_args()
6457
    args.delta = delta
6458
    args.write(self._oprot)
6459
    self._oprot.writeMessageEnd()
6460
    self._oprot.trans.flush()
6461
 
6462
  def recv_getPreviousCompetitorScraping(self, ):
6463
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6464
    if mtype == TMessageType.EXCEPTION:
6465
      x = TApplicationException()
6466
      x.read(self._iprot)
6467
      self._iprot.readMessageEnd()
6468
      raise x
6469
    result = getPreviousCompetitorScraping_result()
6470
    result.read(self._iprot)
6471
    self._iprot.readMessageEnd()
6472
    if result.success is not None:
6473
      return result.success
6474
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
6475
 
12256 kshitij.so 6476
  def getUploadResultById(self, uploadId):
6477
    """
6478
    Parameters:
6479
     - uploadId
6480
    """
6481
    self.send_getUploadResultById(uploadId)
6482
    return self.recv_getUploadResultById()
12243 kshitij.so 6483
 
12256 kshitij.so 6484
  def send_getUploadResultById(self, uploadId):
6485
    self._oprot.writeMessageBegin('getUploadResultById', TMessageType.CALL, self._seqid)
6486
    args = getUploadResultById_args()
6487
    args.uploadId = uploadId
6488
    args.write(self._oprot)
6489
    self._oprot.writeMessageEnd()
6490
    self._oprot.trans.flush()
6491
 
6492
  def recv_getUploadResultById(self, ):
6493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6494
    if mtype == TMessageType.EXCEPTION:
6495
      x = TApplicationException()
6496
      x.read(self._iprot)
6497
      self._iprot.readMessageEnd()
6498
      raise x
6499
    result = getUploadResultById_result()
6500
    result.read(self._iprot)
6501
    self._iprot.readMessageEnd()
6502
    if result.success is not None:
6503
      return result.success
6504
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6505
 
12363 kshitij.so 6506
  def addAmazonPromotion(self, amazonPromotions):
6507
    """
6508
    Parameters:
6509
     - amazonPromotions
6510
    """
6511
    self.send_addAmazonPromotion(amazonPromotions)
6512
    return self.recv_addAmazonPromotion()
12256 kshitij.so 6513
 
12363 kshitij.so 6514
  def send_addAmazonPromotion(self, amazonPromotions):
6515
    self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)
6516
    args = addAmazonPromotion_args()
6517
    args.amazonPromotions = amazonPromotions
6518
    args.write(self._oprot)
6519
    self._oprot.writeMessageEnd()
6520
    self._oprot.trans.flush()
6521
 
6522
  def recv_addAmazonPromotion(self, ):
6523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6524
    if mtype == TMessageType.EXCEPTION:
6525
      x = TApplicationException()
6526
      x.read(self._iprot)
6527
      self._iprot.readMessageEnd()
6528
      raise x
6529
    result = addAmazonPromotion_result()
6530
    result.read(self._iprot)
6531
    self._iprot.readMessageEnd()
6532
    if result.success is not None:
6533
      return result.success
6534
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
6535
 
6536
  def getAmazonPromotion(self, startDate, endDate):
6537
    """
6538
    Parameters:
6539
     - startDate
6540
     - endDate
6541
    """
6542
    self.send_getAmazonPromotion(startDate, endDate)
6543
    return self.recv_getAmazonPromotion()
6544
 
6545
  def send_getAmazonPromotion(self, startDate, endDate):
6546
    self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)
6547
    args = getAmazonPromotion_args()
6548
    args.startDate = startDate
6549
    args.endDate = endDate
6550
    args.write(self._oprot)
6551
    self._oprot.writeMessageEnd()
6552
    self._oprot.trans.flush()
6553
 
6554
  def recv_getAmazonPromotion(self, ):
6555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6556
    if mtype == TMessageType.EXCEPTION:
6557
      x = TApplicationException()
6558
      x.read(self._iprot)
6559
      self._iprot.readMessageEnd()
6560
      raise x
6561
    result = getAmazonPromotion_result()
6562
    result.read(self._iprot)
6563
    self._iprot.readMessageEnd()
6564
    if result.success is not None:
6565
      return result.success
6566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
6567
 
6568
  def updateAmazonPromotion(self, amazonPromotions):
6569
    """
6570
    Parameters:
6571
     - amazonPromotions
6572
    """
6573
    self.send_updateAmazonPromotion(amazonPromotions)
6574
    return self.recv_updateAmazonPromotion()
6575
 
6576
  def send_updateAmazonPromotion(self, amazonPromotions):
6577
    self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)
6578
    args = updateAmazonPromotion_args()
6579
    args.amazonPromotions = amazonPromotions
6580
    args.write(self._oprot)
6581
    self._oprot.writeMessageEnd()
6582
    self._oprot.trans.flush()
6583
 
6584
  def recv_updateAmazonPromotion(self, ):
6585
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6586
    if mtype == TMessageType.EXCEPTION:
6587
      x = TApplicationException()
6588
      x.read(self._iprot)
6589
      self._iprot.readMessageEnd()
6590
      raise x
6591
    result = updateAmazonPromotion_result()
6592
    result.read(self._iprot)
6593
    self._iprot.readMessageEnd()
6594
    if result.success is not None:
6595
      return result.success
6596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
6597
 
6598
 
5944 mandeep.dh 6599
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6600
  def __init__(self, handler):
6601
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6602
    self._processMap["addItem"] = Processor.process_addItem
6603
    self._processMap["updateItem"] = Processor.process_updateItem
6604
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 6605
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 6606
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
6607
    self._processMap["startItemOn"] = Processor.process_startItemOn
6608
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
6609
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
6610
    self._processMap["getItem"] = Processor.process_getItem
6611
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
6612
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
6613
    self._processMap["getAllItems"] = Processor.process_getAllItems
6614
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
6615
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
6616
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
6617
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
6618
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
6619
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
6620
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
6621
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
6622
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
6623
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
6624
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
6625
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
6626
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
6627
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
6628
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
6629
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
6630
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
6631
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
6632
    self._processMap["addCategory"] = Processor.process_addCategory
6633
    self._processMap["getCategory"] = Processor.process_getCategory
6634
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
6635
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
6636
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 6637
    self._processMap["addTag"] = Processor.process_addTag
6638
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
6639
    self._processMap["deleteTag"] = Processor.process_deleteTag
6640
    self._processMap["getAllTags"] = Processor.process_getAllTags
6641
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 6642
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 6643
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 6644
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 6645
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
6646
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
6647
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
6648
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 6649
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 6650
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 6651
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
6652
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 6653
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
6654
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
6655
    self._processMap["addCampaign"] = Processor.process_addCampaign
6656
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
6657
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
6658
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 6659
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 6660
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
6661
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
6662
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
6663
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
6664
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
6665
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
6666
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
6667
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
6668
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
6669
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
6670
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
6671
    self._processMap["getAllSources"] = Processor.process_getAllSources
6672
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
6673
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
6674
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
6675
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
6676
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
6677
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
6678
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
6679
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
6680
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
6681
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
6682
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
6683
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
6684
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
6685
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 6686
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
6687
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 6688
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 6689
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 6690
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
6691
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 6692
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 6693
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 6694
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
6695
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 6696
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
6697
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 6698
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 6699
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 6700
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 6701
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 6702
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
6703
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
6704
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 6705
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
6706
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
6707
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 6708
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
6709
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
6710
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 6711
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 6712
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 6713
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 6714
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
6715
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 6716
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
6717
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
6718
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 6719
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 6720
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 6721
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
6722
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 6723
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 6724
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
6725
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 6726
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 6727
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 6728
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
6729
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
6730
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
6731
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 6732
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 6733
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 6734
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
6735
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
6736
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
6737
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
6738
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 6739
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
6740
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 6741
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 6742
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
6743
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 6744
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 6745
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 6746
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 6747
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
6748
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
6749
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
6750
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
6751
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
6752
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
6753
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
6754
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
10140 vikram.rag 6755
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
11015 kshitij.so 6756
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
10909 vikram.rag 6757
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
10924 vikram.rag 6758
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
11015 kshitij.so 6759
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
6760
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
11531 vikram.rag 6761
    self._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetails
6762
    self._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItems
11592 amit.gupta 6763
    self._processMap["getAllActivePrivateDeals"] = Processor.process_getAllActivePrivateDeals
11531 vikram.rag 6764
    self._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDeal
11635 vikram.rag 6765
    self._processMap["getPrivateDealsCatalogIds"] = Processor.process_getPrivateDealsCatalogIds
11645 amit.gupta 6766
    self._processMap["getPrivateDealsCount"] = Processor.process_getPrivateDealsCount
11905 kshitij.so 6767
    self._processMap["getAmazonOutSyncItems"] = Processor.process_getAmazonOutSyncItems
6768
    self._processMap["getAllPrivateDealsComparison"] = Processor.process_getAllPrivateDealsComparison
12133 kshitij.so 6769
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
6770
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
12243 kshitij.so 6771
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
6772
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
12256 kshitij.so 6773
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
12363 kshitij.so 6774
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
6775
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
6776
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
5944 mandeep.dh 6777
 
6778
  def process(self, iprot, oprot):
6779
    (name, type, seqid) = iprot.readMessageBegin()
6780
    if name not in self._processMap:
6781
      iprot.skip(TType.STRUCT)
6782
      iprot.readMessageEnd()
6783
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
6784
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
6785
      x.write(oprot)
6786
      oprot.writeMessageEnd()
6787
      oprot.trans.flush()
6788
      return
6789
    else:
6790
      self._processMap[name](self, seqid, iprot, oprot)
6791
    return True
6792
 
6793
  def process_addItem(self, seqid, iprot, oprot):
6794
    args = addItem_args()
6795
    args.read(iprot)
6796
    iprot.readMessageEnd()
6797
    result = addItem_result()
6798
    try:
6799
      result.success = self._handler.addItem(args.item)
6800
    except CatalogServiceException, cex:
6801
      result.cex = cex
6802
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
6803
    result.write(oprot)
6804
    oprot.writeMessageEnd()
6805
    oprot.trans.flush()
6806
 
6807
  def process_updateItem(self, seqid, iprot, oprot):
6808
    args = updateItem_args()
6809
    args.read(iprot)
6810
    iprot.readMessageEnd()
6811
    result = updateItem_result()
6812
    try:
6813
      result.success = self._handler.updateItem(args.item)
6814
    except CatalogServiceException, cex:
6815
      result.cex = cex
6816
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
6817
    result.write(oprot)
6818
    oprot.writeMessageEnd()
6819
    oprot.trans.flush()
6820
 
6821
  def process_isActive(self, seqid, iprot, oprot):
6822
    args = isActive_args()
6823
    args.read(iprot)
6824
    iprot.readMessageEnd()
6825
    result = isActive_result()
6826
    try:
6827
      result.success = self._handler.isActive(args.itemId)
6828
    except CatalogServiceException, isex:
6829
      result.isex = isex
6830
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
6831
    result.write(oprot)
6832
    oprot.writeMessageEnd()
6833
    oprot.trans.flush()
6834
 
7438 amit.gupta 6835
  def process_getItemsStatus(self, seqid, iprot, oprot):
6836
    args = getItemsStatus_args()
6837
    args.read(iprot)
6838
    iprot.readMessageEnd()
6839
    result = getItemsStatus_result()
6840
    try:
6841
      result.success = self._handler.getItemsStatus(args.itemIds)
6842
    except CatalogServiceException, isex:
6843
      result.isex = isex
6844
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
6845
    result.write(oprot)
6846
    oprot.writeMessageEnd()
6847
    oprot.trans.flush()
6848
 
5944 mandeep.dh 6849
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
6850
    args = getItemStatusDescription_args()
6851
    args.read(iprot)
6852
    iprot.readMessageEnd()
6853
    result = getItemStatusDescription_result()
6854
    try:
6855
      result.success = self._handler.getItemStatusDescription(args.itemId)
6856
    except CatalogServiceException, isex:
6857
      result.isex = isex
6858
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
6859
    result.write(oprot)
6860
    oprot.writeMessageEnd()
6861
    oprot.trans.flush()
6862
 
6863
  def process_startItemOn(self, seqid, iprot, oprot):
6864
    args = startItemOn_args()
6865
    args.read(iprot)
6866
    iprot.readMessageEnd()
6867
    result = startItemOn_result()
6868
    try:
6869
      self._handler.startItemOn(args.item_id, args.timestamp)
6870
    except CatalogServiceException, cex:
6871
      result.cex = cex
6872
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
6873
    result.write(oprot)
6874
    oprot.writeMessageEnd()
6875
    oprot.trans.flush()
6876
 
6877
  def process_retireItemOn(self, seqid, iprot, oprot):
6878
    args = retireItemOn_args()
6879
    args.read(iprot)
6880
    iprot.readMessageEnd()
6881
    result = retireItemOn_result()
6882
    try:
6883
      self._handler.retireItemOn(args.item_id, args.timestamp)
6884
    except CatalogServiceException, cex:
6885
      result.cex = cex
6886
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
6887
    result.write(oprot)
6888
    oprot.writeMessageEnd()
6889
    oprot.trans.flush()
6890
 
6891
  def process_changeItemStatus(self, seqid, iprot, oprot):
6892
    args = changeItemStatus_args()
6893
    args.read(iprot)
6894
    iprot.readMessageEnd()
6895
    result = changeItemStatus_result()
6896
    try:
6897
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
6898
    except CatalogServiceException, cex:
6899
      result.cex = cex
6900
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
6901
    result.write(oprot)
6902
    oprot.writeMessageEnd()
6903
    oprot.trans.flush()
6904
 
6905
  def process_getItem(self, seqid, iprot, oprot):
6906
    args = getItem_args()
6907
    args.read(iprot)
6908
    iprot.readMessageEnd()
6909
    result = getItem_result()
6910
    try:
6911
      result.success = self._handler.getItem(args.item_id)
6912
    except CatalogServiceException, cex:
6913
      result.cex = cex
6914
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
6915
    result.write(oprot)
6916
    oprot.writeMessageEnd()
6917
    oprot.trans.flush()
6918
 
6919
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
6920
    args = getItemsByCatalogId_args()
6921
    args.read(iprot)
6922
    iprot.readMessageEnd()
6923
    result = getItemsByCatalogId_result()
6924
    try:
6925
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
6926
    except CatalogServiceException, cex:
6927
      result.cex = cex
6928
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
6929
    result.write(oprot)
6930
    oprot.writeMessageEnd()
6931
    oprot.trans.flush()
6932
 
6933
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
6934
    args = getValidItemsByCatalogId_args()
6935
    args.read(iprot)
6936
    iprot.readMessageEnd()
6937
    result = getValidItemsByCatalogId_result()
6938
    try:
6939
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
6940
    except CatalogServiceException, cex:
6941
      result.cex = cex
6942
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
6943
    result.write(oprot)
6944
    oprot.writeMessageEnd()
6945
    oprot.trans.flush()
6946
 
6947
  def process_getAllItems(self, seqid, iprot, oprot):
6948
    args = getAllItems_args()
6949
    args.read(iprot)
6950
    iprot.readMessageEnd()
6951
    result = getAllItems_result()
6952
    try:
6953
      result.success = self._handler.getAllItems(args.isActive)
6954
    except CatalogServiceException, cex:
6955
      result.cex = cex
6956
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
6957
    result.write(oprot)
6958
    oprot.writeMessageEnd()
6959
    oprot.trans.flush()
6960
 
6961
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
6962
    args = getAllItemsByStatus_args()
6963
    args.read(iprot)
6964
    iprot.readMessageEnd()
6965
    result = getAllItemsByStatus_result()
6966
    try:
6967
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
6968
    except CatalogServiceException, cex:
6969
      result.cex = cex
6970
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
6971
    result.write(oprot)
6972
    oprot.writeMessageEnd()
6973
    oprot.trans.flush()
6974
 
6975
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
6976
    args = markItemAsContentComplete_args()
6977
    args.read(iprot)
6978
    iprot.readMessageEnd()
6979
    result = markItemAsContentComplete_result()
6980
    try:
9253 rajveer 6981
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 6982
    except CatalogServiceException, cex:
6983
      result.cex = cex
6984
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
6985
    result.write(oprot)
6986
    oprot.writeMessageEnd()
6987
    oprot.trans.flush()
6988
 
6989
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
6990
    args = getAllItemsInRange_args()
6991
    args.read(iprot)
6992
    iprot.readMessageEnd()
6993
    result = getAllItemsInRange_result()
6994
    try:
6995
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
6996
    except CatalogServiceException, cex:
6997
      result.cex = cex
6998
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
6999
    result.write(oprot)
7000
    oprot.writeMessageEnd()
7001
    oprot.trans.flush()
7002
 
7003
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
7004
    args = getAllItemsByStatusInRange_args()
7005
    args.read(iprot)
7006
    iprot.readMessageEnd()
7007
    result = getAllItemsByStatusInRange_result()
7008
    try:
7009
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
7010
    except CatalogServiceException, cex:
7011
      result.cex = cex
7012
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
7013
    result.write(oprot)
7014
    oprot.writeMessageEnd()
7015
    oprot.trans.flush()
7016
 
7017
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
7018
    args = getItemCountByStatus_args()
7019
    args.read(iprot)
7020
    iprot.readMessageEnd()
7021
    result = getItemCountByStatus_result()
7022
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
7023
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
7024
    result.write(oprot)
7025
    oprot.writeMessageEnd()
7026
    oprot.trans.flush()
7027
 
7028
  def process_getBestSellers(self, seqid, iprot, oprot):
7029
    args = getBestSellers_args()
7030
    args.read(iprot)
7031
    iprot.readMessageEnd()
7032
    result = getBestSellers_result()
7033
    try:
7034
      result.success = self._handler.getBestSellers()
7035
    except CatalogServiceException, isex:
7036
      result.isex = isex
7037
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
7038
    result.write(oprot)
7039
    oprot.writeMessageEnd()
7040
    oprot.trans.flush()
7041
 
7042
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
7043
    args = getBestSellersCatalogIds_args()
7044
    args.read(iprot)
7045
    iprot.readMessageEnd()
7046
    result = getBestSellersCatalogIds_result()
7047
    try:
7048
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7049
    except CatalogServiceException, cex:
7050
      result.cex = cex
7051
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
7052
    result.write(oprot)
7053
    oprot.writeMessageEnd()
7054
    oprot.trans.flush()
7055
 
7056
  def process_getBestSellersCount(self, seqid, iprot, oprot):
7057
    args = getBestSellersCount_args()
7058
    args.read(iprot)
7059
    iprot.readMessageEnd()
7060
    result = getBestSellersCount_result()
7061
    try:
7062
      result.success = self._handler.getBestSellersCount()
7063
    except CatalogServiceException, cex:
7064
      result.cex = cex
7065
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
7066
    result.write(oprot)
7067
    oprot.writeMessageEnd()
7068
    oprot.trans.flush()
7069
 
7070
  def process_getBestDeals(self, seqid, iprot, oprot):
7071
    args = getBestDeals_args()
7072
    args.read(iprot)
7073
    iprot.readMessageEnd()
7074
    result = getBestDeals_result()
7075
    try:
7076
      result.success = self._handler.getBestDeals()
7077
    except CatalogServiceException, isex:
7078
      result.isex = isex
7079
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
7080
    result.write(oprot)
7081
    oprot.writeMessageEnd()
7082
    oprot.trans.flush()
7083
 
7084
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
7085
    args = getBestDealsCatalogIds_args()
7086
    args.read(iprot)
7087
    iprot.readMessageEnd()
7088
    result = getBestDealsCatalogIds_result()
7089
    try:
7090
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7091
    except CatalogServiceException, cex:
7092
      result.cex = cex
7093
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
7094
    result.write(oprot)
7095
    oprot.writeMessageEnd()
7096
    oprot.trans.flush()
7097
 
7098
  def process_getBestDealsCount(self, seqid, iprot, oprot):
7099
    args = getBestDealsCount_args()
7100
    args.read(iprot)
7101
    iprot.readMessageEnd()
7102
    result = getBestDealsCount_result()
7103
    try:
7104
      result.success = self._handler.getBestDealsCount()
7105
    except CatalogServiceException, cex:
7106
      result.cex = cex
7107
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
7108
    result.write(oprot)
7109
    oprot.writeMessageEnd()
7110
    oprot.trans.flush()
7111
 
7112
  def process_getComingSoon(self, seqid, iprot, oprot):
7113
    args = getComingSoon_args()
7114
    args.read(iprot)
7115
    iprot.readMessageEnd()
7116
    result = getComingSoon_result()
7117
    try:
7118
      result.success = self._handler.getComingSoon()
7119
    except CatalogServiceException, isex:
7120
      result.isex = isex
7121
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
7122
    result.write(oprot)
7123
    oprot.writeMessageEnd()
7124
    oprot.trans.flush()
7125
 
7126
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
7127
    args = getComingSoonCatalogIds_args()
7128
    args.read(iprot)
7129
    iprot.readMessageEnd()
7130
    result = getComingSoonCatalogIds_result()
7131
    try:
7132
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7133
    except CatalogServiceException, cex:
7134
      result.cex = cex
7135
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
7136
    result.write(oprot)
7137
    oprot.writeMessageEnd()
7138
    oprot.trans.flush()
7139
 
7140
  def process_getComingSoonCount(self, seqid, iprot, oprot):
7141
    args = getComingSoonCount_args()
7142
    args.read(iprot)
7143
    iprot.readMessageEnd()
7144
    result = getComingSoonCount_result()
7145
    try:
7146
      result.success = self._handler.getComingSoonCount()
7147
    except CatalogServiceException, cex:
7148
      result.cex = cex
7149
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
7150
    result.write(oprot)
7151
    oprot.writeMessageEnd()
7152
    oprot.trans.flush()
7153
 
7154
  def process_getLatestArrivals(self, seqid, iprot, oprot):
7155
    args = getLatestArrivals_args()
7156
    args.read(iprot)
7157
    iprot.readMessageEnd()
7158
    result = getLatestArrivals_result()
7159
    try:
7160
      result.success = self._handler.getLatestArrivals()
7161
    except CatalogServiceException, isex:
7162
      result.isex = isex
7163
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
7164
    result.write(oprot)
7165
    oprot.writeMessageEnd()
7166
    oprot.trans.flush()
7167
 
7168
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
7169
    args = getLatestArrivalsCatalogIds_args()
7170
    args.read(iprot)
7171
    iprot.readMessageEnd()
7172
    result = getLatestArrivalsCatalogIds_result()
7173
    try:
7174
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
7175
    except CatalogServiceException, cex:
7176
      result.cex = cex
7177
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
7178
    result.write(oprot)
7179
    oprot.writeMessageEnd()
7180
    oprot.trans.flush()
7181
 
7182
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
7183
    args = getLatestArrivalsCount_args()
7184
    args.read(iprot)
7185
    iprot.readMessageEnd()
7186
    result = getLatestArrivalsCount_result()
7187
    try:
7188
      result.success = self._handler.getLatestArrivalsCount()
7189
    except CatalogServiceException, cex:
7190
      result.cex = cex
7191
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
7192
    result.write(oprot)
7193
    oprot.writeMessageEnd()
7194
    oprot.trans.flush()
7195
 
7196
  def process_generateNewEntityID(self, seqid, iprot, oprot):
7197
    args = generateNewEntityID_args()
7198
    args.read(iprot)
7199
    iprot.readMessageEnd()
7200
    result = generateNewEntityID_result()
7201
    result.success = self._handler.generateNewEntityID()
7202
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
7203
    result.write(oprot)
7204
    oprot.writeMessageEnd()
7205
    oprot.trans.flush()
7206
 
7207
  def process_addCategory(self, seqid, iprot, oprot):
7208
    args = addCategory_args()
7209
    args.read(iprot)
7210
    iprot.readMessageEnd()
7211
    result = addCategory_result()
7212
    result.success = self._handler.addCategory(args.category)
7213
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
7214
    result.write(oprot)
7215
    oprot.writeMessageEnd()
7216
    oprot.trans.flush()
7217
 
7218
  def process_getCategory(self, seqid, iprot, oprot):
7219
    args = getCategory_args()
7220
    args.read(iprot)
7221
    iprot.readMessageEnd()
7222
    result = getCategory_result()
7223
    result.success = self._handler.getCategory(args.id)
7224
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
7225
    result.write(oprot)
7226
    oprot.writeMessageEnd()
7227
    oprot.trans.flush()
7228
 
7229
  def process_getAllCategories(self, seqid, iprot, oprot):
7230
    args = getAllCategories_args()
7231
    args.read(iprot)
7232
    iprot.readMessageEnd()
7233
    result = getAllCategories_result()
7234
    result.success = self._handler.getAllCategories()
7235
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
7236
    result.write(oprot)
7237
    oprot.writeMessageEnd()
7238
    oprot.trans.flush()
7239
 
7240
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
7241
    args = getAllSimilarItems_args()
7242
    args.read(iprot)
7243
    iprot.readMessageEnd()
7244
    result = getAllSimilarItems_result()
7245
    result.success = self._handler.getAllSimilarItems(args.itemId)
7246
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
7247
    result.write(oprot)
7248
    oprot.writeMessageEnd()
7249
    oprot.trans.flush()
7250
 
7251
  def process_addSimilarItem(self, seqid, iprot, oprot):
7252
    args = addSimilarItem_args()
7253
    args.read(iprot)
7254
    iprot.readMessageEnd()
7255
    result = addSimilarItem_result()
7256
    try:
7257
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
7258
    except CatalogServiceException, cex:
7259
      result.cex = cex
7260
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
7261
    result.write(oprot)
7262
    oprot.writeMessageEnd()
7263
    oprot.trans.flush()
7264
 
6512 kshitij.so 7265
  def process_addTag(self, seqid, iprot, oprot):
7266
    args = addTag_args()
7267
    args.read(iprot)
7268
    iprot.readMessageEnd()
7269
    result = addTag_result()
7270
    result.success = self._handler.addTag(args.displayName, args.itemId)
7271
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
7272
    result.write(oprot)
7273
    oprot.writeMessageEnd()
7274
    oprot.trans.flush()
7275
 
7276
  def process_deleteEntityTag(self, seqid, iprot, oprot):
7277
    args = deleteEntityTag_args()
7278
    args.read(iprot)
7279
    iprot.readMessageEnd()
7280
    result = deleteEntityTag_result()
7281
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
7282
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
7283
    result.write(oprot)
7284
    oprot.writeMessageEnd()
7285
    oprot.trans.flush()
7286
 
7287
  def process_deleteTag(self, seqid, iprot, oprot):
7288
    args = deleteTag_args()
7289
    args.read(iprot)
7290
    iprot.readMessageEnd()
7291
    result = deleteTag_result()
7292
    result.success = self._handler.deleteTag(args.displayName)
7293
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
7294
    result.write(oprot)
7295
    oprot.writeMessageEnd()
7296
    oprot.trans.flush()
7297
 
7298
  def process_getAllTags(self, seqid, iprot, oprot):
7299
    args = getAllTags_args()
7300
    args.read(iprot)
7301
    iprot.readMessageEnd()
7302
    result = getAllTags_result()
7303
    result.success = self._handler.getAllTags()
7304
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
7305
    result.write(oprot)
7306
    oprot.writeMessageEnd()
7307
    oprot.trans.flush()
7308
 
7309
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
7310
    args = getAllEntitiesByTagName_args()
7311
    args.read(iprot)
7312
    iprot.readMessageEnd()
7313
    result = getAllEntitiesByTagName_result()
7314
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
7315
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
7316
    result.write(oprot)
7317
    oprot.writeMessageEnd()
7318
    oprot.trans.flush()
7319
 
6845 amit.gupta 7320
  def process_getAllEntityTags(self, seqid, iprot, oprot):
7321
    args = getAllEntityTags_args()
7322
    args.read(iprot)
7323
    iprot.readMessageEnd()
7324
    result = getAllEntityTags_result()
7325
    result.success = self._handler.getAllEntityTags()
7326
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
7327
    result.write(oprot)
7328
    oprot.writeMessageEnd()
7329
    oprot.trans.flush()
7330
 
6850 kshitij.so 7331
  def process_addBanner(self, seqid, iprot, oprot):
7332
    args = addBanner_args()
7333
    args.read(iprot)
7334
    iprot.readMessageEnd()
7335
    result = addBanner_result()
10097 kshitij.so 7336
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 7337
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
7338
    result.write(oprot)
7339
    oprot.writeMessageEnd()
7340
    oprot.trans.flush()
7341
 
8579 kshitij.so 7342
  def process_updateBanner(self, seqid, iprot, oprot):
7343
    args = updateBanner_args()
7344
    args.read(iprot)
7345
    iprot.readMessageEnd()
7346
    result = updateBanner_result()
7347
    result.success = self._handler.updateBanner(args.banner)
7348
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
7349
    result.write(oprot)
7350
    oprot.writeMessageEnd()
7351
    oprot.trans.flush()
7352
 
6850 kshitij.so 7353
  def process_getAllBanners(self, seqid, iprot, oprot):
7354
    args = getAllBanners_args()
7355
    args.read(iprot)
7356
    iprot.readMessageEnd()
7357
    result = getAllBanners_result()
7358
    result.success = self._handler.getAllBanners()
7359
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
7360
    result.write(oprot)
7361
    oprot.writeMessageEnd()
7362
    oprot.trans.flush()
7363
 
7364
  def process_deleteBanner(self, seqid, iprot, oprot):
7365
    args = deleteBanner_args()
7366
    args.read(iprot)
7367
    iprot.readMessageEnd()
7368
    result = deleteBanner_result()
9155 kshitij.so 7369
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 7370
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
7371
    result.write(oprot)
7372
    oprot.writeMessageEnd()
7373
    oprot.trans.flush()
7374
 
7375
  def process_getBannerDetails(self, seqid, iprot, oprot):
7376
    args = getBannerDetails_args()
7377
    args.read(iprot)
7378
    iprot.readMessageEnd()
7379
    result = getBannerDetails_result()
9155 kshitij.so 7380
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 7381
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
7382
    result.write(oprot)
7383
    oprot.writeMessageEnd()
7384
    oprot.trans.flush()
7385
 
7386
  def process_getActiveBanners(self, seqid, iprot, oprot):
7387
    args = getActiveBanners_args()
7388
    args.read(iprot)
7389
    iprot.readMessageEnd()
7390
    result = getActiveBanners_result()
7391
    result.success = self._handler.getActiveBanners()
7392
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
7393
    result.write(oprot)
7394
    oprot.writeMessageEnd()
7395
    oprot.trans.flush()
7396
 
6849 kshitij.so 7397
  def process_addBannerMap(self, seqid, iprot, oprot):
7398
    args = addBannerMap_args()
7399
    args.read(iprot)
7400
    iprot.readMessageEnd()
7401
    result = addBannerMap_result()
8579 kshitij.so 7402
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 7403
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
7404
    result.write(oprot)
7405
    oprot.writeMessageEnd()
7406
    oprot.trans.flush()
7407
 
8579 kshitij.so 7408
  def process_updateBannerMap(self, seqid, iprot, oprot):
7409
    args = updateBannerMap_args()
7410
    args.read(iprot)
7411
    iprot.readMessageEnd()
7412
    result = updateBannerMap_result()
7413
    result.success = self._handler.updateBannerMap(args.bannerMap)
7414
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
7415
    result.write(oprot)
7416
    oprot.writeMessageEnd()
7417
    oprot.trans.flush()
7418
 
6849 kshitij.so 7419
  def process_deleteBannerMap(self, seqid, iprot, oprot):
7420
    args = deleteBannerMap_args()
7421
    args.read(iprot)
7422
    iprot.readMessageEnd()
7423
    result = deleteBannerMap_result()
7424
    result.success = self._handler.deleteBannerMap(args.bannerName)
7425
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
7426
    result.write(oprot)
7427
    oprot.writeMessageEnd()
7428
    oprot.trans.flush()
7429
 
7430
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
7431
    args = getBannerMapDetails_args()
7432
    args.read(iprot)
7433
    iprot.readMessageEnd()
7434
    result = getBannerMapDetails_result()
9155 kshitij.so 7435
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 7436
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
7437
    result.write(oprot)
7438
    oprot.writeMessageEnd()
7439
    oprot.trans.flush()
7440
 
8579 kshitij.so 7441
  def process_addBannerUri(self, seqid, iprot, oprot):
7442
    args = addBannerUri_args()
7443
    args.read(iprot)
7444
    iprot.readMessageEnd()
7445
    result = addBannerUri_result()
7446
    self._handler.addBannerUri(args.bannerUriMappings)
7447
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
7448
    result.write(oprot)
7449
    oprot.writeMessageEnd()
7450
    oprot.trans.flush()
7451
 
7452
  def process_getUriMapping(self, seqid, iprot, oprot):
7453
    args = getUriMapping_args()
7454
    args.read(iprot)
7455
    iprot.readMessageEnd()
7456
    result = getUriMapping_result()
9155 kshitij.so 7457
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 7458
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
7459
    result.write(oprot)
7460
    oprot.writeMessageEnd()
7461
    oprot.trans.flush()
7462
 
7463
  def process_addCampaign(self, seqid, iprot, oprot):
7464
    args = addCampaign_args()
7465
    args.read(iprot)
7466
    iprot.readMessageEnd()
7467
    result = addCampaign_result()
7468
    self._handler.addCampaign(args.campaign)
7469
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
7470
    result.write(oprot)
7471
    oprot.writeMessageEnd()
7472
    oprot.trans.flush()
7473
 
7474
  def process_getCampaigns(self, seqid, iprot, oprot):
7475
    args = getCampaigns_args()
7476
    args.read(iprot)
7477
    iprot.readMessageEnd()
7478
    result = getCampaigns_result()
7479
    result.success = self._handler.getCampaigns(args.campaignName)
7480
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
7481
    result.write(oprot)
7482
    oprot.writeMessageEnd()
7483
    oprot.trans.flush()
7484
 
7485
  def process_deleteCampaign(self, seqid, iprot, oprot):
7486
    args = deleteCampaign_args()
7487
    args.read(iprot)
7488
    iprot.readMessageEnd()
7489
    result = deleteCampaign_result()
7490
    self._handler.deleteCampaign(args.campaignId)
7491
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
7492
    result.write(oprot)
7493
    oprot.writeMessageEnd()
7494
    oprot.trans.flush()
7495
 
7496
  def process_getAllCampaigns(self, seqid, iprot, oprot):
7497
    args = getAllCampaigns_args()
7498
    args.read(iprot)
7499
    iprot.readMessageEnd()
7500
    result = getAllCampaigns_result()
7501
    result.success = self._handler.getAllCampaigns()
7502
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
7503
    result.write(oprot)
7504
    oprot.writeMessageEnd()
7505
    oprot.trans.flush()
7506
 
9155 kshitij.so 7507
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
7508
    args = getActiveBannersForMobileSite_args()
7509
    args.read(iprot)
7510
    iprot.readMessageEnd()
7511
    result = getActiveBannersForMobileSite_result()
7512
    result.success = self._handler.getActiveBannersForMobileSite()
7513
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
7514
    result.write(oprot)
7515
    oprot.writeMessageEnd()
7516
    oprot.trans.flush()
7517
 
5944 mandeep.dh 7518
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
7519
    args = deleteSimilarItem_args()
7520
    args.read(iprot)
7521
    iprot.readMessageEnd()
7522
    result = deleteSimilarItem_result()
7523
    try:
7524
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
7525
    except CatalogServiceException, cex:
7526
      result.cex = cex
7527
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
7528
    result.write(oprot)
7529
    oprot.writeMessageEnd()
7530
    oprot.trans.flush()
7531
 
7532
  def process_checkSimilarItem(self, seqid, iprot, oprot):
7533
    args = checkSimilarItem_args()
7534
    args.read(iprot)
7535
    iprot.readMessageEnd()
7536
    result = checkSimilarItem_result()
7537
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
7538
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
7539
    result.write(oprot)
7540
    oprot.writeMessageEnd()
7541
    oprot.trans.flush()
7542
 
7543
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
7544
    args = validateRiskyStatus_args()
7545
    args.read(iprot)
7546
    iprot.readMessageEnd()
7547
    result = validateRiskyStatus_result()
7548
    self._handler.validateRiskyStatus(args.itemId)
7549
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
7550
    result.write(oprot)
7551
    oprot.writeMessageEnd()
7552
    oprot.trans.flush()
7553
 
7554
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
7555
    args = changeItemRiskyFlag_args()
7556
    args.read(iprot)
7557
    iprot.readMessageEnd()
7558
    result = changeItemRiskyFlag_result()
7559
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
7560
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
7561
    result.write(oprot)
7562
    oprot.writeMessageEnd()
7563
    oprot.trans.flush()
7564
 
7565
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
7566
    args = getItemsByRiskyFlag_args()
7567
    args.read(iprot)
7568
    iprot.readMessageEnd()
7569
    result = getItemsByRiskyFlag_result()
7570
    result.success = self._handler.getItemsByRiskyFlag()
7571
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
7572
    result.write(oprot)
7573
    oprot.writeMessageEnd()
7574
    oprot.trans.flush()
7575
 
7576
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
7577
    args = getItemsForMasterSheet_args()
7578
    args.read(iprot)
7579
    iprot.readMessageEnd()
7580
    result = getItemsForMasterSheet_result()
7581
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
7582
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
7583
    result.write(oprot)
7584
    oprot.writeMessageEnd()
7585
    oprot.trans.flush()
7586
 
7587
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
7588
    args = getSimilarItemsCatalogIds_args()
7589
    args.read(iprot)
7590
    iprot.readMessageEnd()
7591
    result = getSimilarItemsCatalogIds_result()
7592
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
7593
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
7594
    result.write(oprot)
7595
    oprot.writeMessageEnd()
7596
    oprot.trans.flush()
7597
 
7598
  def process_addProductNotification(self, seqid, iprot, oprot):
7599
    args = addProductNotification_args()
7600
    args.read(iprot)
7601
    iprot.readMessageEnd()
7602
    result = addProductNotification_result()
7603
    result.success = self._handler.addProductNotification(args.itemId, args.email)
7604
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
7605
    result.write(oprot)
7606
    oprot.writeMessageEnd()
7607
    oprot.trans.flush()
7608
 
7609
  def process_sendProductNotifications(self, seqid, iprot, oprot):
7610
    args = sendProductNotifications_args()
7611
    args.read(iprot)
7612
    iprot.readMessageEnd()
7613
    result = sendProductNotifications_result()
7614
    result.success = self._handler.sendProductNotifications()
7615
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
7616
    result.write(oprot)
7617
    oprot.writeMessageEnd()
7618
    oprot.trans.flush()
7619
 
7620
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
7621
    args = getAllBrandsByCategory_args()
7622
    args.read(iprot)
7623
    iprot.readMessageEnd()
7624
    result = getAllBrandsByCategory_result()
7625
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
7626
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
7627
    result.write(oprot)
7628
    oprot.writeMessageEnd()
7629
    oprot.trans.flush()
7630
 
7631
  def process_getAllBrands(self, seqid, iprot, oprot):
7632
    args = getAllBrands_args()
7633
    args.read(iprot)
7634
    iprot.readMessageEnd()
7635
    result = getAllBrands_result()
7636
    result.success = self._handler.getAllBrands()
7637
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
7638
    result.write(oprot)
7639
    oprot.writeMessageEnd()
7640
    oprot.trans.flush()
7641
 
7642
  def process_getAllSources(self, seqid, iprot, oprot):
7643
    args = getAllSources_args()
7644
    args.read(iprot)
7645
    iprot.readMessageEnd()
7646
    result = getAllSources_result()
7647
    result.success = self._handler.getAllSources()
7648
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
7649
    result.write(oprot)
7650
    oprot.writeMessageEnd()
7651
    oprot.trans.flush()
7652
 
7653
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
7654
    args = getItemPricingBySource_args()
7655
    args.read(iprot)
7656
    iprot.readMessageEnd()
7657
    result = getItemPricingBySource_result()
7658
    try:
7659
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
7660
    except CatalogServiceException, cex:
7661
      result.cex = cex
7662
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
7663
    result.write(oprot)
7664
    oprot.writeMessageEnd()
7665
    oprot.trans.flush()
7666
 
7667
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
7668
    args = addSourceItemPricing_args()
7669
    args.read(iprot)
7670
    iprot.readMessageEnd()
7671
    result = addSourceItemPricing_result()
7672
    try:
7673
      self._handler.addSourceItemPricing(args.sourceItemPricing)
7674
    except CatalogServiceException, cex:
7675
      result.cex = cex
7676
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
7677
    result.write(oprot)
7678
    oprot.writeMessageEnd()
7679
    oprot.trans.flush()
7680
 
7681
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
7682
    args = getAllSourcePricing_args()
7683
    args.read(iprot)
7684
    iprot.readMessageEnd()
7685
    result = getAllSourcePricing_result()
7686
    try:
7687
      result.success = self._handler.getAllSourcePricing(args.itemId)
7688
    except CatalogServiceException, cex:
7689
      result.cex = cex
7690
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
7691
    result.write(oprot)
7692
    oprot.writeMessageEnd()
7693
    oprot.trans.flush()
7694
 
7695
  def process_getItemForSource(self, seqid, iprot, oprot):
7696
    args = getItemForSource_args()
7697
    args.read(iprot)
7698
    iprot.readMessageEnd()
7699
    result = getItemForSource_result()
7700
    try:
7701
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
7702
    except CatalogServiceException, cex:
7703
      result.cex = cex
7704
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
7705
    result.write(oprot)
7706
    oprot.writeMessageEnd()
7707
    oprot.trans.flush()
7708
 
7709
  def process_searchItemsInRange(self, seqid, iprot, oprot):
7710
    args = searchItemsInRange_args()
7711
    args.read(iprot)
7712
    iprot.readMessageEnd()
7713
    result = searchItemsInRange_result()
7714
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
7715
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
7716
    result.write(oprot)
7717
    oprot.writeMessageEnd()
7718
    oprot.trans.flush()
7719
 
7720
  def process_getSearchResultCount(self, seqid, iprot, oprot):
7721
    args = getSearchResultCount_args()
7722
    args.read(iprot)
7723
    iprot.readMessageEnd()
7724
    result = getSearchResultCount_result()
7725
    result.success = self._handler.getSearchResultCount(args.searchTerms)
7726
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
7727
    result.write(oprot)
7728
    oprot.writeMessageEnd()
7729
    oprot.trans.flush()
7730
 
7731
  def process_getProductNotifications(self, seqid, iprot, oprot):
7732
    args = getProductNotifications_args()
7733
    args.read(iprot)
7734
    iprot.readMessageEnd()
7735
    result = getProductNotifications_result()
7736
    result.success = self._handler.getProductNotifications(args.startDateTime)
7737
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
7738
    result.write(oprot)
7739
    oprot.writeMessageEnd()
7740
    oprot.trans.flush()
7741
 
7742
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
7743
    args = getProductNotificationRequestCount_args()
7744
    args.read(iprot)
7745
    iprot.readMessageEnd()
7746
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 7747
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 7748
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
7749
    result.write(oprot)
7750
    oprot.writeMessageEnd()
7751
    oprot.trans.flush()
7752
 
7753
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
7754
    args = addAuthorizationLog_args()
7755
    args.read(iprot)
7756
    iprot.readMessageEnd()
7757
    result = addAuthorizationLog_result()
7758
    try:
7759
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
7760
    except CatalogServiceException, cex:
7761
      result.cex = cex
7762
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
7763
    result.write(oprot)
7764
    oprot.writeMessageEnd()
7765
    oprot.trans.flush()
7766
 
7767
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
7768
    args = addupdateVoucherForItem_args()
7769
    args.read(iprot)
7770
    iprot.readMessageEnd()
7771
    result = addupdateVoucherForItem_result()
7772
    try:
7773
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
7774
    except CatalogServiceException, cex:
7775
      result.cex = cex
7776
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
7777
    result.write(oprot)
7778
    oprot.writeMessageEnd()
7779
    oprot.trans.flush()
7780
 
7781
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
7782
    args = deleteVoucherForItem_args()
7783
    args.read(iprot)
7784
    iprot.readMessageEnd()
7785
    result = deleteVoucherForItem_result()
7786
    try:
7787
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
7788
    except CatalogServiceException, cex:
7789
      result.cex = cex
7790
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
7791
    result.write(oprot)
7792
    oprot.writeMessageEnd()
7793
    oprot.trans.flush()
7794
 
7795
  def process_getVoucherAmount(self, seqid, iprot, oprot):
7796
    args = getVoucherAmount_args()
7797
    args.read(iprot)
7798
    iprot.readMessageEnd()
7799
    result = getVoucherAmount_result()
7800
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
7801
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
7802
    result.write(oprot)
7803
    oprot.writeMessageEnd()
7804
    oprot.trans.flush()
7805
 
7806
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
7807
    args = getAllItemVouchers_args()
7808
    args.read(iprot)
7809
    iprot.readMessageEnd()
7810
    result = getAllItemVouchers_result()
7811
    result.success = self._handler.getAllItemVouchers(args.itemId)
7812
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
7813
    result.write(oprot)
7814
    oprot.writeMessageEnd()
7815
    oprot.trans.flush()
7816
 
7817
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
7818
    args = isValidCatalogItemId_args()
7819
    args.read(iprot)
7820
    iprot.readMessageEnd()
7821
    result = isValidCatalogItemId_result()
7822
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
7823
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
7824
    result.write(oprot)
7825
    oprot.writeMessageEnd()
7826
    oprot.trans.flush()
7827
 
6039 amit.gupta 7828
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
7829
    args = getVatPercentageForItem_args()
7830
    args.read(iprot)
7831
    iprot.readMessageEnd()
7832
    result = getVatPercentageForItem_result()
7340 amit.gupta 7833
    try:
7834
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
7835
    except CatalogServiceException, cex:
7836
      result.cex = cex
6039 amit.gupta 7837
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
7838
    result.write(oprot)
7839
    oprot.writeMessageEnd()
7840
    oprot.trans.flush()
5944 mandeep.dh 7841
 
6039 amit.gupta 7842
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
7843
    args = getVatAmountForItem_args()
7844
    args.read(iprot)
7845
    iprot.readMessageEnd()
7846
    result = getVatAmountForItem_result()
7847
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
7848
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
7849
    result.write(oprot)
7850
    oprot.writeMessageEnd()
7851
    oprot.trans.flush()
7852
 
6531 vikram.rag 7853
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
7854
    args = getAllIgnoredInventoryUpdateItemsList_args()
7855
    args.read(iprot)
7856
    iprot.readMessageEnd()
7857
    result = getAllIgnoredInventoryUpdateItemsList_result()
7858
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
7859
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
7860
    result.write(oprot)
7861
    oprot.writeMessageEnd()
7862
    oprot.trans.flush()
6039 amit.gupta 7863
 
6821 amar.kumar 7864
  def process_getAllAliveItems(self, seqid, iprot, oprot):
7865
    args = getAllAliveItems_args()
7866
    args.read(iprot)
7867
    iprot.readMessageEnd()
7868
    result = getAllAliveItems_result()
7869
    result.success = self._handler.getAllAliveItems()
7870
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
7871
    result.write(oprot)
7872
    oprot.writeMessageEnd()
7873
    oprot.trans.flush()
7874
 
6805 anupam.sin 7875
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
7876
    args = getInsuranceAmount_args()
7877
    args.read(iprot)
7878
    iprot.readMessageEnd()
7879
    result = getInsuranceAmount_result()
6921 anupam.sin 7880
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 7881
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
7882
    result.write(oprot)
7883
    oprot.writeMessageEnd()
7884
    oprot.trans.flush()
6531 vikram.rag 7885
 
6805 anupam.sin 7886
  def process_getInsurer(self, seqid, iprot, oprot):
7887
    args = getInsurer_args()
7888
    args.read(iprot)
7889
    iprot.readMessageEnd()
7890
    result = getInsurer_result()
7891
    result.success = self._handler.getInsurer(args.insurerId)
7892
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
7893
    result.write(oprot)
7894
    oprot.writeMessageEnd()
7895
    oprot.trans.flush()
7896
 
6838 vikram.rag 7897
  def process_getAllInsurers(self, seqid, iprot, oprot):
7898
    args = getAllInsurers_args()
7899
    args.read(iprot)
7900
    iprot.readMessageEnd()
7901
    result = getAllInsurers_result()
7902
    result.success = self._handler.getAllInsurers()
7903
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
7904
    result.write(oprot)
7905
    oprot.writeMessageEnd()
7906
    oprot.trans.flush()
6805 anupam.sin 7907
 
6962 rajveer 7908
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
7909
    args = updateInsuranceDeclaredAmount_args()
7910
    args.read(iprot)
7911
    iprot.readMessageEnd()
7912
    result = updateInsuranceDeclaredAmount_result()
7913
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
7914
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
7915
    result.write(oprot)
7916
    oprot.writeMessageEnd()
7917
    oprot.trans.flush()
6838 vikram.rag 7918
 
7190 amar.kumar 7919
  def process_getFreebieForItem(self, seqid, iprot, oprot):
7920
    args = getFreebieForItem_args()
7921
    args.read(iprot)
7922
    iprot.readMessageEnd()
7923
    result = getFreebieForItem_result()
7924
    result.success = self._handler.getFreebieForItem(args.itemId)
7925
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
7926
    result.write(oprot)
7927
    oprot.writeMessageEnd()
7928
    oprot.trans.flush()
6962 rajveer 7929
 
7190 amar.kumar 7930
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
7931
    args = addOrUpdateFreebieForItem_args()
7932
    args.read(iprot)
7933
    iprot.readMessageEnd()
7934
    result = addOrUpdateFreebieForItem_result()
7935
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
7936
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
7937
    result.write(oprot)
7938
    oprot.writeMessageEnd()
7939
    oprot.trans.flush()
7940
 
7272 amit.gupta 7941
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
7942
    args = addOrUpdateBrandInfo_args()
7943
    args.read(iprot)
7944
    iprot.readMessageEnd()
7945
    result = addOrUpdateBrandInfo_result()
7946
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
7947
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
7948
    result.write(oprot)
7949
    oprot.writeMessageEnd()
7950
    oprot.trans.flush()
7951
 
7952
  def process_getBrandInfo(self, seqid, iprot, oprot):
7953
    args = getBrandInfo_args()
7954
    args.read(iprot)
7955
    iprot.readMessageEnd()
7956
    result = getBrandInfo_result()
7957
    result.success = self._handler.getBrandInfo()
7958
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
7959
    result.write(oprot)
7960
    oprot.writeMessageEnd()
7961
    oprot.trans.flush()
7962
 
7256 rajveer 7963
  def process_getStorePricing(self, seqid, iprot, oprot):
7964
    args = getStorePricing_args()
7965
    args.read(iprot)
7966
    iprot.readMessageEnd()
7967
    result = getStorePricing_result()
7968
    result.success = self._handler.getStorePricing(args.itemId)
7969
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
7970
    result.write(oprot)
7971
    oprot.writeMessageEnd()
7972
    oprot.trans.flush()
7190 amar.kumar 7973
 
7306 rajveer 7974
  def process_getStorePricings(self, seqid, iprot, oprot):
7975
    args = getStorePricings_args()
7976
    args.read(iprot)
7977
    iprot.readMessageEnd()
7978
    result = getStorePricings_result()
7979
    result.success = self._handler.getStorePricings(args.itemIds)
7980
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
7981
    result.write(oprot)
7982
    oprot.writeMessageEnd()
7983
    oprot.trans.flush()
7984
 
7265 rajveer 7985
  def process_updateStorePricing(self, seqid, iprot, oprot):
7986
    args = updateStorePricing_args()
7987
    args.read(iprot)
7988
    iprot.readMessageEnd()
7989
    result = updateStorePricing_result()
7382 rajveer 7990
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 7991
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
7992
    result.write(oprot)
7993
    oprot.writeMessageEnd()
7994
    oprot.trans.flush()
7256 rajveer 7995
 
7281 kshitij.so 7996
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
7997
    args = getAllAmazonListedItems_args()
7998
    args.read(iprot)
7999
    iprot.readMessageEnd()
8000
    result = getAllAmazonListedItems_result()
8001
    result.success = self._handler.getAllAmazonListedItems()
8002
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
8003
    result.write(oprot)
8004
    oprot.writeMessageEnd()
8005
    oprot.trans.flush()
7265 rajveer 8006
 
8619 kshitij.so 8007
  def process_searchAmazonItems(self, seqid, iprot, oprot):
8008
    args = searchAmazonItems_args()
8009
    args.read(iprot)
8010
    iprot.readMessageEnd()
8011
    result = searchAmazonItems_result()
8012
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
8013
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
8014
    result.write(oprot)
8015
    oprot.writeMessageEnd()
8016
    oprot.trans.flush()
8017
 
8018
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
8019
    args = getAmazonSearchResultCount_args()
8020
    args.read(iprot)
8021
    iprot.readMessageEnd()
8022
    result = getAmazonSearchResultCount_result()
8023
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
8024
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
8025
    result.write(oprot)
8026
    oprot.writeMessageEnd()
8027
    oprot.trans.flush()
8028
 
8029
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
8030
    args = getCountForAmazonlistedItems_args()
8031
    args.read(iprot)
8032
    iprot.readMessageEnd()
8033
    result = getCountForAmazonlistedItems_result()
8034
    result.success = self._handler.getCountForAmazonlistedItems()
8035
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
8036
    result.write(oprot)
8037
    oprot.writeMessageEnd()
8038
    oprot.trans.flush()
8039
 
7281 kshitij.so 8040
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
8041
    args = getAmazonItemDetails_args()
8042
    args.read(iprot)
8043
    iprot.readMessageEnd()
8044
    result = getAmazonItemDetails_result()
8045
    result.success = self._handler.getAmazonItemDetails(args.itemId)
8046
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
8047
    result.write(oprot)
8048
    oprot.writeMessageEnd()
8049
    oprot.trans.flush()
8050
 
8051
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
8052
    args = updateAmazonItemDetails_args()
8053
    args.read(iprot)
8054
    iprot.readMessageEnd()
8055
    result = updateAmazonItemDetails_result()
8168 kshitij.so 8056
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 8057
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
8058
    result.write(oprot)
8059
    oprot.writeMessageEnd()
8060
    oprot.trans.flush()
8061
 
8062
  def process_addAmazonItem(self, seqid, iprot, oprot):
8063
    args = addAmazonItem_args()
8064
    args.read(iprot)
8065
    iprot.readMessageEnd()
8066
    result = addAmazonItem_result()
8067
    self._handler.addAmazonItem(args.amazonlisted)
8068
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
8069
    result.write(oprot)
8070
    oprot.writeMessageEnd()
8071
    oprot.trans.flush()
8072
 
7291 vikram.rag 8073
  def process_getAsinItems(self, seqid, iprot, oprot):
8074
    args = getAsinItems_args()
8075
    args.read(iprot)
8076
    iprot.readMessageEnd()
8077
    result = getAsinItems_result()
8078
    result.success = self._handler.getAsinItems()
8079
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
8080
    result.write(oprot)
8081
    oprot.writeMessageEnd()
8082
    oprot.trans.flush()
7281 kshitij.so 8083
 
7291 vikram.rag 8084
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
8085
    args = getAllFbaListedItems_args()
8086
    args.read(iprot)
8087
    iprot.readMessageEnd()
8088
    result = getAllFbaListedItems_result()
8089
    result.success = self._handler.getAllFbaListedItems()
8090
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
8091
    result.write(oprot)
8092
    oprot.writeMessageEnd()
8093
    oprot.trans.flush()
8094
 
8095
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
8096
    args = getAllNonFbaListedItems_args()
8097
    args.read(iprot)
8098
    iprot.readMessageEnd()
8099
    result = getAllNonFbaListedItems_result()
8100
    result.success = self._handler.getAllNonFbaListedItems()
8101
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
8102
    result.write(oprot)
8103
    oprot.writeMessageEnd()
8104
    oprot.trans.flush()
8105
 
7460 kshitij.so 8106
  def process_updateItemInventory(self, seqid, iprot, oprot):
8107
    args = updateItemInventory_args()
8108
    args.read(iprot)
8109
    iprot.readMessageEnd()
8110
    result = updateItemInventory_result()
8111
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
8112
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
8113
    result.write(oprot)
8114
    oprot.writeMessageEnd()
8115
    oprot.trans.flush()
7291 vikram.rag 8116
 
7770 kshitij.so 8117
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
8118
    args = updateTimestampForAmazonFeeds_args()
8119
    args.read(iprot)
8120
    iprot.readMessageEnd()
8121
    result = updateTimestampForAmazonFeeds_result()
8122
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
8123
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
8124
    result.write(oprot)
8125
    oprot.writeMessageEnd()
8126
    oprot.trans.flush()
7460 kshitij.so 8127
 
7897 amar.kumar 8128
  def process_getAllParentCategories(self, seqid, iprot, oprot):
8129
    args = getAllParentCategories_args()
8130
    args.read(iprot)
8131
    iprot.readMessageEnd()
8132
    result = getAllParentCategories_result()
8133
    result.success = self._handler.getAllParentCategories()
8134
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
8135
    result.write(oprot)
8136
    oprot.writeMessageEnd()
8137
    oprot.trans.flush()
7770 kshitij.so 8138
 
7977 kshitij.so 8139
  def process_addPageViewEvent(self, seqid, iprot, oprot):
8140
    args = addPageViewEvent_args()
8141
    args.read(iprot)
8142
    iprot.readMessageEnd()
8143
    result = addPageViewEvent_result()
8144
    self._handler.addPageViewEvent(args.pageViewEvents)
8145
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
8146
    result.write(oprot)
8147
    oprot.writeMessageEnd()
8148
    oprot.trans.flush()
7897 amar.kumar 8149
 
7977 kshitij.so 8150
  def process_addCartEvent(self, seqid, iprot, oprot):
8151
    args = addCartEvent_args()
8152
    args.read(iprot)
8153
    iprot.readMessageEnd()
8154
    result = addCartEvent_result()
8155
    self._handler.addCartEvent(args.cartEvents)
8156
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
8157
    result.write(oprot)
8158
    oprot.writeMessageEnd()
8159
    oprot.trans.flush()
8160
 
8182 amar.kumar 8161
  def process_addEbayItem(self, seqid, iprot, oprot):
8162
    args = addEbayItem_args()
8163
    args.read(iprot)
8164
    iprot.readMessageEnd()
8165
    result = addEbayItem_result()
8166
    self._handler.addEbayItem(args.ebayItem)
8167
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
8168
    result.write(oprot)
8169
    oprot.writeMessageEnd()
8170
    oprot.trans.flush()
8171
 
8172
  def process_getEbayItem(self, seqid, iprot, oprot):
8173
    args = getEbayItem_args()
8174
    args.read(iprot)
8175
    iprot.readMessageEnd()
8176
    result = getEbayItem_result()
8177
    result.success = self._handler.getEbayItem(args.listingId)
8178
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
8179
    result.write(oprot)
8180
    oprot.writeMessageEnd()
8181
    oprot.trans.flush()
8182
 
8183
  def process_updateEbayItem(self, seqid, iprot, oprot):
8184
    args = updateEbayItem_args()
8185
    args.read(iprot)
8186
    iprot.readMessageEnd()
8187
    result = updateEbayItem_result()
8188
    self._handler.updateEbayItem(args.ebayItem)
8189
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
8190
    result.write(oprot)
8191
    oprot.writeMessageEnd()
8192
    oprot.trans.flush()
8193
 
8139 kshitij.so 8194
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
8195
    args = getAmazonListedItems_args()
8196
    args.read(iprot)
8197
    iprot.readMessageEnd()
8198
    result = getAmazonListedItems_result()
8199
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
8200
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
8201
    result.write(oprot)
8202
    oprot.writeMessageEnd()
8203
    oprot.trans.flush()
7977 kshitij.so 8204
 
8168 kshitij.so 8205
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
8206
    args = updateAmazonAttributesInBulk_args()
8207
    args.read(iprot)
8208
    iprot.readMessageEnd()
8209
    result = updateAmazonAttributesInBulk_result()
8210
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
8211
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
8212
    result.write(oprot)
8213
    oprot.writeMessageEnd()
8214
    oprot.trans.flush()
8139 kshitij.so 8215
 
8379 vikram.rag 8216
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
8217
    args = getAllItemstoListOnFba_args()
8218
    args.read(iprot)
8219
    iprot.readMessageEnd()
8220
    result = getAllItemstoListOnFba_result()
8221
    result.success = self._handler.getAllItemstoListOnFba()
8222
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
8223
    result.write(oprot)
8224
    oprot.writeMessageEnd()
8225
    oprot.trans.flush()
8168 kshitij.so 8226
 
8379 vikram.rag 8227
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
8228
    args = getAllItemstoListOnNonFba_args()
8229
    args.read(iprot)
8230
    iprot.readMessageEnd()
8231
    result = getAllItemstoListOnNonFba_result()
8232
    result.success = self._handler.getAllItemstoListOnNonFba()
8233
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
8234
    result.write(oprot)
8235
    oprot.writeMessageEnd()
8236
    oprot.trans.flush()
8237
 
8619 kshitij.so 8238
  def process_updateAsin(self, seqid, iprot, oprot):
8239
    args = updateAsin_args()
8240
    args.read(iprot)
8241
    iprot.readMessageEnd()
8242
    result = updateAsin_result()
8243
    self._handler.updateAsin(args.item)
8244
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
8245
    result.write(oprot)
8246
    oprot.writeMessageEnd()
8247
    oprot.trans.flush()
8616 vikram.rag 8248
 
8739 vikram.rag 8249
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
8250
    args = addOrUpdateSnapdealItem_args()
8251
    args.read(iprot)
8252
    iprot.readMessageEnd()
8253
    result = addOrUpdateSnapdealItem_result()
8254
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
8255
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
8256
    result.write(oprot)
8257
    oprot.writeMessageEnd()
8258
    oprot.trans.flush()
8619 kshitij.so 8259
 
8739 vikram.rag 8260
  def process_getSnapdealItem(self, seqid, iprot, oprot):
8261
    args = getSnapdealItem_args()
8262
    args.read(iprot)
8263
    iprot.readMessageEnd()
8264
    result = getSnapdealItem_result()
8265
    result.success = self._handler.getSnapdealItem(args.item_id)
8266
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
8267
    result.write(oprot)
8268
    oprot.writeMessageEnd()
8269
    oprot.trans.flush()
8270
 
9242 kshitij.so 8271
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
8272
    args = getSnapdealItemDetails_args()
8273
    args.read(iprot)
8274
    iprot.readMessageEnd()
8275
    result = getSnapdealItemDetails_result()
8276
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
8277
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
8278
    result.write(oprot)
8279
    oprot.writeMessageEnd()
8280
    oprot.trans.flush()
8281
 
8739 vikram.rag 8282
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
8283
    args = getAllSnapdealItems_args()
8284
    args.read(iprot)
8285
    iprot.readMessageEnd()
8286
    result = getAllSnapdealItems_result()
8287
    result.success = self._handler.getAllSnapdealItems()
8288
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
8289
    result.write(oprot)
8290
    oprot.writeMessageEnd()
8291
    oprot.trans.flush()
8292
 
9242 kshitij.so 8293
  def process_getSnapdealItems(self, seqid, iprot, oprot):
8294
    args = getSnapdealItems_args()
8295
    args.read(iprot)
8296
    iprot.readMessageEnd()
8297
    result = getSnapdealItems_result()
8298
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
8299
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
8300
    result.write(oprot)
8301
    oprot.writeMessageEnd()
8302
    oprot.trans.flush()
8739 vikram.rag 8303
 
9242 kshitij.so 8304
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
8305
    args = searchSnapdealItems_args()
8306
    args.read(iprot)
8307
    iprot.readMessageEnd()
8308
    result = searchSnapdealItems_result()
8309
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
8310
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
8311
    result.write(oprot)
8312
    oprot.writeMessageEnd()
8313
    oprot.trans.flush()
8314
 
8315
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
8316
    args = getCountForSnapdealItems_args()
8317
    args.read(iprot)
8318
    iprot.readMessageEnd()
8319
    result = getCountForSnapdealItems_result()
8320
    result.success = self._handler.getCountForSnapdealItems()
8321
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
8322
    result.write(oprot)
8323
    oprot.writeMessageEnd()
8324
    oprot.trans.flush()
8325
 
8326
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
8327
    args = getSnapdealSearchResultCount_args()
8328
    args.read(iprot)
8329
    iprot.readMessageEnd()
8330
    result = getSnapdealSearchResultCount_result()
8331
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
8332
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
8333
    result.write(oprot)
8334
    oprot.writeMessageEnd()
8335
    oprot.trans.flush()
8336
 
9299 kshitij.so 8337
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
8338
    args = getPrefferedInsurerForItem_args()
8339
    args.read(iprot)
8340
    iprot.readMessageEnd()
8341
    result = getPrefferedInsurerForItem_result()
8342
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
8343
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
8344
    result.write(oprot)
8345
    oprot.writeMessageEnd()
8346
    oprot.trans.flush()
9242 kshitij.so 8347
 
9456 vikram.rag 8348
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
8349
    args = getSnapdealItembySkuAtSnapdeal_args()
8350
    args.read(iprot)
8351
    iprot.readMessageEnd()
8352
    result = getSnapdealItembySkuAtSnapdeal_result()
8353
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
8354
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
8355
    result.write(oprot)
8356
    oprot.writeMessageEnd()
8357
    oprot.trans.flush()
9299 kshitij.so 8358
 
9621 manish.sha 8359
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
8360
    args = getProductFeedSubmit_args()
8361
    args.read(iprot)
8362
    iprot.readMessageEnd()
8363
    result = getProductFeedSubmit_result()
8364
    try:
8365
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
8366
    except CatalogServiceException, cex:
8367
      result.cex = cex
8368
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
8369
    result.write(oprot)
8370
    oprot.writeMessageEnd()
8371
    oprot.trans.flush()
9456 vikram.rag 8372
 
9621 manish.sha 8373
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
8374
    args = addProductFeedSubmit_args()
8375
    args.read(iprot)
8376
    iprot.readMessageEnd()
8377
    result = addProductFeedSubmit_result()
8378
    try:
8379
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
8380
    except CatalogServiceException, cex:
8381
      result.cex = cex
8382
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
8383
    result.write(oprot)
8384
    oprot.writeMessageEnd()
8385
    oprot.trans.flush()
8386
 
8387
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
8388
    args = updateProductFeedSubmit_args()
8389
    args.read(iprot)
8390
    iprot.readMessageEnd()
8391
    result = updateProductFeedSubmit_result()
8392
    try:
8393
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
8394
    except CatalogServiceException, cex:
8395
      result.cex = cex
8396
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
8397
    result.write(oprot)
8398
    oprot.writeMessageEnd()
8399
    oprot.trans.flush()
8400
 
8401
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
8402
    args = deleteProductFeedSubmit_args()
8403
    args.read(iprot)
8404
    iprot.readMessageEnd()
8405
    result = deleteProductFeedSubmit_result()
8406
    try:
8407
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
8408
    except CatalogServiceException, cex:
8409
      result.cex = cex
8410
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
8411
    result.write(oprot)
8412
    oprot.writeMessageEnd()
8413
    oprot.trans.flush()
8414
 
8415
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
8416
    args = getAllProductFeedSubmit_args()
8417
    args.read(iprot)
8418
    iprot.readMessageEnd()
8419
    result = getAllProductFeedSubmit_result()
8420
    try:
8421
      result.success = self._handler.getAllProductFeedSubmit()
8422
    except CatalogServiceException, cex:
8423
      result.cex = cex
8424
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
8425
    result.write(oprot)
8426
    oprot.writeMessageEnd()
8427
    oprot.trans.flush()
8428
 
9724 kshitij.so 8429
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
8430
    args = getMarketplacedetailsForItem_args()
8431
    args.read(iprot)
8432
    iprot.readMessageEnd()
8433
    result = getMarketplacedetailsForItem_result()
8434
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
8435
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
8436
    result.write(oprot)
8437
    oprot.writeMessageEnd()
8438
    oprot.trans.flush()
9621 manish.sha 8439
 
9724 kshitij.so 8440
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
8441
    args = updateMarketplaceAttributesForItem_args()
8442
    args.read(iprot)
8443
    iprot.readMessageEnd()
8444
    result = updateMarketplaceAttributesForItem_result()
8445
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
8446
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
8447
    result.write(oprot)
8448
    oprot.writeMessageEnd()
8449
    oprot.trans.flush()
8450
 
9779 kshitij.so 8451
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
8452
    args = getCostingForMarketplace_args()
8453
    args.read(iprot)
8454
    iprot.readMessageEnd()
8455
    result = getCostingForMarketplace_result()
8456
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
8457
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
8458
    result.write(oprot)
8459
    oprot.writeMessageEnd()
8460
    oprot.trans.flush()
8461
 
9776 vikram.rag 8462
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
8463
    args = getMarketPlaceItemsForPriceUpdate_args()
8464
    args.read(iprot)
8465
    iprot.readMessageEnd()
8466
    result = getMarketPlaceItemsForPriceUpdate_result()
8467
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
8468
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
8469
    result.write(oprot)
8470
    oprot.writeMessageEnd()
8471
    oprot.trans.flush()
9724 kshitij.so 8472
 
9776 vikram.rag 8473
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
8474
    args = updateMarketPlacePriceUpdateStatus_args()
8475
    args.read(iprot)
8476
    iprot.readMessageEnd()
8477
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 8478
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 8479
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
8480
    result.write(oprot)
8481
    oprot.writeMessageEnd()
8482
    oprot.trans.flush()
8483
 
9861 rajveer 8484
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
8485
    args = updateItemHoldInventory_args()
8486
    args.read(iprot)
8487
    iprot.readMessageEnd()
8488
    result = updateItemHoldInventory_result()
8489
    self._handler.updateItemHoldInventory(args.itemHoldMap)
8490
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
8491
    result.write(oprot)
8492
    oprot.writeMessageEnd()
8493
    oprot.trans.flush()
9776 vikram.rag 8494
 
9895 vikram.rag 8495
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
8496
    args = updateNlcAtMarketplaces_args()
8497
    args.read(iprot)
8498
    iprot.readMessageEnd()
8499
    result = updateNlcAtMarketplaces_result()
8500
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
8501
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
8502
    result.write(oprot)
8503
    oprot.writeMessageEnd()
8504
    oprot.trans.flush()
9861 rajveer 8505
 
9945 vikram.rag 8506
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
8507
    args = getAllFlipkartItems_args()
8508
    args.read(iprot)
8509
    iprot.readMessageEnd()
8510
    result = getAllFlipkartItems_result()
8511
    result.success = self._handler.getAllFlipkartItems()
8512
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
8513
    result.write(oprot)
8514
    oprot.writeMessageEnd()
8515
    oprot.trans.flush()
9895 vikram.rag 8516
 
10097 kshitij.so 8517
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
8518
    args = addOrUpdateFlipkartItem_args()
8519
    args.read(iprot)
8520
    iprot.readMessageEnd()
8521
    result = addOrUpdateFlipkartItem_result()
8522
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
8523
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
8524
    result.write(oprot)
8525
    oprot.writeMessageEnd()
8526
    oprot.trans.flush()
9945 vikram.rag 8527
 
10097 kshitij.so 8528
  def process_getFlipkartItem(self, seqid, iprot, oprot):
8529
    args = getFlipkartItem_args()
8530
    args.read(iprot)
8531
    iprot.readMessageEnd()
8532
    result = getFlipkartItem_result()
8533
    result.success = self._handler.getFlipkartItem(args.item_id)
8534
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
8535
    result.write(oprot)
8536
    oprot.writeMessageEnd()
8537
    oprot.trans.flush()
8538
 
8539
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
8540
    args = getFlipkartItemDetails_args()
8541
    args.read(iprot)
8542
    iprot.readMessageEnd()
8543
    result = getFlipkartItemDetails_result()
8544
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
8545
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
8546
    result.write(oprot)
8547
    oprot.writeMessageEnd()
8548
    oprot.trans.flush()
8549
 
8550
  def process_getFlipkartItems(self, seqid, iprot, oprot):
8551
    args = getFlipkartItems_args()
8552
    args.read(iprot)
8553
    iprot.readMessageEnd()
8554
    result = getFlipkartItems_result()
8555
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
8556
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
8557
    result.write(oprot)
8558
    oprot.writeMessageEnd()
8559
    oprot.trans.flush()
8560
 
8561
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
8562
    args = searchFlipkartItems_args()
8563
    args.read(iprot)
8564
    iprot.readMessageEnd()
8565
    result = searchFlipkartItems_result()
8566
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
8567
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
8568
    result.write(oprot)
8569
    oprot.writeMessageEnd()
8570
    oprot.trans.flush()
8571
 
8572
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
8573
    args = getCountForFlipkartItems_args()
8574
    args.read(iprot)
8575
    iprot.readMessageEnd()
8576
    result = getCountForFlipkartItems_result()
8577
    result.success = self._handler.getCountForFlipkartItems()
8578
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
8579
    result.write(oprot)
8580
    oprot.writeMessageEnd()
8581
    oprot.trans.flush()
8582
 
8583
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
8584
    args = getFlipkartSearchResultCount_args()
8585
    args.read(iprot)
8586
    iprot.readMessageEnd()
8587
    result = getFlipkartSearchResultCount_result()
8588
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
8589
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
8590
    result.write(oprot)
8591
    oprot.writeMessageEnd()
8592
    oprot.trans.flush()
8593
 
8594
  def process_getAllFkItems(self, seqid, iprot, oprot):
8595
    args = getAllFkItems_args()
8596
    args.read(iprot)
8597
    iprot.readMessageEnd()
8598
    result = getAllFkItems_result()
8599
    result.success = self._handler.getAllFkItems()
8600
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
8601
    result.write(oprot)
8602
    oprot.writeMessageEnd()
8603
    oprot.trans.flush()
8604
 
10140 vikram.rag 8605
  def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):
8606
    args = getFlipkartItemBySkyAtFlipkart_args()
8607
    args.read(iprot)
8608
    iprot.readMessageEnd()
8609
    result = getFlipkartItemBySkyAtFlipkart_result()
8610
    result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)
8611
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
8612
    result.write(oprot)
8613
    oprot.writeMessageEnd()
8614
    oprot.trans.flush()
10097 kshitij.so 8615
 
11015 kshitij.so 8616
  def process_getMarketplaceHistory(self, seqid, iprot, oprot):
8617
    args = getMarketplaceHistory_args()
8618
    args.read(iprot)
8619
    iprot.readMessageEnd()
8620
    result = getMarketplaceHistory_result()
8621
    result.success = self._handler.getMarketplaceHistory(args.source, args.offset, args.itemId)
8622
    oprot.writeMessageBegin("getMarketplaceHistory", TMessageType.REPLY, seqid)
8623
    result.write(oprot)
8624
    oprot.writeMessageEnd()
8625
    oprot.trans.flush()
8626
 
10909 vikram.rag 8627
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
8628
    args = getAllFbbListedItems_args()
8629
    args.read(iprot)
8630
    iprot.readMessageEnd()
8631
    result = getAllFbbListedItems_result()
8632
    result.success = self._handler.getAllFbbListedItems()
8633
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
8634
    result.write(oprot)
8635
    oprot.writeMessageEnd()
8636
    oprot.trans.flush()
10140 vikram.rag 8637
 
10924 vikram.rag 8638
  def process_getAllFbbPricingItems(self, seqid, iprot, oprot):
8639
    args = getAllFbbPricingItems_args()
8640
    args.read(iprot)
8641
    iprot.readMessageEnd()
8642
    result = getAllFbbPricingItems_result()
8643
    result.success = self._handler.getAllFbbPricingItems()
8644
    oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)
8645
    result.write(oprot)
8646
    oprot.writeMessageEnd()
8647
    oprot.trans.flush()
10909 vikram.rag 8648
 
11015 kshitij.so 8649
  def process_getCountForMarketplaceHistory(self, seqid, iprot, oprot):
8650
    args = getCountForMarketplaceHistory_args()
8651
    args.read(iprot)
8652
    iprot.readMessageEnd()
8653
    result = getCountForMarketplaceHistory_result()
8654
    result.success = self._handler.getCountForMarketplaceHistory(args.source, args.itemId)
8655
    oprot.writeMessageBegin("getCountForMarketplaceHistory", TMessageType.REPLY, seqid)
8656
    result.write(oprot)
8657
    oprot.writeMessageEnd()
8658
    oprot.trans.flush()
10924 vikram.rag 8659
 
11015 kshitij.so 8660
  def process_getMarketplaceHistoryByDate(self, seqid, iprot, oprot):
8661
    args = getMarketplaceHistoryByDate_args()
8662
    args.read(iprot)
8663
    iprot.readMessageEnd()
8664
    result = getMarketplaceHistoryByDate_result()
8665
    result.success = self._handler.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId)
8666
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
8667
    result.write(oprot)
8668
    oprot.writeMessageEnd()
8669
    oprot.trans.flush()
8670
 
11531 vikram.rag 8671
  def process_getPrivateDealDetails(self, seqid, iprot, oprot):
8672
    args = getPrivateDealDetails_args()
8673
    args.read(iprot)
8674
    iprot.readMessageEnd()
8675
    result = getPrivateDealDetails_result()
8676
    result.success = self._handler.getPrivateDealDetails(args.item_id)
8677
    oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)
8678
    result.write(oprot)
8679
    oprot.writeMessageEnd()
8680
    oprot.trans.flush()
11015 kshitij.so 8681
 
11531 vikram.rag 8682
  def process_getPrivateDealItems(self, seqid, iprot, oprot):
8683
    args = getPrivateDealItems_args()
8684
    args.read(iprot)
8685
    iprot.readMessageEnd()
8686
    result = getPrivateDealItems_result()
8687
    result.success = self._handler.getPrivateDealItems(args.offset, args.limit)
8688
    oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)
8689
    result.write(oprot)
8690
    oprot.writeMessageEnd()
8691
    oprot.trans.flush()
8692
 
11592 amit.gupta 8693
  def process_getAllActivePrivateDeals(self, seqid, iprot, oprot):
8694
    args = getAllActivePrivateDeals_args()
8695
    args.read(iprot)
8696
    iprot.readMessageEnd()
8697
    result = getAllActivePrivateDeals_result()
11653 amit.gupta 8698
    result.success = self._handler.getAllActivePrivateDeals(args.itemIds, args.daysDelta)
11592 amit.gupta 8699
    oprot.writeMessageBegin("getAllActivePrivateDeals", TMessageType.REPLY, seqid)
8700
    result.write(oprot)
8701
    oprot.writeMessageEnd()
8702
    oprot.trans.flush()
8703
 
11531 vikram.rag 8704
  def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):
8705
    args = addOrUpdatePrivateDeal_args()
8706
    args.read(iprot)
8707
    iprot.readMessageEnd()
8708
    result = addOrUpdatePrivateDeal_result()
8709
    result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)
8710
    oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)
8711
    result.write(oprot)
8712
    oprot.writeMessageEnd()
8713
    oprot.trans.flush()
8714
 
11635 vikram.rag 8715
  def process_getPrivateDealsCatalogIds(self, seqid, iprot, oprot):
8716
    args = getPrivateDealsCatalogIds_args()
8717
    args.read(iprot)
8718
    iprot.readMessageEnd()
8719
    result = getPrivateDealsCatalogIds_result()
8720
    try:
8721
      result.success = self._handler.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems)
8722
    except CatalogServiceException, cex:
8723
      result.cex = cex
8724
    oprot.writeMessageBegin("getPrivateDealsCatalogIds", TMessageType.REPLY, seqid)
8725
    result.write(oprot)
8726
    oprot.writeMessageEnd()
8727
    oprot.trans.flush()
11531 vikram.rag 8728
 
11645 amit.gupta 8729
  def process_getPrivateDealsCount(self, seqid, iprot, oprot):
8730
    args = getPrivateDealsCount_args()
8731
    args.read(iprot)
8732
    iprot.readMessageEnd()
8733
    result = getPrivateDealsCount_result()
8734
    result.success = self._handler.getPrivateDealsCount()
8735
    oprot.writeMessageBegin("getPrivateDealsCount", TMessageType.REPLY, seqid)
8736
    result.write(oprot)
8737
    oprot.writeMessageEnd()
8738
    oprot.trans.flush()
11635 vikram.rag 8739
 
11905 kshitij.so 8740
  def process_getAmazonOutSyncItems(self, seqid, iprot, oprot):
8741
    args = getAmazonOutSyncItems_args()
8742
    args.read(iprot)
8743
    iprot.readMessageEnd()
8744
    result = getAmazonOutSyncItems_result()
8745
    result.success = self._handler.getAmazonOutSyncItems(args.item_id)
8746
    oprot.writeMessageBegin("getAmazonOutSyncItems", TMessageType.REPLY, seqid)
8747
    result.write(oprot)
8748
    oprot.writeMessageEnd()
8749
    oprot.trans.flush()
11645 amit.gupta 8750
 
11905 kshitij.so 8751
  def process_getAllPrivateDealsComparison(self, seqid, iprot, oprot):
8752
    args = getAllPrivateDealsComparison_args()
8753
    args.read(iprot)
8754
    iprot.readMessageEnd()
8755
    result = getAllPrivateDealsComparison_result()
8756
    result.success = self._handler.getAllPrivateDealsComparison()
8757
    oprot.writeMessageBegin("getAllPrivateDealsComparison", TMessageType.REPLY, seqid)
8758
    result.write(oprot)
8759
    oprot.writeMessageEnd()
8760
    oprot.trans.flush()
8761
 
12133 kshitij.so 8762
  def process_getAllSnapdealMarketplaceItem(self, seqid, iprot, oprot):
8763
    args = getAllSnapdealMarketplaceItem_args()
8764
    args.read(iprot)
8765
    iprot.readMessageEnd()
8766
    result = getAllSnapdealMarketplaceItem_result()
8767
    result.success = self._handler.getAllSnapdealMarketplaceItem()
8768
    oprot.writeMessageBegin("getAllSnapdealMarketplaceItem", TMessageType.REPLY, seqid)
8769
    result.write(oprot)
8770
    oprot.writeMessageEnd()
8771
    oprot.trans.flush()
11905 kshitij.so 8772
 
12133 kshitij.so 8773
  def process_getAllFlipkartMarketplaceItem(self, seqid, iprot, oprot):
8774
    args = getAllFlipkartMarketplaceItem_args()
8775
    args.read(iprot)
8776
    iprot.readMessageEnd()
8777
    result = getAllFlipkartMarketplaceItem_result()
8778
    result.success = self._handler.getAllFlipkartMarketplaceItem()
8779
    oprot.writeMessageBegin("getAllFlipkartMarketplaceItem", TMessageType.REPLY, seqid)
8780
    result.write(oprot)
8781
    oprot.writeMessageEnd()
8782
    oprot.trans.flush()
8783
 
12243 kshitij.so 8784
  def process_addCompetitorScraping(self, seqid, iprot, oprot):
8785
    args = addCompetitorScraping_args()
8786
    args.read(iprot)
8787
    iprot.readMessageEnd()
8788
    result = addCompetitorScraping_result()
8789
    self._handler.addCompetitorScraping(args.competitorPricingMap)
8790
    oprot.writeMessageBegin("addCompetitorScraping", TMessageType.REPLY, seqid)
8791
    result.write(oprot)
8792
    oprot.writeMessageEnd()
8793
    oprot.trans.flush()
12133 kshitij.so 8794
 
12243 kshitij.so 8795
  def process_getPreviousCompetitorScraping(self, seqid, iprot, oprot):
8796
    args = getPreviousCompetitorScraping_args()
8797
    args.read(iprot)
8798
    iprot.readMessageEnd()
8799
    result = getPreviousCompetitorScraping_result()
8800
    result.success = self._handler.getPreviousCompetitorScraping(args.delta)
8801
    oprot.writeMessageBegin("getPreviousCompetitorScraping", TMessageType.REPLY, seqid)
8802
    result.write(oprot)
8803
    oprot.writeMessageEnd()
8804
    oprot.trans.flush()
8805
 
12256 kshitij.so 8806
  def process_getUploadResultById(self, seqid, iprot, oprot):
8807
    args = getUploadResultById_args()
8808
    args.read(iprot)
8809
    iprot.readMessageEnd()
8810
    result = getUploadResultById_result()
8811
    result.success = self._handler.getUploadResultById(args.uploadId)
8812
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
8813
    result.write(oprot)
8814
    oprot.writeMessageEnd()
8815
    oprot.trans.flush()
12243 kshitij.so 8816
 
12363 kshitij.so 8817
  def process_addAmazonPromotion(self, seqid, iprot, oprot):
8818
    args = addAmazonPromotion_args()
8819
    args.read(iprot)
8820
    iprot.readMessageEnd()
8821
    result = addAmazonPromotion_result()
8822
    result.success = self._handler.addAmazonPromotion(args.amazonPromotions)
8823
    oprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)
8824
    result.write(oprot)
8825
    oprot.writeMessageEnd()
8826
    oprot.trans.flush()
12256 kshitij.so 8827
 
12363 kshitij.so 8828
  def process_getAmazonPromotion(self, seqid, iprot, oprot):
8829
    args = getAmazonPromotion_args()
8830
    args.read(iprot)
8831
    iprot.readMessageEnd()
8832
    result = getAmazonPromotion_result()
8833
    result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)
8834
    oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)
8835
    result.write(oprot)
8836
    oprot.writeMessageEnd()
8837
    oprot.trans.flush()
8838
 
8839
  def process_updateAmazonPromotion(self, seqid, iprot, oprot):
8840
    args = updateAmazonPromotion_args()
8841
    args.read(iprot)
8842
    iprot.readMessageEnd()
8843
    result = updateAmazonPromotion_result()
8844
    result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)
8845
    oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)
8846
    result.write(oprot)
8847
    oprot.writeMessageEnd()
8848
    oprot.trans.flush()
8849
 
8850
 
5944 mandeep.dh 8851
# HELPER FUNCTIONS AND STRUCTURES
8852
 
8853
class addItem_args:
8854
  """
8855
  Attributes:
8856
   - item
8857
  """
8858
 
8859
  thrift_spec = (
8860
    None, # 0
8861
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
8862
  )
8863
 
8864
  def __init__(self, item=None,):
8865
    self.item = item
8866
 
8867
  def read(self, iprot):
8868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8870
      return
8871
    iprot.readStructBegin()
8872
    while True:
8873
      (fname, ftype, fid) = iprot.readFieldBegin()
8874
      if ftype == TType.STOP:
8875
        break
8876
      if fid == 1:
8877
        if ftype == TType.STRUCT:
8878
          self.item = Item()
8879
          self.item.read(iprot)
8880
        else:
8881
          iprot.skip(ftype)
8882
      else:
8883
        iprot.skip(ftype)
8884
      iprot.readFieldEnd()
8885
    iprot.readStructEnd()
8886
 
8887
  def write(self, oprot):
8888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8890
      return
8891
    oprot.writeStructBegin('addItem_args')
8892
    if self.item is not None:
8893
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
8894
      self.item.write(oprot)
8895
      oprot.writeFieldEnd()
8896
    oprot.writeFieldStop()
8897
    oprot.writeStructEnd()
8898
 
8899
  def validate(self):
8900
    return
8901
 
8902
 
8903
  def __repr__(self):
8904
    L = ['%s=%r' % (key, value)
8905
      for key, value in self.__dict__.iteritems()]
8906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8907
 
8908
  def __eq__(self, other):
8909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8910
 
8911
  def __ne__(self, other):
8912
    return not (self == other)
8913
 
8914
class addItem_result:
8915
  """
8916
  Attributes:
8917
   - success
8918
   - cex
8919
  """
8920
 
8921
  thrift_spec = (
8922
    (0, TType.I64, 'success', None, None, ), # 0
8923
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8924
  )
8925
 
8926
  def __init__(self, success=None, cex=None,):
8927
    self.success = success
8928
    self.cex = cex
8929
 
8930
  def read(self, iprot):
8931
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8932
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8933
      return
8934
    iprot.readStructBegin()
8935
    while True:
8936
      (fname, ftype, fid) = iprot.readFieldBegin()
8937
      if ftype == TType.STOP:
8938
        break
8939
      if fid == 0:
8940
        if ftype == TType.I64:
8941
          self.success = iprot.readI64();
8942
        else:
8943
          iprot.skip(ftype)
8944
      elif fid == 1:
8945
        if ftype == TType.STRUCT:
8946
          self.cex = CatalogServiceException()
8947
          self.cex.read(iprot)
8948
        else:
8949
          iprot.skip(ftype)
8950
      else:
8951
        iprot.skip(ftype)
8952
      iprot.readFieldEnd()
8953
    iprot.readStructEnd()
8954
 
8955
  def write(self, oprot):
8956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8958
      return
8959
    oprot.writeStructBegin('addItem_result')
8960
    if self.success is not None:
8961
      oprot.writeFieldBegin('success', TType.I64, 0)
8962
      oprot.writeI64(self.success)
8963
      oprot.writeFieldEnd()
8964
    if self.cex is not None:
8965
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8966
      self.cex.write(oprot)
8967
      oprot.writeFieldEnd()
8968
    oprot.writeFieldStop()
8969
    oprot.writeStructEnd()
8970
 
8971
  def validate(self):
8972
    return
8973
 
8974
 
8975
  def __repr__(self):
8976
    L = ['%s=%r' % (key, value)
8977
      for key, value in self.__dict__.iteritems()]
8978
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8979
 
8980
  def __eq__(self, other):
8981
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8982
 
8983
  def __ne__(self, other):
8984
    return not (self == other)
8985
 
8986
class updateItem_args:
8987
  """
8988
  Attributes:
8989
   - item
8990
  """
8991
 
8992
  thrift_spec = (
8993
    None, # 0
8994
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
8995
  )
8996
 
8997
  def __init__(self, item=None,):
8998
    self.item = item
8999
 
9000
  def read(self, iprot):
9001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9003
      return
9004
    iprot.readStructBegin()
9005
    while True:
9006
      (fname, ftype, fid) = iprot.readFieldBegin()
9007
      if ftype == TType.STOP:
9008
        break
9009
      if fid == 1:
9010
        if ftype == TType.STRUCT:
9011
          self.item = Item()
9012
          self.item.read(iprot)
9013
        else:
9014
          iprot.skip(ftype)
9015
      else:
9016
        iprot.skip(ftype)
9017
      iprot.readFieldEnd()
9018
    iprot.readStructEnd()
9019
 
9020
  def write(self, oprot):
9021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9023
      return
9024
    oprot.writeStructBegin('updateItem_args')
9025
    if self.item is not None:
9026
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9027
      self.item.write(oprot)
9028
      oprot.writeFieldEnd()
9029
    oprot.writeFieldStop()
9030
    oprot.writeStructEnd()
9031
 
9032
  def validate(self):
9033
    return
9034
 
9035
 
9036
  def __repr__(self):
9037
    L = ['%s=%r' % (key, value)
9038
      for key, value in self.__dict__.iteritems()]
9039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9040
 
9041
  def __eq__(self, other):
9042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9043
 
9044
  def __ne__(self, other):
9045
    return not (self == other)
9046
 
9047
class updateItem_result:
9048
  """
9049
  Attributes:
9050
   - success
9051
   - cex
9052
  """
9053
 
9054
  thrift_spec = (
9055
    (0, TType.I64, 'success', None, None, ), # 0
9056
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9057
  )
9058
 
9059
  def __init__(self, success=None, cex=None,):
9060
    self.success = success
9061
    self.cex = cex
9062
 
9063
  def read(self, iprot):
9064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9066
      return
9067
    iprot.readStructBegin()
9068
    while True:
9069
      (fname, ftype, fid) = iprot.readFieldBegin()
9070
      if ftype == TType.STOP:
9071
        break
9072
      if fid == 0:
9073
        if ftype == TType.I64:
9074
          self.success = iprot.readI64();
9075
        else:
9076
          iprot.skip(ftype)
9077
      elif fid == 1:
9078
        if ftype == TType.STRUCT:
9079
          self.cex = CatalogServiceException()
9080
          self.cex.read(iprot)
9081
        else:
9082
          iprot.skip(ftype)
9083
      else:
9084
        iprot.skip(ftype)
9085
      iprot.readFieldEnd()
9086
    iprot.readStructEnd()
9087
 
9088
  def write(self, oprot):
9089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9091
      return
9092
    oprot.writeStructBegin('updateItem_result')
9093
    if self.success is not None:
9094
      oprot.writeFieldBegin('success', TType.I64, 0)
9095
      oprot.writeI64(self.success)
9096
      oprot.writeFieldEnd()
9097
    if self.cex is not None:
9098
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9099
      self.cex.write(oprot)
9100
      oprot.writeFieldEnd()
9101
    oprot.writeFieldStop()
9102
    oprot.writeStructEnd()
9103
 
9104
  def validate(self):
9105
    return
9106
 
9107
 
9108
  def __repr__(self):
9109
    L = ['%s=%r' % (key, value)
9110
      for key, value in self.__dict__.iteritems()]
9111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9112
 
9113
  def __eq__(self, other):
9114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9115
 
9116
  def __ne__(self, other):
9117
    return not (self == other)
9118
 
9119
class isActive_args:
9120
  """
9121
  Attributes:
9122
   - itemId
9123
  """
9124
 
9125
  thrift_spec = (
9126
    None, # 0
9127
    (1, TType.I64, 'itemId', None, None, ), # 1
9128
  )
9129
 
9130
  def __init__(self, itemId=None,):
9131
    self.itemId = itemId
9132
 
9133
  def read(self, iprot):
9134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9136
      return
9137
    iprot.readStructBegin()
9138
    while True:
9139
      (fname, ftype, fid) = iprot.readFieldBegin()
9140
      if ftype == TType.STOP:
9141
        break
9142
      if fid == 1:
9143
        if ftype == TType.I64:
9144
          self.itemId = iprot.readI64();
9145
        else:
9146
          iprot.skip(ftype)
9147
      else:
9148
        iprot.skip(ftype)
9149
      iprot.readFieldEnd()
9150
    iprot.readStructEnd()
9151
 
9152
  def write(self, oprot):
9153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9155
      return
9156
    oprot.writeStructBegin('isActive_args')
9157
    if self.itemId is not None:
9158
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9159
      oprot.writeI64(self.itemId)
9160
      oprot.writeFieldEnd()
9161
    oprot.writeFieldStop()
9162
    oprot.writeStructEnd()
9163
 
9164
  def validate(self):
9165
    return
9166
 
9167
 
9168
  def __repr__(self):
9169
    L = ['%s=%r' % (key, value)
9170
      for key, value in self.__dict__.iteritems()]
9171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9172
 
9173
  def __eq__(self, other):
9174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9175
 
9176
  def __ne__(self, other):
9177
    return not (self == other)
9178
 
9179
class isActive_result:
9180
  """
9181
  Attributes:
9182
   - success
9183
   - isex
9184
  """
9185
 
9186
  thrift_spec = (
9187
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
9188
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9189
  )
9190
 
9191
  def __init__(self, success=None, isex=None,):
9192
    self.success = success
9193
    self.isex = isex
9194
 
9195
  def read(self, iprot):
9196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9198
      return
9199
    iprot.readStructBegin()
9200
    while True:
9201
      (fname, ftype, fid) = iprot.readFieldBegin()
9202
      if ftype == TType.STOP:
9203
        break
9204
      if fid == 0:
9205
        if ftype == TType.STRUCT:
9206
          self.success = ItemShippingInfo()
9207
          self.success.read(iprot)
9208
        else:
9209
          iprot.skip(ftype)
9210
      elif fid == 1:
9211
        if ftype == TType.STRUCT:
9212
          self.isex = CatalogServiceException()
9213
          self.isex.read(iprot)
9214
        else:
9215
          iprot.skip(ftype)
9216
      else:
9217
        iprot.skip(ftype)
9218
      iprot.readFieldEnd()
9219
    iprot.readStructEnd()
9220
 
9221
  def write(self, oprot):
9222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9224
      return
9225
    oprot.writeStructBegin('isActive_result')
9226
    if self.success is not None:
9227
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9228
      self.success.write(oprot)
9229
      oprot.writeFieldEnd()
9230
    if self.isex is not None:
9231
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9232
      self.isex.write(oprot)
9233
      oprot.writeFieldEnd()
9234
    oprot.writeFieldStop()
9235
    oprot.writeStructEnd()
9236
 
9237
  def validate(self):
9238
    return
9239
 
9240
 
9241
  def __repr__(self):
9242
    L = ['%s=%r' % (key, value)
9243
      for key, value in self.__dict__.iteritems()]
9244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9245
 
9246
  def __eq__(self, other):
9247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9248
 
9249
  def __ne__(self, other):
9250
    return not (self == other)
9251
 
7438 amit.gupta 9252
class getItemsStatus_args:
9253
  """
9254
  Attributes:
9255
   - itemIds
9256
  """
9257
 
9258
  thrift_spec = (
9259
    None, # 0
9260
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
9261
  )
9262
 
9263
  def __init__(self, itemIds=None,):
9264
    self.itemIds = itemIds
9265
 
9266
  def read(self, iprot):
9267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9269
      return
9270
    iprot.readStructBegin()
9271
    while True:
9272
      (fname, ftype, fid) = iprot.readFieldBegin()
9273
      if ftype == TType.STOP:
9274
        break
9275
      if fid == 1:
9276
        if ftype == TType.LIST:
9277
          self.itemIds = []
8590 kshitij.so 9278
          (_etype33, _size30) = iprot.readListBegin()
9279
          for _i34 in xrange(_size30):
9280
            _elem35 = iprot.readI64();
9281
            self.itemIds.append(_elem35)
7438 amit.gupta 9282
          iprot.readListEnd()
9283
        else:
9284
          iprot.skip(ftype)
9285
      else:
9286
        iprot.skip(ftype)
9287
      iprot.readFieldEnd()
9288
    iprot.readStructEnd()
9289
 
9290
  def write(self, oprot):
9291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9293
      return
9294
    oprot.writeStructBegin('getItemsStatus_args')
9295
    if self.itemIds is not None:
9296
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
9297
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 9298
      for iter36 in self.itemIds:
9299
        oprot.writeI64(iter36)
7438 amit.gupta 9300
      oprot.writeListEnd()
9301
      oprot.writeFieldEnd()
9302
    oprot.writeFieldStop()
9303
    oprot.writeStructEnd()
9304
 
9305
  def validate(self):
9306
    return
9307
 
9308
 
9309
  def __repr__(self):
9310
    L = ['%s=%r' % (key, value)
9311
      for key, value in self.__dict__.iteritems()]
9312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9313
 
9314
  def __eq__(self, other):
9315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9316
 
9317
  def __ne__(self, other):
9318
    return not (self == other)
9319
 
9320
class getItemsStatus_result:
9321
  """
9322
  Attributes:
9323
   - success
9324
   - isex
9325
  """
9326
 
9327
  thrift_spec = (
9328
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
9329
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9330
  )
9331
 
9332
  def __init__(self, success=None, isex=None,):
9333
    self.success = success
9334
    self.isex = isex
9335
 
9336
  def read(self, iprot):
9337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9339
      return
9340
    iprot.readStructBegin()
9341
    while True:
9342
      (fname, ftype, fid) = iprot.readFieldBegin()
9343
      if ftype == TType.STOP:
9344
        break
9345
      if fid == 0:
9346
        if ftype == TType.MAP:
9347
          self.success = {}
8590 kshitij.so 9348
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
9349
          for _i41 in xrange(_size37):
9350
            _key42 = iprot.readI64();
9351
            _val43 = iprot.readBool();
9352
            self.success[_key42] = _val43
7438 amit.gupta 9353
          iprot.readMapEnd()
9354
        else:
9355
          iprot.skip(ftype)
9356
      elif fid == 1:
9357
        if ftype == TType.STRUCT:
9358
          self.isex = CatalogServiceException()
9359
          self.isex.read(iprot)
9360
        else:
9361
          iprot.skip(ftype)
9362
      else:
9363
        iprot.skip(ftype)
9364
      iprot.readFieldEnd()
9365
    iprot.readStructEnd()
9366
 
9367
  def write(self, oprot):
9368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9370
      return
9371
    oprot.writeStructBegin('getItemsStatus_result')
9372
    if self.success is not None:
9373
      oprot.writeFieldBegin('success', TType.MAP, 0)
9374
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 9375
      for kiter44,viter45 in self.success.items():
9376
        oprot.writeI64(kiter44)
9377
        oprot.writeBool(viter45)
7438 amit.gupta 9378
      oprot.writeMapEnd()
9379
      oprot.writeFieldEnd()
9380
    if self.isex is not None:
9381
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9382
      self.isex.write(oprot)
9383
      oprot.writeFieldEnd()
9384
    oprot.writeFieldStop()
9385
    oprot.writeStructEnd()
9386
 
9387
  def validate(self):
9388
    return
9389
 
9390
 
9391
  def __repr__(self):
9392
    L = ['%s=%r' % (key, value)
9393
      for key, value in self.__dict__.iteritems()]
9394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9395
 
9396
  def __eq__(self, other):
9397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9398
 
9399
  def __ne__(self, other):
9400
    return not (self == other)
9401
 
5944 mandeep.dh 9402
class getItemStatusDescription_args:
9403
  """
9404
  Attributes:
9405
   - itemId
9406
  """
9407
 
9408
  thrift_spec = (
9409
    None, # 0
9410
    (1, TType.I64, 'itemId', None, None, ), # 1
9411
  )
9412
 
9413
  def __init__(self, itemId=None,):
9414
    self.itemId = itemId
9415
 
9416
  def read(self, iprot):
9417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9419
      return
9420
    iprot.readStructBegin()
9421
    while True:
9422
      (fname, ftype, fid) = iprot.readFieldBegin()
9423
      if ftype == TType.STOP:
9424
        break
9425
      if fid == 1:
9426
        if ftype == TType.I64:
9427
          self.itemId = iprot.readI64();
9428
        else:
9429
          iprot.skip(ftype)
9430
      else:
9431
        iprot.skip(ftype)
9432
      iprot.readFieldEnd()
9433
    iprot.readStructEnd()
9434
 
9435
  def write(self, oprot):
9436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9438
      return
9439
    oprot.writeStructBegin('getItemStatusDescription_args')
9440
    if self.itemId is not None:
9441
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9442
      oprot.writeI64(self.itemId)
9443
      oprot.writeFieldEnd()
9444
    oprot.writeFieldStop()
9445
    oprot.writeStructEnd()
9446
 
9447
  def validate(self):
9448
    return
9449
 
9450
 
9451
  def __repr__(self):
9452
    L = ['%s=%r' % (key, value)
9453
      for key, value in self.__dict__.iteritems()]
9454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9455
 
9456
  def __eq__(self, other):
9457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9458
 
9459
  def __ne__(self, other):
9460
    return not (self == other)
9461
 
9462
class getItemStatusDescription_result:
9463
  """
9464
  Attributes:
9465
   - success
9466
   - isex
9467
  """
9468
 
9469
  thrift_spec = (
9470
    (0, TType.STRING, 'success', None, None, ), # 0
9471
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9472
  )
9473
 
9474
  def __init__(self, success=None, isex=None,):
9475
    self.success = success
9476
    self.isex = isex
9477
 
9478
  def read(self, iprot):
9479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9481
      return
9482
    iprot.readStructBegin()
9483
    while True:
9484
      (fname, ftype, fid) = iprot.readFieldBegin()
9485
      if ftype == TType.STOP:
9486
        break
9487
      if fid == 0:
9488
        if ftype == TType.STRING:
9489
          self.success = iprot.readString();
9490
        else:
9491
          iprot.skip(ftype)
9492
      elif fid == 1:
9493
        if ftype == TType.STRUCT:
9494
          self.isex = CatalogServiceException()
9495
          self.isex.read(iprot)
9496
        else:
9497
          iprot.skip(ftype)
9498
      else:
9499
        iprot.skip(ftype)
9500
      iprot.readFieldEnd()
9501
    iprot.readStructEnd()
9502
 
9503
  def write(self, oprot):
9504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9506
      return
9507
    oprot.writeStructBegin('getItemStatusDescription_result')
9508
    if self.success is not None:
9509
      oprot.writeFieldBegin('success', TType.STRING, 0)
9510
      oprot.writeString(self.success)
9511
      oprot.writeFieldEnd()
9512
    if self.isex is not None:
9513
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9514
      self.isex.write(oprot)
9515
      oprot.writeFieldEnd()
9516
    oprot.writeFieldStop()
9517
    oprot.writeStructEnd()
9518
 
9519
  def validate(self):
9520
    return
9521
 
9522
 
9523
  def __repr__(self):
9524
    L = ['%s=%r' % (key, value)
9525
      for key, value in self.__dict__.iteritems()]
9526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9527
 
9528
  def __eq__(self, other):
9529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9530
 
9531
  def __ne__(self, other):
9532
    return not (self == other)
9533
 
9534
class startItemOn_args:
9535
  """
9536
  Attributes:
9537
   - item_id
9538
   - timestamp
9539
  """
9540
 
9541
  thrift_spec = (
9542
    None, # 0
9543
    (1, TType.I64, 'item_id', None, None, ), # 1
9544
    (2, TType.I64, 'timestamp', None, None, ), # 2
9545
  )
9546
 
9547
  def __init__(self, item_id=None, timestamp=None,):
9548
    self.item_id = item_id
9549
    self.timestamp = timestamp
9550
 
9551
  def read(self, iprot):
9552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9554
      return
9555
    iprot.readStructBegin()
9556
    while True:
9557
      (fname, ftype, fid) = iprot.readFieldBegin()
9558
      if ftype == TType.STOP:
9559
        break
9560
      if fid == 1:
9561
        if ftype == TType.I64:
9562
          self.item_id = iprot.readI64();
9563
        else:
9564
          iprot.skip(ftype)
9565
      elif fid == 2:
9566
        if ftype == TType.I64:
9567
          self.timestamp = iprot.readI64();
9568
        else:
9569
          iprot.skip(ftype)
9570
      else:
9571
        iprot.skip(ftype)
9572
      iprot.readFieldEnd()
9573
    iprot.readStructEnd()
9574
 
9575
  def write(self, oprot):
9576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9578
      return
9579
    oprot.writeStructBegin('startItemOn_args')
9580
    if self.item_id is not None:
9581
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9582
      oprot.writeI64(self.item_id)
9583
      oprot.writeFieldEnd()
9584
    if self.timestamp is not None:
9585
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9586
      oprot.writeI64(self.timestamp)
9587
      oprot.writeFieldEnd()
9588
    oprot.writeFieldStop()
9589
    oprot.writeStructEnd()
9590
 
9591
  def validate(self):
9592
    return
9593
 
9594
 
9595
  def __repr__(self):
9596
    L = ['%s=%r' % (key, value)
9597
      for key, value in self.__dict__.iteritems()]
9598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9599
 
9600
  def __eq__(self, other):
9601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9602
 
9603
  def __ne__(self, other):
9604
    return not (self == other)
9605
 
9606
class startItemOn_result:
9607
  """
9608
  Attributes:
9609
   - cex
9610
  """
9611
 
9612
  thrift_spec = (
9613
    None, # 0
9614
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9615
  )
9616
 
9617
  def __init__(self, cex=None,):
9618
    self.cex = cex
9619
 
9620
  def read(self, iprot):
9621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9623
      return
9624
    iprot.readStructBegin()
9625
    while True:
9626
      (fname, ftype, fid) = iprot.readFieldBegin()
9627
      if ftype == TType.STOP:
9628
        break
9629
      if fid == 1:
9630
        if ftype == TType.STRUCT:
9631
          self.cex = CatalogServiceException()
9632
          self.cex.read(iprot)
9633
        else:
9634
          iprot.skip(ftype)
9635
      else:
9636
        iprot.skip(ftype)
9637
      iprot.readFieldEnd()
9638
    iprot.readStructEnd()
9639
 
9640
  def write(self, oprot):
9641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9643
      return
9644
    oprot.writeStructBegin('startItemOn_result')
9645
    if self.cex is not None:
9646
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9647
      self.cex.write(oprot)
9648
      oprot.writeFieldEnd()
9649
    oprot.writeFieldStop()
9650
    oprot.writeStructEnd()
9651
 
9652
  def validate(self):
9653
    return
9654
 
9655
 
9656
  def __repr__(self):
9657
    L = ['%s=%r' % (key, value)
9658
      for key, value in self.__dict__.iteritems()]
9659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9660
 
9661
  def __eq__(self, other):
9662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9663
 
9664
  def __ne__(self, other):
9665
    return not (self == other)
9666
 
9667
class retireItemOn_args:
9668
  """
9669
  Attributes:
9670
   - item_id
9671
   - timestamp
9672
  """
9673
 
9674
  thrift_spec = (
9675
    None, # 0
9676
    (1, TType.I64, 'item_id', None, None, ), # 1
9677
    (2, TType.I64, 'timestamp', None, None, ), # 2
9678
  )
9679
 
9680
  def __init__(self, item_id=None, timestamp=None,):
9681
    self.item_id = item_id
9682
    self.timestamp = timestamp
9683
 
9684
  def read(self, iprot):
9685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9687
      return
9688
    iprot.readStructBegin()
9689
    while True:
9690
      (fname, ftype, fid) = iprot.readFieldBegin()
9691
      if ftype == TType.STOP:
9692
        break
9693
      if fid == 1:
9694
        if ftype == TType.I64:
9695
          self.item_id = iprot.readI64();
9696
        else:
9697
          iprot.skip(ftype)
9698
      elif fid == 2:
9699
        if ftype == TType.I64:
9700
          self.timestamp = iprot.readI64();
9701
        else:
9702
          iprot.skip(ftype)
9703
      else:
9704
        iprot.skip(ftype)
9705
      iprot.readFieldEnd()
9706
    iprot.readStructEnd()
9707
 
9708
  def write(self, oprot):
9709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9711
      return
9712
    oprot.writeStructBegin('retireItemOn_args')
9713
    if self.item_id is not None:
9714
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9715
      oprot.writeI64(self.item_id)
9716
      oprot.writeFieldEnd()
9717
    if self.timestamp is not None:
9718
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9719
      oprot.writeI64(self.timestamp)
9720
      oprot.writeFieldEnd()
9721
    oprot.writeFieldStop()
9722
    oprot.writeStructEnd()
9723
 
9724
  def validate(self):
9725
    return
9726
 
9727
 
9728
  def __repr__(self):
9729
    L = ['%s=%r' % (key, value)
9730
      for key, value in self.__dict__.iteritems()]
9731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9732
 
9733
  def __eq__(self, other):
9734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9735
 
9736
  def __ne__(self, other):
9737
    return not (self == other)
9738
 
9739
class retireItemOn_result:
9740
  """
9741
  Attributes:
9742
   - cex
9743
  """
9744
 
9745
  thrift_spec = (
9746
    None, # 0
9747
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9748
  )
9749
 
9750
  def __init__(self, cex=None,):
9751
    self.cex = cex
9752
 
9753
  def read(self, iprot):
9754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9756
      return
9757
    iprot.readStructBegin()
9758
    while True:
9759
      (fname, ftype, fid) = iprot.readFieldBegin()
9760
      if ftype == TType.STOP:
9761
        break
9762
      if fid == 1:
9763
        if ftype == TType.STRUCT:
9764
          self.cex = CatalogServiceException()
9765
          self.cex.read(iprot)
9766
        else:
9767
          iprot.skip(ftype)
9768
      else:
9769
        iprot.skip(ftype)
9770
      iprot.readFieldEnd()
9771
    iprot.readStructEnd()
9772
 
9773
  def write(self, oprot):
9774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9776
      return
9777
    oprot.writeStructBegin('retireItemOn_result')
9778
    if self.cex is not None:
9779
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9780
      self.cex.write(oprot)
9781
      oprot.writeFieldEnd()
9782
    oprot.writeFieldStop()
9783
    oprot.writeStructEnd()
9784
 
9785
  def validate(self):
9786
    return
9787
 
9788
 
9789
  def __repr__(self):
9790
    L = ['%s=%r' % (key, value)
9791
      for key, value in self.__dict__.iteritems()]
9792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9793
 
9794
  def __eq__(self, other):
9795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9796
 
9797
  def __ne__(self, other):
9798
    return not (self == other)
9799
 
9800
class changeItemStatus_args:
9801
  """
9802
  Attributes:
9803
   - item_id
9804
   - timestamp
9805
   - newstatus
9806
  """
9807
 
9808
  thrift_spec = (
9809
    None, # 0
9810
    (1, TType.I64, 'item_id', None, None, ), # 1
9811
    (2, TType.I64, 'timestamp', None, None, ), # 2
9812
    (3, TType.I32, 'newstatus', None, None, ), # 3
9813
  )
9814
 
9815
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
9816
    self.item_id = item_id
9817
    self.timestamp = timestamp
9818
    self.newstatus = newstatus
9819
 
9820
  def read(self, iprot):
9821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9823
      return
9824
    iprot.readStructBegin()
9825
    while True:
9826
      (fname, ftype, fid) = iprot.readFieldBegin()
9827
      if ftype == TType.STOP:
9828
        break
9829
      if fid == 1:
9830
        if ftype == TType.I64:
9831
          self.item_id = iprot.readI64();
9832
        else:
9833
          iprot.skip(ftype)
9834
      elif fid == 2:
9835
        if ftype == TType.I64:
9836
          self.timestamp = iprot.readI64();
9837
        else:
9838
          iprot.skip(ftype)
9839
      elif fid == 3:
9840
        if ftype == TType.I32:
9841
          self.newstatus = iprot.readI32();
9842
        else:
9843
          iprot.skip(ftype)
9844
      else:
9845
        iprot.skip(ftype)
9846
      iprot.readFieldEnd()
9847
    iprot.readStructEnd()
9848
 
9849
  def write(self, oprot):
9850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9852
      return
9853
    oprot.writeStructBegin('changeItemStatus_args')
9854
    if self.item_id is not None:
9855
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9856
      oprot.writeI64(self.item_id)
9857
      oprot.writeFieldEnd()
9858
    if self.timestamp is not None:
9859
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9860
      oprot.writeI64(self.timestamp)
9861
      oprot.writeFieldEnd()
9862
    if self.newstatus is not None:
9863
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
9864
      oprot.writeI32(self.newstatus)
9865
      oprot.writeFieldEnd()
9866
    oprot.writeFieldStop()
9867
    oprot.writeStructEnd()
9868
 
9869
  def validate(self):
9870
    return
9871
 
9872
 
9873
  def __repr__(self):
9874
    L = ['%s=%r' % (key, value)
9875
      for key, value in self.__dict__.iteritems()]
9876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9877
 
9878
  def __eq__(self, other):
9879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9880
 
9881
  def __ne__(self, other):
9882
    return not (self == other)
9883
 
9884
class changeItemStatus_result:
9885
  """
9886
  Attributes:
9887
   - cex
9888
  """
9889
 
9890
  thrift_spec = (
9891
    None, # 0
9892
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9893
  )
9894
 
9895
  def __init__(self, cex=None,):
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 == 1:
9908
        if ftype == TType.STRUCT:
9909
          self.cex = CatalogServiceException()
9910
          self.cex.read(iprot)
9911
        else:
9912
          iprot.skip(ftype)
9913
      else:
9914
        iprot.skip(ftype)
9915
      iprot.readFieldEnd()
9916
    iprot.readStructEnd()
9917
 
9918
  def write(self, oprot):
9919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9921
      return
9922
    oprot.writeStructBegin('changeItemStatus_result')
9923
    if self.cex is not None:
9924
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9925
      self.cex.write(oprot)
9926
      oprot.writeFieldEnd()
9927
    oprot.writeFieldStop()
9928
    oprot.writeStructEnd()
9929
 
9930
  def validate(self):
9931
    return
9932
 
9933
 
9934
  def __repr__(self):
9935
    L = ['%s=%r' % (key, value)
9936
      for key, value in self.__dict__.iteritems()]
9937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9938
 
9939
  def __eq__(self, other):
9940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9941
 
9942
  def __ne__(self, other):
9943
    return not (self == other)
9944
 
9945
class getItem_args:
9946
  """
9947
  Attributes:
9948
   - item_id
9949
  """
9950
 
9951
  thrift_spec = (
9952
    None, # 0
9953
    (1, TType.I64, 'item_id', None, None, ), # 1
9954
  )
9955
 
9956
  def __init__(self, item_id=None,):
9957
    self.item_id = item_id
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
      if fid == 1:
9969
        if ftype == TType.I64:
9970
          self.item_id = iprot.readI64();
9971
        else:
9972
          iprot.skip(ftype)
9973
      else:
9974
        iprot.skip(ftype)
9975
      iprot.readFieldEnd()
9976
    iprot.readStructEnd()
9977
 
9978
  def write(self, oprot):
9979
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9980
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9981
      return
9982
    oprot.writeStructBegin('getItem_args')
9983
    if self.item_id is not None:
9984
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9985
      oprot.writeI64(self.item_id)
9986
      oprot.writeFieldEnd()
9987
    oprot.writeFieldStop()
9988
    oprot.writeStructEnd()
9989
 
9990
  def validate(self):
9991
    return
9992
 
9993
 
9994
  def __repr__(self):
9995
    L = ['%s=%r' % (key, value)
9996
      for key, value in self.__dict__.iteritems()]
9997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9998
 
9999
  def __eq__(self, other):
10000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10001
 
10002
  def __ne__(self, other):
10003
    return not (self == other)
10004
 
10005
class getItem_result:
10006
  """
10007
  Attributes:
10008
   - success
10009
   - cex
10010
  """
10011
 
10012
  thrift_spec = (
10013
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
10014
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10015
  )
10016
 
10017
  def __init__(self, success=None, cex=None,):
10018
    self.success = success
10019
    self.cex = cex
10020
 
10021
  def read(self, iprot):
10022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10024
      return
10025
    iprot.readStructBegin()
10026
    while True:
10027
      (fname, ftype, fid) = iprot.readFieldBegin()
10028
      if ftype == TType.STOP:
10029
        break
10030
      if fid == 0:
10031
        if ftype == TType.STRUCT:
10032
          self.success = Item()
10033
          self.success.read(iprot)
10034
        else:
10035
          iprot.skip(ftype)
10036
      elif fid == 1:
10037
        if ftype == TType.STRUCT:
10038
          self.cex = CatalogServiceException()
10039
          self.cex.read(iprot)
10040
        else:
10041
          iprot.skip(ftype)
10042
      else:
10043
        iprot.skip(ftype)
10044
      iprot.readFieldEnd()
10045
    iprot.readStructEnd()
10046
 
10047
  def write(self, oprot):
10048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10050
      return
10051
    oprot.writeStructBegin('getItem_result')
10052
    if self.success is not None:
10053
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10054
      self.success.write(oprot)
10055
      oprot.writeFieldEnd()
10056
    if self.cex is not None:
10057
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10058
      self.cex.write(oprot)
10059
      oprot.writeFieldEnd()
10060
    oprot.writeFieldStop()
10061
    oprot.writeStructEnd()
10062
 
10063
  def validate(self):
10064
    return
10065
 
10066
 
10067
  def __repr__(self):
10068
    L = ['%s=%r' % (key, value)
10069
      for key, value in self.__dict__.iteritems()]
10070
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10071
 
10072
  def __eq__(self, other):
10073
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10074
 
10075
  def __ne__(self, other):
10076
    return not (self == other)
10077
 
10078
class getItemsByCatalogId_args:
10079
  """
10080
  Attributes:
10081
   - catalog_item_id
10082
  """
10083
 
10084
  thrift_spec = (
10085
    None, # 0
10086
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10087
  )
10088
 
10089
  def __init__(self, catalog_item_id=None,):
10090
    self.catalog_item_id = catalog_item_id
10091
 
10092
  def read(self, iprot):
10093
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10094
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10095
      return
10096
    iprot.readStructBegin()
10097
    while True:
10098
      (fname, ftype, fid) = iprot.readFieldBegin()
10099
      if ftype == TType.STOP:
10100
        break
10101
      if fid == 1:
10102
        if ftype == TType.I64:
10103
          self.catalog_item_id = iprot.readI64();
10104
        else:
10105
          iprot.skip(ftype)
10106
      else:
10107
        iprot.skip(ftype)
10108
      iprot.readFieldEnd()
10109
    iprot.readStructEnd()
10110
 
10111
  def write(self, oprot):
10112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10114
      return
10115
    oprot.writeStructBegin('getItemsByCatalogId_args')
10116
    if self.catalog_item_id is not None:
10117
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10118
      oprot.writeI64(self.catalog_item_id)
10119
      oprot.writeFieldEnd()
10120
    oprot.writeFieldStop()
10121
    oprot.writeStructEnd()
10122
 
10123
  def validate(self):
10124
    return
10125
 
10126
 
10127
  def __repr__(self):
10128
    L = ['%s=%r' % (key, value)
10129
      for key, value in self.__dict__.iteritems()]
10130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10131
 
10132
  def __eq__(self, other):
10133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10134
 
10135
  def __ne__(self, other):
10136
    return not (self == other)
10137
 
10138
class getItemsByCatalogId_result:
10139
  """
10140
  Attributes:
10141
   - success
10142
   - cex
10143
  """
10144
 
10145
  thrift_spec = (
10146
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10147
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10148
  )
10149
 
10150
  def __init__(self, success=None, cex=None,):
10151
    self.success = success
10152
    self.cex = cex
10153
 
10154
  def read(self, iprot):
10155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10157
      return
10158
    iprot.readStructBegin()
10159
    while True:
10160
      (fname, ftype, fid) = iprot.readFieldBegin()
10161
      if ftype == TType.STOP:
10162
        break
10163
      if fid == 0:
10164
        if ftype == TType.LIST:
10165
          self.success = []
8590 kshitij.so 10166
          (_etype49, _size46) = iprot.readListBegin()
10167
          for _i50 in xrange(_size46):
10168
            _elem51 = Item()
10169
            _elem51.read(iprot)
10170
            self.success.append(_elem51)
5944 mandeep.dh 10171
          iprot.readListEnd()
10172
        else:
10173
          iprot.skip(ftype)
10174
      elif fid == 1:
10175
        if ftype == TType.STRUCT:
10176
          self.cex = CatalogServiceException()
10177
          self.cex.read(iprot)
10178
        else:
10179
          iprot.skip(ftype)
10180
      else:
10181
        iprot.skip(ftype)
10182
      iprot.readFieldEnd()
10183
    iprot.readStructEnd()
10184
 
10185
  def write(self, oprot):
10186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10188
      return
10189
    oprot.writeStructBegin('getItemsByCatalogId_result')
10190
    if self.success is not None:
10191
      oprot.writeFieldBegin('success', TType.LIST, 0)
10192
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10193
      for iter52 in self.success:
10194
        iter52.write(oprot)
5944 mandeep.dh 10195
      oprot.writeListEnd()
10196
      oprot.writeFieldEnd()
10197
    if self.cex is not None:
10198
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10199
      self.cex.write(oprot)
10200
      oprot.writeFieldEnd()
10201
    oprot.writeFieldStop()
10202
    oprot.writeStructEnd()
10203
 
10204
  def validate(self):
10205
    return
10206
 
10207
 
10208
  def __repr__(self):
10209
    L = ['%s=%r' % (key, value)
10210
      for key, value in self.__dict__.iteritems()]
10211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10212
 
10213
  def __eq__(self, other):
10214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10215
 
10216
  def __ne__(self, other):
10217
    return not (self == other)
10218
 
10219
class getValidItemsByCatalogId_args:
10220
  """
10221
  Attributes:
10222
   - catalog_item_id
10223
  """
10224
 
10225
  thrift_spec = (
10226
    None, # 0
10227
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10228
  )
10229
 
10230
  def __init__(self, catalog_item_id=None,):
10231
    self.catalog_item_id = catalog_item_id
10232
 
10233
  def read(self, iprot):
10234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10236
      return
10237
    iprot.readStructBegin()
10238
    while True:
10239
      (fname, ftype, fid) = iprot.readFieldBegin()
10240
      if ftype == TType.STOP:
10241
        break
10242
      if fid == 1:
10243
        if ftype == TType.I64:
10244
          self.catalog_item_id = iprot.readI64();
10245
        else:
10246
          iprot.skip(ftype)
10247
      else:
10248
        iprot.skip(ftype)
10249
      iprot.readFieldEnd()
10250
    iprot.readStructEnd()
10251
 
10252
  def write(self, oprot):
10253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10255
      return
10256
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
10257
    if self.catalog_item_id is not None:
10258
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10259
      oprot.writeI64(self.catalog_item_id)
10260
      oprot.writeFieldEnd()
10261
    oprot.writeFieldStop()
10262
    oprot.writeStructEnd()
10263
 
10264
  def validate(self):
10265
    return
10266
 
10267
 
10268
  def __repr__(self):
10269
    L = ['%s=%r' % (key, value)
10270
      for key, value in self.__dict__.iteritems()]
10271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10272
 
10273
  def __eq__(self, other):
10274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10275
 
10276
  def __ne__(self, other):
10277
    return not (self == other)
10278
 
10279
class getValidItemsByCatalogId_result:
10280
  """
10281
  Attributes:
10282
   - success
10283
   - cex
10284
  """
10285
 
10286
  thrift_spec = (
10287
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10288
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10289
  )
10290
 
10291
  def __init__(self, success=None, cex=None,):
10292
    self.success = success
10293
    self.cex = cex
10294
 
10295
  def read(self, iprot):
10296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10298
      return
10299
    iprot.readStructBegin()
10300
    while True:
10301
      (fname, ftype, fid) = iprot.readFieldBegin()
10302
      if ftype == TType.STOP:
10303
        break
10304
      if fid == 0:
10305
        if ftype == TType.LIST:
10306
          self.success = []
8590 kshitij.so 10307
          (_etype56, _size53) = iprot.readListBegin()
10308
          for _i57 in xrange(_size53):
10309
            _elem58 = Item()
10310
            _elem58.read(iprot)
10311
            self.success.append(_elem58)
5944 mandeep.dh 10312
          iprot.readListEnd()
10313
        else:
10314
          iprot.skip(ftype)
10315
      elif fid == 1:
10316
        if ftype == TType.STRUCT:
10317
          self.cex = CatalogServiceException()
10318
          self.cex.read(iprot)
10319
        else:
10320
          iprot.skip(ftype)
10321
      else:
10322
        iprot.skip(ftype)
10323
      iprot.readFieldEnd()
10324
    iprot.readStructEnd()
10325
 
10326
  def write(self, oprot):
10327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10329
      return
10330
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
10331
    if self.success is not None:
10332
      oprot.writeFieldBegin('success', TType.LIST, 0)
10333
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10334
      for iter59 in self.success:
10335
        iter59.write(oprot)
5944 mandeep.dh 10336
      oprot.writeListEnd()
10337
      oprot.writeFieldEnd()
10338
    if self.cex is not None:
10339
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10340
      self.cex.write(oprot)
10341
      oprot.writeFieldEnd()
10342
    oprot.writeFieldStop()
10343
    oprot.writeStructEnd()
10344
 
10345
  def validate(self):
10346
    return
10347
 
10348
 
10349
  def __repr__(self):
10350
    L = ['%s=%r' % (key, value)
10351
      for key, value in self.__dict__.iteritems()]
10352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10353
 
10354
  def __eq__(self, other):
10355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10356
 
10357
  def __ne__(self, other):
10358
    return not (self == other)
10359
 
10360
class getAllItems_args:
10361
  """
10362
  Attributes:
10363
   - isActive
10364
  """
10365
 
10366
  thrift_spec = (
10367
    None, # 0
10368
    (1, TType.BOOL, 'isActive', None, None, ), # 1
10369
  )
10370
 
10371
  def __init__(self, isActive=None,):
10372
    self.isActive = isActive
10373
 
10374
  def read(self, iprot):
10375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10377
      return
10378
    iprot.readStructBegin()
10379
    while True:
10380
      (fname, ftype, fid) = iprot.readFieldBegin()
10381
      if ftype == TType.STOP:
10382
        break
10383
      if fid == 1:
10384
        if ftype == TType.BOOL:
10385
          self.isActive = iprot.readBool();
10386
        else:
10387
          iprot.skip(ftype)
10388
      else:
10389
        iprot.skip(ftype)
10390
      iprot.readFieldEnd()
10391
    iprot.readStructEnd()
10392
 
10393
  def write(self, oprot):
10394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10396
      return
10397
    oprot.writeStructBegin('getAllItems_args')
10398
    if self.isActive is not None:
10399
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
10400
      oprot.writeBool(self.isActive)
10401
      oprot.writeFieldEnd()
10402
    oprot.writeFieldStop()
10403
    oprot.writeStructEnd()
10404
 
10405
  def validate(self):
10406
    return
10407
 
10408
 
10409
  def __repr__(self):
10410
    L = ['%s=%r' % (key, value)
10411
      for key, value in self.__dict__.iteritems()]
10412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10413
 
10414
  def __eq__(self, other):
10415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10416
 
10417
  def __ne__(self, other):
10418
    return not (self == other)
10419
 
10420
class getAllItems_result:
10421
  """
10422
  Attributes:
10423
   - success
10424
   - cex
10425
  """
10426
 
10427
  thrift_spec = (
10428
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10429
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10430
  )
10431
 
10432
  def __init__(self, success=None, cex=None,):
10433
    self.success = success
10434
    self.cex = cex
10435
 
10436
  def read(self, iprot):
10437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10439
      return
10440
    iprot.readStructBegin()
10441
    while True:
10442
      (fname, ftype, fid) = iprot.readFieldBegin()
10443
      if ftype == TType.STOP:
10444
        break
10445
      if fid == 0:
10446
        if ftype == TType.LIST:
10447
          self.success = []
8590 kshitij.so 10448
          (_etype63, _size60) = iprot.readListBegin()
10449
          for _i64 in xrange(_size60):
10450
            _elem65 = Item()
10451
            _elem65.read(iprot)
10452
            self.success.append(_elem65)
5944 mandeep.dh 10453
          iprot.readListEnd()
10454
        else:
10455
          iprot.skip(ftype)
10456
      elif fid == 1:
10457
        if ftype == TType.STRUCT:
10458
          self.cex = CatalogServiceException()
10459
          self.cex.read(iprot)
10460
        else:
10461
          iprot.skip(ftype)
10462
      else:
10463
        iprot.skip(ftype)
10464
      iprot.readFieldEnd()
10465
    iprot.readStructEnd()
10466
 
10467
  def write(self, oprot):
10468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10470
      return
10471
    oprot.writeStructBegin('getAllItems_result')
10472
    if self.success is not None:
10473
      oprot.writeFieldBegin('success', TType.LIST, 0)
10474
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10475
      for iter66 in self.success:
10476
        iter66.write(oprot)
5944 mandeep.dh 10477
      oprot.writeListEnd()
10478
      oprot.writeFieldEnd()
10479
    if self.cex is not None:
10480
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10481
      self.cex.write(oprot)
10482
      oprot.writeFieldEnd()
10483
    oprot.writeFieldStop()
10484
    oprot.writeStructEnd()
10485
 
10486
  def validate(self):
10487
    return
10488
 
10489
 
10490
  def __repr__(self):
10491
    L = ['%s=%r' % (key, value)
10492
      for key, value in self.__dict__.iteritems()]
10493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10494
 
10495
  def __eq__(self, other):
10496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10497
 
10498
  def __ne__(self, other):
10499
    return not (self == other)
10500
 
10501
class getAllItemsByStatus_args:
10502
  """
10503
  Attributes:
10504
   - itemStatus
10505
  """
10506
 
10507
  thrift_spec = (
10508
    None, # 0
10509
    (1, TType.I32, 'itemStatus', None, None, ), # 1
10510
  )
10511
 
10512
  def __init__(self, itemStatus=None,):
10513
    self.itemStatus = itemStatus
10514
 
10515
  def read(self, iprot):
10516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10518
      return
10519
    iprot.readStructBegin()
10520
    while True:
10521
      (fname, ftype, fid) = iprot.readFieldBegin()
10522
      if ftype == TType.STOP:
10523
        break
10524
      if fid == 1:
10525
        if ftype == TType.I32:
10526
          self.itemStatus = iprot.readI32();
10527
        else:
10528
          iprot.skip(ftype)
10529
      else:
10530
        iprot.skip(ftype)
10531
      iprot.readFieldEnd()
10532
    iprot.readStructEnd()
10533
 
10534
  def write(self, oprot):
10535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10537
      return
10538
    oprot.writeStructBegin('getAllItemsByStatus_args')
10539
    if self.itemStatus is not None:
10540
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
10541
      oprot.writeI32(self.itemStatus)
10542
      oprot.writeFieldEnd()
10543
    oprot.writeFieldStop()
10544
    oprot.writeStructEnd()
10545
 
10546
  def validate(self):
10547
    return
10548
 
10549
 
10550
  def __repr__(self):
10551
    L = ['%s=%r' % (key, value)
10552
      for key, value in self.__dict__.iteritems()]
10553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10554
 
10555
  def __eq__(self, other):
10556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10557
 
10558
  def __ne__(self, other):
10559
    return not (self == other)
10560
 
10561
class getAllItemsByStatus_result:
10562
  """
10563
  Attributes:
10564
   - success
10565
   - cex
10566
  """
10567
 
10568
  thrift_spec = (
10569
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10570
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10571
  )
10572
 
10573
  def __init__(self, success=None, cex=None,):
10574
    self.success = success
10575
    self.cex = cex
10576
 
10577
  def read(self, iprot):
10578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10580
      return
10581
    iprot.readStructBegin()
10582
    while True:
10583
      (fname, ftype, fid) = iprot.readFieldBegin()
10584
      if ftype == TType.STOP:
10585
        break
10586
      if fid == 0:
10587
        if ftype == TType.LIST:
10588
          self.success = []
8590 kshitij.so 10589
          (_etype70, _size67) = iprot.readListBegin()
10590
          for _i71 in xrange(_size67):
10591
            _elem72 = Item()
10592
            _elem72.read(iprot)
10593
            self.success.append(_elem72)
5944 mandeep.dh 10594
          iprot.readListEnd()
10595
        else:
10596
          iprot.skip(ftype)
10597
      elif fid == 1:
10598
        if ftype == TType.STRUCT:
10599
          self.cex = CatalogServiceException()
10600
          self.cex.read(iprot)
10601
        else:
10602
          iprot.skip(ftype)
10603
      else:
10604
        iprot.skip(ftype)
10605
      iprot.readFieldEnd()
10606
    iprot.readStructEnd()
10607
 
10608
  def write(self, oprot):
10609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10611
      return
10612
    oprot.writeStructBegin('getAllItemsByStatus_result')
10613
    if self.success is not None:
10614
      oprot.writeFieldBegin('success', TType.LIST, 0)
10615
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10616
      for iter73 in self.success:
10617
        iter73.write(oprot)
5944 mandeep.dh 10618
      oprot.writeListEnd()
10619
      oprot.writeFieldEnd()
10620
    if self.cex is not None:
10621
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10622
      self.cex.write(oprot)
10623
      oprot.writeFieldEnd()
10624
    oprot.writeFieldStop()
10625
    oprot.writeStructEnd()
10626
 
10627
  def validate(self):
10628
    return
10629
 
10630
 
10631
  def __repr__(self):
10632
    L = ['%s=%r' % (key, value)
10633
      for key, value in self.__dict__.iteritems()]
10634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10635
 
10636
  def __eq__(self, other):
10637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10638
 
10639
  def __ne__(self, other):
10640
    return not (self == other)
10641
 
10642
class markItemAsContentComplete_args:
10643
  """
10644
  Attributes:
10645
   - entityId
10646
   - category
10647
   - brand
10648
   - modelName
10649
   - modelNumber
9253 rajveer 10650
   - isAndroid
5944 mandeep.dh 10651
  """
10652
 
10653
  thrift_spec = (
10654
    None, # 0
10655
    (1, TType.I64, 'entityId', None, None, ), # 1
10656
    (2, TType.I64, 'category', None, None, ), # 2
10657
    (3, TType.STRING, 'brand', None, None, ), # 3
10658
    (4, TType.STRING, 'modelName', None, None, ), # 4
10659
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 10660
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 10661
  )
10662
 
9253 rajveer 10663
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 10664
    self.entityId = entityId
10665
    self.category = category
10666
    self.brand = brand
10667
    self.modelName = modelName
10668
    self.modelNumber = modelNumber
9253 rajveer 10669
    self.isAndroid = isAndroid
5944 mandeep.dh 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
      if fid == 1:
10681
        if ftype == TType.I64:
10682
          self.entityId = iprot.readI64();
10683
        else:
10684
          iprot.skip(ftype)
10685
      elif fid == 2:
10686
        if ftype == TType.I64:
10687
          self.category = iprot.readI64();
10688
        else:
10689
          iprot.skip(ftype)
10690
      elif fid == 3:
10691
        if ftype == TType.STRING:
10692
          self.brand = iprot.readString();
10693
        else:
10694
          iprot.skip(ftype)
10695
      elif fid == 4:
10696
        if ftype == TType.STRING:
10697
          self.modelName = iprot.readString();
10698
        else:
10699
          iprot.skip(ftype)
10700
      elif fid == 5:
10701
        if ftype == TType.STRING:
10702
          self.modelNumber = iprot.readString();
10703
        else:
10704
          iprot.skip(ftype)
9253 rajveer 10705
      elif fid == 6:
10706
        if ftype == TType.BOOL:
10707
          self.isAndroid = iprot.readBool();
10708
        else:
10709
          iprot.skip(ftype)
5944 mandeep.dh 10710
      else:
10711
        iprot.skip(ftype)
10712
      iprot.readFieldEnd()
10713
    iprot.readStructEnd()
10714
 
10715
  def write(self, oprot):
10716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10718
      return
10719
    oprot.writeStructBegin('markItemAsContentComplete_args')
10720
    if self.entityId is not None:
10721
      oprot.writeFieldBegin('entityId', TType.I64, 1)
10722
      oprot.writeI64(self.entityId)
10723
      oprot.writeFieldEnd()
10724
    if self.category is not None:
10725
      oprot.writeFieldBegin('category', TType.I64, 2)
10726
      oprot.writeI64(self.category)
10727
      oprot.writeFieldEnd()
10728
    if self.brand is not None:
10729
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10730
      oprot.writeString(self.brand)
10731
      oprot.writeFieldEnd()
10732
    if self.modelName is not None:
10733
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
10734
      oprot.writeString(self.modelName)
10735
      oprot.writeFieldEnd()
10736
    if self.modelNumber is not None:
10737
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
10738
      oprot.writeString(self.modelNumber)
10739
      oprot.writeFieldEnd()
9253 rajveer 10740
    if self.isAndroid is not None:
10741
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
10742
      oprot.writeBool(self.isAndroid)
10743
      oprot.writeFieldEnd()
5944 mandeep.dh 10744
    oprot.writeFieldStop()
10745
    oprot.writeStructEnd()
10746
 
10747
  def validate(self):
10748
    return
10749
 
10750
 
10751
  def __repr__(self):
10752
    L = ['%s=%r' % (key, value)
10753
      for key, value in self.__dict__.iteritems()]
10754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10755
 
10756
  def __eq__(self, other):
10757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10758
 
10759
  def __ne__(self, other):
10760
    return not (self == other)
10761
 
10762
class markItemAsContentComplete_result:
10763
  """
10764
  Attributes:
10765
   - success
10766
   - cex
10767
  """
10768
 
10769
  thrift_spec = (
10770
    (0, TType.BOOL, 'success', None, None, ), # 0
10771
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10772
  )
10773
 
10774
  def __init__(self, success=None, cex=None,):
10775
    self.success = success
10776
    self.cex = cex
10777
 
10778
  def read(self, iprot):
10779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10781
      return
10782
    iprot.readStructBegin()
10783
    while True:
10784
      (fname, ftype, fid) = iprot.readFieldBegin()
10785
      if ftype == TType.STOP:
10786
        break
10787
      if fid == 0:
10788
        if ftype == TType.BOOL:
10789
          self.success = iprot.readBool();
10790
        else:
10791
          iprot.skip(ftype)
10792
      elif fid == 1:
10793
        if ftype == TType.STRUCT:
10794
          self.cex = CatalogServiceException()
10795
          self.cex.read(iprot)
10796
        else:
10797
          iprot.skip(ftype)
10798
      else:
10799
        iprot.skip(ftype)
10800
      iprot.readFieldEnd()
10801
    iprot.readStructEnd()
10802
 
10803
  def write(self, oprot):
10804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10806
      return
10807
    oprot.writeStructBegin('markItemAsContentComplete_result')
10808
    if self.success is not None:
10809
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10810
      oprot.writeBool(self.success)
10811
      oprot.writeFieldEnd()
10812
    if self.cex is not None:
10813
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10814
      self.cex.write(oprot)
10815
      oprot.writeFieldEnd()
10816
    oprot.writeFieldStop()
10817
    oprot.writeStructEnd()
10818
 
10819
  def validate(self):
10820
    return
10821
 
10822
 
10823
  def __repr__(self):
10824
    L = ['%s=%r' % (key, value)
10825
      for key, value in self.__dict__.iteritems()]
10826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10827
 
10828
  def __eq__(self, other):
10829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10830
 
10831
  def __ne__(self, other):
10832
    return not (self == other)
10833
 
10834
class getAllItemsInRange_args:
10835
  """
10836
  Attributes:
10837
   - offset
10838
   - limit
10839
  """
10840
 
10841
  thrift_spec = (
10842
    None, # 0
10843
    (1, TType.I64, 'offset', None, None, ), # 1
10844
    (2, TType.I64, 'limit', None, None, ), # 2
10845
  )
10846
 
10847
  def __init__(self, offset=None, limit=None,):
10848
    self.offset = offset
10849
    self.limit = limit
10850
 
10851
  def read(self, iprot):
10852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10854
      return
10855
    iprot.readStructBegin()
10856
    while True:
10857
      (fname, ftype, fid) = iprot.readFieldBegin()
10858
      if ftype == TType.STOP:
10859
        break
10860
      if fid == 1:
10861
        if ftype == TType.I64:
10862
          self.offset = iprot.readI64();
10863
        else:
10864
          iprot.skip(ftype)
10865
      elif fid == 2:
10866
        if ftype == TType.I64:
10867
          self.limit = iprot.readI64();
10868
        else:
10869
          iprot.skip(ftype)
10870
      else:
10871
        iprot.skip(ftype)
10872
      iprot.readFieldEnd()
10873
    iprot.readStructEnd()
10874
 
10875
  def write(self, oprot):
10876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10878
      return
10879
    oprot.writeStructBegin('getAllItemsInRange_args')
10880
    if self.offset is not None:
10881
      oprot.writeFieldBegin('offset', TType.I64, 1)
10882
      oprot.writeI64(self.offset)
10883
      oprot.writeFieldEnd()
10884
    if self.limit is not None:
10885
      oprot.writeFieldBegin('limit', TType.I64, 2)
10886
      oprot.writeI64(self.limit)
10887
      oprot.writeFieldEnd()
10888
    oprot.writeFieldStop()
10889
    oprot.writeStructEnd()
10890
 
10891
  def validate(self):
10892
    return
10893
 
10894
 
10895
  def __repr__(self):
10896
    L = ['%s=%r' % (key, value)
10897
      for key, value in self.__dict__.iteritems()]
10898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10899
 
10900
  def __eq__(self, other):
10901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10902
 
10903
  def __ne__(self, other):
10904
    return not (self == other)
10905
 
10906
class getAllItemsInRange_result:
10907
  """
10908
  Attributes:
10909
   - success
10910
   - cex
10911
  """
10912
 
10913
  thrift_spec = (
10914
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10915
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10916
  )
10917
 
10918
  def __init__(self, success=None, cex=None,):
10919
    self.success = success
10920
    self.cex = cex
10921
 
10922
  def read(self, iprot):
10923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10925
      return
10926
    iprot.readStructBegin()
10927
    while True:
10928
      (fname, ftype, fid) = iprot.readFieldBegin()
10929
      if ftype == TType.STOP:
10930
        break
10931
      if fid == 0:
10932
        if ftype == TType.LIST:
10933
          self.success = []
8590 kshitij.so 10934
          (_etype77, _size74) = iprot.readListBegin()
10935
          for _i78 in xrange(_size74):
10936
            _elem79 = Item()
10937
            _elem79.read(iprot)
10938
            self.success.append(_elem79)
5944 mandeep.dh 10939
          iprot.readListEnd()
10940
        else:
10941
          iprot.skip(ftype)
10942
      elif fid == 1:
10943
        if ftype == TType.STRUCT:
10944
          self.cex = CatalogServiceException()
10945
          self.cex.read(iprot)
10946
        else:
10947
          iprot.skip(ftype)
10948
      else:
10949
        iprot.skip(ftype)
10950
      iprot.readFieldEnd()
10951
    iprot.readStructEnd()
10952
 
10953
  def write(self, oprot):
10954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10956
      return
10957
    oprot.writeStructBegin('getAllItemsInRange_result')
10958
    if self.success is not None:
10959
      oprot.writeFieldBegin('success', TType.LIST, 0)
10960
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10961
      for iter80 in self.success:
10962
        iter80.write(oprot)
5944 mandeep.dh 10963
      oprot.writeListEnd()
10964
      oprot.writeFieldEnd()
10965
    if self.cex is not None:
10966
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10967
      self.cex.write(oprot)
10968
      oprot.writeFieldEnd()
10969
    oprot.writeFieldStop()
10970
    oprot.writeStructEnd()
10971
 
10972
  def validate(self):
10973
    return
10974
 
10975
 
10976
  def __repr__(self):
10977
    L = ['%s=%r' % (key, value)
10978
      for key, value in self.__dict__.iteritems()]
10979
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10980
 
10981
  def __eq__(self, other):
10982
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10983
 
10984
  def __ne__(self, other):
10985
    return not (self == other)
10986
 
10987
class getAllItemsByStatusInRange_args:
10988
  """
10989
  Attributes:
10990
   - itemStatus
10991
   - offset
10992
   - limit
10993
  """
10994
 
10995
  thrift_spec = (
10996
    None, # 0
10997
    (1, TType.I32, 'itemStatus', None, None, ), # 1
10998
    (2, TType.I64, 'offset', None, None, ), # 2
10999
    (3, TType.I64, 'limit', None, None, ), # 3
11000
  )
11001
 
11002
  def __init__(self, itemStatus=None, offset=None, limit=None,):
11003
    self.itemStatus = itemStatus
11004
    self.offset = offset
11005
    self.limit = limit
11006
 
11007
  def read(self, iprot):
11008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11010
      return
11011
    iprot.readStructBegin()
11012
    while True:
11013
      (fname, ftype, fid) = iprot.readFieldBegin()
11014
      if ftype == TType.STOP:
11015
        break
11016
      if fid == 1:
11017
        if ftype == TType.I32:
11018
          self.itemStatus = iprot.readI32();
11019
        else:
11020
          iprot.skip(ftype)
11021
      elif fid == 2:
11022
        if ftype == TType.I64:
11023
          self.offset = iprot.readI64();
11024
        else:
11025
          iprot.skip(ftype)
11026
      elif fid == 3:
11027
        if ftype == TType.I64:
11028
          self.limit = iprot.readI64();
11029
        else:
11030
          iprot.skip(ftype)
11031
      else:
11032
        iprot.skip(ftype)
11033
      iprot.readFieldEnd()
11034
    iprot.readStructEnd()
11035
 
11036
  def write(self, oprot):
11037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11039
      return
11040
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
11041
    if self.itemStatus is not None:
11042
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11043
      oprot.writeI32(self.itemStatus)
11044
      oprot.writeFieldEnd()
11045
    if self.offset is not None:
11046
      oprot.writeFieldBegin('offset', TType.I64, 2)
11047
      oprot.writeI64(self.offset)
11048
      oprot.writeFieldEnd()
11049
    if self.limit is not None:
11050
      oprot.writeFieldBegin('limit', TType.I64, 3)
11051
      oprot.writeI64(self.limit)
11052
      oprot.writeFieldEnd()
11053
    oprot.writeFieldStop()
11054
    oprot.writeStructEnd()
11055
 
11056
  def validate(self):
11057
    return
11058
 
11059
 
11060
  def __repr__(self):
11061
    L = ['%s=%r' % (key, value)
11062
      for key, value in self.__dict__.iteritems()]
11063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11064
 
11065
  def __eq__(self, other):
11066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11067
 
11068
  def __ne__(self, other):
11069
    return not (self == other)
11070
 
11071
class getAllItemsByStatusInRange_result:
11072
  """
11073
  Attributes:
11074
   - success
11075
   - cex
11076
  """
11077
 
11078
  thrift_spec = (
11079
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11080
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11081
  )
11082
 
11083
  def __init__(self, success=None, cex=None,):
11084
    self.success = success
11085
    self.cex = cex
11086
 
11087
  def read(self, iprot):
11088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11090
      return
11091
    iprot.readStructBegin()
11092
    while True:
11093
      (fname, ftype, fid) = iprot.readFieldBegin()
11094
      if ftype == TType.STOP:
11095
        break
11096
      if fid == 0:
11097
        if ftype == TType.LIST:
11098
          self.success = []
8590 kshitij.so 11099
          (_etype84, _size81) = iprot.readListBegin()
11100
          for _i85 in xrange(_size81):
11101
            _elem86 = Item()
11102
            _elem86.read(iprot)
11103
            self.success.append(_elem86)
5944 mandeep.dh 11104
          iprot.readListEnd()
11105
        else:
11106
          iprot.skip(ftype)
11107
      elif fid == 1:
11108
        if ftype == TType.STRUCT:
11109
          self.cex = CatalogServiceException()
11110
          self.cex.read(iprot)
11111
        else:
11112
          iprot.skip(ftype)
11113
      else:
11114
        iprot.skip(ftype)
11115
      iprot.readFieldEnd()
11116
    iprot.readStructEnd()
11117
 
11118
  def write(self, oprot):
11119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11121
      return
11122
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
11123
    if self.success is not None:
11124
      oprot.writeFieldBegin('success', TType.LIST, 0)
11125
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11126
      for iter87 in self.success:
11127
        iter87.write(oprot)
5944 mandeep.dh 11128
      oprot.writeListEnd()
11129
      oprot.writeFieldEnd()
11130
    if self.cex is not None:
11131
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11132
      self.cex.write(oprot)
11133
      oprot.writeFieldEnd()
11134
    oprot.writeFieldStop()
11135
    oprot.writeStructEnd()
11136
 
11137
  def validate(self):
11138
    return
11139
 
11140
 
11141
  def __repr__(self):
11142
    L = ['%s=%r' % (key, value)
11143
      for key, value in self.__dict__.iteritems()]
11144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11145
 
11146
  def __eq__(self, other):
11147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11148
 
11149
  def __ne__(self, other):
11150
    return not (self == other)
11151
 
11152
class getItemCountByStatus_args:
11153
  """
11154
  Attributes:
11155
   - useStatus
11156
   - itemStatus
11157
  """
11158
 
11159
  thrift_spec = (
11160
    None, # 0
11161
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
11162
    (2, TType.I32, 'itemStatus', None, None, ), # 2
11163
  )
11164
 
11165
  def __init__(self, useStatus=None, itemStatus=None,):
11166
    self.useStatus = useStatus
11167
    self.itemStatus = itemStatus
11168
 
11169
  def read(self, iprot):
11170
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11171
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11172
      return
11173
    iprot.readStructBegin()
11174
    while True:
11175
      (fname, ftype, fid) = iprot.readFieldBegin()
11176
      if ftype == TType.STOP:
11177
        break
11178
      if fid == 1:
11179
        if ftype == TType.BOOL:
11180
          self.useStatus = iprot.readBool();
11181
        else:
11182
          iprot.skip(ftype)
11183
      elif fid == 2:
11184
        if ftype == TType.I32:
11185
          self.itemStatus = iprot.readI32();
11186
        else:
11187
          iprot.skip(ftype)
11188
      else:
11189
        iprot.skip(ftype)
11190
      iprot.readFieldEnd()
11191
    iprot.readStructEnd()
11192
 
11193
  def write(self, oprot):
11194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11196
      return
11197
    oprot.writeStructBegin('getItemCountByStatus_args')
11198
    if self.useStatus is not None:
11199
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
11200
      oprot.writeBool(self.useStatus)
11201
      oprot.writeFieldEnd()
11202
    if self.itemStatus is not None:
11203
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
11204
      oprot.writeI32(self.itemStatus)
11205
      oprot.writeFieldEnd()
11206
    oprot.writeFieldStop()
11207
    oprot.writeStructEnd()
11208
 
11209
  def validate(self):
11210
    return
11211
 
11212
 
11213
  def __repr__(self):
11214
    L = ['%s=%r' % (key, value)
11215
      for key, value in self.__dict__.iteritems()]
11216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11217
 
11218
  def __eq__(self, other):
11219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11220
 
11221
  def __ne__(self, other):
11222
    return not (self == other)
11223
 
11224
class getItemCountByStatus_result:
11225
  """
11226
  Attributes:
11227
   - success
11228
  """
11229
 
11230
  thrift_spec = (
11231
    (0, TType.I32, 'success', None, None, ), # 0
11232
  )
11233
 
11234
  def __init__(self, success=None,):
11235
    self.success = success
11236
 
11237
  def read(self, iprot):
11238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11240
      return
11241
    iprot.readStructBegin()
11242
    while True:
11243
      (fname, ftype, fid) = iprot.readFieldBegin()
11244
      if ftype == TType.STOP:
11245
        break
11246
      if fid == 0:
11247
        if ftype == TType.I32:
11248
          self.success = iprot.readI32();
11249
        else:
11250
          iprot.skip(ftype)
11251
      else:
11252
        iprot.skip(ftype)
11253
      iprot.readFieldEnd()
11254
    iprot.readStructEnd()
11255
 
11256
  def write(self, oprot):
11257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11259
      return
11260
    oprot.writeStructBegin('getItemCountByStatus_result')
11261
    if self.success is not None:
11262
      oprot.writeFieldBegin('success', TType.I32, 0)
11263
      oprot.writeI32(self.success)
11264
      oprot.writeFieldEnd()
11265
    oprot.writeFieldStop()
11266
    oprot.writeStructEnd()
11267
 
11268
  def validate(self):
11269
    return
11270
 
11271
 
11272
  def __repr__(self):
11273
    L = ['%s=%r' % (key, value)
11274
      for key, value in self.__dict__.iteritems()]
11275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11276
 
11277
  def __eq__(self, other):
11278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11279
 
11280
  def __ne__(self, other):
11281
    return not (self == other)
11282
 
11283
class getBestSellers_args:
11284
 
11285
  thrift_spec = (
11286
  )
11287
 
11288
  def read(self, iprot):
11289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11291
      return
11292
    iprot.readStructBegin()
11293
    while True:
11294
      (fname, ftype, fid) = iprot.readFieldBegin()
11295
      if ftype == TType.STOP:
11296
        break
11297
      else:
11298
        iprot.skip(ftype)
11299
      iprot.readFieldEnd()
11300
    iprot.readStructEnd()
11301
 
11302
  def write(self, oprot):
11303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11305
      return
11306
    oprot.writeStructBegin('getBestSellers_args')
11307
    oprot.writeFieldStop()
11308
    oprot.writeStructEnd()
11309
 
11310
  def validate(self):
11311
    return
11312
 
11313
 
11314
  def __repr__(self):
11315
    L = ['%s=%r' % (key, value)
11316
      for key, value in self.__dict__.iteritems()]
11317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11318
 
11319
  def __eq__(self, other):
11320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11321
 
11322
  def __ne__(self, other):
11323
    return not (self == other)
11324
 
11325
class getBestSellers_result:
11326
  """
11327
  Attributes:
11328
   - success
11329
   - isex
11330
  """
11331
 
11332
  thrift_spec = (
11333
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11334
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11335
  )
11336
 
11337
  def __init__(self, success=None, isex=None,):
11338
    self.success = success
11339
    self.isex = isex
11340
 
11341
  def read(self, iprot):
11342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11344
      return
11345
    iprot.readStructBegin()
11346
    while True:
11347
      (fname, ftype, fid) = iprot.readFieldBegin()
11348
      if ftype == TType.STOP:
11349
        break
11350
      if fid == 0:
11351
        if ftype == TType.LIST:
11352
          self.success = []
8590 kshitij.so 11353
          (_etype91, _size88) = iprot.readListBegin()
11354
          for _i92 in xrange(_size88):
11355
            _elem93 = Item()
11356
            _elem93.read(iprot)
11357
            self.success.append(_elem93)
5944 mandeep.dh 11358
          iprot.readListEnd()
11359
        else:
11360
          iprot.skip(ftype)
11361
      elif fid == 1:
11362
        if ftype == TType.STRUCT:
11363
          self.isex = CatalogServiceException()
11364
          self.isex.read(iprot)
11365
        else:
11366
          iprot.skip(ftype)
11367
      else:
11368
        iprot.skip(ftype)
11369
      iprot.readFieldEnd()
11370
    iprot.readStructEnd()
11371
 
11372
  def write(self, oprot):
11373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11375
      return
11376
    oprot.writeStructBegin('getBestSellers_result')
11377
    if self.success is not None:
11378
      oprot.writeFieldBegin('success', TType.LIST, 0)
11379
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11380
      for iter94 in self.success:
11381
        iter94.write(oprot)
5944 mandeep.dh 11382
      oprot.writeListEnd()
11383
      oprot.writeFieldEnd()
11384
    if self.isex is not None:
11385
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11386
      self.isex.write(oprot)
11387
      oprot.writeFieldEnd()
11388
    oprot.writeFieldStop()
11389
    oprot.writeStructEnd()
11390
 
11391
  def validate(self):
11392
    return
11393
 
11394
 
11395
  def __repr__(self):
11396
    L = ['%s=%r' % (key, value)
11397
      for key, value in self.__dict__.iteritems()]
11398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11399
 
11400
  def __eq__(self, other):
11401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11402
 
11403
  def __ne__(self, other):
11404
    return not (self == other)
11405
 
11406
class getBestSellersCatalogIds_args:
11407
  """
11408
  Attributes:
11409
   - beginIndex
11410
   - totalItems
11411
   - brand
11412
   - category
11413
  """
11414
 
11415
  thrift_spec = (
11416
    None, # 0
11417
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11418
    (2, TType.I64, 'totalItems', None, None, ), # 2
11419
    (3, TType.STRING, 'brand', None, None, ), # 3
11420
    (4, TType.I64, 'category', None, None, ), # 4
11421
  )
11422
 
11423
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
11424
    self.beginIndex = beginIndex
11425
    self.totalItems = totalItems
11426
    self.brand = brand
11427
    self.category = category
11428
 
11429
  def read(self, iprot):
11430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11432
      return
11433
    iprot.readStructBegin()
11434
    while True:
11435
      (fname, ftype, fid) = iprot.readFieldBegin()
11436
      if ftype == TType.STOP:
11437
        break
11438
      if fid == 1:
11439
        if ftype == TType.I64:
11440
          self.beginIndex = iprot.readI64();
11441
        else:
11442
          iprot.skip(ftype)
11443
      elif fid == 2:
11444
        if ftype == TType.I64:
11445
          self.totalItems = iprot.readI64();
11446
        else:
11447
          iprot.skip(ftype)
11448
      elif fid == 3:
11449
        if ftype == TType.STRING:
11450
          self.brand = iprot.readString();
11451
        else:
11452
          iprot.skip(ftype)
11453
      elif fid == 4:
11454
        if ftype == TType.I64:
11455
          self.category = iprot.readI64();
11456
        else:
11457
          iprot.skip(ftype)
11458
      else:
11459
        iprot.skip(ftype)
11460
      iprot.readFieldEnd()
11461
    iprot.readStructEnd()
11462
 
11463
  def write(self, oprot):
11464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11466
      return
11467
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
11468
    if self.beginIndex is not None:
11469
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11470
      oprot.writeI64(self.beginIndex)
11471
      oprot.writeFieldEnd()
11472
    if self.totalItems is not None:
11473
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11474
      oprot.writeI64(self.totalItems)
11475
      oprot.writeFieldEnd()
11476
    if self.brand is not None:
11477
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11478
      oprot.writeString(self.brand)
11479
      oprot.writeFieldEnd()
11480
    if self.category is not None:
11481
      oprot.writeFieldBegin('category', TType.I64, 4)
11482
      oprot.writeI64(self.category)
11483
      oprot.writeFieldEnd()
11484
    oprot.writeFieldStop()
11485
    oprot.writeStructEnd()
11486
 
11487
  def validate(self):
11488
    return
11489
 
11490
 
11491
  def __repr__(self):
11492
    L = ['%s=%r' % (key, value)
11493
      for key, value in self.__dict__.iteritems()]
11494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11495
 
11496
  def __eq__(self, other):
11497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11498
 
11499
  def __ne__(self, other):
11500
    return not (self == other)
11501
 
11502
class getBestSellersCatalogIds_result:
11503
  """
11504
  Attributes:
11505
   - success
11506
   - cex
11507
  """
11508
 
11509
  thrift_spec = (
11510
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11511
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11512
  )
11513
 
11514
  def __init__(self, success=None, cex=None,):
11515
    self.success = success
11516
    self.cex = cex
11517
 
11518
  def read(self, iprot):
11519
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11520
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11521
      return
11522
    iprot.readStructBegin()
11523
    while True:
11524
      (fname, ftype, fid) = iprot.readFieldBegin()
11525
      if ftype == TType.STOP:
11526
        break
11527
      if fid == 0:
11528
        if ftype == TType.LIST:
11529
          self.success = []
8590 kshitij.so 11530
          (_etype98, _size95) = iprot.readListBegin()
11531
          for _i99 in xrange(_size95):
11532
            _elem100 = iprot.readI64();
11533
            self.success.append(_elem100)
5944 mandeep.dh 11534
          iprot.readListEnd()
11535
        else:
11536
          iprot.skip(ftype)
11537
      elif fid == 1:
11538
        if ftype == TType.STRUCT:
11539
          self.cex = CatalogServiceException()
11540
          self.cex.read(iprot)
11541
        else:
11542
          iprot.skip(ftype)
11543
      else:
11544
        iprot.skip(ftype)
11545
      iprot.readFieldEnd()
11546
    iprot.readStructEnd()
11547
 
11548
  def write(self, oprot):
11549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11551
      return
11552
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
11553
    if self.success is not None:
11554
      oprot.writeFieldBegin('success', TType.LIST, 0)
11555
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 11556
      for iter101 in self.success:
11557
        oprot.writeI64(iter101)
5944 mandeep.dh 11558
      oprot.writeListEnd()
11559
      oprot.writeFieldEnd()
11560
    if self.cex is not None:
11561
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11562
      self.cex.write(oprot)
11563
      oprot.writeFieldEnd()
11564
    oprot.writeFieldStop()
11565
    oprot.writeStructEnd()
11566
 
11567
  def validate(self):
11568
    return
11569
 
11570
 
11571
  def __repr__(self):
11572
    L = ['%s=%r' % (key, value)
11573
      for key, value in self.__dict__.iteritems()]
11574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11575
 
11576
  def __eq__(self, other):
11577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11578
 
11579
  def __ne__(self, other):
11580
    return not (self == other)
11581
 
11582
class getBestSellersCount_args:
11583
 
11584
  thrift_spec = (
11585
  )
11586
 
11587
  def read(self, iprot):
11588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11590
      return
11591
    iprot.readStructBegin()
11592
    while True:
11593
      (fname, ftype, fid) = iprot.readFieldBegin()
11594
      if ftype == TType.STOP:
11595
        break
11596
      else:
11597
        iprot.skip(ftype)
11598
      iprot.readFieldEnd()
11599
    iprot.readStructEnd()
11600
 
11601
  def write(self, oprot):
11602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11604
      return
11605
    oprot.writeStructBegin('getBestSellersCount_args')
11606
    oprot.writeFieldStop()
11607
    oprot.writeStructEnd()
11608
 
11609
  def validate(self):
11610
    return
11611
 
11612
 
11613
  def __repr__(self):
11614
    L = ['%s=%r' % (key, value)
11615
      for key, value in self.__dict__.iteritems()]
11616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11617
 
11618
  def __eq__(self, other):
11619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11620
 
11621
  def __ne__(self, other):
11622
    return not (self == other)
11623
 
11624
class getBestSellersCount_result:
11625
  """
11626
  Attributes:
11627
   - success
11628
   - cex
11629
  """
11630
 
11631
  thrift_spec = (
11632
    (0, TType.I64, 'success', None, None, ), # 0
11633
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11634
  )
11635
 
11636
  def __init__(self, success=None, cex=None,):
11637
    self.success = success
11638
    self.cex = cex
11639
 
11640
  def read(self, iprot):
11641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11643
      return
11644
    iprot.readStructBegin()
11645
    while True:
11646
      (fname, ftype, fid) = iprot.readFieldBegin()
11647
      if ftype == TType.STOP:
11648
        break
11649
      if fid == 0:
11650
        if ftype == TType.I64:
11651
          self.success = iprot.readI64();
11652
        else:
11653
          iprot.skip(ftype)
11654
      elif fid == 1:
11655
        if ftype == TType.STRUCT:
11656
          self.cex = CatalogServiceException()
11657
          self.cex.read(iprot)
11658
        else:
11659
          iprot.skip(ftype)
11660
      else:
11661
        iprot.skip(ftype)
11662
      iprot.readFieldEnd()
11663
    iprot.readStructEnd()
11664
 
11665
  def write(self, oprot):
11666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11668
      return
11669
    oprot.writeStructBegin('getBestSellersCount_result')
11670
    if self.success is not None:
11671
      oprot.writeFieldBegin('success', TType.I64, 0)
11672
      oprot.writeI64(self.success)
11673
      oprot.writeFieldEnd()
11674
    if self.cex is not None:
11675
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11676
      self.cex.write(oprot)
11677
      oprot.writeFieldEnd()
11678
    oprot.writeFieldStop()
11679
    oprot.writeStructEnd()
11680
 
11681
  def validate(self):
11682
    return
11683
 
11684
 
11685
  def __repr__(self):
11686
    L = ['%s=%r' % (key, value)
11687
      for key, value in self.__dict__.iteritems()]
11688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11689
 
11690
  def __eq__(self, other):
11691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11692
 
11693
  def __ne__(self, other):
11694
    return not (self == other)
11695
 
11696
class getBestDeals_args:
11697
 
11698
  thrift_spec = (
11699
  )
11700
 
11701
  def read(self, iprot):
11702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11704
      return
11705
    iprot.readStructBegin()
11706
    while True:
11707
      (fname, ftype, fid) = iprot.readFieldBegin()
11708
      if ftype == TType.STOP:
11709
        break
11710
      else:
11711
        iprot.skip(ftype)
11712
      iprot.readFieldEnd()
11713
    iprot.readStructEnd()
11714
 
11715
  def write(self, oprot):
11716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11718
      return
11719
    oprot.writeStructBegin('getBestDeals_args')
11720
    oprot.writeFieldStop()
11721
    oprot.writeStructEnd()
11722
 
11723
  def validate(self):
11724
    return
11725
 
11726
 
11727
  def __repr__(self):
11728
    L = ['%s=%r' % (key, value)
11729
      for key, value in self.__dict__.iteritems()]
11730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11731
 
11732
  def __eq__(self, other):
11733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11734
 
11735
  def __ne__(self, other):
11736
    return not (self == other)
11737
 
11738
class getBestDeals_result:
11739
  """
11740
  Attributes:
11741
   - success
11742
   - isex
11743
  """
11744
 
11745
  thrift_spec = (
11746
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11747
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11748
  )
11749
 
11750
  def __init__(self, success=None, isex=None,):
11751
    self.success = success
11752
    self.isex = isex
11753
 
11754
  def read(self, iprot):
11755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11757
      return
11758
    iprot.readStructBegin()
11759
    while True:
11760
      (fname, ftype, fid) = iprot.readFieldBegin()
11761
      if ftype == TType.STOP:
11762
        break
11763
      if fid == 0:
11764
        if ftype == TType.LIST:
11765
          self.success = []
8590 kshitij.so 11766
          (_etype105, _size102) = iprot.readListBegin()
11767
          for _i106 in xrange(_size102):
11768
            _elem107 = Item()
11769
            _elem107.read(iprot)
11770
            self.success.append(_elem107)
5944 mandeep.dh 11771
          iprot.readListEnd()
11772
        else:
11773
          iprot.skip(ftype)
11774
      elif fid == 1:
11775
        if ftype == TType.STRUCT:
11776
          self.isex = CatalogServiceException()
11777
          self.isex.read(iprot)
11778
        else:
11779
          iprot.skip(ftype)
11780
      else:
11781
        iprot.skip(ftype)
11782
      iprot.readFieldEnd()
11783
    iprot.readStructEnd()
11784
 
11785
  def write(self, oprot):
11786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11788
      return
11789
    oprot.writeStructBegin('getBestDeals_result')
11790
    if self.success is not None:
11791
      oprot.writeFieldBegin('success', TType.LIST, 0)
11792
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11793
      for iter108 in self.success:
11794
        iter108.write(oprot)
5944 mandeep.dh 11795
      oprot.writeListEnd()
11796
      oprot.writeFieldEnd()
11797
    if self.isex is not None:
11798
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11799
      self.isex.write(oprot)
11800
      oprot.writeFieldEnd()
11801
    oprot.writeFieldStop()
11802
    oprot.writeStructEnd()
11803
 
11804
  def validate(self):
11805
    return
11806
 
11807
 
11808
  def __repr__(self):
11809
    L = ['%s=%r' % (key, value)
11810
      for key, value in self.__dict__.iteritems()]
11811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11812
 
11813
  def __eq__(self, other):
11814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11815
 
11816
  def __ne__(self, other):
11817
    return not (self == other)
11818
 
11819
class getBestDealsCatalogIds_args:
11820
  """
11821
  Attributes:
11822
   - beginIndex
11823
   - totalItems
11824
   - brand
11825
   - category
11826
  """
11827
 
11828
  thrift_spec = (
11829
    None, # 0
11830
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11831
    (2, TType.I64, 'totalItems', None, None, ), # 2
11832
    (3, TType.STRING, 'brand', None, None, ), # 3
11833
    (4, TType.I64, 'category', None, None, ), # 4
11834
  )
11835
 
11836
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
11837
    self.beginIndex = beginIndex
11838
    self.totalItems = totalItems
11839
    self.brand = brand
11840
    self.category = category
11841
 
11842
  def read(self, iprot):
11843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11845
      return
11846
    iprot.readStructBegin()
11847
    while True:
11848
      (fname, ftype, fid) = iprot.readFieldBegin()
11849
      if ftype == TType.STOP:
11850
        break
11851
      if fid == 1:
11852
        if ftype == TType.I64:
11853
          self.beginIndex = iprot.readI64();
11854
        else:
11855
          iprot.skip(ftype)
11856
      elif fid == 2:
11857
        if ftype == TType.I64:
11858
          self.totalItems = iprot.readI64();
11859
        else:
11860
          iprot.skip(ftype)
11861
      elif fid == 3:
11862
        if ftype == TType.STRING:
11863
          self.brand = iprot.readString();
11864
        else:
11865
          iprot.skip(ftype)
11866
      elif fid == 4:
11867
        if ftype == TType.I64:
11868
          self.category = iprot.readI64();
11869
        else:
11870
          iprot.skip(ftype)
11871
      else:
11872
        iprot.skip(ftype)
11873
      iprot.readFieldEnd()
11874
    iprot.readStructEnd()
11875
 
11876
  def write(self, oprot):
11877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11879
      return
11880
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
11881
    if self.beginIndex is not None:
11882
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11883
      oprot.writeI64(self.beginIndex)
11884
      oprot.writeFieldEnd()
11885
    if self.totalItems is not None:
11886
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11887
      oprot.writeI64(self.totalItems)
11888
      oprot.writeFieldEnd()
11889
    if self.brand is not None:
11890
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11891
      oprot.writeString(self.brand)
11892
      oprot.writeFieldEnd()
11893
    if self.category is not None:
11894
      oprot.writeFieldBegin('category', TType.I64, 4)
11895
      oprot.writeI64(self.category)
11896
      oprot.writeFieldEnd()
11897
    oprot.writeFieldStop()
11898
    oprot.writeStructEnd()
11899
 
11900
  def validate(self):
11901
    return
11902
 
11903
 
11904
  def __repr__(self):
11905
    L = ['%s=%r' % (key, value)
11906
      for key, value in self.__dict__.iteritems()]
11907
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11908
 
11909
  def __eq__(self, other):
11910
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11911
 
11912
  def __ne__(self, other):
11913
    return not (self == other)
11914
 
11915
class getBestDealsCatalogIds_result:
11916
  """
11917
  Attributes:
11918
   - success
11919
   - cex
11920
  """
11921
 
11922
  thrift_spec = (
11923
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11924
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11925
  )
11926
 
11927
  def __init__(self, success=None, cex=None,):
11928
    self.success = success
11929
    self.cex = cex
11930
 
11931
  def read(self, iprot):
11932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11934
      return
11935
    iprot.readStructBegin()
11936
    while True:
11937
      (fname, ftype, fid) = iprot.readFieldBegin()
11938
      if ftype == TType.STOP:
11939
        break
11940
      if fid == 0:
11941
        if ftype == TType.LIST:
11942
          self.success = []
8590 kshitij.so 11943
          (_etype112, _size109) = iprot.readListBegin()
11944
          for _i113 in xrange(_size109):
11945
            _elem114 = iprot.readI64();
11946
            self.success.append(_elem114)
5944 mandeep.dh 11947
          iprot.readListEnd()
11948
        else:
11949
          iprot.skip(ftype)
11950
      elif fid == 1:
11951
        if ftype == TType.STRUCT:
11952
          self.cex = CatalogServiceException()
11953
          self.cex.read(iprot)
11954
        else:
11955
          iprot.skip(ftype)
11956
      else:
11957
        iprot.skip(ftype)
11958
      iprot.readFieldEnd()
11959
    iprot.readStructEnd()
11960
 
11961
  def write(self, oprot):
11962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11964
      return
11965
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
11966
    if self.success is not None:
11967
      oprot.writeFieldBegin('success', TType.LIST, 0)
11968
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 11969
      for iter115 in self.success:
11970
        oprot.writeI64(iter115)
5944 mandeep.dh 11971
      oprot.writeListEnd()
11972
      oprot.writeFieldEnd()
11973
    if self.cex is not None:
11974
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11975
      self.cex.write(oprot)
11976
      oprot.writeFieldEnd()
11977
    oprot.writeFieldStop()
11978
    oprot.writeStructEnd()
11979
 
11980
  def validate(self):
11981
    return
11982
 
11983
 
11984
  def __repr__(self):
11985
    L = ['%s=%r' % (key, value)
11986
      for key, value in self.__dict__.iteritems()]
11987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11988
 
11989
  def __eq__(self, other):
11990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11991
 
11992
  def __ne__(self, other):
11993
    return not (self == other)
11994
 
11995
class getBestDealsCount_args:
11996
 
11997
  thrift_spec = (
11998
  )
11999
 
12000
  def read(self, iprot):
12001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12003
      return
12004
    iprot.readStructBegin()
12005
    while True:
12006
      (fname, ftype, fid) = iprot.readFieldBegin()
12007
      if ftype == TType.STOP:
12008
        break
12009
      else:
12010
        iprot.skip(ftype)
12011
      iprot.readFieldEnd()
12012
    iprot.readStructEnd()
12013
 
12014
  def write(self, oprot):
12015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12017
      return
12018
    oprot.writeStructBegin('getBestDealsCount_args')
12019
    oprot.writeFieldStop()
12020
    oprot.writeStructEnd()
12021
 
12022
  def validate(self):
12023
    return
12024
 
12025
 
12026
  def __repr__(self):
12027
    L = ['%s=%r' % (key, value)
12028
      for key, value in self.__dict__.iteritems()]
12029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12030
 
12031
  def __eq__(self, other):
12032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12033
 
12034
  def __ne__(self, other):
12035
    return not (self == other)
12036
 
12037
class getBestDealsCount_result:
12038
  """
12039
  Attributes:
12040
   - success
12041
   - cex
12042
  """
12043
 
12044
  thrift_spec = (
12045
    (0, TType.I64, 'success', None, None, ), # 0
12046
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12047
  )
12048
 
12049
  def __init__(self, success=None, cex=None,):
12050
    self.success = success
12051
    self.cex = cex
12052
 
12053
  def read(self, iprot):
12054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12056
      return
12057
    iprot.readStructBegin()
12058
    while True:
12059
      (fname, ftype, fid) = iprot.readFieldBegin()
12060
      if ftype == TType.STOP:
12061
        break
12062
      if fid == 0:
12063
        if ftype == TType.I64:
12064
          self.success = iprot.readI64();
12065
        else:
12066
          iprot.skip(ftype)
12067
      elif fid == 1:
12068
        if ftype == TType.STRUCT:
12069
          self.cex = CatalogServiceException()
12070
          self.cex.read(iprot)
12071
        else:
12072
          iprot.skip(ftype)
12073
      else:
12074
        iprot.skip(ftype)
12075
      iprot.readFieldEnd()
12076
    iprot.readStructEnd()
12077
 
12078
  def write(self, oprot):
12079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12081
      return
12082
    oprot.writeStructBegin('getBestDealsCount_result')
12083
    if self.success is not None:
12084
      oprot.writeFieldBegin('success', TType.I64, 0)
12085
      oprot.writeI64(self.success)
12086
      oprot.writeFieldEnd()
12087
    if self.cex is not None:
12088
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12089
      self.cex.write(oprot)
12090
      oprot.writeFieldEnd()
12091
    oprot.writeFieldStop()
12092
    oprot.writeStructEnd()
12093
 
12094
  def validate(self):
12095
    return
12096
 
12097
 
12098
  def __repr__(self):
12099
    L = ['%s=%r' % (key, value)
12100
      for key, value in self.__dict__.iteritems()]
12101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12102
 
12103
  def __eq__(self, other):
12104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12105
 
12106
  def __ne__(self, other):
12107
    return not (self == other)
12108
 
12109
class getComingSoon_args:
12110
 
12111
  thrift_spec = (
12112
  )
12113
 
12114
  def read(self, iprot):
12115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12117
      return
12118
    iprot.readStructBegin()
12119
    while True:
12120
      (fname, ftype, fid) = iprot.readFieldBegin()
12121
      if ftype == TType.STOP:
12122
        break
12123
      else:
12124
        iprot.skip(ftype)
12125
      iprot.readFieldEnd()
12126
    iprot.readStructEnd()
12127
 
12128
  def write(self, oprot):
12129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12131
      return
12132
    oprot.writeStructBegin('getComingSoon_args')
12133
    oprot.writeFieldStop()
12134
    oprot.writeStructEnd()
12135
 
12136
  def validate(self):
12137
    return
12138
 
12139
 
12140
  def __repr__(self):
12141
    L = ['%s=%r' % (key, value)
12142
      for key, value in self.__dict__.iteritems()]
12143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12144
 
12145
  def __eq__(self, other):
12146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12147
 
12148
  def __ne__(self, other):
12149
    return not (self == other)
12150
 
12151
class getComingSoon_result:
12152
  """
12153
  Attributes:
12154
   - success
12155
   - isex
12156
  """
12157
 
12158
  thrift_spec = (
12159
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12160
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12161
  )
12162
 
12163
  def __init__(self, success=None, isex=None,):
12164
    self.success = success
12165
    self.isex = isex
12166
 
12167
  def read(self, iprot):
12168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12170
      return
12171
    iprot.readStructBegin()
12172
    while True:
12173
      (fname, ftype, fid) = iprot.readFieldBegin()
12174
      if ftype == TType.STOP:
12175
        break
12176
      if fid == 0:
12177
        if ftype == TType.LIST:
12178
          self.success = []
8590 kshitij.so 12179
          (_etype119, _size116) = iprot.readListBegin()
12180
          for _i120 in xrange(_size116):
12181
            _elem121 = Item()
12182
            _elem121.read(iprot)
12183
            self.success.append(_elem121)
5944 mandeep.dh 12184
          iprot.readListEnd()
12185
        else:
12186
          iprot.skip(ftype)
12187
      elif fid == 1:
12188
        if ftype == TType.STRUCT:
12189
          self.isex = CatalogServiceException()
12190
          self.isex.read(iprot)
12191
        else:
12192
          iprot.skip(ftype)
12193
      else:
12194
        iprot.skip(ftype)
12195
      iprot.readFieldEnd()
12196
    iprot.readStructEnd()
12197
 
12198
  def write(self, oprot):
12199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12201
      return
12202
    oprot.writeStructBegin('getComingSoon_result')
12203
    if self.success is not None:
12204
      oprot.writeFieldBegin('success', TType.LIST, 0)
12205
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 12206
      for iter122 in self.success:
12207
        iter122.write(oprot)
5944 mandeep.dh 12208
      oprot.writeListEnd()
12209
      oprot.writeFieldEnd()
12210
    if self.isex is not None:
12211
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12212
      self.isex.write(oprot)
12213
      oprot.writeFieldEnd()
12214
    oprot.writeFieldStop()
12215
    oprot.writeStructEnd()
12216
 
12217
  def validate(self):
12218
    return
12219
 
12220
 
12221
  def __repr__(self):
12222
    L = ['%s=%r' % (key, value)
12223
      for key, value in self.__dict__.iteritems()]
12224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12225
 
12226
  def __eq__(self, other):
12227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12228
 
12229
  def __ne__(self, other):
12230
    return not (self == other)
12231
 
12232
class getComingSoonCatalogIds_args:
12233
  """
12234
  Attributes:
12235
   - beginIndex
12236
   - totalItems
12237
   - brand
12238
   - category
12239
  """
12240
 
12241
  thrift_spec = (
12242
    None, # 0
12243
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12244
    (2, TType.I64, 'totalItems', None, None, ), # 2
12245
    (3, TType.STRING, 'brand', None, None, ), # 3
12246
    (4, TType.I64, 'category', None, None, ), # 4
12247
  )
12248
 
12249
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12250
    self.beginIndex = beginIndex
12251
    self.totalItems = totalItems
12252
    self.brand = brand
12253
    self.category = category
12254
 
12255
  def read(self, iprot):
12256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12258
      return
12259
    iprot.readStructBegin()
12260
    while True:
12261
      (fname, ftype, fid) = iprot.readFieldBegin()
12262
      if ftype == TType.STOP:
12263
        break
12264
      if fid == 1:
12265
        if ftype == TType.I64:
12266
          self.beginIndex = iprot.readI64();
12267
        else:
12268
          iprot.skip(ftype)
12269
      elif fid == 2:
12270
        if ftype == TType.I64:
12271
          self.totalItems = iprot.readI64();
12272
        else:
12273
          iprot.skip(ftype)
12274
      elif fid == 3:
12275
        if ftype == TType.STRING:
12276
          self.brand = iprot.readString();
12277
        else:
12278
          iprot.skip(ftype)
12279
      elif fid == 4:
12280
        if ftype == TType.I64:
12281
          self.category = iprot.readI64();
12282
        else:
12283
          iprot.skip(ftype)
12284
      else:
12285
        iprot.skip(ftype)
12286
      iprot.readFieldEnd()
12287
    iprot.readStructEnd()
12288
 
12289
  def write(self, oprot):
12290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12292
      return
12293
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
12294
    if self.beginIndex is not None:
12295
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12296
      oprot.writeI64(self.beginIndex)
12297
      oprot.writeFieldEnd()
12298
    if self.totalItems is not None:
12299
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12300
      oprot.writeI64(self.totalItems)
12301
      oprot.writeFieldEnd()
12302
    if self.brand is not None:
12303
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12304
      oprot.writeString(self.brand)
12305
      oprot.writeFieldEnd()
12306
    if self.category is not None:
12307
      oprot.writeFieldBegin('category', TType.I64, 4)
12308
      oprot.writeI64(self.category)
12309
      oprot.writeFieldEnd()
12310
    oprot.writeFieldStop()
12311
    oprot.writeStructEnd()
12312
 
12313
  def validate(self):
12314
    return
12315
 
12316
 
12317
  def __repr__(self):
12318
    L = ['%s=%r' % (key, value)
12319
      for key, value in self.__dict__.iteritems()]
12320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12321
 
12322
  def __eq__(self, other):
12323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12324
 
12325
  def __ne__(self, other):
12326
    return not (self == other)
12327
 
12328
class getComingSoonCatalogIds_result:
12329
  """
12330
  Attributes:
12331
   - success
12332
   - cex
12333
  """
12334
 
12335
  thrift_spec = (
12336
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12337
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12338
  )
12339
 
12340
  def __init__(self, success=None, cex=None,):
12341
    self.success = success
12342
    self.cex = cex
12343
 
12344
  def read(self, iprot):
12345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12347
      return
12348
    iprot.readStructBegin()
12349
    while True:
12350
      (fname, ftype, fid) = iprot.readFieldBegin()
12351
      if ftype == TType.STOP:
12352
        break
12353
      if fid == 0:
12354
        if ftype == TType.LIST:
12355
          self.success = []
8590 kshitij.so 12356
          (_etype126, _size123) = iprot.readListBegin()
12357
          for _i127 in xrange(_size123):
12358
            _elem128 = iprot.readI64();
12359
            self.success.append(_elem128)
5944 mandeep.dh 12360
          iprot.readListEnd()
12361
        else:
12362
          iprot.skip(ftype)
12363
      elif fid == 1:
12364
        if ftype == TType.STRUCT:
12365
          self.cex = CatalogServiceException()
12366
          self.cex.read(iprot)
12367
        else:
12368
          iprot.skip(ftype)
12369
      else:
12370
        iprot.skip(ftype)
12371
      iprot.readFieldEnd()
12372
    iprot.readStructEnd()
12373
 
12374
  def write(self, oprot):
12375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12377
      return
12378
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
12379
    if self.success is not None:
12380
      oprot.writeFieldBegin('success', TType.LIST, 0)
12381
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 12382
      for iter129 in self.success:
12383
        oprot.writeI64(iter129)
5944 mandeep.dh 12384
      oprot.writeListEnd()
12385
      oprot.writeFieldEnd()
12386
    if self.cex is not None:
12387
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12388
      self.cex.write(oprot)
12389
      oprot.writeFieldEnd()
12390
    oprot.writeFieldStop()
12391
    oprot.writeStructEnd()
12392
 
12393
  def validate(self):
12394
    return
12395
 
12396
 
12397
  def __repr__(self):
12398
    L = ['%s=%r' % (key, value)
12399
      for key, value in self.__dict__.iteritems()]
12400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12401
 
12402
  def __eq__(self, other):
12403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12404
 
12405
  def __ne__(self, other):
12406
    return not (self == other)
12407
 
12408
class getComingSoonCount_args:
12409
 
12410
  thrift_spec = (
12411
  )
12412
 
12413
  def read(self, iprot):
12414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12416
      return
12417
    iprot.readStructBegin()
12418
    while True:
12419
      (fname, ftype, fid) = iprot.readFieldBegin()
12420
      if ftype == TType.STOP:
12421
        break
12422
      else:
12423
        iprot.skip(ftype)
12424
      iprot.readFieldEnd()
12425
    iprot.readStructEnd()
12426
 
12427
  def write(self, oprot):
12428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12430
      return
12431
    oprot.writeStructBegin('getComingSoonCount_args')
12432
    oprot.writeFieldStop()
12433
    oprot.writeStructEnd()
12434
 
12435
  def validate(self):
12436
    return
12437
 
12438
 
12439
  def __repr__(self):
12440
    L = ['%s=%r' % (key, value)
12441
      for key, value in self.__dict__.iteritems()]
12442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12443
 
12444
  def __eq__(self, other):
12445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12446
 
12447
  def __ne__(self, other):
12448
    return not (self == other)
12449
 
12450
class getComingSoonCount_result:
12451
  """
12452
  Attributes:
12453
   - success
12454
   - cex
12455
  """
12456
 
12457
  thrift_spec = (
12458
    (0, TType.I64, 'success', None, None, ), # 0
12459
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12460
  )
12461
 
12462
  def __init__(self, success=None, cex=None,):
12463
    self.success = success
12464
    self.cex = cex
12465
 
12466
  def read(self, iprot):
12467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12469
      return
12470
    iprot.readStructBegin()
12471
    while True:
12472
      (fname, ftype, fid) = iprot.readFieldBegin()
12473
      if ftype == TType.STOP:
12474
        break
12475
      if fid == 0:
12476
        if ftype == TType.I64:
12477
          self.success = iprot.readI64();
12478
        else:
12479
          iprot.skip(ftype)
12480
      elif fid == 1:
12481
        if ftype == TType.STRUCT:
12482
          self.cex = CatalogServiceException()
12483
          self.cex.read(iprot)
12484
        else:
12485
          iprot.skip(ftype)
12486
      else:
12487
        iprot.skip(ftype)
12488
      iprot.readFieldEnd()
12489
    iprot.readStructEnd()
12490
 
12491
  def write(self, oprot):
12492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12494
      return
12495
    oprot.writeStructBegin('getComingSoonCount_result')
12496
    if self.success is not None:
12497
      oprot.writeFieldBegin('success', TType.I64, 0)
12498
      oprot.writeI64(self.success)
12499
      oprot.writeFieldEnd()
12500
    if self.cex is not None:
12501
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12502
      self.cex.write(oprot)
12503
      oprot.writeFieldEnd()
12504
    oprot.writeFieldStop()
12505
    oprot.writeStructEnd()
12506
 
12507
  def validate(self):
12508
    return
12509
 
12510
 
12511
  def __repr__(self):
12512
    L = ['%s=%r' % (key, value)
12513
      for key, value in self.__dict__.iteritems()]
12514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12515
 
12516
  def __eq__(self, other):
12517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12518
 
12519
  def __ne__(self, other):
12520
    return not (self == other)
12521
 
12522
class getLatestArrivals_args:
12523
 
12524
  thrift_spec = (
12525
  )
12526
 
12527
  def read(self, iprot):
12528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12530
      return
12531
    iprot.readStructBegin()
12532
    while True:
12533
      (fname, ftype, fid) = iprot.readFieldBegin()
12534
      if ftype == TType.STOP:
12535
        break
12536
      else:
12537
        iprot.skip(ftype)
12538
      iprot.readFieldEnd()
12539
    iprot.readStructEnd()
12540
 
12541
  def write(self, oprot):
12542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12544
      return
12545
    oprot.writeStructBegin('getLatestArrivals_args')
12546
    oprot.writeFieldStop()
12547
    oprot.writeStructEnd()
12548
 
12549
  def validate(self):
12550
    return
12551
 
12552
 
12553
  def __repr__(self):
12554
    L = ['%s=%r' % (key, value)
12555
      for key, value in self.__dict__.iteritems()]
12556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12557
 
12558
  def __eq__(self, other):
12559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12560
 
12561
  def __ne__(self, other):
12562
    return not (self == other)
12563
 
12564
class getLatestArrivals_result:
12565
  """
12566
  Attributes:
12567
   - success
12568
   - isex
12569
  """
12570
 
12571
  thrift_spec = (
12572
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12573
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12574
  )
12575
 
12576
  def __init__(self, success=None, isex=None,):
12577
    self.success = success
12578
    self.isex = isex
12579
 
12580
  def read(self, iprot):
12581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12583
      return
12584
    iprot.readStructBegin()
12585
    while True:
12586
      (fname, ftype, fid) = iprot.readFieldBegin()
12587
      if ftype == TType.STOP:
12588
        break
12589
      if fid == 0:
12590
        if ftype == TType.LIST:
12591
          self.success = []
8590 kshitij.so 12592
          (_etype133, _size130) = iprot.readListBegin()
12593
          for _i134 in xrange(_size130):
12594
            _elem135 = Item()
12595
            _elem135.read(iprot)
12596
            self.success.append(_elem135)
5944 mandeep.dh 12597
          iprot.readListEnd()
12598
        else:
12599
          iprot.skip(ftype)
12600
      elif fid == 1:
12601
        if ftype == TType.STRUCT:
12602
          self.isex = CatalogServiceException()
12603
          self.isex.read(iprot)
12604
        else:
12605
          iprot.skip(ftype)
12606
      else:
12607
        iprot.skip(ftype)
12608
      iprot.readFieldEnd()
12609
    iprot.readStructEnd()
12610
 
12611
  def write(self, oprot):
12612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12614
      return
12615
    oprot.writeStructBegin('getLatestArrivals_result')
12616
    if self.success is not None:
12617
      oprot.writeFieldBegin('success', TType.LIST, 0)
12618
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 12619
      for iter136 in self.success:
12620
        iter136.write(oprot)
5944 mandeep.dh 12621
      oprot.writeListEnd()
12622
      oprot.writeFieldEnd()
12623
    if self.isex is not None:
12624
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12625
      self.isex.write(oprot)
12626
      oprot.writeFieldEnd()
12627
    oprot.writeFieldStop()
12628
    oprot.writeStructEnd()
12629
 
12630
  def validate(self):
12631
    return
12632
 
12633
 
12634
  def __repr__(self):
12635
    L = ['%s=%r' % (key, value)
12636
      for key, value in self.__dict__.iteritems()]
12637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12638
 
12639
  def __eq__(self, other):
12640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12641
 
12642
  def __ne__(self, other):
12643
    return not (self == other)
12644
 
12645
class getLatestArrivalsCatalogIds_args:
12646
  """
12647
  Attributes:
12648
   - beginIndex
12649
   - totalItems
12650
   - brand
12651
   - categories
12652
  """
12653
 
12654
  thrift_spec = (
12655
    None, # 0
12656
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12657
    (2, TType.I64, 'totalItems', None, None, ), # 2
12658
    (3, TType.STRING, 'brand', None, None, ), # 3
12659
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
12660
  )
12661
 
12662
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
12663
    self.beginIndex = beginIndex
12664
    self.totalItems = totalItems
12665
    self.brand = brand
12666
    self.categories = categories
12667
 
12668
  def read(self, iprot):
12669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12671
      return
12672
    iprot.readStructBegin()
12673
    while True:
12674
      (fname, ftype, fid) = iprot.readFieldBegin()
12675
      if ftype == TType.STOP:
12676
        break
12677
      if fid == 1:
12678
        if ftype == TType.I64:
12679
          self.beginIndex = iprot.readI64();
12680
        else:
12681
          iprot.skip(ftype)
12682
      elif fid == 2:
12683
        if ftype == TType.I64:
12684
          self.totalItems = iprot.readI64();
12685
        else:
12686
          iprot.skip(ftype)
12687
      elif fid == 3:
12688
        if ftype == TType.STRING:
12689
          self.brand = iprot.readString();
12690
        else:
12691
          iprot.skip(ftype)
12692
      elif fid == 4:
12693
        if ftype == TType.LIST:
12694
          self.categories = []
8590 kshitij.so 12695
          (_etype140, _size137) = iprot.readListBegin()
12696
          for _i141 in xrange(_size137):
12697
            _elem142 = iprot.readI64();
12698
            self.categories.append(_elem142)
5944 mandeep.dh 12699
          iprot.readListEnd()
12700
        else:
12701
          iprot.skip(ftype)
12702
      else:
12703
        iprot.skip(ftype)
12704
      iprot.readFieldEnd()
12705
    iprot.readStructEnd()
12706
 
12707
  def write(self, oprot):
12708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12710
      return
12711
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
12712
    if self.beginIndex is not None:
12713
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12714
      oprot.writeI64(self.beginIndex)
12715
      oprot.writeFieldEnd()
12716
    if self.totalItems is not None:
12717
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12718
      oprot.writeI64(self.totalItems)
12719
      oprot.writeFieldEnd()
12720
    if self.brand is not None:
12721
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12722
      oprot.writeString(self.brand)
12723
      oprot.writeFieldEnd()
12724
    if self.categories is not None:
12725
      oprot.writeFieldBegin('categories', TType.LIST, 4)
12726
      oprot.writeListBegin(TType.I64, len(self.categories))
8590 kshitij.so 12727
      for iter143 in self.categories:
12728
        oprot.writeI64(iter143)
5944 mandeep.dh 12729
      oprot.writeListEnd()
12730
      oprot.writeFieldEnd()
12731
    oprot.writeFieldStop()
12732
    oprot.writeStructEnd()
12733
 
12734
  def validate(self):
12735
    return
12736
 
12737
 
12738
  def __repr__(self):
12739
    L = ['%s=%r' % (key, value)
12740
      for key, value in self.__dict__.iteritems()]
12741
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12742
 
12743
  def __eq__(self, other):
12744
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12745
 
12746
  def __ne__(self, other):
12747
    return not (self == other)
12748
 
12749
class getLatestArrivalsCatalogIds_result:
12750
  """
12751
  Attributes:
12752
   - success
12753
   - cex
12754
  """
12755
 
12756
  thrift_spec = (
12757
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12758
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12759
  )
12760
 
12761
  def __init__(self, success=None, cex=None,):
12762
    self.success = success
12763
    self.cex = cex
12764
 
12765
  def read(self, iprot):
12766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12768
      return
12769
    iprot.readStructBegin()
12770
    while True:
12771
      (fname, ftype, fid) = iprot.readFieldBegin()
12772
      if ftype == TType.STOP:
12773
        break
12774
      if fid == 0:
12775
        if ftype == TType.LIST:
12776
          self.success = []
8590 kshitij.so 12777
          (_etype147, _size144) = iprot.readListBegin()
12778
          for _i148 in xrange(_size144):
12779
            _elem149 = iprot.readI64();
12780
            self.success.append(_elem149)
5944 mandeep.dh 12781
          iprot.readListEnd()
12782
        else:
12783
          iprot.skip(ftype)
12784
      elif fid == 1:
12785
        if ftype == TType.STRUCT:
12786
          self.cex = CatalogServiceException()
12787
          self.cex.read(iprot)
12788
        else:
12789
          iprot.skip(ftype)
12790
      else:
12791
        iprot.skip(ftype)
12792
      iprot.readFieldEnd()
12793
    iprot.readStructEnd()
12794
 
12795
  def write(self, oprot):
12796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12798
      return
12799
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
12800
    if self.success is not None:
12801
      oprot.writeFieldBegin('success', TType.LIST, 0)
12802
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 12803
      for iter150 in self.success:
12804
        oprot.writeI64(iter150)
5944 mandeep.dh 12805
      oprot.writeListEnd()
12806
      oprot.writeFieldEnd()
12807
    if self.cex is not None:
12808
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12809
      self.cex.write(oprot)
12810
      oprot.writeFieldEnd()
12811
    oprot.writeFieldStop()
12812
    oprot.writeStructEnd()
12813
 
12814
  def validate(self):
12815
    return
12816
 
12817
 
12818
  def __repr__(self):
12819
    L = ['%s=%r' % (key, value)
12820
      for key, value in self.__dict__.iteritems()]
12821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12822
 
12823
  def __eq__(self, other):
12824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12825
 
12826
  def __ne__(self, other):
12827
    return not (self == other)
12828
 
12829
class getLatestArrivalsCount_args:
12830
 
12831
  thrift_spec = (
12832
  )
12833
 
12834
  def read(self, iprot):
12835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12837
      return
12838
    iprot.readStructBegin()
12839
    while True:
12840
      (fname, ftype, fid) = iprot.readFieldBegin()
12841
      if ftype == TType.STOP:
12842
        break
12843
      else:
12844
        iprot.skip(ftype)
12845
      iprot.readFieldEnd()
12846
    iprot.readStructEnd()
12847
 
12848
  def write(self, oprot):
12849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12851
      return
12852
    oprot.writeStructBegin('getLatestArrivalsCount_args')
12853
    oprot.writeFieldStop()
12854
    oprot.writeStructEnd()
12855
 
12856
  def validate(self):
12857
    return
12858
 
12859
 
12860
  def __repr__(self):
12861
    L = ['%s=%r' % (key, value)
12862
      for key, value in self.__dict__.iteritems()]
12863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12864
 
12865
  def __eq__(self, other):
12866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12867
 
12868
  def __ne__(self, other):
12869
    return not (self == other)
12870
 
12871
class getLatestArrivalsCount_result:
12872
  """
12873
  Attributes:
12874
   - success
12875
   - cex
12876
  """
12877
 
12878
  thrift_spec = (
12879
    (0, TType.I64, 'success', None, None, ), # 0
12880
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12881
  )
12882
 
12883
  def __init__(self, success=None, cex=None,):
12884
    self.success = success
12885
    self.cex = cex
12886
 
12887
  def read(self, iprot):
12888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12890
      return
12891
    iprot.readStructBegin()
12892
    while True:
12893
      (fname, ftype, fid) = iprot.readFieldBegin()
12894
      if ftype == TType.STOP:
12895
        break
12896
      if fid == 0:
12897
        if ftype == TType.I64:
12898
          self.success = iprot.readI64();
12899
        else:
12900
          iprot.skip(ftype)
12901
      elif fid == 1:
12902
        if ftype == TType.STRUCT:
12903
          self.cex = CatalogServiceException()
12904
          self.cex.read(iprot)
12905
        else:
12906
          iprot.skip(ftype)
12907
      else:
12908
        iprot.skip(ftype)
12909
      iprot.readFieldEnd()
12910
    iprot.readStructEnd()
12911
 
12912
  def write(self, oprot):
12913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12915
      return
12916
    oprot.writeStructBegin('getLatestArrivalsCount_result')
12917
    if self.success is not None:
12918
      oprot.writeFieldBegin('success', TType.I64, 0)
12919
      oprot.writeI64(self.success)
12920
      oprot.writeFieldEnd()
12921
    if self.cex is not None:
12922
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12923
      self.cex.write(oprot)
12924
      oprot.writeFieldEnd()
12925
    oprot.writeFieldStop()
12926
    oprot.writeStructEnd()
12927
 
12928
  def validate(self):
12929
    return
12930
 
12931
 
12932
  def __repr__(self):
12933
    L = ['%s=%r' % (key, value)
12934
      for key, value in self.__dict__.iteritems()]
12935
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12936
 
12937
  def __eq__(self, other):
12938
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12939
 
12940
  def __ne__(self, other):
12941
    return not (self == other)
12942
 
12943
class generateNewEntityID_args:
12944
 
12945
  thrift_spec = (
12946
  )
12947
 
12948
  def read(self, iprot):
12949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12951
      return
12952
    iprot.readStructBegin()
12953
    while True:
12954
      (fname, ftype, fid) = iprot.readFieldBegin()
12955
      if ftype == TType.STOP:
12956
        break
12957
      else:
12958
        iprot.skip(ftype)
12959
      iprot.readFieldEnd()
12960
    iprot.readStructEnd()
12961
 
12962
  def write(self, oprot):
12963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12965
      return
12966
    oprot.writeStructBegin('generateNewEntityID_args')
12967
    oprot.writeFieldStop()
12968
    oprot.writeStructEnd()
12969
 
12970
  def validate(self):
12971
    return
12972
 
12973
 
12974
  def __repr__(self):
12975
    L = ['%s=%r' % (key, value)
12976
      for key, value in self.__dict__.iteritems()]
12977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12978
 
12979
  def __eq__(self, other):
12980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12981
 
12982
  def __ne__(self, other):
12983
    return not (self == other)
12984
 
12985
class generateNewEntityID_result:
12986
  """
12987
  Attributes:
12988
   - success
12989
  """
12990
 
12991
  thrift_spec = (
12992
    (0, TType.I64, 'success', None, None, ), # 0
12993
  )
12994
 
12995
  def __init__(self, success=None,):
12996
    self.success = success
12997
 
12998
  def read(self, iprot):
12999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13001
      return
13002
    iprot.readStructBegin()
13003
    while True:
13004
      (fname, ftype, fid) = iprot.readFieldBegin()
13005
      if ftype == TType.STOP:
13006
        break
13007
      if fid == 0:
13008
        if ftype == TType.I64:
13009
          self.success = iprot.readI64();
13010
        else:
13011
          iprot.skip(ftype)
13012
      else:
13013
        iprot.skip(ftype)
13014
      iprot.readFieldEnd()
13015
    iprot.readStructEnd()
13016
 
13017
  def write(self, oprot):
13018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13020
      return
13021
    oprot.writeStructBegin('generateNewEntityID_result')
13022
    if self.success is not None:
13023
      oprot.writeFieldBegin('success', TType.I64, 0)
13024
      oprot.writeI64(self.success)
13025
      oprot.writeFieldEnd()
13026
    oprot.writeFieldStop()
13027
    oprot.writeStructEnd()
13028
 
13029
  def validate(self):
13030
    return
13031
 
13032
 
13033
  def __repr__(self):
13034
    L = ['%s=%r' % (key, value)
13035
      for key, value in self.__dict__.iteritems()]
13036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13037
 
13038
  def __eq__(self, other):
13039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13040
 
13041
  def __ne__(self, other):
13042
    return not (self == other)
13043
 
13044
class addCategory_args:
13045
  """
13046
  Attributes:
13047
   - category
13048
  """
13049
 
13050
  thrift_spec = (
13051
    None, # 0
13052
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
13053
  )
13054
 
13055
  def __init__(self, category=None,):
13056
    self.category = category
13057
 
13058
  def read(self, iprot):
13059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13061
      return
13062
    iprot.readStructBegin()
13063
    while True:
13064
      (fname, ftype, fid) = iprot.readFieldBegin()
13065
      if ftype == TType.STOP:
13066
        break
13067
      if fid == 1:
13068
        if ftype == TType.STRUCT:
13069
          self.category = Category()
13070
          self.category.read(iprot)
13071
        else:
13072
          iprot.skip(ftype)
13073
      else:
13074
        iprot.skip(ftype)
13075
      iprot.readFieldEnd()
13076
    iprot.readStructEnd()
13077
 
13078
  def write(self, oprot):
13079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13081
      return
13082
    oprot.writeStructBegin('addCategory_args')
13083
    if self.category is not None:
13084
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
13085
      self.category.write(oprot)
13086
      oprot.writeFieldEnd()
13087
    oprot.writeFieldStop()
13088
    oprot.writeStructEnd()
13089
 
13090
  def validate(self):
13091
    return
13092
 
13093
 
13094
  def __repr__(self):
13095
    L = ['%s=%r' % (key, value)
13096
      for key, value in self.__dict__.iteritems()]
13097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13098
 
13099
  def __eq__(self, other):
13100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13101
 
13102
  def __ne__(self, other):
13103
    return not (self == other)
13104
 
13105
class addCategory_result:
13106
  """
13107
  Attributes:
13108
   - success
13109
  """
13110
 
13111
  thrift_spec = (
13112
    (0, TType.BOOL, 'success', None, None, ), # 0
13113
  )
13114
 
13115
  def __init__(self, success=None,):
13116
    self.success = success
13117
 
13118
  def read(self, iprot):
13119
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13120
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13121
      return
13122
    iprot.readStructBegin()
13123
    while True:
13124
      (fname, ftype, fid) = iprot.readFieldBegin()
13125
      if ftype == TType.STOP:
13126
        break
13127
      if fid == 0:
13128
        if ftype == TType.BOOL:
13129
          self.success = iprot.readBool();
13130
        else:
13131
          iprot.skip(ftype)
13132
      else:
13133
        iprot.skip(ftype)
13134
      iprot.readFieldEnd()
13135
    iprot.readStructEnd()
13136
 
13137
  def write(self, oprot):
13138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13140
      return
13141
    oprot.writeStructBegin('addCategory_result')
13142
    if self.success is not None:
13143
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13144
      oprot.writeBool(self.success)
13145
      oprot.writeFieldEnd()
13146
    oprot.writeFieldStop()
13147
    oprot.writeStructEnd()
13148
 
13149
  def validate(self):
13150
    return
13151
 
13152
 
13153
  def __repr__(self):
13154
    L = ['%s=%r' % (key, value)
13155
      for key, value in self.__dict__.iteritems()]
13156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13157
 
13158
  def __eq__(self, other):
13159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13160
 
13161
  def __ne__(self, other):
13162
    return not (self == other)
13163
 
13164
class getCategory_args:
13165
  """
13166
  Attributes:
13167
   - id
13168
  """
13169
 
13170
  thrift_spec = (
13171
    None, # 0
13172
    (1, TType.I64, 'id', None, None, ), # 1
13173
  )
13174
 
13175
  def __init__(self, id=None,):
13176
    self.id = id
13177
 
13178
  def read(self, iprot):
13179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13181
      return
13182
    iprot.readStructBegin()
13183
    while True:
13184
      (fname, ftype, fid) = iprot.readFieldBegin()
13185
      if ftype == TType.STOP:
13186
        break
13187
      if fid == 1:
13188
        if ftype == TType.I64:
13189
          self.id = iprot.readI64();
13190
        else:
13191
          iprot.skip(ftype)
13192
      else:
13193
        iprot.skip(ftype)
13194
      iprot.readFieldEnd()
13195
    iprot.readStructEnd()
13196
 
13197
  def write(self, oprot):
13198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13200
      return
13201
    oprot.writeStructBegin('getCategory_args')
13202
    if self.id is not None:
13203
      oprot.writeFieldBegin('id', TType.I64, 1)
13204
      oprot.writeI64(self.id)
13205
      oprot.writeFieldEnd()
13206
    oprot.writeFieldStop()
13207
    oprot.writeStructEnd()
13208
 
13209
  def validate(self):
13210
    return
13211
 
13212
 
13213
  def __repr__(self):
13214
    L = ['%s=%r' % (key, value)
13215
      for key, value in self.__dict__.iteritems()]
13216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13217
 
13218
  def __eq__(self, other):
13219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13220
 
13221
  def __ne__(self, other):
13222
    return not (self == other)
13223
 
13224
class getCategory_result:
13225
  """
13226
  Attributes:
13227
   - success
13228
  """
13229
 
13230
  thrift_spec = (
13231
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
13232
  )
13233
 
13234
  def __init__(self, success=None,):
13235
    self.success = success
13236
 
13237
  def read(self, iprot):
13238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13240
      return
13241
    iprot.readStructBegin()
13242
    while True:
13243
      (fname, ftype, fid) = iprot.readFieldBegin()
13244
      if ftype == TType.STOP:
13245
        break
13246
      if fid == 0:
13247
        if ftype == TType.STRUCT:
13248
          self.success = Category()
13249
          self.success.read(iprot)
13250
        else:
13251
          iprot.skip(ftype)
13252
      else:
13253
        iprot.skip(ftype)
13254
      iprot.readFieldEnd()
13255
    iprot.readStructEnd()
13256
 
13257
  def write(self, oprot):
13258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13260
      return
13261
    oprot.writeStructBegin('getCategory_result')
13262
    if self.success is not None:
13263
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13264
      self.success.write(oprot)
13265
      oprot.writeFieldEnd()
13266
    oprot.writeFieldStop()
13267
    oprot.writeStructEnd()
13268
 
13269
  def validate(self):
13270
    return
13271
 
13272
 
13273
  def __repr__(self):
13274
    L = ['%s=%r' % (key, value)
13275
      for key, value in self.__dict__.iteritems()]
13276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13277
 
13278
  def __eq__(self, other):
13279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13280
 
13281
  def __ne__(self, other):
13282
    return not (self == other)
13283
 
13284
class getAllCategories_args:
13285
 
13286
  thrift_spec = (
13287
  )
13288
 
13289
  def read(self, iprot):
13290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13292
      return
13293
    iprot.readStructBegin()
13294
    while True:
13295
      (fname, ftype, fid) = iprot.readFieldBegin()
13296
      if ftype == TType.STOP:
13297
        break
13298
      else:
13299
        iprot.skip(ftype)
13300
      iprot.readFieldEnd()
13301
    iprot.readStructEnd()
13302
 
13303
  def write(self, oprot):
13304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13306
      return
13307
    oprot.writeStructBegin('getAllCategories_args')
13308
    oprot.writeFieldStop()
13309
    oprot.writeStructEnd()
13310
 
13311
  def validate(self):
13312
    return
13313
 
13314
 
13315
  def __repr__(self):
13316
    L = ['%s=%r' % (key, value)
13317
      for key, value in self.__dict__.iteritems()]
13318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13319
 
13320
  def __eq__(self, other):
13321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13322
 
13323
  def __ne__(self, other):
13324
    return not (self == other)
13325
 
13326
class getAllCategories_result:
13327
  """
13328
  Attributes:
13329
   - success
13330
  """
13331
 
13332
  thrift_spec = (
13333
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
13334
  )
13335
 
13336
  def __init__(self, success=None,):
13337
    self.success = success
13338
 
13339
  def read(self, iprot):
13340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13342
      return
13343
    iprot.readStructBegin()
13344
    while True:
13345
      (fname, ftype, fid) = iprot.readFieldBegin()
13346
      if ftype == TType.STOP:
13347
        break
13348
      if fid == 0:
13349
        if ftype == TType.LIST:
13350
          self.success = []
8590 kshitij.so 13351
          (_etype154, _size151) = iprot.readListBegin()
13352
          for _i155 in xrange(_size151):
13353
            _elem156 = Category()
13354
            _elem156.read(iprot)
13355
            self.success.append(_elem156)
5944 mandeep.dh 13356
          iprot.readListEnd()
13357
        else:
13358
          iprot.skip(ftype)
13359
      else:
13360
        iprot.skip(ftype)
13361
      iprot.readFieldEnd()
13362
    iprot.readStructEnd()
13363
 
13364
  def write(self, oprot):
13365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13367
      return
13368
    oprot.writeStructBegin('getAllCategories_result')
13369
    if self.success is not None:
13370
      oprot.writeFieldBegin('success', TType.LIST, 0)
13371
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 13372
      for iter157 in self.success:
13373
        iter157.write(oprot)
5944 mandeep.dh 13374
      oprot.writeListEnd()
13375
      oprot.writeFieldEnd()
13376
    oprot.writeFieldStop()
13377
    oprot.writeStructEnd()
13378
 
13379
  def validate(self):
13380
    return
13381
 
13382
 
13383
  def __repr__(self):
13384
    L = ['%s=%r' % (key, value)
13385
      for key, value in self.__dict__.iteritems()]
13386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13387
 
13388
  def __eq__(self, other):
13389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13390
 
13391
  def __ne__(self, other):
13392
    return not (self == other)
13393
 
13394
class getAllSimilarItems_args:
13395
  """
13396
  Attributes:
13397
   - itemId
13398
  """
13399
 
13400
  thrift_spec = (
13401
    None, # 0
13402
    (1, TType.I64, 'itemId', None, None, ), # 1
13403
  )
13404
 
13405
  def __init__(self, itemId=None,):
13406
    self.itemId = itemId
13407
 
13408
  def read(self, iprot):
13409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13411
      return
13412
    iprot.readStructBegin()
13413
    while True:
13414
      (fname, ftype, fid) = iprot.readFieldBegin()
13415
      if ftype == TType.STOP:
13416
        break
13417
      if fid == 1:
13418
        if ftype == TType.I64:
13419
          self.itemId = iprot.readI64();
13420
        else:
13421
          iprot.skip(ftype)
13422
      else:
13423
        iprot.skip(ftype)
13424
      iprot.readFieldEnd()
13425
    iprot.readStructEnd()
13426
 
13427
  def write(self, oprot):
13428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13430
      return
13431
    oprot.writeStructBegin('getAllSimilarItems_args')
13432
    if self.itemId is not None:
13433
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13434
      oprot.writeI64(self.itemId)
13435
      oprot.writeFieldEnd()
13436
    oprot.writeFieldStop()
13437
    oprot.writeStructEnd()
13438
 
13439
  def validate(self):
13440
    return
13441
 
13442
 
13443
  def __repr__(self):
13444
    L = ['%s=%r' % (key, value)
13445
      for key, value in self.__dict__.iteritems()]
13446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13447
 
13448
  def __eq__(self, other):
13449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13450
 
13451
  def __ne__(self, other):
13452
    return not (self == other)
13453
 
13454
class getAllSimilarItems_result:
13455
  """
13456
  Attributes:
13457
   - success
13458
  """
13459
 
13460
  thrift_spec = (
13461
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13462
  )
13463
 
13464
  def __init__(self, success=None,):
13465
    self.success = success
13466
 
13467
  def read(self, iprot):
13468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13470
      return
13471
    iprot.readStructBegin()
13472
    while True:
13473
      (fname, ftype, fid) = iprot.readFieldBegin()
13474
      if ftype == TType.STOP:
13475
        break
13476
      if fid == 0:
13477
        if ftype == TType.LIST:
13478
          self.success = []
8590 kshitij.so 13479
          (_etype161, _size158) = iprot.readListBegin()
13480
          for _i162 in xrange(_size158):
13481
            _elem163 = Item()
13482
            _elem163.read(iprot)
13483
            self.success.append(_elem163)
5944 mandeep.dh 13484
          iprot.readListEnd()
13485
        else:
13486
          iprot.skip(ftype)
13487
      else:
13488
        iprot.skip(ftype)
13489
      iprot.readFieldEnd()
13490
    iprot.readStructEnd()
13491
 
13492
  def write(self, oprot):
13493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13495
      return
13496
    oprot.writeStructBegin('getAllSimilarItems_result')
13497
    if self.success is not None:
13498
      oprot.writeFieldBegin('success', TType.LIST, 0)
13499
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 13500
      for iter164 in self.success:
13501
        iter164.write(oprot)
5944 mandeep.dh 13502
      oprot.writeListEnd()
13503
      oprot.writeFieldEnd()
13504
    oprot.writeFieldStop()
13505
    oprot.writeStructEnd()
13506
 
13507
  def validate(self):
13508
    return
13509
 
13510
 
13511
  def __repr__(self):
13512
    L = ['%s=%r' % (key, value)
13513
      for key, value in self.__dict__.iteritems()]
13514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13515
 
13516
  def __eq__(self, other):
13517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13518
 
13519
  def __ne__(self, other):
13520
    return not (self == other)
13521
 
13522
class addSimilarItem_args:
13523
  """
13524
  Attributes:
13525
   - itemId
13526
   - catalogItemId
13527
  """
13528
 
13529
  thrift_spec = (
13530
    None, # 0
13531
    (1, TType.I64, 'itemId', None, None, ), # 1
13532
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
13533
  )
13534
 
13535
  def __init__(self, itemId=None, catalogItemId=None,):
13536
    self.itemId = itemId
13537
    self.catalogItemId = catalogItemId
13538
 
13539
  def read(self, iprot):
13540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13542
      return
13543
    iprot.readStructBegin()
13544
    while True:
13545
      (fname, ftype, fid) = iprot.readFieldBegin()
13546
      if ftype == TType.STOP:
13547
        break
13548
      if fid == 1:
13549
        if ftype == TType.I64:
13550
          self.itemId = iprot.readI64();
13551
        else:
13552
          iprot.skip(ftype)
13553
      elif fid == 2:
13554
        if ftype == TType.I64:
13555
          self.catalogItemId = iprot.readI64();
13556
        else:
13557
          iprot.skip(ftype)
13558
      else:
13559
        iprot.skip(ftype)
13560
      iprot.readFieldEnd()
13561
    iprot.readStructEnd()
13562
 
13563
  def write(self, oprot):
13564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13566
      return
13567
    oprot.writeStructBegin('addSimilarItem_args')
13568
    if self.itemId is not None:
13569
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13570
      oprot.writeI64(self.itemId)
13571
      oprot.writeFieldEnd()
13572
    if self.catalogItemId is not None:
13573
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
13574
      oprot.writeI64(self.catalogItemId)
13575
      oprot.writeFieldEnd()
13576
    oprot.writeFieldStop()
13577
    oprot.writeStructEnd()
13578
 
13579
  def validate(self):
13580
    return
13581
 
13582
 
13583
  def __repr__(self):
13584
    L = ['%s=%r' % (key, value)
13585
      for key, value in self.__dict__.iteritems()]
13586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13587
 
13588
  def __eq__(self, other):
13589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13590
 
13591
  def __ne__(self, other):
13592
    return not (self == other)
13593
 
13594
class addSimilarItem_result:
13595
  """
13596
  Attributes:
13597
   - success
13598
   - cex
13599
  """
13600
 
13601
  thrift_spec = (
13602
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
13603
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13604
  )
13605
 
13606
  def __init__(self, success=None, cex=None,):
13607
    self.success = success
13608
    self.cex = cex
13609
 
13610
  def read(self, iprot):
13611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13613
      return
13614
    iprot.readStructBegin()
13615
    while True:
13616
      (fname, ftype, fid) = iprot.readFieldBegin()
13617
      if ftype == TType.STOP:
13618
        break
13619
      if fid == 0:
13620
        if ftype == TType.STRUCT:
13621
          self.success = Item()
13622
          self.success.read(iprot)
13623
        else:
13624
          iprot.skip(ftype)
13625
      elif fid == 1:
13626
        if ftype == TType.STRUCT:
13627
          self.cex = CatalogServiceException()
13628
          self.cex.read(iprot)
13629
        else:
13630
          iprot.skip(ftype)
13631
      else:
13632
        iprot.skip(ftype)
13633
      iprot.readFieldEnd()
13634
    iprot.readStructEnd()
13635
 
13636
  def write(self, oprot):
13637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13639
      return
13640
    oprot.writeStructBegin('addSimilarItem_result')
13641
    if self.success is not None:
13642
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13643
      self.success.write(oprot)
13644
      oprot.writeFieldEnd()
13645
    if self.cex is not None:
13646
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13647
      self.cex.write(oprot)
13648
      oprot.writeFieldEnd()
13649
    oprot.writeFieldStop()
13650
    oprot.writeStructEnd()
13651
 
13652
  def validate(self):
13653
    return
13654
 
13655
 
13656
  def __repr__(self):
13657
    L = ['%s=%r' % (key, value)
13658
      for key, value in self.__dict__.iteritems()]
13659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13660
 
13661
  def __eq__(self, other):
13662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13663
 
13664
  def __ne__(self, other):
13665
    return not (self == other)
13666
 
6512 kshitij.so 13667
class addTag_args:
13668
  """
13669
  Attributes:
13670
   - displayName
13671
   - itemId
13672
  """
13673
 
13674
  thrift_spec = (
13675
    None, # 0
13676
    (1, TType.STRING, 'displayName', None, None, ), # 1
13677
    (2, TType.I64, 'itemId', None, None, ), # 2
13678
  )
13679
 
13680
  def __init__(self, displayName=None, itemId=None,):
13681
    self.displayName = displayName
13682
    self.itemId = itemId
13683
 
13684
  def read(self, iprot):
13685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13687
      return
13688
    iprot.readStructBegin()
13689
    while True:
13690
      (fname, ftype, fid) = iprot.readFieldBegin()
13691
      if ftype == TType.STOP:
13692
        break
13693
      if fid == 1:
13694
        if ftype == TType.STRING:
13695
          self.displayName = iprot.readString();
13696
        else:
13697
          iprot.skip(ftype)
13698
      elif fid == 2:
13699
        if ftype == TType.I64:
13700
          self.itemId = iprot.readI64();
13701
        else:
13702
          iprot.skip(ftype)
13703
      else:
13704
        iprot.skip(ftype)
13705
      iprot.readFieldEnd()
13706
    iprot.readStructEnd()
13707
 
13708
  def write(self, oprot):
13709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13711
      return
13712
    oprot.writeStructBegin('addTag_args')
13713
    if self.displayName is not None:
13714
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
13715
      oprot.writeString(self.displayName)
13716
      oprot.writeFieldEnd()
13717
    if self.itemId is not None:
13718
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13719
      oprot.writeI64(self.itemId)
13720
      oprot.writeFieldEnd()
13721
    oprot.writeFieldStop()
13722
    oprot.writeStructEnd()
13723
 
13724
  def validate(self):
13725
    return
13726
 
13727
 
13728
  def __repr__(self):
13729
    L = ['%s=%r' % (key, value)
13730
      for key, value in self.__dict__.iteritems()]
13731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13732
 
13733
  def __eq__(self, other):
13734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13735
 
13736
  def __ne__(self, other):
13737
    return not (self == other)
13738
 
13739
class addTag_result:
13740
  """
13741
  Attributes:
13742
   - success
13743
  """
13744
 
13745
  thrift_spec = (
13746
    (0, TType.BOOL, 'success', None, None, ), # 0
13747
  )
13748
 
13749
  def __init__(self, success=None,):
13750
    self.success = success
13751
 
13752
  def read(self, iprot):
13753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13755
      return
13756
    iprot.readStructBegin()
13757
    while True:
13758
      (fname, ftype, fid) = iprot.readFieldBegin()
13759
      if ftype == TType.STOP:
13760
        break
13761
      if fid == 0:
13762
        if ftype == TType.BOOL:
13763
          self.success = iprot.readBool();
13764
        else:
13765
          iprot.skip(ftype)
13766
      else:
13767
        iprot.skip(ftype)
13768
      iprot.readFieldEnd()
13769
    iprot.readStructEnd()
13770
 
13771
  def write(self, oprot):
13772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13774
      return
13775
    oprot.writeStructBegin('addTag_result')
13776
    if self.success is not None:
13777
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13778
      oprot.writeBool(self.success)
13779
      oprot.writeFieldEnd()
13780
    oprot.writeFieldStop()
13781
    oprot.writeStructEnd()
13782
 
13783
  def validate(self):
13784
    return
13785
 
13786
 
13787
  def __repr__(self):
13788
    L = ['%s=%r' % (key, value)
13789
      for key, value in self.__dict__.iteritems()]
13790
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13791
 
13792
  def __eq__(self, other):
13793
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13794
 
13795
  def __ne__(self, other):
13796
    return not (self == other)
13797
 
13798
class deleteEntityTag_args:
13799
  """
13800
  Attributes:
13801
   - displayName
13802
   - itemId
13803
  """
13804
 
13805
  thrift_spec = (
13806
    None, # 0
13807
    (1, TType.STRING, 'displayName', None, None, ), # 1
13808
    (2, TType.I64, 'itemId', None, None, ), # 2
13809
  )
13810
 
13811
  def __init__(self, displayName=None, itemId=None,):
13812
    self.displayName = displayName
13813
    self.itemId = itemId
13814
 
13815
  def read(self, iprot):
13816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13818
      return
13819
    iprot.readStructBegin()
13820
    while True:
13821
      (fname, ftype, fid) = iprot.readFieldBegin()
13822
      if ftype == TType.STOP:
13823
        break
13824
      if fid == 1:
13825
        if ftype == TType.STRING:
13826
          self.displayName = iprot.readString();
13827
        else:
13828
          iprot.skip(ftype)
13829
      elif fid == 2:
13830
        if ftype == TType.I64:
13831
          self.itemId = iprot.readI64();
13832
        else:
13833
          iprot.skip(ftype)
13834
      else:
13835
        iprot.skip(ftype)
13836
      iprot.readFieldEnd()
13837
    iprot.readStructEnd()
13838
 
13839
  def write(self, oprot):
13840
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13841
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13842
      return
13843
    oprot.writeStructBegin('deleteEntityTag_args')
13844
    if self.displayName is not None:
13845
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
13846
      oprot.writeString(self.displayName)
13847
      oprot.writeFieldEnd()
13848
    if self.itemId is not None:
13849
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13850
      oprot.writeI64(self.itemId)
13851
      oprot.writeFieldEnd()
13852
    oprot.writeFieldStop()
13853
    oprot.writeStructEnd()
13854
 
13855
  def validate(self):
13856
    return
13857
 
13858
 
13859
  def __repr__(self):
13860
    L = ['%s=%r' % (key, value)
13861
      for key, value in self.__dict__.iteritems()]
13862
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13863
 
13864
  def __eq__(self, other):
13865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13866
 
13867
  def __ne__(self, other):
13868
    return not (self == other)
13869
 
13870
class deleteEntityTag_result:
13871
  """
13872
  Attributes:
13873
   - success
13874
  """
13875
 
13876
  thrift_spec = (
13877
    (0, TType.BOOL, 'success', None, None, ), # 0
13878
  )
13879
 
13880
  def __init__(self, success=None,):
13881
    self.success = success
13882
 
13883
  def read(self, iprot):
13884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13886
      return
13887
    iprot.readStructBegin()
13888
    while True:
13889
      (fname, ftype, fid) = iprot.readFieldBegin()
13890
      if ftype == TType.STOP:
13891
        break
13892
      if fid == 0:
13893
        if ftype == TType.BOOL:
13894
          self.success = iprot.readBool();
13895
        else:
13896
          iprot.skip(ftype)
13897
      else:
13898
        iprot.skip(ftype)
13899
      iprot.readFieldEnd()
13900
    iprot.readStructEnd()
13901
 
13902
  def write(self, oprot):
13903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13905
      return
13906
    oprot.writeStructBegin('deleteEntityTag_result')
13907
    if self.success is not None:
13908
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13909
      oprot.writeBool(self.success)
13910
      oprot.writeFieldEnd()
13911
    oprot.writeFieldStop()
13912
    oprot.writeStructEnd()
13913
 
13914
  def validate(self):
13915
    return
13916
 
13917
 
13918
  def __repr__(self):
13919
    L = ['%s=%r' % (key, value)
13920
      for key, value in self.__dict__.iteritems()]
13921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13922
 
13923
  def __eq__(self, other):
13924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13925
 
13926
  def __ne__(self, other):
13927
    return not (self == other)
13928
 
13929
class deleteTag_args:
13930
  """
13931
  Attributes:
13932
   - displayName
13933
  """
13934
 
13935
  thrift_spec = (
13936
    None, # 0
13937
    (1, TType.STRING, 'displayName', None, None, ), # 1
13938
  )
13939
 
13940
  def __init__(self, displayName=None,):
13941
    self.displayName = displayName
13942
 
13943
  def read(self, iprot):
13944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13946
      return
13947
    iprot.readStructBegin()
13948
    while True:
13949
      (fname, ftype, fid) = iprot.readFieldBegin()
13950
      if ftype == TType.STOP:
13951
        break
13952
      if fid == 1:
13953
        if ftype == TType.STRING:
13954
          self.displayName = iprot.readString();
13955
        else:
13956
          iprot.skip(ftype)
13957
      else:
13958
        iprot.skip(ftype)
13959
      iprot.readFieldEnd()
13960
    iprot.readStructEnd()
13961
 
13962
  def write(self, oprot):
13963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13965
      return
13966
    oprot.writeStructBegin('deleteTag_args')
13967
    if self.displayName is not None:
13968
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
13969
      oprot.writeString(self.displayName)
13970
      oprot.writeFieldEnd()
13971
    oprot.writeFieldStop()
13972
    oprot.writeStructEnd()
13973
 
13974
  def validate(self):
13975
    return
13976
 
13977
 
13978
  def __repr__(self):
13979
    L = ['%s=%r' % (key, value)
13980
      for key, value in self.__dict__.iteritems()]
13981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13982
 
13983
  def __eq__(self, other):
13984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13985
 
13986
  def __ne__(self, other):
13987
    return not (self == other)
13988
 
13989
class deleteTag_result:
13990
  """
13991
  Attributes:
13992
   - success
13993
  """
13994
 
13995
  thrift_spec = (
13996
    (0, TType.BOOL, 'success', None, None, ), # 0
13997
  )
13998
 
13999
  def __init__(self, success=None,):
14000
    self.success = success
14001
 
14002
  def read(self, iprot):
14003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14005
      return
14006
    iprot.readStructBegin()
14007
    while True:
14008
      (fname, ftype, fid) = iprot.readFieldBegin()
14009
      if ftype == TType.STOP:
14010
        break
14011
      if fid == 0:
14012
        if ftype == TType.BOOL:
14013
          self.success = iprot.readBool();
14014
        else:
14015
          iprot.skip(ftype)
14016
      else:
14017
        iprot.skip(ftype)
14018
      iprot.readFieldEnd()
14019
    iprot.readStructEnd()
14020
 
14021
  def write(self, oprot):
14022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14024
      return
14025
    oprot.writeStructBegin('deleteTag_result')
14026
    if self.success is not None:
14027
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14028
      oprot.writeBool(self.success)
14029
      oprot.writeFieldEnd()
14030
    oprot.writeFieldStop()
14031
    oprot.writeStructEnd()
14032
 
14033
  def validate(self):
14034
    return
14035
 
14036
 
14037
  def __repr__(self):
14038
    L = ['%s=%r' % (key, value)
14039
      for key, value in self.__dict__.iteritems()]
14040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14041
 
14042
  def __eq__(self, other):
14043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14044
 
14045
  def __ne__(self, other):
14046
    return not (self == other)
14047
 
14048
class getAllTags_args:
14049
 
14050
  thrift_spec = (
14051
  )
14052
 
14053
  def read(self, iprot):
14054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14056
      return
14057
    iprot.readStructBegin()
14058
    while True:
14059
      (fname, ftype, fid) = iprot.readFieldBegin()
14060
      if ftype == TType.STOP:
14061
        break
14062
      else:
14063
        iprot.skip(ftype)
14064
      iprot.readFieldEnd()
14065
    iprot.readStructEnd()
14066
 
14067
  def write(self, oprot):
14068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14070
      return
14071
    oprot.writeStructBegin('getAllTags_args')
14072
    oprot.writeFieldStop()
14073
    oprot.writeStructEnd()
14074
 
14075
  def validate(self):
14076
    return
14077
 
14078
 
14079
  def __repr__(self):
14080
    L = ['%s=%r' % (key, value)
14081
      for key, value in self.__dict__.iteritems()]
14082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14083
 
14084
  def __eq__(self, other):
14085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14086
 
14087
  def __ne__(self, other):
14088
    return not (self == other)
14089
 
14090
class getAllTags_result:
14091
  """
14092
  Attributes:
14093
   - success
14094
  """
14095
 
14096
  thrift_spec = (
14097
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14098
  )
14099
 
14100
  def __init__(self, success=None,):
14101
    self.success = success
14102
 
14103
  def read(self, iprot):
14104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14106
      return
14107
    iprot.readStructBegin()
14108
    while True:
14109
      (fname, ftype, fid) = iprot.readFieldBegin()
14110
      if ftype == TType.STOP:
14111
        break
14112
      if fid == 0:
14113
        if ftype == TType.LIST:
14114
          self.success = []
8590 kshitij.so 14115
          (_etype168, _size165) = iprot.readListBegin()
14116
          for _i169 in xrange(_size165):
14117
            _elem170 = iprot.readString();
14118
            self.success.append(_elem170)
6512 kshitij.so 14119
          iprot.readListEnd()
14120
        else:
14121
          iprot.skip(ftype)
14122
      else:
14123
        iprot.skip(ftype)
14124
      iprot.readFieldEnd()
14125
    iprot.readStructEnd()
14126
 
14127
  def write(self, oprot):
14128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14130
      return
14131
    oprot.writeStructBegin('getAllTags_result')
14132
    if self.success is not None:
14133
      oprot.writeFieldBegin('success', TType.LIST, 0)
14134
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 14135
      for iter171 in self.success:
14136
        oprot.writeString(iter171)
6512 kshitij.so 14137
      oprot.writeListEnd()
14138
      oprot.writeFieldEnd()
14139
    oprot.writeFieldStop()
14140
    oprot.writeStructEnd()
14141
 
14142
  def validate(self):
14143
    return
14144
 
14145
 
14146
  def __repr__(self):
14147
    L = ['%s=%r' % (key, value)
14148
      for key, value in self.__dict__.iteritems()]
14149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14150
 
14151
  def __eq__(self, other):
14152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14153
 
14154
  def __ne__(self, other):
14155
    return not (self == other)
14156
 
14157
class getAllEntitiesByTagName_args:
14158
  """
14159
  Attributes:
14160
   - displayName
14161
  """
14162
 
14163
  thrift_spec = (
14164
    None, # 0
14165
    (1, TType.STRING, 'displayName', None, None, ), # 1
14166
  )
14167
 
14168
  def __init__(self, displayName=None,):
14169
    self.displayName = displayName
14170
 
14171
  def read(self, iprot):
14172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14174
      return
14175
    iprot.readStructBegin()
14176
    while True:
14177
      (fname, ftype, fid) = iprot.readFieldBegin()
14178
      if ftype == TType.STOP:
14179
        break
14180
      if fid == 1:
14181
        if ftype == TType.STRING:
14182
          self.displayName = iprot.readString();
14183
        else:
14184
          iprot.skip(ftype)
14185
      else:
14186
        iprot.skip(ftype)
14187
      iprot.readFieldEnd()
14188
    iprot.readStructEnd()
14189
 
14190
  def write(self, oprot):
14191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14193
      return
14194
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
14195
    if self.displayName is not None:
14196
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14197
      oprot.writeString(self.displayName)
14198
      oprot.writeFieldEnd()
14199
    oprot.writeFieldStop()
14200
    oprot.writeStructEnd()
14201
 
14202
  def validate(self):
14203
    return
14204
 
14205
 
14206
  def __repr__(self):
14207
    L = ['%s=%r' % (key, value)
14208
      for key, value in self.__dict__.iteritems()]
14209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14210
 
14211
  def __eq__(self, other):
14212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14213
 
14214
  def __ne__(self, other):
14215
    return not (self == other)
14216
 
14217
class getAllEntitiesByTagName_result:
14218
  """
14219
  Attributes:
14220
   - success
14221
  """
14222
 
14223
  thrift_spec = (
14224
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
14225
  )
14226
 
14227
  def __init__(self, success=None,):
14228
    self.success = success
14229
 
14230
  def read(self, iprot):
14231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14233
      return
14234
    iprot.readStructBegin()
14235
    while True:
14236
      (fname, ftype, fid) = iprot.readFieldBegin()
14237
      if ftype == TType.STOP:
14238
        break
14239
      if fid == 0:
14240
        if ftype == TType.LIST:
14241
          self.success = []
8590 kshitij.so 14242
          (_etype175, _size172) = iprot.readListBegin()
14243
          for _i176 in xrange(_size172):
14244
            _elem177 = iprot.readI64();
14245
            self.success.append(_elem177)
6512 kshitij.so 14246
          iprot.readListEnd()
14247
        else:
14248
          iprot.skip(ftype)
14249
      else:
14250
        iprot.skip(ftype)
14251
      iprot.readFieldEnd()
14252
    iprot.readStructEnd()
14253
 
14254
  def write(self, oprot):
14255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14257
      return
14258
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
14259
    if self.success is not None:
14260
      oprot.writeFieldBegin('success', TType.LIST, 0)
14261
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 14262
      for iter178 in self.success:
14263
        oprot.writeI64(iter178)
6512 kshitij.so 14264
      oprot.writeListEnd()
14265
      oprot.writeFieldEnd()
14266
    oprot.writeFieldStop()
14267
    oprot.writeStructEnd()
14268
 
14269
  def validate(self):
14270
    return
14271
 
14272
 
14273
  def __repr__(self):
14274
    L = ['%s=%r' % (key, value)
14275
      for key, value in self.__dict__.iteritems()]
14276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14277
 
14278
  def __eq__(self, other):
14279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14280
 
14281
  def __ne__(self, other):
14282
    return not (self == other)
14283
 
6845 amit.gupta 14284
class getAllEntityTags_args:
14285
 
14286
  thrift_spec = (
14287
  )
14288
 
14289
  def read(self, iprot):
14290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14292
      return
14293
    iprot.readStructBegin()
14294
    while True:
14295
      (fname, ftype, fid) = iprot.readFieldBegin()
14296
      if ftype == TType.STOP:
14297
        break
14298
      else:
14299
        iprot.skip(ftype)
14300
      iprot.readFieldEnd()
14301
    iprot.readStructEnd()
14302
 
14303
  def write(self, oprot):
14304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14306
      return
14307
    oprot.writeStructBegin('getAllEntityTags_args')
14308
    oprot.writeFieldStop()
14309
    oprot.writeStructEnd()
14310
 
14311
  def validate(self):
14312
    return
14313
 
14314
 
14315
  def __repr__(self):
14316
    L = ['%s=%r' % (key, value)
14317
      for key, value in self.__dict__.iteritems()]
14318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14319
 
14320
  def __eq__(self, other):
14321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14322
 
14323
  def __ne__(self, other):
14324
    return not (self == other)
14325
 
14326
class getAllEntityTags_result:
14327
  """
14328
  Attributes:
14329
   - success
14330
  """
14331
 
14332
  thrift_spec = (
14333
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
14334
  )
14335
 
14336
  def __init__(self, success=None,):
14337
    self.success = success
14338
 
14339
  def read(self, iprot):
14340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14342
      return
14343
    iprot.readStructBegin()
14344
    while True:
14345
      (fname, ftype, fid) = iprot.readFieldBegin()
14346
      if ftype == TType.STOP:
14347
        break
14348
      if fid == 0:
14349
        if ftype == TType.MAP:
14350
          self.success = {}
8590 kshitij.so 14351
          (_ktype180, _vtype181, _size179 ) = iprot.readMapBegin() 
14352
          for _i183 in xrange(_size179):
14353
            _key184 = iprot.readI64();
14354
            _val185 = []
14355
            (_etype189, _size186) = iprot.readListBegin()
14356
            for _i190 in xrange(_size186):
14357
              _elem191 = iprot.readString();
14358
              _val185.append(_elem191)
6845 amit.gupta 14359
            iprot.readListEnd()
8590 kshitij.so 14360
            self.success[_key184] = _val185
6845 amit.gupta 14361
          iprot.readMapEnd()
14362
        else:
14363
          iprot.skip(ftype)
14364
      else:
14365
        iprot.skip(ftype)
14366
      iprot.readFieldEnd()
14367
    iprot.readStructEnd()
14368
 
14369
  def write(self, oprot):
14370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14372
      return
14373
    oprot.writeStructBegin('getAllEntityTags_result')
14374
    if self.success is not None:
14375
      oprot.writeFieldBegin('success', TType.MAP, 0)
14376
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
8590 kshitij.so 14377
      for kiter192,viter193 in self.success.items():
14378
        oprot.writeI64(kiter192)
14379
        oprot.writeListBegin(TType.STRING, len(viter193))
14380
        for iter194 in viter193:
14381
          oprot.writeString(iter194)
6845 amit.gupta 14382
        oprot.writeListEnd()
14383
      oprot.writeMapEnd()
14384
      oprot.writeFieldEnd()
14385
    oprot.writeFieldStop()
14386
    oprot.writeStructEnd()
14387
 
14388
  def validate(self):
14389
    return
14390
 
14391
 
14392
  def __repr__(self):
14393
    L = ['%s=%r' % (key, value)
14394
      for key, value in self.__dict__.iteritems()]
14395
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14396
 
14397
  def __eq__(self, other):
14398
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14399
 
14400
  def __ne__(self, other):
14401
    return not (self == other)
14402
 
6850 kshitij.so 14403
class addBanner_args:
14404
  """
14405
  Attributes:
8590 kshitij.so 14406
   - bannerCongregate
6850 kshitij.so 14407
  """
14408
 
14409
  thrift_spec = (
14410
    None, # 0
8590 kshitij.so 14411
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 14412
  )
14413
 
8590 kshitij.so 14414
  def __init__(self, bannerCongregate=None,):
14415
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 14416
 
14417
  def read(self, iprot):
14418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14420
      return
14421
    iprot.readStructBegin()
14422
    while True:
14423
      (fname, ftype, fid) = iprot.readFieldBegin()
14424
      if ftype == TType.STOP:
14425
        break
14426
      if fid == 1:
8579 kshitij.so 14427
        if ftype == TType.STRUCT:
8590 kshitij.so 14428
          self.bannerCongregate = BannerCongregate()
14429
          self.bannerCongregate.read(iprot)
6850 kshitij.so 14430
        else:
14431
          iprot.skip(ftype)
8579 kshitij.so 14432
      else:
14433
        iprot.skip(ftype)
14434
      iprot.readFieldEnd()
14435
    iprot.readStructEnd()
14436
 
14437
  def write(self, oprot):
14438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14440
      return
14441
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 14442
    if self.bannerCongregate is not None:
14443
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
14444
      self.bannerCongregate.write(oprot)
8579 kshitij.so 14445
      oprot.writeFieldEnd()
14446
    oprot.writeFieldStop()
14447
    oprot.writeStructEnd()
14448
 
14449
  def validate(self):
14450
    return
14451
 
14452
 
14453
  def __repr__(self):
14454
    L = ['%s=%r' % (key, value)
14455
      for key, value in self.__dict__.iteritems()]
14456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14457
 
14458
  def __eq__(self, other):
14459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14460
 
14461
  def __ne__(self, other):
14462
    return not (self == other)
14463
 
14464
class addBanner_result:
10097 kshitij.so 14465
  """
14466
  Attributes:
14467
   - success
14468
  """
8579 kshitij.so 14469
 
14470
  thrift_spec = (
10097 kshitij.so 14471
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 14472
  )
14473
 
10097 kshitij.so 14474
  def __init__(self, success=None,):
14475
    self.success = success
14476
 
8579 kshitij.so 14477
  def read(self, iprot):
14478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14480
      return
14481
    iprot.readStructBegin()
14482
    while True:
14483
      (fname, ftype, fid) = iprot.readFieldBegin()
14484
      if ftype == TType.STOP:
14485
        break
10097 kshitij.so 14486
      if fid == 0:
14487
        if ftype == TType.BOOL:
14488
          self.success = iprot.readBool();
14489
        else:
14490
          iprot.skip(ftype)
8579 kshitij.so 14491
      else:
14492
        iprot.skip(ftype)
14493
      iprot.readFieldEnd()
14494
    iprot.readStructEnd()
14495
 
14496
  def write(self, oprot):
14497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14499
      return
14500
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 14501
    if self.success is not None:
14502
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14503
      oprot.writeBool(self.success)
14504
      oprot.writeFieldEnd()
8579 kshitij.so 14505
    oprot.writeFieldStop()
14506
    oprot.writeStructEnd()
14507
 
14508
  def validate(self):
14509
    return
14510
 
14511
 
14512
  def __repr__(self):
14513
    L = ['%s=%r' % (key, value)
14514
      for key, value in self.__dict__.iteritems()]
14515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14516
 
14517
  def __eq__(self, other):
14518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14519
 
14520
  def __ne__(self, other):
14521
    return not (self == other)
14522
 
14523
class updateBanner_args:
14524
  """
14525
  Attributes:
14526
   - banner
14527
  """
14528
 
14529
  thrift_spec = (
14530
    None, # 0
14531
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
14532
  )
14533
 
14534
  def __init__(self, banner=None,):
14535
    self.banner = banner
14536
 
14537
  def read(self, iprot):
14538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14540
      return
14541
    iprot.readStructBegin()
14542
    while True:
14543
      (fname, ftype, fid) = iprot.readFieldBegin()
14544
      if ftype == TType.STOP:
14545
        break
14546
      if fid == 1:
14547
        if ftype == TType.STRUCT:
14548
          self.banner = Banner()
14549
          self.banner.read(iprot)
6850 kshitij.so 14550
        else:
14551
          iprot.skip(ftype)
14552
      else:
14553
        iprot.skip(ftype)
14554
      iprot.readFieldEnd()
14555
    iprot.readStructEnd()
14556
 
14557
  def write(self, oprot):
14558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14560
      return
8579 kshitij.so 14561
    oprot.writeStructBegin('updateBanner_args')
14562
    if self.banner is not None:
14563
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
14564
      self.banner.write(oprot)
6850 kshitij.so 14565
      oprot.writeFieldEnd()
14566
    oprot.writeFieldStop()
14567
    oprot.writeStructEnd()
14568
 
14569
  def validate(self):
14570
    return
14571
 
14572
 
14573
  def __repr__(self):
14574
    L = ['%s=%r' % (key, value)
14575
      for key, value in self.__dict__.iteritems()]
14576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14577
 
14578
  def __eq__(self, other):
14579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14580
 
14581
  def __ne__(self, other):
14582
    return not (self == other)
14583
 
8579 kshitij.so 14584
class updateBanner_result:
6850 kshitij.so 14585
  """
14586
  Attributes:
14587
   - success
14588
  """
14589
 
14590
  thrift_spec = (
14591
    (0, TType.BOOL, 'success', None, None, ), # 0
14592
  )
14593
 
14594
  def __init__(self, success=None,):
14595
    self.success = success
14596
 
14597
  def read(self, iprot):
14598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14600
      return
14601
    iprot.readStructBegin()
14602
    while True:
14603
      (fname, ftype, fid) = iprot.readFieldBegin()
14604
      if ftype == TType.STOP:
14605
        break
14606
      if fid == 0:
14607
        if ftype == TType.BOOL:
14608
          self.success = iprot.readBool();
14609
        else:
14610
          iprot.skip(ftype)
14611
      else:
14612
        iprot.skip(ftype)
14613
      iprot.readFieldEnd()
14614
    iprot.readStructEnd()
14615
 
14616
  def write(self, oprot):
14617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14619
      return
8579 kshitij.so 14620
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 14621
    if self.success is not None:
14622
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14623
      oprot.writeBool(self.success)
14624
      oprot.writeFieldEnd()
14625
    oprot.writeFieldStop()
14626
    oprot.writeStructEnd()
14627
 
14628
  def validate(self):
14629
    return
14630
 
14631
 
14632
  def __repr__(self):
14633
    L = ['%s=%r' % (key, value)
14634
      for key, value in self.__dict__.iteritems()]
14635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14636
 
14637
  def __eq__(self, other):
14638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14639
 
14640
  def __ne__(self, other):
14641
    return not (self == other)
14642
 
14643
class getAllBanners_args:
14644
 
14645
  thrift_spec = (
14646
  )
14647
 
14648
  def read(self, iprot):
14649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14651
      return
14652
    iprot.readStructBegin()
14653
    while True:
14654
      (fname, ftype, fid) = iprot.readFieldBegin()
14655
      if ftype == TType.STOP:
14656
        break
14657
      else:
14658
        iprot.skip(ftype)
14659
      iprot.readFieldEnd()
14660
    iprot.readStructEnd()
14661
 
14662
  def write(self, oprot):
14663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14665
      return
14666
    oprot.writeStructBegin('getAllBanners_args')
14667
    oprot.writeFieldStop()
14668
    oprot.writeStructEnd()
14669
 
14670
  def validate(self):
14671
    return
14672
 
14673
 
14674
  def __repr__(self):
14675
    L = ['%s=%r' % (key, value)
14676
      for key, value in self.__dict__.iteritems()]
14677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14678
 
14679
  def __eq__(self, other):
14680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14681
 
14682
  def __ne__(self, other):
14683
    return not (self == other)
14684
 
14685
class getAllBanners_result:
14686
  """
14687
  Attributes:
14688
   - success
14689
  """
14690
 
14691
  thrift_spec = (
8579 kshitij.so 14692
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 14693
  )
14694
 
14695
  def __init__(self, success=None,):
14696
    self.success = success
14697
 
14698
  def read(self, iprot):
14699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14701
      return
14702
    iprot.readStructBegin()
14703
    while True:
14704
      (fname, ftype, fid) = iprot.readFieldBegin()
14705
      if ftype == TType.STOP:
14706
        break
14707
      if fid == 0:
14708
        if ftype == TType.LIST:
14709
          self.success = []
8590 kshitij.so 14710
          (_etype198, _size195) = iprot.readListBegin()
14711
          for _i199 in xrange(_size195):
14712
            _elem200 = Banner()
14713
            _elem200.read(iprot)
14714
            self.success.append(_elem200)
6850 kshitij.so 14715
          iprot.readListEnd()
14716
        else:
14717
          iprot.skip(ftype)
14718
      else:
14719
        iprot.skip(ftype)
14720
      iprot.readFieldEnd()
14721
    iprot.readStructEnd()
14722
 
14723
  def write(self, oprot):
14724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14726
      return
14727
    oprot.writeStructBegin('getAllBanners_result')
14728
    if self.success is not None:
14729
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 14730
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14731
      for iter201 in self.success:
14732
        iter201.write(oprot)
6850 kshitij.so 14733
      oprot.writeListEnd()
14734
      oprot.writeFieldEnd()
14735
    oprot.writeFieldStop()
14736
    oprot.writeStructEnd()
14737
 
14738
  def validate(self):
14739
    return
14740
 
14741
 
14742
  def __repr__(self):
14743
    L = ['%s=%r' % (key, value)
14744
      for key, value in self.__dict__.iteritems()]
14745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14746
 
14747
  def __eq__(self, other):
14748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14749
 
14750
  def __ne__(self, other):
14751
    return not (self == other)
14752
 
14753
class deleteBanner_args:
14754
  """
14755
  Attributes:
14756
   - bannerName
9155 kshitij.so 14757
   - bannerType
6850 kshitij.so 14758
  """
14759
 
14760
  thrift_spec = (
14761
    None, # 0
14762
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 14763
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 14764
  )
14765
 
9155 kshitij.so 14766
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 14767
    self.bannerName = bannerName
9155 kshitij.so 14768
    self.bannerType = bannerType
6850 kshitij.so 14769
 
14770
  def read(self, iprot):
14771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14773
      return
14774
    iprot.readStructBegin()
14775
    while True:
14776
      (fname, ftype, fid) = iprot.readFieldBegin()
14777
      if ftype == TType.STOP:
14778
        break
14779
      if fid == 1:
14780
        if ftype == TType.STRING:
14781
          self.bannerName = iprot.readString();
14782
        else:
14783
          iprot.skip(ftype)
9155 kshitij.so 14784
      elif fid == 2:
14785
        if ftype == TType.I32:
14786
          self.bannerType = iprot.readI32();
14787
        else:
14788
          iprot.skip(ftype)
6850 kshitij.so 14789
      else:
14790
        iprot.skip(ftype)
14791
      iprot.readFieldEnd()
14792
    iprot.readStructEnd()
14793
 
14794
  def write(self, oprot):
14795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14797
      return
14798
    oprot.writeStructBegin('deleteBanner_args')
14799
    if self.bannerName is not None:
14800
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14801
      oprot.writeString(self.bannerName)
14802
      oprot.writeFieldEnd()
9155 kshitij.so 14803
    if self.bannerType is not None:
14804
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
14805
      oprot.writeI32(self.bannerType)
14806
      oprot.writeFieldEnd()
6850 kshitij.so 14807
    oprot.writeFieldStop()
14808
    oprot.writeStructEnd()
14809
 
14810
  def validate(self):
14811
    return
14812
 
14813
 
14814
  def __repr__(self):
14815
    L = ['%s=%r' % (key, value)
14816
      for key, value in self.__dict__.iteritems()]
14817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14818
 
14819
  def __eq__(self, other):
14820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14821
 
14822
  def __ne__(self, other):
14823
    return not (self == other)
14824
 
14825
class deleteBanner_result:
14826
  """
14827
  Attributes:
14828
   - success
14829
  """
14830
 
14831
  thrift_spec = (
14832
    (0, TType.BOOL, 'success', None, None, ), # 0
14833
  )
14834
 
14835
  def __init__(self, success=None,):
14836
    self.success = success
14837
 
14838
  def read(self, iprot):
14839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14841
      return
14842
    iprot.readStructBegin()
14843
    while True:
14844
      (fname, ftype, fid) = iprot.readFieldBegin()
14845
      if ftype == TType.STOP:
14846
        break
14847
      if fid == 0:
14848
        if ftype == TType.BOOL:
14849
          self.success = iprot.readBool();
14850
        else:
14851
          iprot.skip(ftype)
14852
      else:
14853
        iprot.skip(ftype)
14854
      iprot.readFieldEnd()
14855
    iprot.readStructEnd()
14856
 
14857
  def write(self, oprot):
14858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14860
      return
14861
    oprot.writeStructBegin('deleteBanner_result')
14862
    if self.success is not None:
14863
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14864
      oprot.writeBool(self.success)
14865
      oprot.writeFieldEnd()
14866
    oprot.writeFieldStop()
14867
    oprot.writeStructEnd()
14868
 
14869
  def validate(self):
14870
    return
14871
 
14872
 
14873
  def __repr__(self):
14874
    L = ['%s=%r' % (key, value)
14875
      for key, value in self.__dict__.iteritems()]
14876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14877
 
14878
  def __eq__(self, other):
14879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14880
 
14881
  def __ne__(self, other):
14882
    return not (self == other)
14883
 
14884
class getBannerDetails_args:
14885
  """
14886
  Attributes:
14887
   - bannerName
9155 kshitij.so 14888
   - bannerType
6850 kshitij.so 14889
  """
14890
 
14891
  thrift_spec = (
14892
    None, # 0
14893
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 14894
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 14895
  )
14896
 
9155 kshitij.so 14897
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 14898
    self.bannerName = bannerName
9155 kshitij.so 14899
    self.bannerType = bannerType
6850 kshitij.so 14900
 
14901
  def read(self, iprot):
14902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14904
      return
14905
    iprot.readStructBegin()
14906
    while True:
14907
      (fname, ftype, fid) = iprot.readFieldBegin()
14908
      if ftype == TType.STOP:
14909
        break
14910
      if fid == 1:
14911
        if ftype == TType.STRING:
14912
          self.bannerName = iprot.readString();
14913
        else:
14914
          iprot.skip(ftype)
9155 kshitij.so 14915
      elif fid == 2:
14916
        if ftype == TType.I32:
14917
          self.bannerType = iprot.readI32();
14918
        else:
14919
          iprot.skip(ftype)
6850 kshitij.so 14920
      else:
14921
        iprot.skip(ftype)
14922
      iprot.readFieldEnd()
14923
    iprot.readStructEnd()
14924
 
14925
  def write(self, oprot):
14926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14928
      return
14929
    oprot.writeStructBegin('getBannerDetails_args')
14930
    if self.bannerName is not None:
14931
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14932
      oprot.writeString(self.bannerName)
14933
      oprot.writeFieldEnd()
9155 kshitij.so 14934
    if self.bannerType is not None:
14935
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
14936
      oprot.writeI32(self.bannerType)
14937
      oprot.writeFieldEnd()
6850 kshitij.so 14938
    oprot.writeFieldStop()
14939
    oprot.writeStructEnd()
14940
 
14941
  def validate(self):
14942
    return
14943
 
14944
 
14945
  def __repr__(self):
14946
    L = ['%s=%r' % (key, value)
14947
      for key, value in self.__dict__.iteritems()]
14948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14949
 
14950
  def __eq__(self, other):
14951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14952
 
14953
  def __ne__(self, other):
14954
    return not (self == other)
14955
 
14956
class getBannerDetails_result:
14957
  """
14958
  Attributes:
14959
   - success
14960
  """
14961
 
14962
  thrift_spec = (
14963
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
14964
  )
14965
 
14966
  def __init__(self, success=None,):
14967
    self.success = success
14968
 
14969
  def read(self, iprot):
14970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14972
      return
14973
    iprot.readStructBegin()
14974
    while True:
14975
      (fname, ftype, fid) = iprot.readFieldBegin()
14976
      if ftype == TType.STOP:
14977
        break
14978
      if fid == 0:
14979
        if ftype == TType.STRUCT:
14980
          self.success = Banner()
14981
          self.success.read(iprot)
14982
        else:
14983
          iprot.skip(ftype)
14984
      else:
14985
        iprot.skip(ftype)
14986
      iprot.readFieldEnd()
14987
    iprot.readStructEnd()
14988
 
14989
  def write(self, oprot):
14990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14992
      return
14993
    oprot.writeStructBegin('getBannerDetails_result')
14994
    if self.success is not None:
14995
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14996
      self.success.write(oprot)
14997
      oprot.writeFieldEnd()
14998
    oprot.writeFieldStop()
14999
    oprot.writeStructEnd()
15000
 
15001
  def validate(self):
15002
    return
15003
 
15004
 
15005
  def __repr__(self):
15006
    L = ['%s=%r' % (key, value)
15007
      for key, value in self.__dict__.iteritems()]
15008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15009
 
15010
  def __eq__(self, other):
15011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15012
 
15013
  def __ne__(self, other):
15014
    return not (self == other)
15015
 
15016
class getActiveBanners_args:
15017
 
15018
  thrift_spec = (
15019
  )
15020
 
15021
  def read(self, iprot):
15022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15024
      return
15025
    iprot.readStructBegin()
15026
    while True:
15027
      (fname, ftype, fid) = iprot.readFieldBegin()
15028
      if ftype == TType.STOP:
15029
        break
15030
      else:
15031
        iprot.skip(ftype)
15032
      iprot.readFieldEnd()
15033
    iprot.readStructEnd()
15034
 
15035
  def write(self, oprot):
15036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15038
      return
15039
    oprot.writeStructBegin('getActiveBanners_args')
15040
    oprot.writeFieldStop()
15041
    oprot.writeStructEnd()
15042
 
15043
  def validate(self):
15044
    return
15045
 
15046
 
15047
  def __repr__(self):
15048
    L = ['%s=%r' % (key, value)
15049
      for key, value in self.__dict__.iteritems()]
15050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15051
 
15052
  def __eq__(self, other):
15053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15054
 
15055
  def __ne__(self, other):
15056
    return not (self == other)
15057
 
15058
class getActiveBanners_result:
15059
  """
15060
  Attributes:
15061
   - success
15062
  """
15063
 
15064
  thrift_spec = (
8579 kshitij.so 15065
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 15066
  )
15067
 
15068
  def __init__(self, success=None,):
15069
    self.success = success
15070
 
15071
  def read(self, iprot):
15072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15074
      return
15075
    iprot.readStructBegin()
15076
    while True:
15077
      (fname, ftype, fid) = iprot.readFieldBegin()
15078
      if ftype == TType.STOP:
15079
        break
15080
      if fid == 0:
8579 kshitij.so 15081
        if ftype == TType.MAP:
15082
          self.success = {}
8590 kshitij.so 15083
          (_ktype203, _vtype204, _size202 ) = iprot.readMapBegin() 
15084
          for _i206 in xrange(_size202):
15085
            _key207 = iprot.readString();
15086
            _val208 = []
15087
            (_etype212, _size209) = iprot.readListBegin()
15088
            for _i213 in xrange(_size209):
15089
              _elem214 = Banner()
15090
              _elem214.read(iprot)
15091
              _val208.append(_elem214)
8579 kshitij.so 15092
            iprot.readListEnd()
8590 kshitij.so 15093
            self.success[_key207] = _val208
8579 kshitij.so 15094
          iprot.readMapEnd()
6850 kshitij.so 15095
        else:
15096
          iprot.skip(ftype)
15097
      else:
15098
        iprot.skip(ftype)
15099
      iprot.readFieldEnd()
15100
    iprot.readStructEnd()
15101
 
15102
  def write(self, oprot):
15103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15105
      return
15106
    oprot.writeStructBegin('getActiveBanners_result')
15107
    if self.success is not None:
8579 kshitij.so 15108
      oprot.writeFieldBegin('success', TType.MAP, 0)
15109
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
8590 kshitij.so 15110
      for kiter215,viter216 in self.success.items():
15111
        oprot.writeString(kiter215)
15112
        oprot.writeListBegin(TType.STRUCT, len(viter216))
15113
        for iter217 in viter216:
15114
          iter217.write(oprot)
8579 kshitij.so 15115
        oprot.writeListEnd()
15116
      oprot.writeMapEnd()
6850 kshitij.so 15117
      oprot.writeFieldEnd()
15118
    oprot.writeFieldStop()
15119
    oprot.writeStructEnd()
15120
 
15121
  def validate(self):
15122
    return
15123
 
15124
 
15125
  def __repr__(self):
15126
    L = ['%s=%r' % (key, value)
15127
      for key, value in self.__dict__.iteritems()]
15128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15129
 
15130
  def __eq__(self, other):
15131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15132
 
15133
  def __ne__(self, other):
15134
    return not (self == other)
15135
 
6849 kshitij.so 15136
class addBannerMap_args:
15137
  """
15138
  Attributes:
8579 kshitij.so 15139
   - bannerMaps
6849 kshitij.so 15140
  """
15141
 
15142
  thrift_spec = (
15143
    None, # 0
8579 kshitij.so 15144
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 15145
  )
15146
 
8579 kshitij.so 15147
  def __init__(self, bannerMaps=None,):
15148
    self.bannerMaps = bannerMaps
6849 kshitij.so 15149
 
15150
  def read(self, iprot):
15151
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15152
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15153
      return
15154
    iprot.readStructBegin()
15155
    while True:
15156
      (fname, ftype, fid) = iprot.readFieldBegin()
15157
      if ftype == TType.STOP:
15158
        break
15159
      if fid == 1:
8579 kshitij.so 15160
        if ftype == TType.LIST:
15161
          self.bannerMaps = []
8590 kshitij.so 15162
          (_etype221, _size218) = iprot.readListBegin()
15163
          for _i222 in xrange(_size218):
15164
            _elem223 = BannerMap()
15165
            _elem223.read(iprot)
15166
            self.bannerMaps.append(_elem223)
8579 kshitij.so 15167
          iprot.readListEnd()
6849 kshitij.so 15168
        else:
15169
          iprot.skip(ftype)
8579 kshitij.so 15170
      else:
15171
        iprot.skip(ftype)
15172
      iprot.readFieldEnd()
15173
    iprot.readStructEnd()
15174
 
15175
  def write(self, oprot):
15176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15178
      return
15179
    oprot.writeStructBegin('addBannerMap_args')
15180
    if self.bannerMaps is not None:
15181
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
15182
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
8590 kshitij.so 15183
      for iter224 in self.bannerMaps:
15184
        iter224.write(oprot)
8579 kshitij.so 15185
      oprot.writeListEnd()
15186
      oprot.writeFieldEnd()
15187
    oprot.writeFieldStop()
15188
    oprot.writeStructEnd()
15189
 
15190
  def validate(self):
15191
    return
15192
 
15193
 
15194
  def __repr__(self):
15195
    L = ['%s=%r' % (key, value)
15196
      for key, value in self.__dict__.iteritems()]
15197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15198
 
15199
  def __eq__(self, other):
15200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15201
 
15202
  def __ne__(self, other):
15203
    return not (self == other)
15204
 
15205
class addBannerMap_result:
15206
  """
15207
  Attributes:
15208
   - success
15209
  """
15210
 
15211
  thrift_spec = (
15212
    (0, TType.BOOL, 'success', None, None, ), # 0
15213
  )
15214
 
15215
  def __init__(self, success=None,):
15216
    self.success = success
15217
 
15218
  def read(self, iprot):
15219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15221
      return
15222
    iprot.readStructBegin()
15223
    while True:
15224
      (fname, ftype, fid) = iprot.readFieldBegin()
15225
      if ftype == TType.STOP:
15226
        break
15227
      if fid == 0:
15228
        if ftype == TType.BOOL:
15229
          self.success = iprot.readBool();
6849 kshitij.so 15230
        else:
15231
          iprot.skip(ftype)
8579 kshitij.so 15232
      else:
15233
        iprot.skip(ftype)
15234
      iprot.readFieldEnd()
15235
    iprot.readStructEnd()
15236
 
15237
  def write(self, oprot):
15238
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15239
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15240
      return
15241
    oprot.writeStructBegin('addBannerMap_result')
15242
    if self.success is not None:
15243
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15244
      oprot.writeBool(self.success)
15245
      oprot.writeFieldEnd()
15246
    oprot.writeFieldStop()
15247
    oprot.writeStructEnd()
15248
 
15249
  def validate(self):
15250
    return
15251
 
15252
 
15253
  def __repr__(self):
15254
    L = ['%s=%r' % (key, value)
15255
      for key, value in self.__dict__.iteritems()]
15256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15257
 
15258
  def __eq__(self, other):
15259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15260
 
15261
  def __ne__(self, other):
15262
    return not (self == other)
15263
 
15264
class updateBannerMap_args:
15265
  """
15266
  Attributes:
15267
   - bannerMap
15268
  """
15269
 
15270
  thrift_spec = (
15271
    None, # 0
15272
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
15273
  )
15274
 
15275
  def __init__(self, bannerMap=None,):
15276
    self.bannerMap = bannerMap
15277
 
15278
  def read(self, iprot):
15279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15281
      return
15282
    iprot.readStructBegin()
15283
    while True:
15284
      (fname, ftype, fid) = iprot.readFieldBegin()
15285
      if ftype == TType.STOP:
15286
        break
15287
      if fid == 1:
15288
        if ftype == TType.STRUCT:
15289
          self.bannerMap = BannerMap()
15290
          self.bannerMap.read(iprot)
6849 kshitij.so 15291
        else:
15292
          iprot.skip(ftype)
15293
      else:
15294
        iprot.skip(ftype)
15295
      iprot.readFieldEnd()
15296
    iprot.readStructEnd()
15297
 
15298
  def write(self, oprot):
15299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15301
      return
8579 kshitij.so 15302
    oprot.writeStructBegin('updateBannerMap_args')
15303
    if self.bannerMap is not None:
15304
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
15305
      self.bannerMap.write(oprot)
6849 kshitij.so 15306
      oprot.writeFieldEnd()
15307
    oprot.writeFieldStop()
15308
    oprot.writeStructEnd()
15309
 
15310
  def validate(self):
15311
    return
15312
 
15313
 
15314
  def __repr__(self):
15315
    L = ['%s=%r' % (key, value)
15316
      for key, value in self.__dict__.iteritems()]
15317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15318
 
15319
  def __eq__(self, other):
15320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15321
 
15322
  def __ne__(self, other):
15323
    return not (self == other)
15324
 
8579 kshitij.so 15325
class updateBannerMap_result:
6849 kshitij.so 15326
  """
15327
  Attributes:
15328
   - success
15329
  """
15330
 
15331
  thrift_spec = (
15332
    (0, TType.BOOL, 'success', None, None, ), # 0
15333
  )
15334
 
15335
  def __init__(self, success=None,):
15336
    self.success = success
15337
 
15338
  def read(self, iprot):
15339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15341
      return
15342
    iprot.readStructBegin()
15343
    while True:
15344
      (fname, ftype, fid) = iprot.readFieldBegin()
15345
      if ftype == TType.STOP:
15346
        break
15347
      if fid == 0:
15348
        if ftype == TType.BOOL:
15349
          self.success = iprot.readBool();
15350
        else:
15351
          iprot.skip(ftype)
15352
      else:
15353
        iprot.skip(ftype)
15354
      iprot.readFieldEnd()
15355
    iprot.readStructEnd()
15356
 
15357
  def write(self, oprot):
15358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15360
      return
8579 kshitij.so 15361
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 15362
    if self.success is not None:
15363
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15364
      oprot.writeBool(self.success)
15365
      oprot.writeFieldEnd()
15366
    oprot.writeFieldStop()
15367
    oprot.writeStructEnd()
15368
 
15369
  def validate(self):
15370
    return
15371
 
15372
 
15373
  def __repr__(self):
15374
    L = ['%s=%r' % (key, value)
15375
      for key, value in self.__dict__.iteritems()]
15376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15377
 
15378
  def __eq__(self, other):
15379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15380
 
15381
  def __ne__(self, other):
15382
    return not (self == other)
15383
 
15384
class deleteBannerMap_args:
15385
  """
15386
  Attributes:
15387
   - bannerName
15388
  """
15389
 
15390
  thrift_spec = (
15391
    None, # 0
15392
    (1, TType.STRING, 'bannerName', None, None, ), # 1
15393
  )
15394
 
15395
  def __init__(self, bannerName=None,):
15396
    self.bannerName = bannerName
15397
 
15398
  def read(self, iprot):
15399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15401
      return
15402
    iprot.readStructBegin()
15403
    while True:
15404
      (fname, ftype, fid) = iprot.readFieldBegin()
15405
      if ftype == TType.STOP:
15406
        break
15407
      if fid == 1:
15408
        if ftype == TType.STRING:
15409
          self.bannerName = iprot.readString();
15410
        else:
15411
          iprot.skip(ftype)
15412
      else:
15413
        iprot.skip(ftype)
15414
      iprot.readFieldEnd()
15415
    iprot.readStructEnd()
15416
 
15417
  def write(self, oprot):
15418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15420
      return
15421
    oprot.writeStructBegin('deleteBannerMap_args')
15422
    if self.bannerName is not None:
15423
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15424
      oprot.writeString(self.bannerName)
15425
      oprot.writeFieldEnd()
15426
    oprot.writeFieldStop()
15427
    oprot.writeStructEnd()
15428
 
15429
  def validate(self):
15430
    return
15431
 
15432
 
15433
  def __repr__(self):
15434
    L = ['%s=%r' % (key, value)
15435
      for key, value in self.__dict__.iteritems()]
15436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15437
 
15438
  def __eq__(self, other):
15439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15440
 
15441
  def __ne__(self, other):
15442
    return not (self == other)
15443
 
15444
class deleteBannerMap_result:
15445
  """
15446
  Attributes:
15447
   - success
15448
  """
15449
 
15450
  thrift_spec = (
15451
    (0, TType.BOOL, 'success', None, None, ), # 0
15452
  )
15453
 
15454
  def __init__(self, success=None,):
15455
    self.success = success
15456
 
15457
  def read(self, iprot):
15458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15460
      return
15461
    iprot.readStructBegin()
15462
    while True:
15463
      (fname, ftype, fid) = iprot.readFieldBegin()
15464
      if ftype == TType.STOP:
15465
        break
15466
      if fid == 0:
15467
        if ftype == TType.BOOL:
15468
          self.success = iprot.readBool();
15469
        else:
15470
          iprot.skip(ftype)
15471
      else:
15472
        iprot.skip(ftype)
15473
      iprot.readFieldEnd()
15474
    iprot.readStructEnd()
15475
 
15476
  def write(self, oprot):
15477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15479
      return
15480
    oprot.writeStructBegin('deleteBannerMap_result')
15481
    if self.success is not None:
15482
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15483
      oprot.writeBool(self.success)
15484
      oprot.writeFieldEnd()
15485
    oprot.writeFieldStop()
15486
    oprot.writeStructEnd()
15487
 
15488
  def validate(self):
15489
    return
15490
 
15491
 
15492
  def __repr__(self):
15493
    L = ['%s=%r' % (key, value)
15494
      for key, value in self.__dict__.iteritems()]
15495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15496
 
15497
  def __eq__(self, other):
15498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15499
 
15500
  def __ne__(self, other):
15501
    return not (self == other)
15502
 
15503
class getBannerMapDetails_args:
15504
  """
15505
  Attributes:
15506
   - bannerName
9155 kshitij.so 15507
   - bannerType
6849 kshitij.so 15508
  """
15509
 
15510
  thrift_spec = (
15511
    None, # 0
15512
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15513
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 15514
  )
15515
 
9155 kshitij.so 15516
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 15517
    self.bannerName = bannerName
9155 kshitij.so 15518
    self.bannerType = bannerType
6849 kshitij.so 15519
 
15520
  def read(self, iprot):
15521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15523
      return
15524
    iprot.readStructBegin()
15525
    while True:
15526
      (fname, ftype, fid) = iprot.readFieldBegin()
15527
      if ftype == TType.STOP:
15528
        break
15529
      if fid == 1:
15530
        if ftype == TType.STRING:
15531
          self.bannerName = iprot.readString();
15532
        else:
15533
          iprot.skip(ftype)
9155 kshitij.so 15534
      elif fid == 2:
15535
        if ftype == TType.I32:
15536
          self.bannerType = iprot.readI32();
15537
        else:
15538
          iprot.skip(ftype)
6849 kshitij.so 15539
      else:
15540
        iprot.skip(ftype)
15541
      iprot.readFieldEnd()
15542
    iprot.readStructEnd()
15543
 
15544
  def write(self, oprot):
15545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15547
      return
15548
    oprot.writeStructBegin('getBannerMapDetails_args')
15549
    if self.bannerName is not None:
15550
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15551
      oprot.writeString(self.bannerName)
15552
      oprot.writeFieldEnd()
9155 kshitij.so 15553
    if self.bannerType is not None:
15554
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15555
      oprot.writeI32(self.bannerType)
15556
      oprot.writeFieldEnd()
6849 kshitij.so 15557
    oprot.writeFieldStop()
15558
    oprot.writeStructEnd()
15559
 
15560
  def validate(self):
15561
    return
15562
 
15563
 
15564
  def __repr__(self):
15565
    L = ['%s=%r' % (key, value)
15566
      for key, value in self.__dict__.iteritems()]
15567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15568
 
15569
  def __eq__(self, other):
15570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15571
 
15572
  def __ne__(self, other):
15573
    return not (self == other)
15574
 
15575
class getBannerMapDetails_result:
15576
  """
15577
  Attributes:
15578
   - success
15579
  """
15580
 
15581
  thrift_spec = (
15582
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
15583
  )
15584
 
15585
  def __init__(self, success=None,):
15586
    self.success = success
15587
 
15588
  def read(self, iprot):
15589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15591
      return
15592
    iprot.readStructBegin()
15593
    while True:
15594
      (fname, ftype, fid) = iprot.readFieldBegin()
15595
      if ftype == TType.STOP:
15596
        break
15597
      if fid == 0:
15598
        if ftype == TType.LIST:
15599
          self.success = []
8590 kshitij.so 15600
          (_etype228, _size225) = iprot.readListBegin()
15601
          for _i229 in xrange(_size225):
15602
            _elem230 = BannerMap()
15603
            _elem230.read(iprot)
15604
            self.success.append(_elem230)
6849 kshitij.so 15605
          iprot.readListEnd()
15606
        else:
15607
          iprot.skip(ftype)
15608
      else:
15609
        iprot.skip(ftype)
15610
      iprot.readFieldEnd()
15611
    iprot.readStructEnd()
15612
 
15613
  def write(self, oprot):
15614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15616
      return
15617
    oprot.writeStructBegin('getBannerMapDetails_result')
15618
    if self.success is not None:
15619
      oprot.writeFieldBegin('success', TType.LIST, 0)
15620
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 15621
      for iter231 in self.success:
15622
        iter231.write(oprot)
6849 kshitij.so 15623
      oprot.writeListEnd()
15624
      oprot.writeFieldEnd()
15625
    oprot.writeFieldStop()
15626
    oprot.writeStructEnd()
15627
 
15628
  def validate(self):
15629
    return
15630
 
15631
 
15632
  def __repr__(self):
15633
    L = ['%s=%r' % (key, value)
15634
      for key, value in self.__dict__.iteritems()]
15635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15636
 
15637
  def __eq__(self, other):
15638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15639
 
15640
  def __ne__(self, other):
15641
    return not (self == other)
15642
 
8579 kshitij.so 15643
class addBannerUri_args:
15644
  """
15645
  Attributes:
15646
   - bannerUriMappings
15647
  """
15648
 
15649
  thrift_spec = (
15650
    None, # 0
15651
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
15652
  )
15653
 
15654
  def __init__(self, bannerUriMappings=None,):
15655
    self.bannerUriMappings = bannerUriMappings
15656
 
15657
  def read(self, iprot):
15658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15660
      return
15661
    iprot.readStructBegin()
15662
    while True:
15663
      (fname, ftype, fid) = iprot.readFieldBegin()
15664
      if ftype == TType.STOP:
15665
        break
15666
      if fid == 1:
15667
        if ftype == TType.LIST:
15668
          self.bannerUriMappings = []
8590 kshitij.so 15669
          (_etype235, _size232) = iprot.readListBegin()
15670
          for _i236 in xrange(_size232):
15671
            _elem237 = BannerUriMapping()
15672
            _elem237.read(iprot)
15673
            self.bannerUriMappings.append(_elem237)
8579 kshitij.so 15674
          iprot.readListEnd()
15675
        else:
15676
          iprot.skip(ftype)
15677
      else:
15678
        iprot.skip(ftype)
15679
      iprot.readFieldEnd()
15680
    iprot.readStructEnd()
15681
 
15682
  def write(self, oprot):
15683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15685
      return
15686
    oprot.writeStructBegin('addBannerUri_args')
15687
    if self.bannerUriMappings is not None:
15688
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
15689
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
8590 kshitij.so 15690
      for iter238 in self.bannerUriMappings:
15691
        iter238.write(oprot)
8579 kshitij.so 15692
      oprot.writeListEnd()
15693
      oprot.writeFieldEnd()
15694
    oprot.writeFieldStop()
15695
    oprot.writeStructEnd()
15696
 
15697
  def validate(self):
15698
    return
15699
 
15700
 
15701
  def __repr__(self):
15702
    L = ['%s=%r' % (key, value)
15703
      for key, value in self.__dict__.iteritems()]
15704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15705
 
15706
  def __eq__(self, other):
15707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15708
 
15709
  def __ne__(self, other):
15710
    return not (self == other)
15711
 
15712
class addBannerUri_result:
15713
 
15714
  thrift_spec = (
15715
  )
15716
 
15717
  def read(self, iprot):
15718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15720
      return
15721
    iprot.readStructBegin()
15722
    while True:
15723
      (fname, ftype, fid) = iprot.readFieldBegin()
15724
      if ftype == TType.STOP:
15725
        break
15726
      else:
15727
        iprot.skip(ftype)
15728
      iprot.readFieldEnd()
15729
    iprot.readStructEnd()
15730
 
15731
  def write(self, oprot):
15732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15734
      return
15735
    oprot.writeStructBegin('addBannerUri_result')
15736
    oprot.writeFieldStop()
15737
    oprot.writeStructEnd()
15738
 
15739
  def validate(self):
15740
    return
15741
 
15742
 
15743
  def __repr__(self):
15744
    L = ['%s=%r' % (key, value)
15745
      for key, value in self.__dict__.iteritems()]
15746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15747
 
15748
  def __eq__(self, other):
15749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15750
 
15751
  def __ne__(self, other):
15752
    return not (self == other)
15753
 
15754
class getUriMapping_args:
15755
  """
15756
  Attributes:
15757
   - bannerName
9155 kshitij.so 15758
   - bannerType
8579 kshitij.so 15759
  """
15760
 
15761
  thrift_spec = (
15762
    None, # 0
15763
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15764
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 15765
  )
15766
 
9155 kshitij.so 15767
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 15768
    self.bannerName = bannerName
9155 kshitij.so 15769
    self.bannerType = bannerType
8579 kshitij.so 15770
 
15771
  def read(self, iprot):
15772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15774
      return
15775
    iprot.readStructBegin()
15776
    while True:
15777
      (fname, ftype, fid) = iprot.readFieldBegin()
15778
      if ftype == TType.STOP:
15779
        break
15780
      if fid == 1:
15781
        if ftype == TType.STRING:
15782
          self.bannerName = iprot.readString();
15783
        else:
15784
          iprot.skip(ftype)
9155 kshitij.so 15785
      elif fid == 2:
15786
        if ftype == TType.I32:
15787
          self.bannerType = iprot.readI32();
15788
        else:
15789
          iprot.skip(ftype)
8579 kshitij.so 15790
      else:
15791
        iprot.skip(ftype)
15792
      iprot.readFieldEnd()
15793
    iprot.readStructEnd()
15794
 
15795
  def write(self, oprot):
15796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15798
      return
15799
    oprot.writeStructBegin('getUriMapping_args')
15800
    if self.bannerName is not None:
15801
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15802
      oprot.writeString(self.bannerName)
15803
      oprot.writeFieldEnd()
9155 kshitij.so 15804
    if self.bannerType is not None:
15805
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15806
      oprot.writeI32(self.bannerType)
15807
      oprot.writeFieldEnd()
8579 kshitij.so 15808
    oprot.writeFieldStop()
15809
    oprot.writeStructEnd()
15810
 
15811
  def validate(self):
15812
    return
15813
 
15814
 
15815
  def __repr__(self):
15816
    L = ['%s=%r' % (key, value)
15817
      for key, value in self.__dict__.iteritems()]
15818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15819
 
15820
  def __eq__(self, other):
15821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15822
 
15823
  def __ne__(self, other):
15824
    return not (self == other)
15825
 
15826
class getUriMapping_result:
15827
  """
15828
  Attributes:
15829
   - success
15830
  """
15831
 
15832
  thrift_spec = (
15833
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
15834
  )
15835
 
15836
  def __init__(self, success=None,):
15837
    self.success = success
15838
 
15839
  def read(self, iprot):
15840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15842
      return
15843
    iprot.readStructBegin()
15844
    while True:
15845
      (fname, ftype, fid) = iprot.readFieldBegin()
15846
      if ftype == TType.STOP:
15847
        break
15848
      if fid == 0:
15849
        if ftype == TType.LIST:
15850
          self.success = []
8590 kshitij.so 15851
          (_etype242, _size239) = iprot.readListBegin()
15852
          for _i243 in xrange(_size239):
15853
            _elem244 = BannerUriMapping()
15854
            _elem244.read(iprot)
15855
            self.success.append(_elem244)
8579 kshitij.so 15856
          iprot.readListEnd()
15857
        else:
15858
          iprot.skip(ftype)
15859
      else:
15860
        iprot.skip(ftype)
15861
      iprot.readFieldEnd()
15862
    iprot.readStructEnd()
15863
 
15864
  def write(self, oprot):
15865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15867
      return
15868
    oprot.writeStructBegin('getUriMapping_result')
15869
    if self.success is not None:
15870
      oprot.writeFieldBegin('success', TType.LIST, 0)
15871
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 15872
      for iter245 in self.success:
15873
        iter245.write(oprot)
8579 kshitij.so 15874
      oprot.writeListEnd()
15875
      oprot.writeFieldEnd()
15876
    oprot.writeFieldStop()
15877
    oprot.writeStructEnd()
15878
 
15879
  def validate(self):
15880
    return
15881
 
15882
 
15883
  def __repr__(self):
15884
    L = ['%s=%r' % (key, value)
15885
      for key, value in self.__dict__.iteritems()]
15886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15887
 
15888
  def __eq__(self, other):
15889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15890
 
15891
  def __ne__(self, other):
15892
    return not (self == other)
15893
 
15894
class addCampaign_args:
15895
  """
15896
  Attributes:
15897
   - campaign
15898
  """
15899
 
15900
  thrift_spec = (
15901
    None, # 0
15902
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
15903
  )
15904
 
15905
  def __init__(self, campaign=None,):
15906
    self.campaign = campaign
15907
 
15908
  def read(self, iprot):
15909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15911
      return
15912
    iprot.readStructBegin()
15913
    while True:
15914
      (fname, ftype, fid) = iprot.readFieldBegin()
15915
      if ftype == TType.STOP:
15916
        break
15917
      if fid == 1:
15918
        if ftype == TType.STRUCT:
15919
          self.campaign = Campaign()
15920
          self.campaign.read(iprot)
15921
        else:
15922
          iprot.skip(ftype)
15923
      else:
15924
        iprot.skip(ftype)
15925
      iprot.readFieldEnd()
15926
    iprot.readStructEnd()
15927
 
15928
  def write(self, oprot):
15929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15931
      return
15932
    oprot.writeStructBegin('addCampaign_args')
15933
    if self.campaign is not None:
15934
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
15935
      self.campaign.write(oprot)
15936
      oprot.writeFieldEnd()
15937
    oprot.writeFieldStop()
15938
    oprot.writeStructEnd()
15939
 
15940
  def validate(self):
15941
    return
15942
 
15943
 
15944
  def __repr__(self):
15945
    L = ['%s=%r' % (key, value)
15946
      for key, value in self.__dict__.iteritems()]
15947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15948
 
15949
  def __eq__(self, other):
15950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15951
 
15952
  def __ne__(self, other):
15953
    return not (self == other)
15954
 
15955
class addCampaign_result:
15956
 
15957
  thrift_spec = (
15958
  )
15959
 
15960
  def read(self, iprot):
15961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15963
      return
15964
    iprot.readStructBegin()
15965
    while True:
15966
      (fname, ftype, fid) = iprot.readFieldBegin()
15967
      if ftype == TType.STOP:
15968
        break
15969
      else:
15970
        iprot.skip(ftype)
15971
      iprot.readFieldEnd()
15972
    iprot.readStructEnd()
15973
 
15974
  def write(self, oprot):
15975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15977
      return
15978
    oprot.writeStructBegin('addCampaign_result')
15979
    oprot.writeFieldStop()
15980
    oprot.writeStructEnd()
15981
 
15982
  def validate(self):
15983
    return
15984
 
15985
 
15986
  def __repr__(self):
15987
    L = ['%s=%r' % (key, value)
15988
      for key, value in self.__dict__.iteritems()]
15989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15990
 
15991
  def __eq__(self, other):
15992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15993
 
15994
  def __ne__(self, other):
15995
    return not (self == other)
15996
 
15997
class getCampaigns_args:
15998
  """
15999
  Attributes:
16000
   - campaignName
16001
  """
16002
 
16003
  thrift_spec = (
16004
    None, # 0
16005
    (1, TType.STRING, 'campaignName', None, None, ), # 1
16006
  )
16007
 
16008
  def __init__(self, campaignName=None,):
16009
    self.campaignName = campaignName
16010
 
16011
  def read(self, iprot):
16012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16014
      return
16015
    iprot.readStructBegin()
16016
    while True:
16017
      (fname, ftype, fid) = iprot.readFieldBegin()
16018
      if ftype == TType.STOP:
16019
        break
16020
      if fid == 1:
16021
        if ftype == TType.STRING:
16022
          self.campaignName = iprot.readString();
16023
        else:
16024
          iprot.skip(ftype)
16025
      else:
16026
        iprot.skip(ftype)
16027
      iprot.readFieldEnd()
16028
    iprot.readStructEnd()
16029
 
16030
  def write(self, oprot):
16031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16033
      return
16034
    oprot.writeStructBegin('getCampaigns_args')
16035
    if self.campaignName is not None:
16036
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
16037
      oprot.writeString(self.campaignName)
16038
      oprot.writeFieldEnd()
16039
    oprot.writeFieldStop()
16040
    oprot.writeStructEnd()
16041
 
16042
  def validate(self):
16043
    return
16044
 
16045
 
16046
  def __repr__(self):
16047
    L = ['%s=%r' % (key, value)
16048
      for key, value in self.__dict__.iteritems()]
16049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16050
 
16051
  def __eq__(self, other):
16052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16053
 
16054
  def __ne__(self, other):
16055
    return not (self == other)
16056
 
16057
class getCampaigns_result:
16058
  """
16059
  Attributes:
16060
   - success
16061
  """
16062
 
16063
  thrift_spec = (
16064
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
16065
  )
16066
 
16067
  def __init__(self, success=None,):
16068
    self.success = success
16069
 
16070
  def read(self, iprot):
16071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16073
      return
16074
    iprot.readStructBegin()
16075
    while True:
16076
      (fname, ftype, fid) = iprot.readFieldBegin()
16077
      if ftype == TType.STOP:
16078
        break
16079
      if fid == 0:
16080
        if ftype == TType.LIST:
16081
          self.success = []
8590 kshitij.so 16082
          (_etype249, _size246) = iprot.readListBegin()
16083
          for _i250 in xrange(_size246):
16084
            _elem251 = Campaign()
16085
            _elem251.read(iprot)
16086
            self.success.append(_elem251)
8579 kshitij.so 16087
          iprot.readListEnd()
16088
        else:
16089
          iprot.skip(ftype)
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('getCampaigns_result')
16100
    if self.success is not None:
16101
      oprot.writeFieldBegin('success', TType.LIST, 0)
16102
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 16103
      for iter252 in self.success:
16104
        iter252.write(oprot)
8579 kshitij.so 16105
      oprot.writeListEnd()
16106
      oprot.writeFieldEnd()
16107
    oprot.writeFieldStop()
16108
    oprot.writeStructEnd()
16109
 
16110
  def validate(self):
16111
    return
16112
 
16113
 
16114
  def __repr__(self):
16115
    L = ['%s=%r' % (key, value)
16116
      for key, value in self.__dict__.iteritems()]
16117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16118
 
16119
  def __eq__(self, other):
16120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16121
 
16122
  def __ne__(self, other):
16123
    return not (self == other)
16124
 
16125
class deleteCampaign_args:
16126
  """
16127
  Attributes:
16128
   - campaignId
16129
  """
16130
 
16131
  thrift_spec = (
16132
    None, # 0
16133
    (1, TType.I64, 'campaignId', None, None, ), # 1
16134
  )
16135
 
16136
  def __init__(self, campaignId=None,):
16137
    self.campaignId = campaignId
16138
 
16139
  def read(self, iprot):
16140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16142
      return
16143
    iprot.readStructBegin()
16144
    while True:
16145
      (fname, ftype, fid) = iprot.readFieldBegin()
16146
      if ftype == TType.STOP:
16147
        break
16148
      if fid == 1:
16149
        if ftype == TType.I64:
16150
          self.campaignId = iprot.readI64();
16151
        else:
16152
          iprot.skip(ftype)
16153
      else:
16154
        iprot.skip(ftype)
16155
      iprot.readFieldEnd()
16156
    iprot.readStructEnd()
16157
 
16158
  def write(self, oprot):
16159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16161
      return
16162
    oprot.writeStructBegin('deleteCampaign_args')
16163
    if self.campaignId is not None:
16164
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
16165
      oprot.writeI64(self.campaignId)
16166
      oprot.writeFieldEnd()
16167
    oprot.writeFieldStop()
16168
    oprot.writeStructEnd()
16169
 
16170
  def validate(self):
16171
    return
16172
 
16173
 
16174
  def __repr__(self):
16175
    L = ['%s=%r' % (key, value)
16176
      for key, value in self.__dict__.iteritems()]
16177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16178
 
16179
  def __eq__(self, other):
16180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16181
 
16182
  def __ne__(self, other):
16183
    return not (self == other)
16184
 
16185
class deleteCampaign_result:
16186
 
16187
  thrift_spec = (
16188
  )
16189
 
16190
  def read(self, iprot):
16191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16193
      return
16194
    iprot.readStructBegin()
16195
    while True:
16196
      (fname, ftype, fid) = iprot.readFieldBegin()
16197
      if ftype == TType.STOP:
16198
        break
16199
      else:
16200
        iprot.skip(ftype)
16201
      iprot.readFieldEnd()
16202
    iprot.readStructEnd()
16203
 
16204
  def write(self, oprot):
16205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16207
      return
16208
    oprot.writeStructBegin('deleteCampaign_result')
16209
    oprot.writeFieldStop()
16210
    oprot.writeStructEnd()
16211
 
16212
  def validate(self):
16213
    return
16214
 
16215
 
16216
  def __repr__(self):
16217
    L = ['%s=%r' % (key, value)
16218
      for key, value in self.__dict__.iteritems()]
16219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16220
 
16221
  def __eq__(self, other):
16222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16223
 
16224
  def __ne__(self, other):
16225
    return not (self == other)
16226
 
16227
class getAllCampaigns_args:
16228
 
16229
  thrift_spec = (
16230
  )
16231
 
16232
  def read(self, iprot):
16233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16235
      return
16236
    iprot.readStructBegin()
16237
    while True:
16238
      (fname, ftype, fid) = iprot.readFieldBegin()
16239
      if ftype == TType.STOP:
16240
        break
16241
      else:
16242
        iprot.skip(ftype)
16243
      iprot.readFieldEnd()
16244
    iprot.readStructEnd()
16245
 
16246
  def write(self, oprot):
16247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16249
      return
16250
    oprot.writeStructBegin('getAllCampaigns_args')
16251
    oprot.writeFieldStop()
16252
    oprot.writeStructEnd()
16253
 
16254
  def validate(self):
16255
    return
16256
 
16257
 
16258
  def __repr__(self):
16259
    L = ['%s=%r' % (key, value)
16260
      for key, value in self.__dict__.iteritems()]
16261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16262
 
16263
  def __eq__(self, other):
16264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16265
 
16266
  def __ne__(self, other):
16267
    return not (self == other)
16268
 
16269
class getAllCampaigns_result:
16270
  """
16271
  Attributes:
16272
   - success
16273
  """
16274
 
16275
  thrift_spec = (
16276
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16277
  )
16278
 
16279
  def __init__(self, success=None,):
16280
    self.success = success
16281
 
16282
  def read(self, iprot):
16283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16285
      return
16286
    iprot.readStructBegin()
16287
    while True:
16288
      (fname, ftype, fid) = iprot.readFieldBegin()
16289
      if ftype == TType.STOP:
16290
        break
16291
      if fid == 0:
16292
        if ftype == TType.LIST:
16293
          self.success = []
8590 kshitij.so 16294
          (_etype256, _size253) = iprot.readListBegin()
16295
          for _i257 in xrange(_size253):
16296
            _elem258 = iprot.readString();
16297
            self.success.append(_elem258)
8579 kshitij.so 16298
          iprot.readListEnd()
16299
        else:
16300
          iprot.skip(ftype)
16301
      else:
16302
        iprot.skip(ftype)
16303
      iprot.readFieldEnd()
16304
    iprot.readStructEnd()
16305
 
16306
  def write(self, oprot):
16307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16309
      return
16310
    oprot.writeStructBegin('getAllCampaigns_result')
16311
    if self.success is not None:
16312
      oprot.writeFieldBegin('success', TType.LIST, 0)
16313
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 16314
      for iter259 in self.success:
16315
        oprot.writeString(iter259)
8579 kshitij.so 16316
      oprot.writeListEnd()
16317
      oprot.writeFieldEnd()
16318
    oprot.writeFieldStop()
16319
    oprot.writeStructEnd()
16320
 
16321
  def validate(self):
16322
    return
16323
 
16324
 
16325
  def __repr__(self):
16326
    L = ['%s=%r' % (key, value)
16327
      for key, value in self.__dict__.iteritems()]
16328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16329
 
16330
  def __eq__(self, other):
16331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16332
 
16333
  def __ne__(self, other):
16334
    return not (self == other)
16335
 
9155 kshitij.so 16336
class getActiveBannersForMobileSite_args:
16337
 
16338
  thrift_spec = (
16339
  )
16340
 
16341
  def read(self, iprot):
16342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16344
      return
16345
    iprot.readStructBegin()
16346
    while True:
16347
      (fname, ftype, fid) = iprot.readFieldBegin()
16348
      if ftype == TType.STOP:
16349
        break
16350
      else:
16351
        iprot.skip(ftype)
16352
      iprot.readFieldEnd()
16353
    iprot.readStructEnd()
16354
 
16355
  def write(self, oprot):
16356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16358
      return
16359
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
16360
    oprot.writeFieldStop()
16361
    oprot.writeStructEnd()
16362
 
16363
  def validate(self):
16364
    return
16365
 
16366
 
16367
  def __repr__(self):
16368
    L = ['%s=%r' % (key, value)
16369
      for key, value in self.__dict__.iteritems()]
16370
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16371
 
16372
  def __eq__(self, other):
16373
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16374
 
16375
  def __ne__(self, other):
16376
    return not (self == other)
16377
 
16378
class getActiveBannersForMobileSite_result:
16379
  """
16380
  Attributes:
16381
   - success
16382
  """
16383
 
16384
  thrift_spec = (
16385
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
16386
  )
16387
 
16388
  def __init__(self, success=None,):
16389
    self.success = success
16390
 
16391
  def read(self, iprot):
16392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16394
      return
16395
    iprot.readStructBegin()
16396
    while True:
16397
      (fname, ftype, fid) = iprot.readFieldBegin()
16398
      if ftype == TType.STOP:
16399
        break
16400
      if fid == 0:
16401
        if ftype == TType.MAP:
16402
          self.success = {}
16403
          (_ktype261, _vtype262, _size260 ) = iprot.readMapBegin() 
16404
          for _i264 in xrange(_size260):
16405
            _key265 = iprot.readString();
16406
            _val266 = []
16407
            (_etype270, _size267) = iprot.readListBegin()
16408
            for _i271 in xrange(_size267):
16409
              _elem272 = Banner()
16410
              _elem272.read(iprot)
16411
              _val266.append(_elem272)
16412
            iprot.readListEnd()
16413
            self.success[_key265] = _val266
16414
          iprot.readMapEnd()
16415
        else:
16416
          iprot.skip(ftype)
16417
      else:
16418
        iprot.skip(ftype)
16419
      iprot.readFieldEnd()
16420
    iprot.readStructEnd()
16421
 
16422
  def write(self, oprot):
16423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16425
      return
16426
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
16427
    if self.success is not None:
16428
      oprot.writeFieldBegin('success', TType.MAP, 0)
16429
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
16430
      for kiter273,viter274 in self.success.items():
16431
        oprot.writeString(kiter273)
16432
        oprot.writeListBegin(TType.STRUCT, len(viter274))
16433
        for iter275 in viter274:
16434
          iter275.write(oprot)
16435
        oprot.writeListEnd()
16436
      oprot.writeMapEnd()
16437
      oprot.writeFieldEnd()
16438
    oprot.writeFieldStop()
16439
    oprot.writeStructEnd()
16440
 
16441
  def validate(self):
16442
    return
16443
 
16444
 
16445
  def __repr__(self):
16446
    L = ['%s=%r' % (key, value)
16447
      for key, value in self.__dict__.iteritems()]
16448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16449
 
16450
  def __eq__(self, other):
16451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16452
 
16453
  def __ne__(self, other):
16454
    return not (self == other)
16455
 
5944 mandeep.dh 16456
class deleteSimilarItem_args:
16457
  """
16458
  Attributes:
16459
   - itemId
16460
   - catalogItemId
16461
  """
16462
 
16463
  thrift_spec = (
16464
    None, # 0
16465
    (1, TType.I64, 'itemId', None, None, ), # 1
16466
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
16467
  )
16468
 
16469
  def __init__(self, itemId=None, catalogItemId=None,):
16470
    self.itemId = itemId
16471
    self.catalogItemId = catalogItemId
16472
 
16473
  def read(self, iprot):
16474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16476
      return
16477
    iprot.readStructBegin()
16478
    while True:
16479
      (fname, ftype, fid) = iprot.readFieldBegin()
16480
      if ftype == TType.STOP:
16481
        break
16482
      if fid == 1:
16483
        if ftype == TType.I64:
16484
          self.itemId = iprot.readI64();
16485
        else:
16486
          iprot.skip(ftype)
16487
      elif fid == 2:
16488
        if ftype == TType.I64:
16489
          self.catalogItemId = iprot.readI64();
16490
        else:
16491
          iprot.skip(ftype)
16492
      else:
16493
        iprot.skip(ftype)
16494
      iprot.readFieldEnd()
16495
    iprot.readStructEnd()
16496
 
16497
  def write(self, oprot):
16498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16500
      return
16501
    oprot.writeStructBegin('deleteSimilarItem_args')
16502
    if self.itemId is not None:
16503
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16504
      oprot.writeI64(self.itemId)
16505
      oprot.writeFieldEnd()
16506
    if self.catalogItemId is not None:
16507
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
16508
      oprot.writeI64(self.catalogItemId)
16509
      oprot.writeFieldEnd()
16510
    oprot.writeFieldStop()
16511
    oprot.writeStructEnd()
16512
 
16513
  def validate(self):
16514
    return
16515
 
16516
 
16517
  def __repr__(self):
16518
    L = ['%s=%r' % (key, value)
16519
      for key, value in self.__dict__.iteritems()]
16520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16521
 
16522
  def __eq__(self, other):
16523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16524
 
16525
  def __ne__(self, other):
16526
    return not (self == other)
16527
 
16528
class deleteSimilarItem_result:
16529
  """
16530
  Attributes:
16531
   - success
16532
   - cex
16533
  """
16534
 
16535
  thrift_spec = (
16536
    (0, TType.BOOL, 'success', None, None, ), # 0
16537
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16538
  )
16539
 
16540
  def __init__(self, success=None, cex=None,):
16541
    self.success = success
16542
    self.cex = cex
16543
 
16544
  def read(self, iprot):
16545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16547
      return
16548
    iprot.readStructBegin()
16549
    while True:
16550
      (fname, ftype, fid) = iprot.readFieldBegin()
16551
      if ftype == TType.STOP:
16552
        break
16553
      if fid == 0:
16554
        if ftype == TType.BOOL:
16555
          self.success = iprot.readBool();
16556
        else:
16557
          iprot.skip(ftype)
16558
      elif fid == 1:
16559
        if ftype == TType.STRUCT:
16560
          self.cex = CatalogServiceException()
16561
          self.cex.read(iprot)
16562
        else:
16563
          iprot.skip(ftype)
16564
      else:
16565
        iprot.skip(ftype)
16566
      iprot.readFieldEnd()
16567
    iprot.readStructEnd()
16568
 
16569
  def write(self, oprot):
16570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16572
      return
16573
    oprot.writeStructBegin('deleteSimilarItem_result')
16574
    if self.success is not None:
16575
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16576
      oprot.writeBool(self.success)
16577
      oprot.writeFieldEnd()
16578
    if self.cex is not None:
16579
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16580
      self.cex.write(oprot)
16581
      oprot.writeFieldEnd()
16582
    oprot.writeFieldStop()
16583
    oprot.writeStructEnd()
16584
 
16585
  def validate(self):
16586
    return
16587
 
16588
 
16589
  def __repr__(self):
16590
    L = ['%s=%r' % (key, value)
16591
      for key, value in self.__dict__.iteritems()]
16592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16593
 
16594
  def __eq__(self, other):
16595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16596
 
16597
  def __ne__(self, other):
16598
    return not (self == other)
16599
 
16600
class checkSimilarItem_args:
16601
  """
16602
  Attributes:
16603
   - brand
16604
   - modelNumber
16605
   - modelName
16606
   - color
16607
  """
16608
 
16609
  thrift_spec = (
16610
    None, # 0
16611
    (1, TType.STRING, 'brand', None, None, ), # 1
16612
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
16613
    (3, TType.STRING, 'modelName', None, None, ), # 3
16614
    (4, TType.STRING, 'color', None, None, ), # 4
16615
  )
16616
 
16617
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
16618
    self.brand = brand
16619
    self.modelNumber = modelNumber
16620
    self.modelName = modelName
16621
    self.color = color
16622
 
16623
  def read(self, iprot):
16624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16626
      return
16627
    iprot.readStructBegin()
16628
    while True:
16629
      (fname, ftype, fid) = iprot.readFieldBegin()
16630
      if ftype == TType.STOP:
16631
        break
16632
      if fid == 1:
16633
        if ftype == TType.STRING:
16634
          self.brand = iprot.readString();
16635
        else:
16636
          iprot.skip(ftype)
16637
      elif fid == 2:
16638
        if ftype == TType.STRING:
16639
          self.modelNumber = iprot.readString();
16640
        else:
16641
          iprot.skip(ftype)
16642
      elif fid == 3:
16643
        if ftype == TType.STRING:
16644
          self.modelName = iprot.readString();
16645
        else:
16646
          iprot.skip(ftype)
16647
      elif fid == 4:
16648
        if ftype == TType.STRING:
16649
          self.color = iprot.readString();
16650
        else:
16651
          iprot.skip(ftype)
16652
      else:
16653
        iprot.skip(ftype)
16654
      iprot.readFieldEnd()
16655
    iprot.readStructEnd()
16656
 
16657
  def write(self, oprot):
16658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16660
      return
16661
    oprot.writeStructBegin('checkSimilarItem_args')
16662
    if self.brand is not None:
16663
      oprot.writeFieldBegin('brand', TType.STRING, 1)
16664
      oprot.writeString(self.brand)
16665
      oprot.writeFieldEnd()
16666
    if self.modelNumber is not None:
16667
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
16668
      oprot.writeString(self.modelNumber)
16669
      oprot.writeFieldEnd()
16670
    if self.modelName is not None:
16671
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
16672
      oprot.writeString(self.modelName)
16673
      oprot.writeFieldEnd()
16674
    if self.color is not None:
16675
      oprot.writeFieldBegin('color', TType.STRING, 4)
16676
      oprot.writeString(self.color)
16677
      oprot.writeFieldEnd()
16678
    oprot.writeFieldStop()
16679
    oprot.writeStructEnd()
16680
 
16681
  def validate(self):
16682
    return
16683
 
16684
 
16685
  def __repr__(self):
16686
    L = ['%s=%r' % (key, value)
16687
      for key, value in self.__dict__.iteritems()]
16688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16689
 
16690
  def __eq__(self, other):
16691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16692
 
16693
  def __ne__(self, other):
16694
    return not (self == other)
16695
 
16696
class checkSimilarItem_result:
16697
  """
16698
  Attributes:
16699
   - success
16700
  """
16701
 
16702
  thrift_spec = (
16703
    (0, TType.I64, 'success', None, None, ), # 0
16704
  )
16705
 
16706
  def __init__(self, success=None,):
16707
    self.success = success
16708
 
16709
  def read(self, iprot):
16710
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16711
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16712
      return
16713
    iprot.readStructBegin()
16714
    while True:
16715
      (fname, ftype, fid) = iprot.readFieldBegin()
16716
      if ftype == TType.STOP:
16717
        break
16718
      if fid == 0:
16719
        if ftype == TType.I64:
16720
          self.success = iprot.readI64();
16721
        else:
16722
          iprot.skip(ftype)
16723
      else:
16724
        iprot.skip(ftype)
16725
      iprot.readFieldEnd()
16726
    iprot.readStructEnd()
16727
 
16728
  def write(self, oprot):
16729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16731
      return
16732
    oprot.writeStructBegin('checkSimilarItem_result')
16733
    if self.success is not None:
16734
      oprot.writeFieldBegin('success', TType.I64, 0)
16735
      oprot.writeI64(self.success)
16736
      oprot.writeFieldEnd()
16737
    oprot.writeFieldStop()
16738
    oprot.writeStructEnd()
16739
 
16740
  def validate(self):
16741
    return
16742
 
16743
 
16744
  def __repr__(self):
16745
    L = ['%s=%r' % (key, value)
16746
      for key, value in self.__dict__.iteritems()]
16747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16748
 
16749
  def __eq__(self, other):
16750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16751
 
16752
  def __ne__(self, other):
16753
    return not (self == other)
16754
 
16755
class validateRiskyStatus_args:
16756
  """
16757
  Attributes:
16758
   - itemId
16759
  """
16760
 
16761
  thrift_spec = (
16762
    None, # 0
16763
    (1, TType.I64, 'itemId', None, None, ), # 1
16764
  )
16765
 
16766
  def __init__(self, itemId=None,):
16767
    self.itemId = itemId
16768
 
16769
  def read(self, iprot):
16770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16772
      return
16773
    iprot.readStructBegin()
16774
    while True:
16775
      (fname, ftype, fid) = iprot.readFieldBegin()
16776
      if ftype == TType.STOP:
16777
        break
16778
      if fid == 1:
16779
        if ftype == TType.I64:
16780
          self.itemId = iprot.readI64();
16781
        else:
16782
          iprot.skip(ftype)
16783
      else:
16784
        iprot.skip(ftype)
16785
      iprot.readFieldEnd()
16786
    iprot.readStructEnd()
16787
 
16788
  def write(self, oprot):
16789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16791
      return
16792
    oprot.writeStructBegin('validateRiskyStatus_args')
16793
    if self.itemId is not None:
16794
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16795
      oprot.writeI64(self.itemId)
16796
      oprot.writeFieldEnd()
16797
    oprot.writeFieldStop()
16798
    oprot.writeStructEnd()
16799
 
16800
  def validate(self):
16801
    return
16802
 
16803
 
16804
  def __repr__(self):
16805
    L = ['%s=%r' % (key, value)
16806
      for key, value in self.__dict__.iteritems()]
16807
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16808
 
16809
  def __eq__(self, other):
16810
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16811
 
16812
  def __ne__(self, other):
16813
    return not (self == other)
16814
 
16815
class validateRiskyStatus_result:
16816
 
16817
  thrift_spec = (
16818
  )
16819
 
16820
  def read(self, iprot):
16821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16823
      return
16824
    iprot.readStructBegin()
16825
    while True:
16826
      (fname, ftype, fid) = iprot.readFieldBegin()
16827
      if ftype == TType.STOP:
16828
        break
16829
      else:
16830
        iprot.skip(ftype)
16831
      iprot.readFieldEnd()
16832
    iprot.readStructEnd()
16833
 
16834
  def write(self, oprot):
16835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16837
      return
16838
    oprot.writeStructBegin('validateRiskyStatus_result')
16839
    oprot.writeFieldStop()
16840
    oprot.writeStructEnd()
16841
 
16842
  def validate(self):
16843
    return
16844
 
16845
 
16846
  def __repr__(self):
16847
    L = ['%s=%r' % (key, value)
16848
      for key, value in self.__dict__.iteritems()]
16849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16850
 
16851
  def __eq__(self, other):
16852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16853
 
16854
  def __ne__(self, other):
16855
    return not (self == other)
16856
 
16857
class changeItemRiskyFlag_args:
16858
  """
16859
  Attributes:
16860
   - itemId
16861
   - risky
16862
  """
16863
 
16864
  thrift_spec = (
16865
    None, # 0
16866
    (1, TType.I64, 'itemId', None, None, ), # 1
16867
    (2, TType.BOOL, 'risky', None, None, ), # 2
16868
  )
16869
 
16870
  def __init__(self, itemId=None, risky=None,):
16871
    self.itemId = itemId
16872
    self.risky = risky
16873
 
16874
  def read(self, iprot):
16875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16877
      return
16878
    iprot.readStructBegin()
16879
    while True:
16880
      (fname, ftype, fid) = iprot.readFieldBegin()
16881
      if ftype == TType.STOP:
16882
        break
16883
      if fid == 1:
16884
        if ftype == TType.I64:
16885
          self.itemId = iprot.readI64();
16886
        else:
16887
          iprot.skip(ftype)
16888
      elif fid == 2:
16889
        if ftype == TType.BOOL:
16890
          self.risky = iprot.readBool();
16891
        else:
16892
          iprot.skip(ftype)
16893
      else:
16894
        iprot.skip(ftype)
16895
      iprot.readFieldEnd()
16896
    iprot.readStructEnd()
16897
 
16898
  def write(self, oprot):
16899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16901
      return
16902
    oprot.writeStructBegin('changeItemRiskyFlag_args')
16903
    if self.itemId is not None:
16904
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16905
      oprot.writeI64(self.itemId)
16906
      oprot.writeFieldEnd()
16907
    if self.risky is not None:
16908
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
16909
      oprot.writeBool(self.risky)
16910
      oprot.writeFieldEnd()
16911
    oprot.writeFieldStop()
16912
    oprot.writeStructEnd()
16913
 
16914
  def validate(self):
16915
    return
16916
 
16917
 
16918
  def __repr__(self):
16919
    L = ['%s=%r' % (key, value)
16920
      for key, value in self.__dict__.iteritems()]
16921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16922
 
16923
  def __eq__(self, other):
16924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16925
 
16926
  def __ne__(self, other):
16927
    return not (self == other)
16928
 
16929
class changeItemRiskyFlag_result:
16930
 
16931
  thrift_spec = (
16932
  )
16933
 
16934
  def read(self, iprot):
16935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16937
      return
16938
    iprot.readStructBegin()
16939
    while True:
16940
      (fname, ftype, fid) = iprot.readFieldBegin()
16941
      if ftype == TType.STOP:
16942
        break
16943
      else:
16944
        iprot.skip(ftype)
16945
      iprot.readFieldEnd()
16946
    iprot.readStructEnd()
16947
 
16948
  def write(self, oprot):
16949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16951
      return
16952
    oprot.writeStructBegin('changeItemRiskyFlag_result')
16953
    oprot.writeFieldStop()
16954
    oprot.writeStructEnd()
16955
 
16956
  def validate(self):
16957
    return
16958
 
16959
 
16960
  def __repr__(self):
16961
    L = ['%s=%r' % (key, value)
16962
      for key, value in self.__dict__.iteritems()]
16963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16964
 
16965
  def __eq__(self, other):
16966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16967
 
16968
  def __ne__(self, other):
16969
    return not (self == other)
16970
 
16971
class getItemsByRiskyFlag_args:
16972
 
16973
  thrift_spec = (
16974
  )
16975
 
16976
  def read(self, iprot):
16977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16979
      return
16980
    iprot.readStructBegin()
16981
    while True:
16982
      (fname, ftype, fid) = iprot.readFieldBegin()
16983
      if ftype == TType.STOP:
16984
        break
16985
      else:
16986
        iprot.skip(ftype)
16987
      iprot.readFieldEnd()
16988
    iprot.readStructEnd()
16989
 
16990
  def write(self, oprot):
16991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16993
      return
16994
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
16995
    oprot.writeFieldStop()
16996
    oprot.writeStructEnd()
16997
 
16998
  def validate(self):
16999
    return
17000
 
17001
 
17002
  def __repr__(self):
17003
    L = ['%s=%r' % (key, value)
17004
      for key, value in self.__dict__.iteritems()]
17005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17006
 
17007
  def __eq__(self, other):
17008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17009
 
17010
  def __ne__(self, other):
17011
    return not (self == other)
17012
 
17013
class getItemsByRiskyFlag_result:
17014
  """
17015
  Attributes:
17016
   - success
17017
  """
17018
 
17019
  thrift_spec = (
17020
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17021
  )
17022
 
17023
  def __init__(self, success=None,):
17024
    self.success = success
17025
 
17026
  def read(self, iprot):
17027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17029
      return
17030
    iprot.readStructBegin()
17031
    while True:
17032
      (fname, ftype, fid) = iprot.readFieldBegin()
17033
      if ftype == TType.STOP:
17034
        break
17035
      if fid == 0:
17036
        if ftype == TType.LIST:
17037
          self.success = []
9155 kshitij.so 17038
          (_etype279, _size276) = iprot.readListBegin()
17039
          for _i280 in xrange(_size276):
17040
            _elem281 = Item()
17041
            _elem281.read(iprot)
17042
            self.success.append(_elem281)
5944 mandeep.dh 17043
          iprot.readListEnd()
17044
        else:
17045
          iprot.skip(ftype)
17046
      else:
17047
        iprot.skip(ftype)
17048
      iprot.readFieldEnd()
17049
    iprot.readStructEnd()
17050
 
17051
  def write(self, oprot):
17052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17054
      return
17055
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
17056
    if self.success is not None:
17057
      oprot.writeFieldBegin('success', TType.LIST, 0)
17058
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17059
      for iter282 in self.success:
17060
        iter282.write(oprot)
5944 mandeep.dh 17061
      oprot.writeListEnd()
17062
      oprot.writeFieldEnd()
17063
    oprot.writeFieldStop()
17064
    oprot.writeStructEnd()
17065
 
17066
  def validate(self):
17067
    return
17068
 
17069
 
17070
  def __repr__(self):
17071
    L = ['%s=%r' % (key, value)
17072
      for key, value in self.__dict__.iteritems()]
17073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17074
 
17075
  def __eq__(self, other):
17076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17077
 
17078
  def __ne__(self, other):
17079
    return not (self == other)
17080
 
17081
class getItemsForMasterSheet_args:
17082
  """
17083
  Attributes:
17084
   - category
17085
   - brand
17086
  """
17087
 
17088
  thrift_spec = (
17089
    None, # 0
17090
    (1, TType.STRING, 'category', None, None, ), # 1
17091
    (2, TType.STRING, 'brand', None, None, ), # 2
17092
  )
17093
 
17094
  def __init__(self, category=None, brand=None,):
17095
    self.category = category
17096
    self.brand = brand
17097
 
17098
  def read(self, iprot):
17099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17101
      return
17102
    iprot.readStructBegin()
17103
    while True:
17104
      (fname, ftype, fid) = iprot.readFieldBegin()
17105
      if ftype == TType.STOP:
17106
        break
17107
      if fid == 1:
17108
        if ftype == TType.STRING:
17109
          self.category = iprot.readString();
17110
        else:
17111
          iprot.skip(ftype)
17112
      elif fid == 2:
17113
        if ftype == TType.STRING:
17114
          self.brand = iprot.readString();
17115
        else:
17116
          iprot.skip(ftype)
17117
      else:
17118
        iprot.skip(ftype)
17119
      iprot.readFieldEnd()
17120
    iprot.readStructEnd()
17121
 
17122
  def write(self, oprot):
17123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17125
      return
17126
    oprot.writeStructBegin('getItemsForMasterSheet_args')
17127
    if self.category is not None:
17128
      oprot.writeFieldBegin('category', TType.STRING, 1)
17129
      oprot.writeString(self.category)
17130
      oprot.writeFieldEnd()
17131
    if self.brand is not None:
17132
      oprot.writeFieldBegin('brand', TType.STRING, 2)
17133
      oprot.writeString(self.brand)
17134
      oprot.writeFieldEnd()
17135
    oprot.writeFieldStop()
17136
    oprot.writeStructEnd()
17137
 
17138
  def validate(self):
17139
    return
17140
 
17141
 
17142
  def __repr__(self):
17143
    L = ['%s=%r' % (key, value)
17144
      for key, value in self.__dict__.iteritems()]
17145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17146
 
17147
  def __eq__(self, other):
17148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17149
 
17150
  def __ne__(self, other):
17151
    return not (self == other)
17152
 
17153
class getItemsForMasterSheet_result:
17154
  """
17155
  Attributes:
17156
   - success
17157
  """
17158
 
17159
  thrift_spec = (
17160
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17161
  )
17162
 
17163
  def __init__(self, success=None,):
17164
    self.success = success
17165
 
17166
  def read(self, iprot):
17167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17169
      return
17170
    iprot.readStructBegin()
17171
    while True:
17172
      (fname, ftype, fid) = iprot.readFieldBegin()
17173
      if ftype == TType.STOP:
17174
        break
17175
      if fid == 0:
17176
        if ftype == TType.LIST:
17177
          self.success = []
9155 kshitij.so 17178
          (_etype286, _size283) = iprot.readListBegin()
17179
          for _i287 in xrange(_size283):
17180
            _elem288 = Item()
17181
            _elem288.read(iprot)
17182
            self.success.append(_elem288)
5944 mandeep.dh 17183
          iprot.readListEnd()
17184
        else:
17185
          iprot.skip(ftype)
17186
      else:
17187
        iprot.skip(ftype)
17188
      iprot.readFieldEnd()
17189
    iprot.readStructEnd()
17190
 
17191
  def write(self, oprot):
17192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17194
      return
17195
    oprot.writeStructBegin('getItemsForMasterSheet_result')
17196
    if self.success is not None:
17197
      oprot.writeFieldBegin('success', TType.LIST, 0)
17198
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17199
      for iter289 in self.success:
17200
        iter289.write(oprot)
5944 mandeep.dh 17201
      oprot.writeListEnd()
17202
      oprot.writeFieldEnd()
17203
    oprot.writeFieldStop()
17204
    oprot.writeStructEnd()
17205
 
17206
  def validate(self):
17207
    return
17208
 
17209
 
17210
  def __repr__(self):
17211
    L = ['%s=%r' % (key, value)
17212
      for key, value in self.__dict__.iteritems()]
17213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17214
 
17215
  def __eq__(self, other):
17216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17217
 
17218
  def __ne__(self, other):
17219
    return not (self == other)
17220
 
17221
class getSimilarItemsCatalogIds_args:
17222
  """
17223
  Attributes:
17224
   - beginIndex
17225
   - totalItems
17226
   - itemId
17227
  """
17228
 
17229
  thrift_spec = (
17230
    None, # 0
17231
    (1, TType.I64, 'beginIndex', None, None, ), # 1
17232
    (2, TType.I64, 'totalItems', None, None, ), # 2
17233
    (3, TType.I64, 'itemId', None, None, ), # 3
17234
  )
17235
 
17236
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
17237
    self.beginIndex = beginIndex
17238
    self.totalItems = totalItems
17239
    self.itemId = itemId
17240
 
17241
  def read(self, iprot):
17242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17244
      return
17245
    iprot.readStructBegin()
17246
    while True:
17247
      (fname, ftype, fid) = iprot.readFieldBegin()
17248
      if ftype == TType.STOP:
17249
        break
17250
      if fid == 1:
17251
        if ftype == TType.I64:
17252
          self.beginIndex = iprot.readI64();
17253
        else:
17254
          iprot.skip(ftype)
17255
      elif fid == 2:
17256
        if ftype == TType.I64:
17257
          self.totalItems = iprot.readI64();
17258
        else:
17259
          iprot.skip(ftype)
17260
      elif fid == 3:
17261
        if ftype == TType.I64:
17262
          self.itemId = iprot.readI64();
17263
        else:
17264
          iprot.skip(ftype)
17265
      else:
17266
        iprot.skip(ftype)
17267
      iprot.readFieldEnd()
17268
    iprot.readStructEnd()
17269
 
17270
  def write(self, oprot):
17271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17273
      return
17274
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
17275
    if self.beginIndex is not None:
17276
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
17277
      oprot.writeI64(self.beginIndex)
17278
      oprot.writeFieldEnd()
17279
    if self.totalItems is not None:
17280
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
17281
      oprot.writeI64(self.totalItems)
17282
      oprot.writeFieldEnd()
17283
    if self.itemId is not None:
17284
      oprot.writeFieldBegin('itemId', TType.I64, 3)
17285
      oprot.writeI64(self.itemId)
17286
      oprot.writeFieldEnd()
17287
    oprot.writeFieldStop()
17288
    oprot.writeStructEnd()
17289
 
17290
  def validate(self):
17291
    return
17292
 
17293
 
17294
  def __repr__(self):
17295
    L = ['%s=%r' % (key, value)
17296
      for key, value in self.__dict__.iteritems()]
17297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17298
 
17299
  def __eq__(self, other):
17300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17301
 
17302
  def __ne__(self, other):
17303
    return not (self == other)
17304
 
17305
class getSimilarItemsCatalogIds_result:
17306
  """
17307
  Attributes:
17308
   - success
17309
  """
17310
 
17311
  thrift_spec = (
17312
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
17313
  )
17314
 
17315
  def __init__(self, success=None,):
17316
    self.success = success
17317
 
17318
  def read(self, iprot):
17319
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17320
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17321
      return
17322
    iprot.readStructBegin()
17323
    while True:
17324
      (fname, ftype, fid) = iprot.readFieldBegin()
17325
      if ftype == TType.STOP:
17326
        break
17327
      if fid == 0:
17328
        if ftype == TType.LIST:
17329
          self.success = []
9155 kshitij.so 17330
          (_etype293, _size290) = iprot.readListBegin()
17331
          for _i294 in xrange(_size290):
17332
            _elem295 = iprot.readI64();
17333
            self.success.append(_elem295)
5944 mandeep.dh 17334
          iprot.readListEnd()
17335
        else:
17336
          iprot.skip(ftype)
17337
      else:
17338
        iprot.skip(ftype)
17339
      iprot.readFieldEnd()
17340
    iprot.readStructEnd()
17341
 
17342
  def write(self, oprot):
17343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17345
      return
17346
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
17347
    if self.success is not None:
17348
      oprot.writeFieldBegin('success', TType.LIST, 0)
17349
      oprot.writeListBegin(TType.I64, len(self.success))
9155 kshitij.so 17350
      for iter296 in self.success:
17351
        oprot.writeI64(iter296)
5944 mandeep.dh 17352
      oprot.writeListEnd()
17353
      oprot.writeFieldEnd()
17354
    oprot.writeFieldStop()
17355
    oprot.writeStructEnd()
17356
 
17357
  def validate(self):
17358
    return
17359
 
17360
 
17361
  def __repr__(self):
17362
    L = ['%s=%r' % (key, value)
17363
      for key, value in self.__dict__.iteritems()]
17364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17365
 
17366
  def __eq__(self, other):
17367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17368
 
17369
  def __ne__(self, other):
17370
    return not (self == other)
17371
 
17372
class addProductNotification_args:
17373
  """
17374
  Attributes:
17375
   - itemId
17376
   - email
17377
  """
17378
 
17379
  thrift_spec = None
17380
  def __init__(self, itemId=None, email=None,):
17381
    self.itemId = itemId
17382
    self.email = email
17383
 
17384
  def read(self, iprot):
17385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17387
      return
17388
    iprot.readStructBegin()
17389
    while True:
17390
      (fname, ftype, fid) = iprot.readFieldBegin()
17391
      if ftype == TType.STOP:
17392
        break
17393
      if fid == -1:
17394
        if ftype == TType.I64:
17395
          self.itemId = iprot.readI64();
17396
        else:
17397
          iprot.skip(ftype)
17398
      elif fid == -2:
17399
        if ftype == TType.STRING:
17400
          self.email = iprot.readString();
17401
        else:
17402
          iprot.skip(ftype)
17403
      else:
17404
        iprot.skip(ftype)
17405
      iprot.readFieldEnd()
17406
    iprot.readStructEnd()
17407
 
17408
  def write(self, oprot):
17409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17411
      return
17412
    oprot.writeStructBegin('addProductNotification_args')
17413
    if self.email is not None:
17414
      oprot.writeFieldBegin('email', TType.STRING, -2)
17415
      oprot.writeString(self.email)
17416
      oprot.writeFieldEnd()
17417
    if self.itemId is not None:
17418
      oprot.writeFieldBegin('itemId', TType.I64, -1)
17419
      oprot.writeI64(self.itemId)
17420
      oprot.writeFieldEnd()
17421
    oprot.writeFieldStop()
17422
    oprot.writeStructEnd()
17423
 
17424
  def validate(self):
17425
    return
17426
 
17427
 
17428
  def __repr__(self):
17429
    L = ['%s=%r' % (key, value)
17430
      for key, value in self.__dict__.iteritems()]
17431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17432
 
17433
  def __eq__(self, other):
17434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17435
 
17436
  def __ne__(self, other):
17437
    return not (self == other)
17438
 
17439
class addProductNotification_result:
17440
  """
17441
  Attributes:
17442
   - success
17443
  """
17444
 
17445
  thrift_spec = (
17446
    (0, TType.BOOL, 'success', None, None, ), # 0
17447
  )
17448
 
17449
  def __init__(self, success=None,):
17450
    self.success = success
17451
 
17452
  def read(self, iprot):
17453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17455
      return
17456
    iprot.readStructBegin()
17457
    while True:
17458
      (fname, ftype, fid) = iprot.readFieldBegin()
17459
      if ftype == TType.STOP:
17460
        break
17461
      if fid == 0:
17462
        if ftype == TType.BOOL:
17463
          self.success = iprot.readBool();
17464
        else:
17465
          iprot.skip(ftype)
17466
      else:
17467
        iprot.skip(ftype)
17468
      iprot.readFieldEnd()
17469
    iprot.readStructEnd()
17470
 
17471
  def write(self, oprot):
17472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17474
      return
17475
    oprot.writeStructBegin('addProductNotification_result')
17476
    if self.success is not None:
17477
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17478
      oprot.writeBool(self.success)
17479
      oprot.writeFieldEnd()
17480
    oprot.writeFieldStop()
17481
    oprot.writeStructEnd()
17482
 
17483
  def validate(self):
17484
    return
17485
 
17486
 
17487
  def __repr__(self):
17488
    L = ['%s=%r' % (key, value)
17489
      for key, value in self.__dict__.iteritems()]
17490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17491
 
17492
  def __eq__(self, other):
17493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17494
 
17495
  def __ne__(self, other):
17496
    return not (self == other)
17497
 
17498
class sendProductNotifications_args:
17499
 
17500
  thrift_spec = (
17501
  )
17502
 
17503
  def read(self, iprot):
17504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17506
      return
17507
    iprot.readStructBegin()
17508
    while True:
17509
      (fname, ftype, fid) = iprot.readFieldBegin()
17510
      if ftype == TType.STOP:
17511
        break
17512
      else:
17513
        iprot.skip(ftype)
17514
      iprot.readFieldEnd()
17515
    iprot.readStructEnd()
17516
 
17517
  def write(self, oprot):
17518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17520
      return
17521
    oprot.writeStructBegin('sendProductNotifications_args')
17522
    oprot.writeFieldStop()
17523
    oprot.writeStructEnd()
17524
 
17525
  def validate(self):
17526
    return
17527
 
17528
 
17529
  def __repr__(self):
17530
    L = ['%s=%r' % (key, value)
17531
      for key, value in self.__dict__.iteritems()]
17532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17533
 
17534
  def __eq__(self, other):
17535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17536
 
17537
  def __ne__(self, other):
17538
    return not (self == other)
17539
 
17540
class sendProductNotifications_result:
17541
  """
17542
  Attributes:
17543
   - success
17544
  """
17545
 
17546
  thrift_spec = (
17547
    (0, TType.BOOL, 'success', None, None, ), # 0
17548
  )
17549
 
17550
  def __init__(self, success=None,):
17551
    self.success = success
17552
 
17553
  def read(self, iprot):
17554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17556
      return
17557
    iprot.readStructBegin()
17558
    while True:
17559
      (fname, ftype, fid) = iprot.readFieldBegin()
17560
      if ftype == TType.STOP:
17561
        break
17562
      if fid == 0:
17563
        if ftype == TType.BOOL:
17564
          self.success = iprot.readBool();
17565
        else:
17566
          iprot.skip(ftype)
17567
      else:
17568
        iprot.skip(ftype)
17569
      iprot.readFieldEnd()
17570
    iprot.readStructEnd()
17571
 
17572
  def write(self, oprot):
17573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17575
      return
17576
    oprot.writeStructBegin('sendProductNotifications_result')
17577
    if self.success is not None:
17578
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17579
      oprot.writeBool(self.success)
17580
      oprot.writeFieldEnd()
17581
    oprot.writeFieldStop()
17582
    oprot.writeStructEnd()
17583
 
17584
  def validate(self):
17585
    return
17586
 
17587
 
17588
  def __repr__(self):
17589
    L = ['%s=%r' % (key, value)
17590
      for key, value in self.__dict__.iteritems()]
17591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17592
 
17593
  def __eq__(self, other):
17594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17595
 
17596
  def __ne__(self, other):
17597
    return not (self == other)
17598
 
17599
class getAllBrandsByCategory_args:
17600
  """
17601
  Attributes:
17602
   - categoryId
17603
  """
17604
 
17605
  thrift_spec = (
17606
    None, # 0
17607
    (1, TType.I64, 'categoryId', None, None, ), # 1
17608
  )
17609
 
17610
  def __init__(self, categoryId=None,):
17611
    self.categoryId = categoryId
17612
 
17613
  def read(self, iprot):
17614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17616
      return
17617
    iprot.readStructBegin()
17618
    while True:
17619
      (fname, ftype, fid) = iprot.readFieldBegin()
17620
      if ftype == TType.STOP:
17621
        break
17622
      if fid == 1:
17623
        if ftype == TType.I64:
17624
          self.categoryId = iprot.readI64();
17625
        else:
17626
          iprot.skip(ftype)
17627
      else:
17628
        iprot.skip(ftype)
17629
      iprot.readFieldEnd()
17630
    iprot.readStructEnd()
17631
 
17632
  def write(self, oprot):
17633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17635
      return
17636
    oprot.writeStructBegin('getAllBrandsByCategory_args')
17637
    if self.categoryId is not None:
17638
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
17639
      oprot.writeI64(self.categoryId)
17640
      oprot.writeFieldEnd()
17641
    oprot.writeFieldStop()
17642
    oprot.writeStructEnd()
17643
 
17644
  def validate(self):
17645
    return
17646
 
17647
 
17648
  def __repr__(self):
17649
    L = ['%s=%r' % (key, value)
17650
      for key, value in self.__dict__.iteritems()]
17651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17652
 
17653
  def __eq__(self, other):
17654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17655
 
17656
  def __ne__(self, other):
17657
    return not (self == other)
17658
 
17659
class getAllBrandsByCategory_result:
17660
  """
17661
  Attributes:
17662
   - success
17663
  """
17664
 
17665
  thrift_spec = (
17666
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
17667
  )
17668
 
17669
  def __init__(self, success=None,):
17670
    self.success = success
17671
 
17672
  def read(self, iprot):
17673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17675
      return
17676
    iprot.readStructBegin()
17677
    while True:
17678
      (fname, ftype, fid) = iprot.readFieldBegin()
17679
      if ftype == TType.STOP:
17680
        break
17681
      if fid == 0:
17682
        if ftype == TType.LIST:
17683
          self.success = []
9155 kshitij.so 17684
          (_etype300, _size297) = iprot.readListBegin()
17685
          for _i301 in xrange(_size297):
17686
            _elem302 = iprot.readString();
17687
            self.success.append(_elem302)
5944 mandeep.dh 17688
          iprot.readListEnd()
17689
        else:
17690
          iprot.skip(ftype)
17691
      else:
17692
        iprot.skip(ftype)
17693
      iprot.readFieldEnd()
17694
    iprot.readStructEnd()
17695
 
17696
  def write(self, oprot):
17697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17699
      return
17700
    oprot.writeStructBegin('getAllBrandsByCategory_result')
17701
    if self.success is not None:
17702
      oprot.writeFieldBegin('success', TType.LIST, 0)
17703
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 17704
      for iter303 in self.success:
17705
        oprot.writeString(iter303)
5944 mandeep.dh 17706
      oprot.writeListEnd()
17707
      oprot.writeFieldEnd()
17708
    oprot.writeFieldStop()
17709
    oprot.writeStructEnd()
17710
 
17711
  def validate(self):
17712
    return
17713
 
17714
 
17715
  def __repr__(self):
17716
    L = ['%s=%r' % (key, value)
17717
      for key, value in self.__dict__.iteritems()]
17718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17719
 
17720
  def __eq__(self, other):
17721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17722
 
17723
  def __ne__(self, other):
17724
    return not (self == other)
17725
 
17726
class getAllBrands_args:
17727
 
17728
  thrift_spec = (
17729
  )
17730
 
17731
  def read(self, iprot):
17732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17734
      return
17735
    iprot.readStructBegin()
17736
    while True:
17737
      (fname, ftype, fid) = iprot.readFieldBegin()
17738
      if ftype == TType.STOP:
17739
        break
17740
      else:
17741
        iprot.skip(ftype)
17742
      iprot.readFieldEnd()
17743
    iprot.readStructEnd()
17744
 
17745
  def write(self, oprot):
17746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17748
      return
17749
    oprot.writeStructBegin('getAllBrands_args')
17750
    oprot.writeFieldStop()
17751
    oprot.writeStructEnd()
17752
 
17753
  def validate(self):
17754
    return
17755
 
17756
 
17757
  def __repr__(self):
17758
    L = ['%s=%r' % (key, value)
17759
      for key, value in self.__dict__.iteritems()]
17760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17761
 
17762
  def __eq__(self, other):
17763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17764
 
17765
  def __ne__(self, other):
17766
    return not (self == other)
17767
 
17768
class getAllBrands_result:
17769
  """
17770
  Attributes:
17771
   - success
17772
  """
17773
 
17774
  thrift_spec = (
17775
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
17776
  )
17777
 
17778
  def __init__(self, success=None,):
17779
    self.success = success
17780
 
17781
  def read(self, iprot):
17782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17784
      return
17785
    iprot.readStructBegin()
17786
    while True:
17787
      (fname, ftype, fid) = iprot.readFieldBegin()
17788
      if ftype == TType.STOP:
17789
        break
17790
      if fid == 0:
17791
        if ftype == TType.LIST:
17792
          self.success = []
9155 kshitij.so 17793
          (_etype307, _size304) = iprot.readListBegin()
17794
          for _i308 in xrange(_size304):
17795
            _elem309 = iprot.readString();
17796
            self.success.append(_elem309)
5944 mandeep.dh 17797
          iprot.readListEnd()
17798
        else:
17799
          iprot.skip(ftype)
17800
      else:
17801
        iprot.skip(ftype)
17802
      iprot.readFieldEnd()
17803
    iprot.readStructEnd()
17804
 
17805
  def write(self, oprot):
17806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17808
      return
17809
    oprot.writeStructBegin('getAllBrands_result')
17810
    if self.success is not None:
17811
      oprot.writeFieldBegin('success', TType.LIST, 0)
17812
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 17813
      for iter310 in self.success:
17814
        oprot.writeString(iter310)
5944 mandeep.dh 17815
      oprot.writeListEnd()
17816
      oprot.writeFieldEnd()
17817
    oprot.writeFieldStop()
17818
    oprot.writeStructEnd()
17819
 
17820
  def validate(self):
17821
    return
17822
 
17823
 
17824
  def __repr__(self):
17825
    L = ['%s=%r' % (key, value)
17826
      for key, value in self.__dict__.iteritems()]
17827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17828
 
17829
  def __eq__(self, other):
17830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17831
 
17832
  def __ne__(self, other):
17833
    return not (self == other)
17834
 
17835
class getAllSources_args:
17836
 
17837
  thrift_spec = (
17838
  )
17839
 
17840
  def read(self, iprot):
17841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17843
      return
17844
    iprot.readStructBegin()
17845
    while True:
17846
      (fname, ftype, fid) = iprot.readFieldBegin()
17847
      if ftype == TType.STOP:
17848
        break
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('getAllSources_args')
17859
    oprot.writeFieldStop()
17860
    oprot.writeStructEnd()
17861
 
17862
  def validate(self):
17863
    return
17864
 
17865
 
17866
  def __repr__(self):
17867
    L = ['%s=%r' % (key, value)
17868
      for key, value in self.__dict__.iteritems()]
17869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17870
 
17871
  def __eq__(self, other):
17872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17873
 
17874
  def __ne__(self, other):
17875
    return not (self == other)
17876
 
17877
class getAllSources_result:
17878
  """
17879
  Attributes:
17880
   - success
17881
  """
17882
 
17883
  thrift_spec = (
17884
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
17885
  )
17886
 
17887
  def __init__(self, success=None,):
17888
    self.success = success
17889
 
17890
  def read(self, iprot):
17891
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17892
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17893
      return
17894
    iprot.readStructBegin()
17895
    while True:
17896
      (fname, ftype, fid) = iprot.readFieldBegin()
17897
      if ftype == TType.STOP:
17898
        break
17899
      if fid == 0:
17900
        if ftype == TType.LIST:
17901
          self.success = []
9155 kshitij.so 17902
          (_etype314, _size311) = iprot.readListBegin()
17903
          for _i315 in xrange(_size311):
17904
            _elem316 = Source()
17905
            _elem316.read(iprot)
17906
            self.success.append(_elem316)
5944 mandeep.dh 17907
          iprot.readListEnd()
17908
        else:
17909
          iprot.skip(ftype)
17910
      else:
17911
        iprot.skip(ftype)
17912
      iprot.readFieldEnd()
17913
    iprot.readStructEnd()
17914
 
17915
  def write(self, oprot):
17916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17918
      return
17919
    oprot.writeStructBegin('getAllSources_result')
17920
    if self.success is not None:
17921
      oprot.writeFieldBegin('success', TType.LIST, 0)
17922
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17923
      for iter317 in self.success:
17924
        iter317.write(oprot)
5944 mandeep.dh 17925
      oprot.writeListEnd()
17926
      oprot.writeFieldEnd()
17927
    oprot.writeFieldStop()
17928
    oprot.writeStructEnd()
17929
 
17930
  def validate(self):
17931
    return
17932
 
17933
 
17934
  def __repr__(self):
17935
    L = ['%s=%r' % (key, value)
17936
      for key, value in self.__dict__.iteritems()]
17937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17938
 
17939
  def __eq__(self, other):
17940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17941
 
17942
  def __ne__(self, other):
17943
    return not (self == other)
17944
 
17945
class getItemPricingBySource_args:
17946
  """
17947
  Attributes:
17948
   - itemId
17949
   - sourceId
17950
  """
17951
 
17952
  thrift_spec = (
17953
    None, # 0
17954
    (1, TType.I64, 'itemId', None, None, ), # 1
17955
    (2, TType.I64, 'sourceId', None, None, ), # 2
17956
  )
17957
 
17958
  def __init__(self, itemId=None, sourceId=None,):
17959
    self.itemId = itemId
17960
    self.sourceId = sourceId
17961
 
17962
  def read(self, iprot):
17963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17965
      return
17966
    iprot.readStructBegin()
17967
    while True:
17968
      (fname, ftype, fid) = iprot.readFieldBegin()
17969
      if ftype == TType.STOP:
17970
        break
17971
      if fid == 1:
17972
        if ftype == TType.I64:
17973
          self.itemId = iprot.readI64();
17974
        else:
17975
          iprot.skip(ftype)
17976
      elif fid == 2:
17977
        if ftype == TType.I64:
17978
          self.sourceId = iprot.readI64();
17979
        else:
17980
          iprot.skip(ftype)
17981
      else:
17982
        iprot.skip(ftype)
17983
      iprot.readFieldEnd()
17984
    iprot.readStructEnd()
17985
 
17986
  def write(self, oprot):
17987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17989
      return
17990
    oprot.writeStructBegin('getItemPricingBySource_args')
17991
    if self.itemId is not None:
17992
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17993
      oprot.writeI64(self.itemId)
17994
      oprot.writeFieldEnd()
17995
    if self.sourceId is not None:
17996
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
17997
      oprot.writeI64(self.sourceId)
17998
      oprot.writeFieldEnd()
17999
    oprot.writeFieldStop()
18000
    oprot.writeStructEnd()
18001
 
18002
  def validate(self):
18003
    return
18004
 
18005
 
18006
  def __repr__(self):
18007
    L = ['%s=%r' % (key, value)
18008
      for key, value in self.__dict__.iteritems()]
18009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18010
 
18011
  def __eq__(self, other):
18012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18013
 
18014
  def __ne__(self, other):
18015
    return not (self == other)
18016
 
18017
class getItemPricingBySource_result:
18018
  """
18019
  Attributes:
18020
   - success
18021
   - cex
18022
  """
18023
 
18024
  thrift_spec = (
18025
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
18026
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18027
  )
18028
 
18029
  def __init__(self, success=None, cex=None,):
18030
    self.success = success
18031
    self.cex = cex
18032
 
18033
  def read(self, iprot):
18034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18036
      return
18037
    iprot.readStructBegin()
18038
    while True:
18039
      (fname, ftype, fid) = iprot.readFieldBegin()
18040
      if ftype == TType.STOP:
18041
        break
18042
      if fid == 0:
18043
        if ftype == TType.STRUCT:
18044
          self.success = SourceItemPricing()
18045
          self.success.read(iprot)
18046
        else:
18047
          iprot.skip(ftype)
18048
      elif fid == 1:
18049
        if ftype == TType.STRUCT:
18050
          self.cex = CatalogServiceException()
18051
          self.cex.read(iprot)
18052
        else:
18053
          iprot.skip(ftype)
18054
      else:
18055
        iprot.skip(ftype)
18056
      iprot.readFieldEnd()
18057
    iprot.readStructEnd()
18058
 
18059
  def write(self, oprot):
18060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18062
      return
18063
    oprot.writeStructBegin('getItemPricingBySource_result')
18064
    if self.success is not None:
18065
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18066
      self.success.write(oprot)
18067
      oprot.writeFieldEnd()
18068
    if self.cex is not None:
18069
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18070
      self.cex.write(oprot)
18071
      oprot.writeFieldEnd()
18072
    oprot.writeFieldStop()
18073
    oprot.writeStructEnd()
18074
 
18075
  def validate(self):
18076
    return
18077
 
18078
 
18079
  def __repr__(self):
18080
    L = ['%s=%r' % (key, value)
18081
      for key, value in self.__dict__.iteritems()]
18082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18083
 
18084
  def __eq__(self, other):
18085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18086
 
18087
  def __ne__(self, other):
18088
    return not (self == other)
18089
 
18090
class addSourceItemPricing_args:
18091
  """
18092
  Attributes:
18093
   - sourceItemPricing
18094
  """
18095
 
18096
  thrift_spec = (
18097
    None, # 0
18098
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
18099
  )
18100
 
18101
  def __init__(self, sourceItemPricing=None,):
18102
    self.sourceItemPricing = sourceItemPricing
18103
 
18104
  def read(self, iprot):
18105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18107
      return
18108
    iprot.readStructBegin()
18109
    while True:
18110
      (fname, ftype, fid) = iprot.readFieldBegin()
18111
      if ftype == TType.STOP:
18112
        break
18113
      if fid == 1:
18114
        if ftype == TType.STRUCT:
18115
          self.sourceItemPricing = SourceItemPricing()
18116
          self.sourceItemPricing.read(iprot)
18117
        else:
18118
          iprot.skip(ftype)
18119
      else:
18120
        iprot.skip(ftype)
18121
      iprot.readFieldEnd()
18122
    iprot.readStructEnd()
18123
 
18124
  def write(self, oprot):
18125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18127
      return
18128
    oprot.writeStructBegin('addSourceItemPricing_args')
18129
    if self.sourceItemPricing is not None:
18130
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
18131
      self.sourceItemPricing.write(oprot)
18132
      oprot.writeFieldEnd()
18133
    oprot.writeFieldStop()
18134
    oprot.writeStructEnd()
18135
 
18136
  def validate(self):
18137
    return
18138
 
18139
 
18140
  def __repr__(self):
18141
    L = ['%s=%r' % (key, value)
18142
      for key, value in self.__dict__.iteritems()]
18143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18144
 
18145
  def __eq__(self, other):
18146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18147
 
18148
  def __ne__(self, other):
18149
    return not (self == other)
18150
 
18151
class addSourceItemPricing_result:
18152
  """
18153
  Attributes:
18154
   - cex
18155
  """
18156
 
18157
  thrift_spec = (
18158
    None, # 0
18159
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18160
  )
18161
 
18162
  def __init__(self, cex=None,):
18163
    self.cex = cex
18164
 
18165
  def read(self, iprot):
18166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18168
      return
18169
    iprot.readStructBegin()
18170
    while True:
18171
      (fname, ftype, fid) = iprot.readFieldBegin()
18172
      if ftype == TType.STOP:
18173
        break
18174
      if fid == 1:
18175
        if ftype == TType.STRUCT:
18176
          self.cex = CatalogServiceException()
18177
          self.cex.read(iprot)
18178
        else:
18179
          iprot.skip(ftype)
18180
      else:
18181
        iprot.skip(ftype)
18182
      iprot.readFieldEnd()
18183
    iprot.readStructEnd()
18184
 
18185
  def write(self, oprot):
18186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18188
      return
18189
    oprot.writeStructBegin('addSourceItemPricing_result')
18190
    if self.cex is not None:
18191
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18192
      self.cex.write(oprot)
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 getAllSourcePricing_args:
18213
  """
18214
  Attributes:
18215
   - itemId
18216
  """
18217
 
18218
  thrift_spec = (
18219
    None, # 0
18220
    (1, TType.I64, 'itemId', None, None, ), # 1
18221
  )
18222
 
18223
  def __init__(self, itemId=None,):
18224
    self.itemId = itemId
18225
 
18226
  def read(self, iprot):
18227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18229
      return
18230
    iprot.readStructBegin()
18231
    while True:
18232
      (fname, ftype, fid) = iprot.readFieldBegin()
18233
      if ftype == TType.STOP:
18234
        break
18235
      if fid == 1:
18236
        if ftype == TType.I64:
18237
          self.itemId = iprot.readI64();
18238
        else:
18239
          iprot.skip(ftype)
18240
      else:
18241
        iprot.skip(ftype)
18242
      iprot.readFieldEnd()
18243
    iprot.readStructEnd()
18244
 
18245
  def write(self, oprot):
18246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18248
      return
18249
    oprot.writeStructBegin('getAllSourcePricing_args')
18250
    if self.itemId is not None:
18251
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18252
      oprot.writeI64(self.itemId)
18253
      oprot.writeFieldEnd()
18254
    oprot.writeFieldStop()
18255
    oprot.writeStructEnd()
18256
 
18257
  def validate(self):
18258
    return
18259
 
18260
 
18261
  def __repr__(self):
18262
    L = ['%s=%r' % (key, value)
18263
      for key, value in self.__dict__.iteritems()]
18264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18265
 
18266
  def __eq__(self, other):
18267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18268
 
18269
  def __ne__(self, other):
18270
    return not (self == other)
18271
 
18272
class getAllSourcePricing_result:
18273
  """
18274
  Attributes:
18275
   - success
18276
   - cex
18277
  """
18278
 
18279
  thrift_spec = (
18280
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
18281
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18282
  )
18283
 
18284
  def __init__(self, success=None, cex=None,):
18285
    self.success = success
18286
    self.cex = cex
18287
 
18288
  def read(self, iprot):
18289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18291
      return
18292
    iprot.readStructBegin()
18293
    while True:
18294
      (fname, ftype, fid) = iprot.readFieldBegin()
18295
      if ftype == TType.STOP:
18296
        break
18297
      if fid == 0:
18298
        if ftype == TType.LIST:
18299
          self.success = []
9155 kshitij.so 18300
          (_etype321, _size318) = iprot.readListBegin()
18301
          for _i322 in xrange(_size318):
18302
            _elem323 = SourceItemPricing()
18303
            _elem323.read(iprot)
18304
            self.success.append(_elem323)
5944 mandeep.dh 18305
          iprot.readListEnd()
18306
        else:
18307
          iprot.skip(ftype)
18308
      elif fid == 1:
18309
        if ftype == TType.STRUCT:
18310
          self.cex = CatalogServiceException()
18311
          self.cex.read(iprot)
18312
        else:
18313
          iprot.skip(ftype)
18314
      else:
18315
        iprot.skip(ftype)
18316
      iprot.readFieldEnd()
18317
    iprot.readStructEnd()
18318
 
18319
  def write(self, oprot):
18320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18322
      return
18323
    oprot.writeStructBegin('getAllSourcePricing_result')
18324
    if self.success is not None:
18325
      oprot.writeFieldBegin('success', TType.LIST, 0)
18326
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18327
      for iter324 in self.success:
18328
        iter324.write(oprot)
5944 mandeep.dh 18329
      oprot.writeListEnd()
18330
      oprot.writeFieldEnd()
18331
    if self.cex is not None:
18332
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18333
      self.cex.write(oprot)
18334
      oprot.writeFieldEnd()
18335
    oprot.writeFieldStop()
18336
    oprot.writeStructEnd()
18337
 
18338
  def validate(self):
18339
    return
18340
 
18341
 
18342
  def __repr__(self):
18343
    L = ['%s=%r' % (key, value)
18344
      for key, value in self.__dict__.iteritems()]
18345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18346
 
18347
  def __eq__(self, other):
18348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18349
 
18350
  def __ne__(self, other):
18351
    return not (self == other)
18352
 
18353
class getItemForSource_args:
18354
  """
18355
  Attributes:
18356
   - item_id
18357
   - sourceId
18358
  """
18359
 
18360
  thrift_spec = (
18361
    None, # 0
18362
    (1, TType.I64, 'item_id', None, None, ), # 1
18363
    (2, TType.I64, 'sourceId', None, None, ), # 2
18364
  )
18365
 
18366
  def __init__(self, item_id=None, sourceId=None,):
18367
    self.item_id = item_id
18368
    self.sourceId = sourceId
18369
 
18370
  def read(self, iprot):
18371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18373
      return
18374
    iprot.readStructBegin()
18375
    while True:
18376
      (fname, ftype, fid) = iprot.readFieldBegin()
18377
      if ftype == TType.STOP:
18378
        break
18379
      if fid == 1:
18380
        if ftype == TType.I64:
18381
          self.item_id = iprot.readI64();
18382
        else:
18383
          iprot.skip(ftype)
18384
      elif fid == 2:
18385
        if ftype == TType.I64:
18386
          self.sourceId = iprot.readI64();
18387
        else:
18388
          iprot.skip(ftype)
18389
      else:
18390
        iprot.skip(ftype)
18391
      iprot.readFieldEnd()
18392
    iprot.readStructEnd()
18393
 
18394
  def write(self, oprot):
18395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18397
      return
18398
    oprot.writeStructBegin('getItemForSource_args')
18399
    if self.item_id is not None:
18400
      oprot.writeFieldBegin('item_id', TType.I64, 1)
18401
      oprot.writeI64(self.item_id)
18402
      oprot.writeFieldEnd()
18403
    if self.sourceId is not None:
18404
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18405
      oprot.writeI64(self.sourceId)
18406
      oprot.writeFieldEnd()
18407
    oprot.writeFieldStop()
18408
    oprot.writeStructEnd()
18409
 
18410
  def validate(self):
18411
    return
18412
 
18413
 
18414
  def __repr__(self):
18415
    L = ['%s=%r' % (key, value)
18416
      for key, value in self.__dict__.iteritems()]
18417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18418
 
18419
  def __eq__(self, other):
18420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18421
 
18422
  def __ne__(self, other):
18423
    return not (self == other)
18424
 
18425
class getItemForSource_result:
18426
  """
18427
  Attributes:
18428
   - success
18429
   - cex
18430
  """
18431
 
18432
  thrift_spec = (
18433
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
18434
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18435
  )
18436
 
18437
  def __init__(self, success=None, cex=None,):
18438
    self.success = success
18439
    self.cex = cex
18440
 
18441
  def read(self, iprot):
18442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18444
      return
18445
    iprot.readStructBegin()
18446
    while True:
18447
      (fname, ftype, fid) = iprot.readFieldBegin()
18448
      if ftype == TType.STOP:
18449
        break
18450
      if fid == 0:
18451
        if ftype == TType.STRUCT:
18452
          self.success = Item()
18453
          self.success.read(iprot)
18454
        else:
18455
          iprot.skip(ftype)
18456
      elif fid == 1:
18457
        if ftype == TType.STRUCT:
18458
          self.cex = CatalogServiceException()
18459
          self.cex.read(iprot)
18460
        else:
18461
          iprot.skip(ftype)
18462
      else:
18463
        iprot.skip(ftype)
18464
      iprot.readFieldEnd()
18465
    iprot.readStructEnd()
18466
 
18467
  def write(self, oprot):
18468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18470
      return
18471
    oprot.writeStructBegin('getItemForSource_result')
18472
    if self.success is not None:
18473
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18474
      self.success.write(oprot)
18475
      oprot.writeFieldEnd()
18476
    if self.cex is not None:
18477
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18478
      self.cex.write(oprot)
18479
      oprot.writeFieldEnd()
18480
    oprot.writeFieldStop()
18481
    oprot.writeStructEnd()
18482
 
18483
  def validate(self):
18484
    return
18485
 
18486
 
18487
  def __repr__(self):
18488
    L = ['%s=%r' % (key, value)
18489
      for key, value in self.__dict__.iteritems()]
18490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18491
 
18492
  def __eq__(self, other):
18493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18494
 
18495
  def __ne__(self, other):
18496
    return not (self == other)
18497
 
18498
class searchItemsInRange_args:
18499
  """
18500
  Attributes:
18501
   - searchTerms
18502
   - offset
18503
   - limit
18504
  """
18505
 
18506
  thrift_spec = (
18507
    None, # 0
18508
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
18509
    (2, TType.I64, 'offset', None, None, ), # 2
18510
    (3, TType.I64, 'limit', None, None, ), # 3
18511
  )
18512
 
18513
  def __init__(self, searchTerms=None, offset=None, limit=None,):
18514
    self.searchTerms = searchTerms
18515
    self.offset = offset
18516
    self.limit = limit
18517
 
18518
  def read(self, iprot):
18519
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18520
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18521
      return
18522
    iprot.readStructBegin()
18523
    while True:
18524
      (fname, ftype, fid) = iprot.readFieldBegin()
18525
      if ftype == TType.STOP:
18526
        break
18527
      if fid == 1:
18528
        if ftype == TType.LIST:
18529
          self.searchTerms = []
9155 kshitij.so 18530
          (_etype328, _size325) = iprot.readListBegin()
18531
          for _i329 in xrange(_size325):
18532
            _elem330 = iprot.readString();
18533
            self.searchTerms.append(_elem330)
5944 mandeep.dh 18534
          iprot.readListEnd()
18535
        else:
18536
          iprot.skip(ftype)
18537
      elif fid == 2:
18538
        if ftype == TType.I64:
18539
          self.offset = iprot.readI64();
18540
        else:
18541
          iprot.skip(ftype)
18542
      elif fid == 3:
18543
        if ftype == TType.I64:
18544
          self.limit = iprot.readI64();
18545
        else:
18546
          iprot.skip(ftype)
18547
      else:
18548
        iprot.skip(ftype)
18549
      iprot.readFieldEnd()
18550
    iprot.readStructEnd()
18551
 
18552
  def write(self, oprot):
18553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18555
      return
18556
    oprot.writeStructBegin('searchItemsInRange_args')
18557
    if self.searchTerms is not None:
18558
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
18559
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 18560
      for iter331 in self.searchTerms:
18561
        oprot.writeString(iter331)
5944 mandeep.dh 18562
      oprot.writeListEnd()
18563
      oprot.writeFieldEnd()
18564
    if self.offset is not None:
18565
      oprot.writeFieldBegin('offset', TType.I64, 2)
18566
      oprot.writeI64(self.offset)
18567
      oprot.writeFieldEnd()
18568
    if self.limit is not None:
18569
      oprot.writeFieldBegin('limit', TType.I64, 3)
18570
      oprot.writeI64(self.limit)
18571
      oprot.writeFieldEnd()
18572
    oprot.writeFieldStop()
18573
    oprot.writeStructEnd()
18574
 
18575
  def validate(self):
18576
    return
18577
 
18578
 
18579
  def __repr__(self):
18580
    L = ['%s=%r' % (key, value)
18581
      for key, value in self.__dict__.iteritems()]
18582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18583
 
18584
  def __eq__(self, other):
18585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18586
 
18587
  def __ne__(self, other):
18588
    return not (self == other)
18589
 
18590
class searchItemsInRange_result:
18591
  """
18592
  Attributes:
18593
   - success
18594
  """
18595
 
18596
  thrift_spec = (
18597
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18598
  )
18599
 
18600
  def __init__(self, success=None,):
18601
    self.success = success
18602
 
18603
  def read(self, iprot):
18604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18606
      return
18607
    iprot.readStructBegin()
18608
    while True:
18609
      (fname, ftype, fid) = iprot.readFieldBegin()
18610
      if ftype == TType.STOP:
18611
        break
18612
      if fid == 0:
18613
        if ftype == TType.LIST:
18614
          self.success = []
9155 kshitij.so 18615
          (_etype335, _size332) = iprot.readListBegin()
18616
          for _i336 in xrange(_size332):
18617
            _elem337 = Item()
18618
            _elem337.read(iprot)
18619
            self.success.append(_elem337)
5944 mandeep.dh 18620
          iprot.readListEnd()
18621
        else:
18622
          iprot.skip(ftype)
18623
      else:
18624
        iprot.skip(ftype)
18625
      iprot.readFieldEnd()
18626
    iprot.readStructEnd()
18627
 
18628
  def write(self, oprot):
18629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18631
      return
18632
    oprot.writeStructBegin('searchItemsInRange_result')
18633
    if self.success is not None:
18634
      oprot.writeFieldBegin('success', TType.LIST, 0)
18635
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18636
      for iter338 in self.success:
18637
        iter338.write(oprot)
5944 mandeep.dh 18638
      oprot.writeListEnd()
18639
      oprot.writeFieldEnd()
18640
    oprot.writeFieldStop()
18641
    oprot.writeStructEnd()
18642
 
18643
  def validate(self):
18644
    return
18645
 
18646
 
18647
  def __repr__(self):
18648
    L = ['%s=%r' % (key, value)
18649
      for key, value in self.__dict__.iteritems()]
18650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18651
 
18652
  def __eq__(self, other):
18653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18654
 
18655
  def __ne__(self, other):
18656
    return not (self == other)
18657
 
18658
class getSearchResultCount_args:
18659
  """
18660
  Attributes:
18661
   - searchTerms
18662
  """
18663
 
18664
  thrift_spec = (
18665
    None, # 0
18666
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
18667
  )
18668
 
18669
  def __init__(self, searchTerms=None,):
18670
    self.searchTerms = searchTerms
18671
 
18672
  def read(self, iprot):
18673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18675
      return
18676
    iprot.readStructBegin()
18677
    while True:
18678
      (fname, ftype, fid) = iprot.readFieldBegin()
18679
      if ftype == TType.STOP:
18680
        break
18681
      if fid == 1:
18682
        if ftype == TType.LIST:
18683
          self.searchTerms = []
9155 kshitij.so 18684
          (_etype342, _size339) = iprot.readListBegin()
18685
          for _i343 in xrange(_size339):
18686
            _elem344 = iprot.readString();
18687
            self.searchTerms.append(_elem344)
5944 mandeep.dh 18688
          iprot.readListEnd()
18689
        else:
18690
          iprot.skip(ftype)
18691
      else:
18692
        iprot.skip(ftype)
18693
      iprot.readFieldEnd()
18694
    iprot.readStructEnd()
18695
 
18696
  def write(self, oprot):
18697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18699
      return
18700
    oprot.writeStructBegin('getSearchResultCount_args')
18701
    if self.searchTerms is not None:
18702
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
18703
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 18704
      for iter345 in self.searchTerms:
18705
        oprot.writeString(iter345)
5944 mandeep.dh 18706
      oprot.writeListEnd()
18707
      oprot.writeFieldEnd()
18708
    oprot.writeFieldStop()
18709
    oprot.writeStructEnd()
18710
 
18711
  def validate(self):
18712
    return
18713
 
18714
 
18715
  def __repr__(self):
18716
    L = ['%s=%r' % (key, value)
18717
      for key, value in self.__dict__.iteritems()]
18718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18719
 
18720
  def __eq__(self, other):
18721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18722
 
18723
  def __ne__(self, other):
18724
    return not (self == other)
18725
 
18726
class getSearchResultCount_result:
18727
  """
18728
  Attributes:
18729
   - success
18730
  """
18731
 
18732
  thrift_spec = (
18733
    (0, TType.I32, 'success', None, None, ), # 0
18734
  )
18735
 
18736
  def __init__(self, success=None,):
18737
    self.success = success
18738
 
18739
  def read(self, iprot):
18740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18742
      return
18743
    iprot.readStructBegin()
18744
    while True:
18745
      (fname, ftype, fid) = iprot.readFieldBegin()
18746
      if ftype == TType.STOP:
18747
        break
18748
      if fid == 0:
18749
        if ftype == TType.I32:
18750
          self.success = iprot.readI32();
18751
        else:
18752
          iprot.skip(ftype)
18753
      else:
18754
        iprot.skip(ftype)
18755
      iprot.readFieldEnd()
18756
    iprot.readStructEnd()
18757
 
18758
  def write(self, oprot):
18759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18761
      return
18762
    oprot.writeStructBegin('getSearchResultCount_result')
18763
    if self.success is not None:
18764
      oprot.writeFieldBegin('success', TType.I32, 0)
18765
      oprot.writeI32(self.success)
18766
      oprot.writeFieldEnd()
18767
    oprot.writeFieldStop()
18768
    oprot.writeStructEnd()
18769
 
18770
  def validate(self):
18771
    return
18772
 
18773
 
18774
  def __repr__(self):
18775
    L = ['%s=%r' % (key, value)
18776
      for key, value in self.__dict__.iteritems()]
18777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18778
 
18779
  def __eq__(self, other):
18780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18781
 
18782
  def __ne__(self, other):
18783
    return not (self == other)
18784
 
18785
class getProductNotifications_args:
18786
  """
18787
  Attributes:
18788
   - startDateTime
18789
  """
18790
 
18791
  thrift_spec = (
18792
    None, # 0
18793
    (1, TType.I64, 'startDateTime', None, None, ), # 1
18794
  )
18795
 
18796
  def __init__(self, startDateTime=None,):
18797
    self.startDateTime = startDateTime
18798
 
18799
  def read(self, iprot):
18800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18802
      return
18803
    iprot.readStructBegin()
18804
    while True:
18805
      (fname, ftype, fid) = iprot.readFieldBegin()
18806
      if ftype == TType.STOP:
18807
        break
18808
      if fid == 1:
18809
        if ftype == TType.I64:
18810
          self.startDateTime = iprot.readI64();
18811
        else:
18812
          iprot.skip(ftype)
18813
      else:
18814
        iprot.skip(ftype)
18815
      iprot.readFieldEnd()
18816
    iprot.readStructEnd()
18817
 
18818
  def write(self, oprot):
18819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18821
      return
18822
    oprot.writeStructBegin('getProductNotifications_args')
18823
    if self.startDateTime is not None:
18824
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
18825
      oprot.writeI64(self.startDateTime)
18826
      oprot.writeFieldEnd()
18827
    oprot.writeFieldStop()
18828
    oprot.writeStructEnd()
18829
 
18830
  def validate(self):
18831
    return
18832
 
18833
 
18834
  def __repr__(self):
18835
    L = ['%s=%r' % (key, value)
18836
      for key, value in self.__dict__.iteritems()]
18837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18838
 
18839
  def __eq__(self, other):
18840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18841
 
18842
  def __ne__(self, other):
18843
    return not (self == other)
18844
 
18845
class getProductNotifications_result:
18846
  """
18847
  Attributes:
18848
   - success
18849
  """
18850
 
18851
  thrift_spec = (
18852
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
18853
  )
18854
 
18855
  def __init__(self, success=None,):
18856
    self.success = success
18857
 
18858
  def read(self, iprot):
18859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18861
      return
18862
    iprot.readStructBegin()
18863
    while True:
18864
      (fname, ftype, fid) = iprot.readFieldBegin()
18865
      if ftype == TType.STOP:
18866
        break
18867
      if fid == 0:
18868
        if ftype == TType.LIST:
18869
          self.success = []
9155 kshitij.so 18870
          (_etype349, _size346) = iprot.readListBegin()
18871
          for _i350 in xrange(_size346):
18872
            _elem351 = ProductNotificationRequest()
18873
            _elem351.read(iprot)
18874
            self.success.append(_elem351)
5944 mandeep.dh 18875
          iprot.readListEnd()
18876
        else:
18877
          iprot.skip(ftype)
18878
      else:
18879
        iprot.skip(ftype)
18880
      iprot.readFieldEnd()
18881
    iprot.readStructEnd()
18882
 
18883
  def write(self, oprot):
18884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18886
      return
18887
    oprot.writeStructBegin('getProductNotifications_result')
18888
    if self.success is not None:
18889
      oprot.writeFieldBegin('success', TType.LIST, 0)
18890
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18891
      for iter352 in self.success:
18892
        iter352.write(oprot)
5944 mandeep.dh 18893
      oprot.writeListEnd()
18894
      oprot.writeFieldEnd()
18895
    oprot.writeFieldStop()
18896
    oprot.writeStructEnd()
18897
 
18898
  def validate(self):
18899
    return
18900
 
18901
 
18902
  def __repr__(self):
18903
    L = ['%s=%r' % (key, value)
18904
      for key, value in self.__dict__.iteritems()]
18905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18906
 
18907
  def __eq__(self, other):
18908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18909
 
18910
  def __ne__(self, other):
18911
    return not (self == other)
18912
 
18913
class getProductNotificationRequestCount_args:
18914
  """
18915
  Attributes:
18916
   - startDateTime
7897 amar.kumar 18917
   - categoryId
5944 mandeep.dh 18918
  """
18919
 
18920
  thrift_spec = (
18921
    None, # 0
18922
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 18923
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 18924
  )
18925
 
7897 amar.kumar 18926
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 18927
    self.startDateTime = startDateTime
7897 amar.kumar 18928
    self.categoryId = categoryId
5944 mandeep.dh 18929
 
18930
  def read(self, iprot):
18931
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18932
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18933
      return
18934
    iprot.readStructBegin()
18935
    while True:
18936
      (fname, ftype, fid) = iprot.readFieldBegin()
18937
      if ftype == TType.STOP:
18938
        break
18939
      if fid == 1:
18940
        if ftype == TType.I64:
18941
          self.startDateTime = iprot.readI64();
18942
        else:
18943
          iprot.skip(ftype)
7897 amar.kumar 18944
      elif fid == 2:
18945
        if ftype == TType.I64:
18946
          self.categoryId = iprot.readI64();
18947
        else:
18948
          iprot.skip(ftype)
5944 mandeep.dh 18949
      else:
18950
        iprot.skip(ftype)
18951
      iprot.readFieldEnd()
18952
    iprot.readStructEnd()
18953
 
18954
  def write(self, oprot):
18955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18957
      return
18958
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
18959
    if self.startDateTime is not None:
18960
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
18961
      oprot.writeI64(self.startDateTime)
18962
      oprot.writeFieldEnd()
7897 amar.kumar 18963
    if self.categoryId is not None:
18964
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
18965
      oprot.writeI64(self.categoryId)
18966
      oprot.writeFieldEnd()
5944 mandeep.dh 18967
    oprot.writeFieldStop()
18968
    oprot.writeStructEnd()
18969
 
18970
  def validate(self):
18971
    return
18972
 
18973
 
18974
  def __repr__(self):
18975
    L = ['%s=%r' % (key, value)
18976
      for key, value in self.__dict__.iteritems()]
18977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18978
 
18979
  def __eq__(self, other):
18980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18981
 
18982
  def __ne__(self, other):
18983
    return not (self == other)
18984
 
18985
class getProductNotificationRequestCount_result:
18986
  """
18987
  Attributes:
18988
   - success
18989
  """
18990
 
18991
  thrift_spec = (
18992
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
18993
  )
18994
 
18995
  def __init__(self, success=None,):
18996
    self.success = success
18997
 
18998
  def read(self, iprot):
18999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19001
      return
19002
    iprot.readStructBegin()
19003
    while True:
19004
      (fname, ftype, fid) = iprot.readFieldBegin()
19005
      if ftype == TType.STOP:
19006
        break
19007
      if fid == 0:
19008
        if ftype == TType.LIST:
19009
          self.success = []
9155 kshitij.so 19010
          (_etype356, _size353) = iprot.readListBegin()
19011
          for _i357 in xrange(_size353):
19012
            _elem358 = ProductNotificationRequestCount()
19013
            _elem358.read(iprot)
19014
            self.success.append(_elem358)
5944 mandeep.dh 19015
          iprot.readListEnd()
19016
        else:
19017
          iprot.skip(ftype)
19018
      else:
19019
        iprot.skip(ftype)
19020
      iprot.readFieldEnd()
19021
    iprot.readStructEnd()
19022
 
19023
  def write(self, oprot):
19024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19026
      return
19027
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
19028
    if self.success is not None:
19029
      oprot.writeFieldBegin('success', TType.LIST, 0)
19030
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19031
      for iter359 in self.success:
19032
        iter359.write(oprot)
5944 mandeep.dh 19033
      oprot.writeListEnd()
19034
      oprot.writeFieldEnd()
19035
    oprot.writeFieldStop()
19036
    oprot.writeStructEnd()
19037
 
19038
  def validate(self):
19039
    return
19040
 
19041
 
19042
  def __repr__(self):
19043
    L = ['%s=%r' % (key, value)
19044
      for key, value in self.__dict__.iteritems()]
19045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19046
 
19047
  def __eq__(self, other):
19048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19049
 
19050
  def __ne__(self, other):
19051
    return not (self == other)
19052
 
19053
class addAuthorizationLog_args:
19054
  """
19055
  Attributes:
19056
   - itemId
19057
   - username
19058
   - reason
19059
  """
19060
 
19061
  thrift_spec = (
19062
    None, # 0
19063
    (1, TType.I64, 'itemId', None, None, ), # 1
19064
    (2, TType.STRING, 'username', None, None, ), # 2
19065
    (3, TType.STRING, 'reason', None, None, ), # 3
19066
  )
19067
 
19068
  def __init__(self, itemId=None, username=None, reason=None,):
19069
    self.itemId = itemId
19070
    self.username = username
19071
    self.reason = reason
19072
 
19073
  def read(self, iprot):
19074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19076
      return
19077
    iprot.readStructBegin()
19078
    while True:
19079
      (fname, ftype, fid) = iprot.readFieldBegin()
19080
      if ftype == TType.STOP:
19081
        break
19082
      if fid == 1:
19083
        if ftype == TType.I64:
19084
          self.itemId = iprot.readI64();
19085
        else:
19086
          iprot.skip(ftype)
19087
      elif fid == 2:
19088
        if ftype == TType.STRING:
19089
          self.username = iprot.readString();
19090
        else:
19091
          iprot.skip(ftype)
19092
      elif fid == 3:
19093
        if ftype == TType.STRING:
19094
          self.reason = iprot.readString();
19095
        else:
19096
          iprot.skip(ftype)
19097
      else:
19098
        iprot.skip(ftype)
19099
      iprot.readFieldEnd()
19100
    iprot.readStructEnd()
19101
 
19102
  def write(self, oprot):
19103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19105
      return
19106
    oprot.writeStructBegin('addAuthorizationLog_args')
19107
    if self.itemId is not None:
19108
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19109
      oprot.writeI64(self.itemId)
19110
      oprot.writeFieldEnd()
19111
    if self.username is not None:
19112
      oprot.writeFieldBegin('username', TType.STRING, 2)
19113
      oprot.writeString(self.username)
19114
      oprot.writeFieldEnd()
19115
    if self.reason is not None:
19116
      oprot.writeFieldBegin('reason', TType.STRING, 3)
19117
      oprot.writeString(self.reason)
19118
      oprot.writeFieldEnd()
19119
    oprot.writeFieldStop()
19120
    oprot.writeStructEnd()
19121
 
19122
  def validate(self):
19123
    return
19124
 
19125
 
19126
  def __repr__(self):
19127
    L = ['%s=%r' % (key, value)
19128
      for key, value in self.__dict__.iteritems()]
19129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19130
 
19131
  def __eq__(self, other):
19132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19133
 
19134
  def __ne__(self, other):
19135
    return not (self == other)
19136
 
19137
class addAuthorizationLog_result:
19138
  """
19139
  Attributes:
19140
   - success
19141
   - cex
19142
  """
19143
 
19144
  thrift_spec = (
19145
    (0, TType.BOOL, 'success', None, None, ), # 0
19146
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19147
  )
19148
 
19149
  def __init__(self, success=None, cex=None,):
19150
    self.success = success
19151
    self.cex = cex
19152
 
19153
  def read(self, iprot):
19154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19156
      return
19157
    iprot.readStructBegin()
19158
    while True:
19159
      (fname, ftype, fid) = iprot.readFieldBegin()
19160
      if ftype == TType.STOP:
19161
        break
19162
      if fid == 0:
19163
        if ftype == TType.BOOL:
19164
          self.success = iprot.readBool();
19165
        else:
19166
          iprot.skip(ftype)
19167
      elif fid == 1:
19168
        if ftype == TType.STRUCT:
19169
          self.cex = CatalogServiceException()
19170
          self.cex.read(iprot)
19171
        else:
19172
          iprot.skip(ftype)
19173
      else:
19174
        iprot.skip(ftype)
19175
      iprot.readFieldEnd()
19176
    iprot.readStructEnd()
19177
 
19178
  def write(self, oprot):
19179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19181
      return
19182
    oprot.writeStructBegin('addAuthorizationLog_result')
19183
    if self.success is not None:
19184
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19185
      oprot.writeBool(self.success)
19186
      oprot.writeFieldEnd()
19187
    if self.cex is not None:
19188
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19189
      self.cex.write(oprot)
19190
      oprot.writeFieldEnd()
19191
    oprot.writeFieldStop()
19192
    oprot.writeStructEnd()
19193
 
19194
  def validate(self):
19195
    return
19196
 
19197
 
19198
  def __repr__(self):
19199
    L = ['%s=%r' % (key, value)
19200
      for key, value in self.__dict__.iteritems()]
19201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19202
 
19203
  def __eq__(self, other):
19204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19205
 
19206
  def __ne__(self, other):
19207
    return not (self == other)
19208
 
19209
class addupdateVoucherForItem_args:
19210
  """
19211
  Attributes:
19212
   - catalog_item_id
19213
   - voucherType
19214
   - voucherAmount
19215
  """
19216
 
19217
  thrift_spec = (
19218
    None, # 0
19219
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19220
    (2, TType.I64, 'voucherType', None, None, ), # 2
19221
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
19222
  )
19223
 
19224
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
19225
    self.catalog_item_id = catalog_item_id
19226
    self.voucherType = voucherType
19227
    self.voucherAmount = voucherAmount
19228
 
19229
  def read(self, iprot):
19230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19232
      return
19233
    iprot.readStructBegin()
19234
    while True:
19235
      (fname, ftype, fid) = iprot.readFieldBegin()
19236
      if ftype == TType.STOP:
19237
        break
19238
      if fid == 1:
19239
        if ftype == TType.I64:
19240
          self.catalog_item_id = iprot.readI64();
19241
        else:
19242
          iprot.skip(ftype)
19243
      elif fid == 2:
19244
        if ftype == TType.I64:
19245
          self.voucherType = iprot.readI64();
19246
        else:
19247
          iprot.skip(ftype)
19248
      elif fid == 3:
19249
        if ftype == TType.I64:
19250
          self.voucherAmount = iprot.readI64();
19251
        else:
19252
          iprot.skip(ftype)
19253
      else:
19254
        iprot.skip(ftype)
19255
      iprot.readFieldEnd()
19256
    iprot.readStructEnd()
19257
 
19258
  def write(self, oprot):
19259
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19260
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19261
      return
19262
    oprot.writeStructBegin('addupdateVoucherForItem_args')
19263
    if self.catalog_item_id is not None:
19264
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19265
      oprot.writeI64(self.catalog_item_id)
19266
      oprot.writeFieldEnd()
19267
    if self.voucherType is not None:
19268
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19269
      oprot.writeI64(self.voucherType)
19270
      oprot.writeFieldEnd()
19271
    if self.voucherAmount is not None:
19272
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
19273
      oprot.writeI64(self.voucherAmount)
19274
      oprot.writeFieldEnd()
19275
    oprot.writeFieldStop()
19276
    oprot.writeStructEnd()
19277
 
19278
  def validate(self):
19279
    return
19280
 
19281
 
19282
  def __repr__(self):
19283
    L = ['%s=%r' % (key, value)
19284
      for key, value in self.__dict__.iteritems()]
19285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19286
 
19287
  def __eq__(self, other):
19288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19289
 
19290
  def __ne__(self, other):
19291
    return not (self == other)
19292
 
19293
class addupdateVoucherForItem_result:
19294
  """
19295
  Attributes:
19296
   - success
19297
   - cex
19298
  """
19299
 
19300
  thrift_spec = (
19301
    (0, TType.BOOL, 'success', None, None, ), # 0
19302
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19303
  )
19304
 
19305
  def __init__(self, success=None, cex=None,):
19306
    self.success = success
19307
    self.cex = cex
19308
 
19309
  def read(self, iprot):
19310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19312
      return
19313
    iprot.readStructBegin()
19314
    while True:
19315
      (fname, ftype, fid) = iprot.readFieldBegin()
19316
      if ftype == TType.STOP:
19317
        break
19318
      if fid == 0:
19319
        if ftype == TType.BOOL:
19320
          self.success = iprot.readBool();
19321
        else:
19322
          iprot.skip(ftype)
19323
      elif fid == 1:
19324
        if ftype == TType.STRUCT:
19325
          self.cex = CatalogServiceException()
19326
          self.cex.read(iprot)
19327
        else:
19328
          iprot.skip(ftype)
19329
      else:
19330
        iprot.skip(ftype)
19331
      iprot.readFieldEnd()
19332
    iprot.readStructEnd()
19333
 
19334
  def write(self, oprot):
19335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19337
      return
19338
    oprot.writeStructBegin('addupdateVoucherForItem_result')
19339
    if self.success is not None:
19340
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19341
      oprot.writeBool(self.success)
19342
      oprot.writeFieldEnd()
19343
    if self.cex is not None:
19344
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19345
      self.cex.write(oprot)
19346
      oprot.writeFieldEnd()
19347
    oprot.writeFieldStop()
19348
    oprot.writeStructEnd()
19349
 
19350
  def validate(self):
19351
    return
19352
 
19353
 
19354
  def __repr__(self):
19355
    L = ['%s=%r' % (key, value)
19356
      for key, value in self.__dict__.iteritems()]
19357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19358
 
19359
  def __eq__(self, other):
19360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19361
 
19362
  def __ne__(self, other):
19363
    return not (self == other)
19364
 
19365
class deleteVoucherForItem_args:
19366
  """
19367
  Attributes:
19368
   - catalog_item_id
19369
   - voucherType
19370
  """
19371
 
19372
  thrift_spec = (
19373
    None, # 0
19374
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19375
    (2, TType.I64, 'voucherType', None, None, ), # 2
19376
  )
19377
 
19378
  def __init__(self, catalog_item_id=None, voucherType=None,):
19379
    self.catalog_item_id = catalog_item_id
19380
    self.voucherType = voucherType
19381
 
19382
  def read(self, iprot):
19383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19385
      return
19386
    iprot.readStructBegin()
19387
    while True:
19388
      (fname, ftype, fid) = iprot.readFieldBegin()
19389
      if ftype == TType.STOP:
19390
        break
19391
      if fid == 1:
19392
        if ftype == TType.I64:
19393
          self.catalog_item_id = iprot.readI64();
19394
        else:
19395
          iprot.skip(ftype)
19396
      elif fid == 2:
19397
        if ftype == TType.I64:
19398
          self.voucherType = iprot.readI64();
19399
        else:
19400
          iprot.skip(ftype)
19401
      else:
19402
        iprot.skip(ftype)
19403
      iprot.readFieldEnd()
19404
    iprot.readStructEnd()
19405
 
19406
  def write(self, oprot):
19407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19409
      return
19410
    oprot.writeStructBegin('deleteVoucherForItem_args')
19411
    if self.catalog_item_id is not None:
19412
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19413
      oprot.writeI64(self.catalog_item_id)
19414
      oprot.writeFieldEnd()
19415
    if self.voucherType is not None:
19416
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19417
      oprot.writeI64(self.voucherType)
19418
      oprot.writeFieldEnd()
19419
    oprot.writeFieldStop()
19420
    oprot.writeStructEnd()
19421
 
19422
  def validate(self):
19423
    return
19424
 
19425
 
19426
  def __repr__(self):
19427
    L = ['%s=%r' % (key, value)
19428
      for key, value in self.__dict__.iteritems()]
19429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19430
 
19431
  def __eq__(self, other):
19432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19433
 
19434
  def __ne__(self, other):
19435
    return not (self == other)
19436
 
19437
class deleteVoucherForItem_result:
19438
  """
19439
  Attributes:
19440
   - success
19441
   - cex
19442
  """
19443
 
19444
  thrift_spec = (
19445
    (0, TType.BOOL, 'success', None, None, ), # 0
19446
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19447
  )
19448
 
19449
  def __init__(self, success=None, cex=None,):
19450
    self.success = success
19451
    self.cex = cex
19452
 
19453
  def read(self, iprot):
19454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19456
      return
19457
    iprot.readStructBegin()
19458
    while True:
19459
      (fname, ftype, fid) = iprot.readFieldBegin()
19460
      if ftype == TType.STOP:
19461
        break
19462
      if fid == 0:
19463
        if ftype == TType.BOOL:
19464
          self.success = iprot.readBool();
19465
        else:
19466
          iprot.skip(ftype)
19467
      elif fid == 1:
19468
        if ftype == TType.STRUCT:
19469
          self.cex = CatalogServiceException()
19470
          self.cex.read(iprot)
19471
        else:
19472
          iprot.skip(ftype)
19473
      else:
19474
        iprot.skip(ftype)
19475
      iprot.readFieldEnd()
19476
    iprot.readStructEnd()
19477
 
19478
  def write(self, oprot):
19479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19481
      return
19482
    oprot.writeStructBegin('deleteVoucherForItem_result')
19483
    if self.success is not None:
19484
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19485
      oprot.writeBool(self.success)
19486
      oprot.writeFieldEnd()
19487
    if self.cex is not None:
19488
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19489
      self.cex.write(oprot)
19490
      oprot.writeFieldEnd()
19491
    oprot.writeFieldStop()
19492
    oprot.writeStructEnd()
19493
 
19494
  def validate(self):
19495
    return
19496
 
19497
 
19498
  def __repr__(self):
19499
    L = ['%s=%r' % (key, value)
19500
      for key, value in self.__dict__.iteritems()]
19501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19502
 
19503
  def __eq__(self, other):
19504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19505
 
19506
  def __ne__(self, other):
19507
    return not (self == other)
19508
 
19509
class getVoucherAmount_args:
19510
  """
19511
  Attributes:
19512
   - itemId
19513
   - voucherType
19514
  """
19515
 
19516
  thrift_spec = (
19517
    None, # 0
19518
    (1, TType.I64, 'itemId', None, None, ), # 1
19519
    (2, TType.I64, 'voucherType', None, None, ), # 2
19520
  )
19521
 
19522
  def __init__(self, itemId=None, voucherType=None,):
19523
    self.itemId = itemId
19524
    self.voucherType = voucherType
19525
 
19526
  def read(self, iprot):
19527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19529
      return
19530
    iprot.readStructBegin()
19531
    while True:
19532
      (fname, ftype, fid) = iprot.readFieldBegin()
19533
      if ftype == TType.STOP:
19534
        break
19535
      if fid == 1:
19536
        if ftype == TType.I64:
19537
          self.itemId = iprot.readI64();
19538
        else:
19539
          iprot.skip(ftype)
19540
      elif fid == 2:
19541
        if ftype == TType.I64:
19542
          self.voucherType = iprot.readI64();
19543
        else:
19544
          iprot.skip(ftype)
19545
      else:
19546
        iprot.skip(ftype)
19547
      iprot.readFieldEnd()
19548
    iprot.readStructEnd()
19549
 
19550
  def write(self, oprot):
19551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19553
      return
19554
    oprot.writeStructBegin('getVoucherAmount_args')
19555
    if self.itemId is not None:
19556
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19557
      oprot.writeI64(self.itemId)
19558
      oprot.writeFieldEnd()
19559
    if self.voucherType is not None:
19560
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19561
      oprot.writeI64(self.voucherType)
19562
      oprot.writeFieldEnd()
19563
    oprot.writeFieldStop()
19564
    oprot.writeStructEnd()
19565
 
19566
  def validate(self):
19567
    return
19568
 
19569
 
19570
  def __repr__(self):
19571
    L = ['%s=%r' % (key, value)
19572
      for key, value in self.__dict__.iteritems()]
19573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19574
 
19575
  def __eq__(self, other):
19576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19577
 
19578
  def __ne__(self, other):
19579
    return not (self == other)
19580
 
19581
class getVoucherAmount_result:
19582
  """
19583
  Attributes:
19584
   - success
19585
  """
19586
 
19587
  thrift_spec = (
19588
    (0, TType.I64, 'success', None, None, ), # 0
19589
  )
19590
 
19591
  def __init__(self, success=None,):
19592
    self.success = success
19593
 
19594
  def read(self, iprot):
19595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19597
      return
19598
    iprot.readStructBegin()
19599
    while True:
19600
      (fname, ftype, fid) = iprot.readFieldBegin()
19601
      if ftype == TType.STOP:
19602
        break
19603
      if fid == 0:
19604
        if ftype == TType.I64:
19605
          self.success = iprot.readI64();
19606
        else:
19607
          iprot.skip(ftype)
19608
      else:
19609
        iprot.skip(ftype)
19610
      iprot.readFieldEnd()
19611
    iprot.readStructEnd()
19612
 
19613
  def write(self, oprot):
19614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19616
      return
19617
    oprot.writeStructBegin('getVoucherAmount_result')
19618
    if self.success is not None:
19619
      oprot.writeFieldBegin('success', TType.I64, 0)
19620
      oprot.writeI64(self.success)
19621
      oprot.writeFieldEnd()
19622
    oprot.writeFieldStop()
19623
    oprot.writeStructEnd()
19624
 
19625
  def validate(self):
19626
    return
19627
 
19628
 
19629
  def __repr__(self):
19630
    L = ['%s=%r' % (key, value)
19631
      for key, value in self.__dict__.iteritems()]
19632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19633
 
19634
  def __eq__(self, other):
19635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19636
 
19637
  def __ne__(self, other):
19638
    return not (self == other)
19639
 
19640
class getAllItemVouchers_args:
19641
  """
19642
  Attributes:
19643
   - itemId
19644
  """
19645
 
19646
  thrift_spec = (
19647
    None, # 0
19648
    (1, TType.I64, 'itemId', None, None, ), # 1
19649
  )
19650
 
19651
  def __init__(self, itemId=None,):
19652
    self.itemId = itemId
19653
 
19654
  def read(self, iprot):
19655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19657
      return
19658
    iprot.readStructBegin()
19659
    while True:
19660
      (fname, ftype, fid) = iprot.readFieldBegin()
19661
      if ftype == TType.STOP:
19662
        break
19663
      if fid == 1:
19664
        if ftype == TType.I64:
19665
          self.itemId = iprot.readI64();
19666
        else:
19667
          iprot.skip(ftype)
19668
      else:
19669
        iprot.skip(ftype)
19670
      iprot.readFieldEnd()
19671
    iprot.readStructEnd()
19672
 
19673
  def write(self, oprot):
19674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19676
      return
19677
    oprot.writeStructBegin('getAllItemVouchers_args')
19678
    if self.itemId is not None:
19679
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19680
      oprot.writeI64(self.itemId)
19681
      oprot.writeFieldEnd()
19682
    oprot.writeFieldStop()
19683
    oprot.writeStructEnd()
19684
 
19685
  def validate(self):
19686
    return
19687
 
19688
 
19689
  def __repr__(self):
19690
    L = ['%s=%r' % (key, value)
19691
      for key, value in self.__dict__.iteritems()]
19692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19693
 
19694
  def __eq__(self, other):
19695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19696
 
19697
  def __ne__(self, other):
19698
    return not (self == other)
19699
 
19700
class getAllItemVouchers_result:
19701
  """
19702
  Attributes:
19703
   - success
19704
  """
19705
 
19706
  thrift_spec = (
19707
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
19708
  )
19709
 
19710
  def __init__(self, success=None,):
19711
    self.success = success
19712
 
19713
  def read(self, iprot):
19714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19716
      return
19717
    iprot.readStructBegin()
19718
    while True:
19719
      (fname, ftype, fid) = iprot.readFieldBegin()
19720
      if ftype == TType.STOP:
19721
        break
19722
      if fid == 0:
19723
        if ftype == TType.LIST:
19724
          self.success = []
9155 kshitij.so 19725
          (_etype363, _size360) = iprot.readListBegin()
19726
          for _i364 in xrange(_size360):
19727
            _elem365 = VoucherItemMapping()
19728
            _elem365.read(iprot)
19729
            self.success.append(_elem365)
5944 mandeep.dh 19730
          iprot.readListEnd()
19731
        else:
19732
          iprot.skip(ftype)
19733
      else:
19734
        iprot.skip(ftype)
19735
      iprot.readFieldEnd()
19736
    iprot.readStructEnd()
19737
 
19738
  def write(self, oprot):
19739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19741
      return
19742
    oprot.writeStructBegin('getAllItemVouchers_result')
19743
    if self.success is not None:
19744
      oprot.writeFieldBegin('success', TType.LIST, 0)
19745
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19746
      for iter366 in self.success:
19747
        iter366.write(oprot)
5944 mandeep.dh 19748
      oprot.writeListEnd()
19749
      oprot.writeFieldEnd()
19750
    oprot.writeFieldStop()
19751
    oprot.writeStructEnd()
19752
 
19753
  def validate(self):
19754
    return
19755
 
19756
 
19757
  def __repr__(self):
19758
    L = ['%s=%r' % (key, value)
19759
      for key, value in self.__dict__.iteritems()]
19760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19761
 
19762
  def __eq__(self, other):
19763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19764
 
19765
  def __ne__(self, other):
19766
    return not (self == other)
19767
 
19768
class isValidCatalogItemId_args:
19769
  """
19770
  Attributes:
19771
   - catalog_item_id
19772
  """
19773
 
19774
  thrift_spec = (
19775
    None, # 0
19776
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19777
  )
19778
 
19779
  def __init__(self, catalog_item_id=None,):
19780
    self.catalog_item_id = catalog_item_id
19781
 
19782
  def read(self, iprot):
19783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19785
      return
19786
    iprot.readStructBegin()
19787
    while True:
19788
      (fname, ftype, fid) = iprot.readFieldBegin()
19789
      if ftype == TType.STOP:
19790
        break
19791
      if fid == 1:
19792
        if ftype == TType.I64:
19793
          self.catalog_item_id = iprot.readI64();
19794
        else:
19795
          iprot.skip(ftype)
19796
      else:
19797
        iprot.skip(ftype)
19798
      iprot.readFieldEnd()
19799
    iprot.readStructEnd()
19800
 
19801
  def write(self, oprot):
19802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19804
      return
19805
    oprot.writeStructBegin('isValidCatalogItemId_args')
19806
    if self.catalog_item_id is not None:
19807
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19808
      oprot.writeI64(self.catalog_item_id)
19809
      oprot.writeFieldEnd()
19810
    oprot.writeFieldStop()
19811
    oprot.writeStructEnd()
19812
 
19813
  def validate(self):
19814
    return
19815
 
19816
 
19817
  def __repr__(self):
19818
    L = ['%s=%r' % (key, value)
19819
      for key, value in self.__dict__.iteritems()]
19820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19821
 
19822
  def __eq__(self, other):
19823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19824
 
19825
  def __ne__(self, other):
19826
    return not (self == other)
19827
 
19828
class isValidCatalogItemId_result:
19829
  """
19830
  Attributes:
19831
   - success
19832
  """
19833
 
19834
  thrift_spec = (
19835
    (0, TType.BOOL, 'success', None, None, ), # 0
19836
  )
19837
 
19838
  def __init__(self, success=None,):
19839
    self.success = success
19840
 
19841
  def read(self, iprot):
19842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19844
      return
19845
    iprot.readStructBegin()
19846
    while True:
19847
      (fname, ftype, fid) = iprot.readFieldBegin()
19848
      if ftype == TType.STOP:
19849
        break
19850
      if fid == 0:
19851
        if ftype == TType.BOOL:
19852
          self.success = iprot.readBool();
19853
        else:
19854
          iprot.skip(ftype)
19855
      else:
19856
        iprot.skip(ftype)
19857
      iprot.readFieldEnd()
19858
    iprot.readStructEnd()
19859
 
19860
  def write(self, oprot):
19861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19863
      return
19864
    oprot.writeStructBegin('isValidCatalogItemId_result')
19865
    if self.success is not None:
19866
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19867
      oprot.writeBool(self.success)
19868
      oprot.writeFieldEnd()
19869
    oprot.writeFieldStop()
19870
    oprot.writeStructEnd()
19871
 
19872
  def validate(self):
19873
    return
19874
 
19875
 
19876
  def __repr__(self):
19877
    L = ['%s=%r' % (key, value)
19878
      for key, value in self.__dict__.iteritems()]
19879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19880
 
19881
  def __eq__(self, other):
19882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19883
 
19884
  def __ne__(self, other):
19885
    return not (self == other)
6039 amit.gupta 19886
 
19887
class getVatPercentageForItem_args:
19888
  """
19889
  Attributes:
19890
   - itemId
7330 amit.gupta 19891
   - stateId
6039 amit.gupta 19892
   - price
19893
  """
19894
 
19895
  thrift_spec = (
19896
    None, # 0
19897
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 19898
    (2, TType.I64, 'stateId', None, None, ), # 2
19899
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 19900
  )
19901
 
7330 amit.gupta 19902
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 19903
    self.itemId = itemId
7330 amit.gupta 19904
    self.stateId = stateId
6039 amit.gupta 19905
    self.price = price
19906
 
19907
  def read(self, iprot):
19908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19910
      return
19911
    iprot.readStructBegin()
19912
    while True:
19913
      (fname, ftype, fid) = iprot.readFieldBegin()
19914
      if ftype == TType.STOP:
19915
        break
19916
      if fid == 1:
19917
        if ftype == TType.I64:
19918
          self.itemId = iprot.readI64();
19919
        else:
19920
          iprot.skip(ftype)
19921
      elif fid == 2:
7330 amit.gupta 19922
        if ftype == TType.I64:
19923
          self.stateId = iprot.readI64();
19924
        else:
19925
          iprot.skip(ftype)
19926
      elif fid == 3:
6039 amit.gupta 19927
        if ftype == TType.DOUBLE:
19928
          self.price = iprot.readDouble();
19929
        else:
19930
          iprot.skip(ftype)
19931
      else:
19932
        iprot.skip(ftype)
19933
      iprot.readFieldEnd()
19934
    iprot.readStructEnd()
19935
 
19936
  def write(self, oprot):
19937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19939
      return
19940
    oprot.writeStructBegin('getVatPercentageForItem_args')
19941
    if self.itemId is not None:
19942
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19943
      oprot.writeI64(self.itemId)
19944
      oprot.writeFieldEnd()
7330 amit.gupta 19945
    if self.stateId is not None:
19946
      oprot.writeFieldBegin('stateId', TType.I64, 2)
19947
      oprot.writeI64(self.stateId)
19948
      oprot.writeFieldEnd()
6039 amit.gupta 19949
    if self.price is not None:
7330 amit.gupta 19950
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 19951
      oprot.writeDouble(self.price)
19952
      oprot.writeFieldEnd()
19953
    oprot.writeFieldStop()
19954
    oprot.writeStructEnd()
19955
 
19956
  def validate(self):
19957
    return
19958
 
19959
 
19960
  def __repr__(self):
19961
    L = ['%s=%r' % (key, value)
19962
      for key, value in self.__dict__.iteritems()]
19963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19964
 
19965
  def __eq__(self, other):
19966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19967
 
19968
  def __ne__(self, other):
19969
    return not (self == other)
19970
 
19971
class getVatPercentageForItem_result:
19972
  """
19973
  Attributes:
19974
   - success
7340 amit.gupta 19975
   - cex
6039 amit.gupta 19976
  """
19977
 
19978
  thrift_spec = (
19979
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 19980
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 19981
  )
19982
 
7340 amit.gupta 19983
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 19984
    self.success = success
7340 amit.gupta 19985
    self.cex = cex
6039 amit.gupta 19986
 
19987
  def read(self, iprot):
19988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19990
      return
19991
    iprot.readStructBegin()
19992
    while True:
19993
      (fname, ftype, fid) = iprot.readFieldBegin()
19994
      if ftype == TType.STOP:
19995
        break
19996
      if fid == 0:
19997
        if ftype == TType.DOUBLE:
19998
          self.success = iprot.readDouble();
19999
        else:
20000
          iprot.skip(ftype)
7340 amit.gupta 20001
      elif fid == 1:
20002
        if ftype == TType.STRUCT:
20003
          self.cex = CatalogServiceException()
20004
          self.cex.read(iprot)
20005
        else:
20006
          iprot.skip(ftype)
6039 amit.gupta 20007
      else:
20008
        iprot.skip(ftype)
20009
      iprot.readFieldEnd()
20010
    iprot.readStructEnd()
20011
 
20012
  def write(self, oprot):
20013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20015
      return
20016
    oprot.writeStructBegin('getVatPercentageForItem_result')
20017
    if self.success is not None:
20018
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20019
      oprot.writeDouble(self.success)
20020
      oprot.writeFieldEnd()
7340 amit.gupta 20021
    if self.cex is not None:
20022
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20023
      self.cex.write(oprot)
20024
      oprot.writeFieldEnd()
6039 amit.gupta 20025
    oprot.writeFieldStop()
20026
    oprot.writeStructEnd()
20027
 
20028
  def validate(self):
20029
    return
20030
 
20031
 
20032
  def __repr__(self):
20033
    L = ['%s=%r' % (key, value)
20034
      for key, value in self.__dict__.iteritems()]
20035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20036
 
20037
  def __eq__(self, other):
20038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20039
 
20040
  def __ne__(self, other):
20041
    return not (self == other)
20042
 
20043
class getVatAmountForItem_args:
20044
  """
20045
  Attributes:
20046
   - itemId
20047
   - price
20048
  """
20049
 
20050
  thrift_spec = (
20051
    None, # 0
20052
    (1, TType.I64, 'itemId', None, None, ), # 1
20053
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20054
  )
20055
 
20056
  def __init__(self, itemId=None, price=None,):
20057
    self.itemId = itemId
20058
    self.price = price
20059
 
20060
  def read(self, iprot):
20061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20063
      return
20064
    iprot.readStructBegin()
20065
    while True:
20066
      (fname, ftype, fid) = iprot.readFieldBegin()
20067
      if ftype == TType.STOP:
20068
        break
20069
      if fid == 1:
20070
        if ftype == TType.I64:
20071
          self.itemId = iprot.readI64();
20072
        else:
20073
          iprot.skip(ftype)
20074
      elif fid == 2:
20075
        if ftype == TType.DOUBLE:
20076
          self.price = iprot.readDouble();
20077
        else:
20078
          iprot.skip(ftype)
20079
      else:
20080
        iprot.skip(ftype)
20081
      iprot.readFieldEnd()
20082
    iprot.readStructEnd()
20083
 
20084
  def write(self, oprot):
20085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20087
      return
20088
    oprot.writeStructBegin('getVatAmountForItem_args')
20089
    if self.itemId is not None:
20090
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20091
      oprot.writeI64(self.itemId)
20092
      oprot.writeFieldEnd()
20093
    if self.price is not None:
20094
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20095
      oprot.writeDouble(self.price)
20096
      oprot.writeFieldEnd()
20097
    oprot.writeFieldStop()
20098
    oprot.writeStructEnd()
20099
 
20100
  def validate(self):
20101
    return
20102
 
20103
 
20104
  def __repr__(self):
20105
    L = ['%s=%r' % (key, value)
20106
      for key, value in self.__dict__.iteritems()]
20107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20108
 
20109
  def __eq__(self, other):
20110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20111
 
20112
  def __ne__(self, other):
20113
    return not (self == other)
20114
 
20115
class getVatAmountForItem_result:
20116
  """
20117
  Attributes:
20118
   - success
20119
  """
20120
 
20121
  thrift_spec = (
20122
    (0, TType.DOUBLE, 'success', None, None, ), # 0
20123
  )
20124
 
20125
  def __init__(self, success=None,):
20126
    self.success = success
20127
 
20128
  def read(self, iprot):
20129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20131
      return
20132
    iprot.readStructBegin()
20133
    while True:
20134
      (fname, ftype, fid) = iprot.readFieldBegin()
20135
      if ftype == TType.STOP:
20136
        break
20137
      if fid == 0:
20138
        if ftype == TType.DOUBLE:
20139
          self.success = iprot.readDouble();
20140
        else:
20141
          iprot.skip(ftype)
20142
      else:
20143
        iprot.skip(ftype)
20144
      iprot.readFieldEnd()
20145
    iprot.readStructEnd()
20146
 
20147
  def write(self, oprot):
20148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20150
      return
20151
    oprot.writeStructBegin('getVatAmountForItem_result')
20152
    if self.success is not None:
20153
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20154
      oprot.writeDouble(self.success)
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)
6531 vikram.rag 20173
 
20174
class getAllIgnoredInventoryUpdateItemsList_args:
20175
  """
20176
  Attributes:
20177
   - offset
20178
   - limit
20179
  """
20180
 
20181
  thrift_spec = (
20182
    None, # 0
20183
    (1, TType.I32, 'offset', None, None, ), # 1
20184
    (2, TType.I32, 'limit', None, None, ), # 2
20185
  )
20186
 
20187
  def __init__(self, offset=None, limit=None,):
20188
    self.offset = offset
20189
    self.limit = limit
20190
 
20191
  def read(self, iprot):
20192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20194
      return
20195
    iprot.readStructBegin()
20196
    while True:
20197
      (fname, ftype, fid) = iprot.readFieldBegin()
20198
      if ftype == TType.STOP:
20199
        break
20200
      if fid == 1:
20201
        if ftype == TType.I32:
20202
          self.offset = iprot.readI32();
20203
        else:
20204
          iprot.skip(ftype)
20205
      elif fid == 2:
20206
        if ftype == TType.I32:
20207
          self.limit = iprot.readI32();
20208
        else:
20209
          iprot.skip(ftype)
20210
      else:
20211
        iprot.skip(ftype)
20212
      iprot.readFieldEnd()
20213
    iprot.readStructEnd()
20214
 
20215
  def write(self, oprot):
20216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20218
      return
20219
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
20220
    if self.offset is not None:
20221
      oprot.writeFieldBegin('offset', TType.I32, 1)
20222
      oprot.writeI32(self.offset)
20223
      oprot.writeFieldEnd()
20224
    if self.limit is not None:
20225
      oprot.writeFieldBegin('limit', TType.I32, 2)
20226
      oprot.writeI32(self.limit)
20227
      oprot.writeFieldEnd()
20228
    oprot.writeFieldStop()
20229
    oprot.writeStructEnd()
20230
 
20231
  def validate(self):
20232
    return
20233
 
20234
 
20235
  def __repr__(self):
20236
    L = ['%s=%r' % (key, value)
20237
      for key, value in self.__dict__.iteritems()]
20238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20239
 
20240
  def __eq__(self, other):
20241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20242
 
20243
  def __ne__(self, other):
20244
    return not (self == other)
20245
 
20246
class getAllIgnoredInventoryUpdateItemsList_result:
20247
  """
20248
  Attributes:
20249
   - success
20250
  """
20251
 
20252
  thrift_spec = (
20253
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20254
  )
20255
 
20256
  def __init__(self, success=None,):
20257
    self.success = success
20258
 
20259
  def read(self, iprot):
20260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20262
      return
20263
    iprot.readStructBegin()
20264
    while True:
20265
      (fname, ftype, fid) = iprot.readFieldBegin()
20266
      if ftype == TType.STOP:
20267
        break
20268
      if fid == 0:
20269
        if ftype == TType.LIST:
20270
          self.success = []
9155 kshitij.so 20271
          (_etype370, _size367) = iprot.readListBegin()
20272
          for _i371 in xrange(_size367):
20273
            _elem372 = Item()
20274
            _elem372.read(iprot)
20275
            self.success.append(_elem372)
6531 vikram.rag 20276
          iprot.readListEnd()
20277
        else:
20278
          iprot.skip(ftype)
20279
      else:
20280
        iprot.skip(ftype)
20281
      iprot.readFieldEnd()
20282
    iprot.readStructEnd()
20283
 
20284
  def write(self, oprot):
20285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20287
      return
20288
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
20289
    if self.success is not None:
20290
      oprot.writeFieldBegin('success', TType.LIST, 0)
20291
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20292
      for iter373 in self.success:
20293
        iter373.write(oprot)
6531 vikram.rag 20294
      oprot.writeListEnd()
20295
      oprot.writeFieldEnd()
20296
    oprot.writeFieldStop()
20297
    oprot.writeStructEnd()
20298
 
20299
  def validate(self):
20300
    return
20301
 
20302
 
20303
  def __repr__(self):
20304
    L = ['%s=%r' % (key, value)
20305
      for key, value in self.__dict__.iteritems()]
20306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20307
 
20308
  def __eq__(self, other):
20309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20310
 
20311
  def __ne__(self, other):
20312
    return not (self == other)
6805 anupam.sin 20313
 
6821 amar.kumar 20314
class getAllAliveItems_args:
20315
 
20316
  thrift_spec = (
20317
  )
20318
 
20319
  def read(self, iprot):
20320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20322
      return
20323
    iprot.readStructBegin()
20324
    while True:
20325
      (fname, ftype, fid) = iprot.readFieldBegin()
20326
      if ftype == TType.STOP:
20327
        break
20328
      else:
20329
        iprot.skip(ftype)
20330
      iprot.readFieldEnd()
20331
    iprot.readStructEnd()
20332
 
20333
  def write(self, oprot):
20334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20336
      return
20337
    oprot.writeStructBegin('getAllAliveItems_args')
20338
    oprot.writeFieldStop()
20339
    oprot.writeStructEnd()
20340
 
20341
  def validate(self):
20342
    return
20343
 
20344
 
20345
  def __repr__(self):
20346
    L = ['%s=%r' % (key, value)
20347
      for key, value in self.__dict__.iteritems()]
20348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20349
 
20350
  def __eq__(self, other):
20351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20352
 
20353
  def __ne__(self, other):
20354
    return not (self == other)
20355
 
20356
class getAllAliveItems_result:
20357
  """
20358
  Attributes:
20359
   - success
20360
  """
20361
 
20362
  thrift_spec = (
20363
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20364
  )
20365
 
20366
  def __init__(self, success=None,):
20367
    self.success = success
20368
 
20369
  def read(self, iprot):
20370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20372
      return
20373
    iprot.readStructBegin()
20374
    while True:
20375
      (fname, ftype, fid) = iprot.readFieldBegin()
20376
      if ftype == TType.STOP:
20377
        break
20378
      if fid == 0:
20379
        if ftype == TType.LIST:
20380
          self.success = []
9155 kshitij.so 20381
          (_etype377, _size374) = iprot.readListBegin()
20382
          for _i378 in xrange(_size374):
20383
            _elem379 = Item()
20384
            _elem379.read(iprot)
20385
            self.success.append(_elem379)
6821 amar.kumar 20386
          iprot.readListEnd()
20387
        else:
20388
          iprot.skip(ftype)
20389
      else:
20390
        iprot.skip(ftype)
20391
      iprot.readFieldEnd()
20392
    iprot.readStructEnd()
20393
 
20394
  def write(self, oprot):
20395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20397
      return
20398
    oprot.writeStructBegin('getAllAliveItems_result')
20399
    if self.success is not None:
20400
      oprot.writeFieldBegin('success', TType.LIST, 0)
20401
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20402
      for iter380 in self.success:
20403
        iter380.write(oprot)
6821 amar.kumar 20404
      oprot.writeListEnd()
20405
      oprot.writeFieldEnd()
20406
    oprot.writeFieldStop()
20407
    oprot.writeStructEnd()
20408
 
20409
  def validate(self):
20410
    return
20411
 
20412
 
20413
  def __repr__(self):
20414
    L = ['%s=%r' % (key, value)
20415
      for key, value in self.__dict__.iteritems()]
20416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20417
 
20418
  def __eq__(self, other):
20419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20420
 
20421
  def __ne__(self, other):
20422
    return not (self == other)
20423
 
6805 anupam.sin 20424
class getInsuranceAmount_args:
20425
  """
20426
  Attributes:
20427
   - itemId
6921 anupam.sin 20428
   - price
6805 anupam.sin 20429
   - insurerId
20430
   - quantity
20431
  """
20432
 
20433
  thrift_spec = (
20434
    None, # 0
20435
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 20436
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20437
    (3, TType.I64, 'insurerId', None, None, ), # 3
20438
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 20439
  )
20440
 
6921 anupam.sin 20441
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 20442
    self.itemId = itemId
6921 anupam.sin 20443
    self.price = price
6805 anupam.sin 20444
    self.insurerId = insurerId
20445
    self.quantity = quantity
20446
 
20447
  def read(self, iprot):
20448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20450
      return
20451
    iprot.readStructBegin()
20452
    while True:
20453
      (fname, ftype, fid) = iprot.readFieldBegin()
20454
      if ftype == TType.STOP:
20455
        break
20456
      if fid == 1:
20457
        if ftype == TType.I64:
20458
          self.itemId = iprot.readI64();
20459
        else:
20460
          iprot.skip(ftype)
20461
      elif fid == 2:
6921 anupam.sin 20462
        if ftype == TType.DOUBLE:
20463
          self.price = iprot.readDouble();
20464
        else:
20465
          iprot.skip(ftype)
20466
      elif fid == 3:
6805 anupam.sin 20467
        if ftype == TType.I64:
20468
          self.insurerId = iprot.readI64();
20469
        else:
20470
          iprot.skip(ftype)
6921 anupam.sin 20471
      elif fid == 4:
6805 anupam.sin 20472
        if ftype == TType.I64:
20473
          self.quantity = iprot.readI64();
20474
        else:
20475
          iprot.skip(ftype)
20476
      else:
20477
        iprot.skip(ftype)
20478
      iprot.readFieldEnd()
20479
    iprot.readStructEnd()
20480
 
20481
  def write(self, oprot):
20482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20484
      return
20485
    oprot.writeStructBegin('getInsuranceAmount_args')
20486
    if self.itemId is not None:
20487
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20488
      oprot.writeI64(self.itemId)
20489
      oprot.writeFieldEnd()
6921 anupam.sin 20490
    if self.price is not None:
20491
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20492
      oprot.writeDouble(self.price)
20493
      oprot.writeFieldEnd()
6805 anupam.sin 20494
    if self.insurerId is not None:
6921 anupam.sin 20495
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 20496
      oprot.writeI64(self.insurerId)
20497
      oprot.writeFieldEnd()
20498
    if self.quantity is not None:
6921 anupam.sin 20499
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 20500
      oprot.writeI64(self.quantity)
20501
      oprot.writeFieldEnd()
20502
    oprot.writeFieldStop()
20503
    oprot.writeStructEnd()
20504
 
20505
  def validate(self):
20506
    return
20507
 
20508
 
20509
  def __repr__(self):
20510
    L = ['%s=%r' % (key, value)
20511
      for key, value in self.__dict__.iteritems()]
20512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20513
 
20514
  def __eq__(self, other):
20515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20516
 
20517
  def __ne__(self, other):
20518
    return not (self == other)
20519
 
20520
class getInsuranceAmount_result:
20521
  """
20522
  Attributes:
20523
   - success
20524
  """
20525
 
20526
  thrift_spec = (
20527
    (0, TType.I64, 'success', None, None, ), # 0
20528
  )
20529
 
20530
  def __init__(self, success=None,):
20531
    self.success = success
20532
 
20533
  def read(self, iprot):
20534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20536
      return
20537
    iprot.readStructBegin()
20538
    while True:
20539
      (fname, ftype, fid) = iprot.readFieldBegin()
20540
      if ftype == TType.STOP:
20541
        break
20542
      if fid == 0:
20543
        if ftype == TType.I64:
20544
          self.success = iprot.readI64();
20545
        else:
20546
          iprot.skip(ftype)
20547
      else:
20548
        iprot.skip(ftype)
20549
      iprot.readFieldEnd()
20550
    iprot.readStructEnd()
20551
 
20552
  def write(self, oprot):
20553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20555
      return
20556
    oprot.writeStructBegin('getInsuranceAmount_result')
20557
    if self.success is not None:
20558
      oprot.writeFieldBegin('success', TType.I64, 0)
20559
      oprot.writeI64(self.success)
20560
      oprot.writeFieldEnd()
20561
    oprot.writeFieldStop()
20562
    oprot.writeStructEnd()
20563
 
20564
  def validate(self):
20565
    return
20566
 
20567
 
20568
  def __repr__(self):
20569
    L = ['%s=%r' % (key, value)
20570
      for key, value in self.__dict__.iteritems()]
20571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20572
 
20573
  def __eq__(self, other):
20574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20575
 
20576
  def __ne__(self, other):
20577
    return not (self == other)
20578
 
20579
class getInsurer_args:
20580
  """
20581
  Attributes:
20582
   - insurerId
20583
  """
20584
 
20585
  thrift_spec = (
20586
    None, # 0
20587
    (1, TType.I64, 'insurerId', None, None, ), # 1
20588
  )
20589
 
20590
  def __init__(self, insurerId=None,):
20591
    self.insurerId = insurerId
20592
 
20593
  def read(self, iprot):
20594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20596
      return
20597
    iprot.readStructBegin()
20598
    while True:
20599
      (fname, ftype, fid) = iprot.readFieldBegin()
20600
      if ftype == TType.STOP:
20601
        break
20602
      if fid == 1:
20603
        if ftype == TType.I64:
20604
          self.insurerId = iprot.readI64();
20605
        else:
20606
          iprot.skip(ftype)
20607
      else:
20608
        iprot.skip(ftype)
20609
      iprot.readFieldEnd()
20610
    iprot.readStructEnd()
20611
 
20612
  def write(self, oprot):
20613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20615
      return
20616
    oprot.writeStructBegin('getInsurer_args')
20617
    if self.insurerId is not None:
20618
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
20619
      oprot.writeI64(self.insurerId)
20620
      oprot.writeFieldEnd()
20621
    oprot.writeFieldStop()
20622
    oprot.writeStructEnd()
20623
 
20624
  def validate(self):
20625
    return
20626
 
20627
 
20628
  def __repr__(self):
20629
    L = ['%s=%r' % (key, value)
20630
      for key, value in self.__dict__.iteritems()]
20631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20632
 
20633
  def __eq__(self, other):
20634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20635
 
20636
  def __ne__(self, other):
20637
    return not (self == other)
20638
 
20639
class getInsurer_result:
20640
  """
20641
  Attributes:
20642
   - success
20643
  """
20644
 
20645
  thrift_spec = (
20646
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
20647
  )
20648
 
20649
  def __init__(self, success=None,):
20650
    self.success = success
20651
 
20652
  def read(self, iprot):
20653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20655
      return
20656
    iprot.readStructBegin()
20657
    while True:
20658
      (fname, ftype, fid) = iprot.readFieldBegin()
20659
      if ftype == TType.STOP:
20660
        break
20661
      if fid == 0:
20662
        if ftype == TType.STRUCT:
20663
          self.success = Insurer()
20664
          self.success.read(iprot)
20665
        else:
20666
          iprot.skip(ftype)
20667
      else:
20668
        iprot.skip(ftype)
20669
      iprot.readFieldEnd()
20670
    iprot.readStructEnd()
20671
 
20672
  def write(self, oprot):
20673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20675
      return
20676
    oprot.writeStructBegin('getInsurer_result')
20677
    if self.success is not None:
20678
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
20679
      self.success.write(oprot)
20680
      oprot.writeFieldEnd()
20681
    oprot.writeFieldStop()
20682
    oprot.writeStructEnd()
20683
 
20684
  def validate(self):
20685
    return
20686
 
20687
 
20688
  def __repr__(self):
20689
    L = ['%s=%r' % (key, value)
20690
      for key, value in self.__dict__.iteritems()]
20691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20692
 
20693
  def __eq__(self, other):
20694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20695
 
20696
  def __ne__(self, other):
20697
    return not (self == other)
6838 vikram.rag 20698
 
20699
class getAllInsurers_args:
20700
 
20701
  thrift_spec = (
20702
  )
20703
 
20704
  def read(self, iprot):
20705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20707
      return
20708
    iprot.readStructBegin()
20709
    while True:
20710
      (fname, ftype, fid) = iprot.readFieldBegin()
20711
      if ftype == TType.STOP:
20712
        break
20713
      else:
20714
        iprot.skip(ftype)
20715
      iprot.readFieldEnd()
20716
    iprot.readStructEnd()
20717
 
20718
  def write(self, oprot):
20719
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20720
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20721
      return
20722
    oprot.writeStructBegin('getAllInsurers_args')
20723
    oprot.writeFieldStop()
20724
    oprot.writeStructEnd()
20725
 
20726
  def validate(self):
20727
    return
20728
 
20729
 
20730
  def __repr__(self):
20731
    L = ['%s=%r' % (key, value)
20732
      for key, value in self.__dict__.iteritems()]
20733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20734
 
20735
  def __eq__(self, other):
20736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20737
 
20738
  def __ne__(self, other):
20739
    return not (self == other)
20740
 
20741
class getAllInsurers_result:
20742
  """
20743
  Attributes:
20744
   - success
20745
  """
20746
 
20747
  thrift_spec = (
20748
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
20749
  )
20750
 
20751
  def __init__(self, success=None,):
20752
    self.success = success
20753
 
20754
  def read(self, iprot):
20755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20757
      return
20758
    iprot.readStructBegin()
20759
    while True:
20760
      (fname, ftype, fid) = iprot.readFieldBegin()
20761
      if ftype == TType.STOP:
20762
        break
20763
      if fid == 0:
20764
        if ftype == TType.LIST:
20765
          self.success = []
9155 kshitij.so 20766
          (_etype384, _size381) = iprot.readListBegin()
20767
          for _i385 in xrange(_size381):
20768
            _elem386 = Insurer()
20769
            _elem386.read(iprot)
20770
            self.success.append(_elem386)
6838 vikram.rag 20771
          iprot.readListEnd()
20772
        else:
20773
          iprot.skip(ftype)
20774
      else:
20775
        iprot.skip(ftype)
20776
      iprot.readFieldEnd()
20777
    iprot.readStructEnd()
20778
 
20779
  def write(self, oprot):
20780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20782
      return
20783
    oprot.writeStructBegin('getAllInsurers_result')
20784
    if self.success is not None:
20785
      oprot.writeFieldBegin('success', TType.LIST, 0)
20786
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20787
      for iter387 in self.success:
20788
        iter387.write(oprot)
6838 vikram.rag 20789
      oprot.writeListEnd()
20790
      oprot.writeFieldEnd()
20791
    oprot.writeFieldStop()
20792
    oprot.writeStructEnd()
20793
 
20794
  def validate(self):
20795
    return
20796
 
20797
 
20798
  def __repr__(self):
20799
    L = ['%s=%r' % (key, value)
20800
      for key, value in self.__dict__.iteritems()]
20801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20802
 
20803
  def __eq__(self, other):
20804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20805
 
20806
  def __ne__(self, other):
20807
    return not (self == other)
6962 rajveer 20808
 
20809
class updateInsuranceDeclaredAmount_args:
20810
  """
20811
  Attributes:
20812
   - insurerId
20813
   - amount
20814
  """
20815
 
20816
  thrift_spec = (
20817
    None, # 0
20818
    (1, TType.I64, 'insurerId', None, None, ), # 1
20819
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
20820
  )
20821
 
20822
  def __init__(self, insurerId=None, amount=None,):
20823
    self.insurerId = insurerId
20824
    self.amount = amount
20825
 
20826
  def read(self, iprot):
20827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20829
      return
20830
    iprot.readStructBegin()
20831
    while True:
20832
      (fname, ftype, fid) = iprot.readFieldBegin()
20833
      if ftype == TType.STOP:
20834
        break
20835
      if fid == 1:
20836
        if ftype == TType.I64:
20837
          self.insurerId = iprot.readI64();
20838
        else:
20839
          iprot.skip(ftype)
20840
      elif fid == 2:
20841
        if ftype == TType.DOUBLE:
20842
          self.amount = iprot.readDouble();
20843
        else:
20844
          iprot.skip(ftype)
20845
      else:
20846
        iprot.skip(ftype)
20847
      iprot.readFieldEnd()
20848
    iprot.readStructEnd()
20849
 
20850
  def write(self, oprot):
20851
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20852
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20853
      return
20854
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
20855
    if self.insurerId is not None:
20856
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
20857
      oprot.writeI64(self.insurerId)
20858
      oprot.writeFieldEnd()
20859
    if self.amount is not None:
20860
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
20861
      oprot.writeDouble(self.amount)
20862
      oprot.writeFieldEnd()
20863
    oprot.writeFieldStop()
20864
    oprot.writeStructEnd()
20865
 
20866
  def validate(self):
20867
    return
20868
 
20869
 
20870
  def __repr__(self):
20871
    L = ['%s=%r' % (key, value)
20872
      for key, value in self.__dict__.iteritems()]
20873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20874
 
20875
  def __eq__(self, other):
20876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20877
 
20878
  def __ne__(self, other):
20879
    return not (self == other)
20880
 
20881
class updateInsuranceDeclaredAmount_result:
20882
 
20883
  thrift_spec = (
20884
  )
20885
 
20886
  def read(self, iprot):
20887
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20888
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20889
      return
20890
    iprot.readStructBegin()
20891
    while True:
20892
      (fname, ftype, fid) = iprot.readFieldBegin()
20893
      if ftype == TType.STOP:
20894
        break
20895
      else:
20896
        iprot.skip(ftype)
20897
      iprot.readFieldEnd()
20898
    iprot.readStructEnd()
20899
 
20900
  def write(self, oprot):
20901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20903
      return
20904
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
20905
    oprot.writeFieldStop()
20906
    oprot.writeStructEnd()
20907
 
20908
  def validate(self):
20909
    return
20910
 
20911
 
20912
  def __repr__(self):
20913
    L = ['%s=%r' % (key, value)
20914
      for key, value in self.__dict__.iteritems()]
20915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20916
 
20917
  def __eq__(self, other):
20918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20919
 
20920
  def __ne__(self, other):
20921
    return not (self == other)
7190 amar.kumar 20922
 
20923
class getFreebieForItem_args:
20924
  """
20925
  Attributes:
20926
   - itemId
20927
  """
20928
 
20929
  thrift_spec = (
20930
    None, # 0
20931
    (1, TType.I64, 'itemId', None, None, ), # 1
20932
  )
20933
 
20934
  def __init__(self, itemId=None,):
20935
    self.itemId = itemId
20936
 
20937
  def read(self, iprot):
20938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20940
      return
20941
    iprot.readStructBegin()
20942
    while True:
20943
      (fname, ftype, fid) = iprot.readFieldBegin()
20944
      if ftype == TType.STOP:
20945
        break
20946
      if fid == 1:
20947
        if ftype == TType.I64:
20948
          self.itemId = iprot.readI64();
20949
        else:
20950
          iprot.skip(ftype)
20951
      else:
20952
        iprot.skip(ftype)
20953
      iprot.readFieldEnd()
20954
    iprot.readStructEnd()
20955
 
20956
  def write(self, oprot):
20957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20959
      return
20960
    oprot.writeStructBegin('getFreebieForItem_args')
20961
    if self.itemId is not None:
20962
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20963
      oprot.writeI64(self.itemId)
20964
      oprot.writeFieldEnd()
20965
    oprot.writeFieldStop()
20966
    oprot.writeStructEnd()
20967
 
20968
  def validate(self):
20969
    return
20970
 
20971
 
20972
  def __repr__(self):
20973
    L = ['%s=%r' % (key, value)
20974
      for key, value in self.__dict__.iteritems()]
20975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20976
 
20977
  def __eq__(self, other):
20978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20979
 
20980
  def __ne__(self, other):
20981
    return not (self == other)
20982
 
20983
class getFreebieForItem_result:
20984
  """
20985
  Attributes:
20986
   - success
20987
  """
20988
 
20989
  thrift_spec = (
20990
    (0, TType.I64, 'success', None, None, ), # 0
20991
  )
20992
 
20993
  def __init__(self, success=None,):
20994
    self.success = success
20995
 
20996
  def read(self, iprot):
20997
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20998
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20999
      return
21000
    iprot.readStructBegin()
21001
    while True:
21002
      (fname, ftype, fid) = iprot.readFieldBegin()
21003
      if ftype == TType.STOP:
21004
        break
21005
      if fid == 0:
21006
        if ftype == TType.I64:
21007
          self.success = iprot.readI64();
21008
        else:
21009
          iprot.skip(ftype)
21010
      else:
21011
        iprot.skip(ftype)
21012
      iprot.readFieldEnd()
21013
    iprot.readStructEnd()
21014
 
21015
  def write(self, oprot):
21016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21018
      return
21019
    oprot.writeStructBegin('getFreebieForItem_result')
21020
    if self.success is not None:
21021
      oprot.writeFieldBegin('success', TType.I64, 0)
21022
      oprot.writeI64(self.success)
21023
      oprot.writeFieldEnd()
21024
    oprot.writeFieldStop()
21025
    oprot.writeStructEnd()
21026
 
21027
  def validate(self):
21028
    return
21029
 
21030
 
21031
  def __repr__(self):
21032
    L = ['%s=%r' % (key, value)
21033
      for key, value in self.__dict__.iteritems()]
21034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21035
 
21036
  def __eq__(self, other):
21037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21038
 
21039
  def __ne__(self, other):
21040
    return not (self == other)
21041
 
21042
class addOrUpdateFreebieForItem_args:
21043
  """
21044
  Attributes:
21045
   - freebieItem
21046
  """
21047
 
21048
  thrift_spec = (
21049
    None, # 0
21050
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
21051
  )
21052
 
21053
  def __init__(self, freebieItem=None,):
21054
    self.freebieItem = freebieItem
21055
 
21056
  def read(self, iprot):
21057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21059
      return
21060
    iprot.readStructBegin()
21061
    while True:
21062
      (fname, ftype, fid) = iprot.readFieldBegin()
21063
      if ftype == TType.STOP:
21064
        break
21065
      if fid == 1:
21066
        if ftype == TType.STRUCT:
21067
          self.freebieItem = FreebieItem()
21068
          self.freebieItem.read(iprot)
21069
        else:
21070
          iprot.skip(ftype)
21071
      else:
21072
        iprot.skip(ftype)
21073
      iprot.readFieldEnd()
21074
    iprot.readStructEnd()
21075
 
21076
  def write(self, oprot):
21077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21079
      return
21080
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
21081
    if self.freebieItem is not None:
21082
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
21083
      self.freebieItem.write(oprot)
21084
      oprot.writeFieldEnd()
21085
    oprot.writeFieldStop()
21086
    oprot.writeStructEnd()
21087
 
21088
  def validate(self):
21089
    return
21090
 
21091
 
21092
  def __repr__(self):
21093
    L = ['%s=%r' % (key, value)
21094
      for key, value in self.__dict__.iteritems()]
21095
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21096
 
21097
  def __eq__(self, other):
21098
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21099
 
21100
  def __ne__(self, other):
21101
    return not (self == other)
21102
 
21103
class addOrUpdateFreebieForItem_result:
21104
 
21105
  thrift_spec = (
21106
  )
21107
 
21108
  def read(self, iprot):
21109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21111
      return
21112
    iprot.readStructBegin()
21113
    while True:
21114
      (fname, ftype, fid) = iprot.readFieldBegin()
21115
      if ftype == TType.STOP:
21116
        break
21117
      else:
21118
        iprot.skip(ftype)
21119
      iprot.readFieldEnd()
21120
    iprot.readStructEnd()
21121
 
21122
  def write(self, oprot):
21123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21125
      return
21126
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
21127
    oprot.writeFieldStop()
21128
    oprot.writeStructEnd()
21129
 
21130
  def validate(self):
21131
    return
21132
 
21133
 
21134
  def __repr__(self):
21135
    L = ['%s=%r' % (key, value)
21136
      for key, value in self.__dict__.iteritems()]
21137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21138
 
21139
  def __eq__(self, other):
21140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21141
 
21142
  def __ne__(self, other):
21143
    return not (self == other)
7256 rajveer 21144
 
7272 amit.gupta 21145
class addOrUpdateBrandInfo_args:
21146
  """
21147
  Attributes:
21148
   - brandInfo
21149
  """
21150
 
21151
  thrift_spec = (
21152
    None, # 0
21153
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
21154
  )
21155
 
21156
  def __init__(self, brandInfo=None,):
21157
    self.brandInfo = brandInfo
21158
 
21159
  def read(self, iprot):
21160
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21161
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21162
      return
21163
    iprot.readStructBegin()
21164
    while True:
21165
      (fname, ftype, fid) = iprot.readFieldBegin()
21166
      if ftype == TType.STOP:
21167
        break
21168
      if fid == 1:
21169
        if ftype == TType.STRUCT:
21170
          self.brandInfo = BrandInfo()
21171
          self.brandInfo.read(iprot)
21172
        else:
21173
          iprot.skip(ftype)
21174
      else:
21175
        iprot.skip(ftype)
21176
      iprot.readFieldEnd()
21177
    iprot.readStructEnd()
21178
 
21179
  def write(self, oprot):
21180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21182
      return
21183
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
21184
    if self.brandInfo is not None:
21185
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
21186
      self.brandInfo.write(oprot)
21187
      oprot.writeFieldEnd()
21188
    oprot.writeFieldStop()
21189
    oprot.writeStructEnd()
21190
 
21191
  def validate(self):
21192
    return
21193
 
21194
 
21195
  def __repr__(self):
21196
    L = ['%s=%r' % (key, value)
21197
      for key, value in self.__dict__.iteritems()]
21198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21199
 
21200
  def __eq__(self, other):
21201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21202
 
21203
  def __ne__(self, other):
21204
    return not (self == other)
21205
 
21206
class addOrUpdateBrandInfo_result:
21207
 
21208
  thrift_spec = (
21209
  )
21210
 
21211
  def read(self, iprot):
21212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21214
      return
21215
    iprot.readStructBegin()
21216
    while True:
21217
      (fname, ftype, fid) = iprot.readFieldBegin()
21218
      if ftype == TType.STOP:
21219
        break
21220
      else:
21221
        iprot.skip(ftype)
21222
      iprot.readFieldEnd()
21223
    iprot.readStructEnd()
21224
 
21225
  def write(self, oprot):
21226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21228
      return
21229
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
21230
    oprot.writeFieldStop()
21231
    oprot.writeStructEnd()
21232
 
21233
  def validate(self):
21234
    return
21235
 
21236
 
21237
  def __repr__(self):
21238
    L = ['%s=%r' % (key, value)
21239
      for key, value in self.__dict__.iteritems()]
21240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21241
 
21242
  def __eq__(self, other):
21243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21244
 
21245
  def __ne__(self, other):
21246
    return not (self == other)
21247
 
21248
class getBrandInfo_args:
21249
 
21250
  thrift_spec = (
21251
  )
21252
 
21253
  def read(self, iprot):
21254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21256
      return
21257
    iprot.readStructBegin()
21258
    while True:
21259
      (fname, ftype, fid) = iprot.readFieldBegin()
21260
      if ftype == TType.STOP:
21261
        break
21262
      else:
21263
        iprot.skip(ftype)
21264
      iprot.readFieldEnd()
21265
    iprot.readStructEnd()
21266
 
21267
  def write(self, oprot):
21268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21270
      return
21271
    oprot.writeStructBegin('getBrandInfo_args')
21272
    oprot.writeFieldStop()
21273
    oprot.writeStructEnd()
21274
 
21275
  def validate(self):
21276
    return
21277
 
21278
 
21279
  def __repr__(self):
21280
    L = ['%s=%r' % (key, value)
21281
      for key, value in self.__dict__.iteritems()]
21282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21283
 
21284
  def __eq__(self, other):
21285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21286
 
21287
  def __ne__(self, other):
21288
    return not (self == other)
21289
 
21290
class getBrandInfo_result:
21291
  """
21292
  Attributes:
21293
   - success
21294
  """
21295
 
21296
  thrift_spec = (
21297
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
21298
  )
21299
 
21300
  def __init__(self, success=None,):
21301
    self.success = success
21302
 
21303
  def read(self, iprot):
21304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21306
      return
21307
    iprot.readStructBegin()
21308
    while True:
21309
      (fname, ftype, fid) = iprot.readFieldBegin()
21310
      if ftype == TType.STOP:
21311
        break
21312
      if fid == 0:
21313
        if ftype == TType.MAP:
21314
          self.success = {}
9155 kshitij.so 21315
          (_ktype389, _vtype390, _size388 ) = iprot.readMapBegin() 
21316
          for _i392 in xrange(_size388):
21317
            _key393 = iprot.readString();
21318
            _val394 = BrandInfo()
21319
            _val394.read(iprot)
21320
            self.success[_key393] = _val394
7272 amit.gupta 21321
          iprot.readMapEnd()
21322
        else:
21323
          iprot.skip(ftype)
21324
      else:
21325
        iprot.skip(ftype)
21326
      iprot.readFieldEnd()
21327
    iprot.readStructEnd()
21328
 
21329
  def write(self, oprot):
21330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21332
      return
21333
    oprot.writeStructBegin('getBrandInfo_result')
21334
    if self.success is not None:
21335
      oprot.writeFieldBegin('success', TType.MAP, 0)
21336
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
9155 kshitij.so 21337
      for kiter395,viter396 in self.success.items():
21338
        oprot.writeString(kiter395)
21339
        viter396.write(oprot)
7272 amit.gupta 21340
      oprot.writeMapEnd()
21341
      oprot.writeFieldEnd()
21342
    oprot.writeFieldStop()
21343
    oprot.writeStructEnd()
21344
 
21345
  def validate(self):
21346
    return
21347
 
21348
 
21349
  def __repr__(self):
21350
    L = ['%s=%r' % (key, value)
21351
      for key, value in self.__dict__.iteritems()]
21352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21353
 
21354
  def __eq__(self, other):
21355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21356
 
21357
  def __ne__(self, other):
21358
    return not (self == other)
21359
 
7256 rajveer 21360
class getStorePricing_args:
21361
  """
21362
  Attributes:
21363
   - itemId
21364
  """
21365
 
21366
  thrift_spec = (
21367
    None, # 0
21368
    (1, TType.I64, 'itemId', None, None, ), # 1
21369
  )
21370
 
21371
  def __init__(self, itemId=None,):
21372
    self.itemId = itemId
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 == 1:
21384
        if ftype == TType.I64:
21385
          self.itemId = iprot.readI64();
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('getStorePricing_args')
21398
    if self.itemId is not None:
21399
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21400
      oprot.writeI64(self.itemId)
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)
21419
 
21420
class getStorePricing_result:
21421
  """
21422
  Attributes:
21423
   - success
21424
  """
21425
 
21426
  thrift_spec = (
21427
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
21428
  )
21429
 
21430
  def __init__(self, success=None,):
21431
    self.success = success
21432
 
21433
  def read(self, iprot):
21434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21436
      return
21437
    iprot.readStructBegin()
21438
    while True:
21439
      (fname, ftype, fid) = iprot.readFieldBegin()
21440
      if ftype == TType.STOP:
21441
        break
21442
      if fid == 0:
21443
        if ftype == TType.STRUCT:
21444
          self.success = StorePricing()
21445
          self.success.read(iprot)
21446
        else:
21447
          iprot.skip(ftype)
21448
      else:
21449
        iprot.skip(ftype)
21450
      iprot.readFieldEnd()
21451
    iprot.readStructEnd()
21452
 
21453
  def write(self, oprot):
21454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21456
      return
21457
    oprot.writeStructBegin('getStorePricing_result')
21458
    if self.success is not None:
21459
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21460
      self.success.write(oprot)
21461
      oprot.writeFieldEnd()
21462
    oprot.writeFieldStop()
21463
    oprot.writeStructEnd()
21464
 
21465
  def validate(self):
21466
    return
21467
 
21468
 
21469
  def __repr__(self):
21470
    L = ['%s=%r' % (key, value)
21471
      for key, value in self.__dict__.iteritems()]
21472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21473
 
21474
  def __eq__(self, other):
21475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21476
 
21477
  def __ne__(self, other):
21478
    return not (self == other)
7265 rajveer 21479
 
7306 rajveer 21480
class getStorePricings_args:
21481
  """
21482
  Attributes:
21483
   - itemIds
21484
  """
21485
 
21486
  thrift_spec = (
21487
    None, # 0
21488
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
21489
  )
21490
 
21491
  def __init__(self, itemIds=None,):
21492
    self.itemIds = itemIds
21493
 
21494
  def read(self, iprot):
21495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21497
      return
21498
    iprot.readStructBegin()
21499
    while True:
21500
      (fname, ftype, fid) = iprot.readFieldBegin()
21501
      if ftype == TType.STOP:
21502
        break
21503
      if fid == 1:
21504
        if ftype == TType.LIST:
21505
          self.itemIds = []
9155 kshitij.so 21506
          (_etype400, _size397) = iprot.readListBegin()
21507
          for _i401 in xrange(_size397):
21508
            _elem402 = iprot.readI64();
21509
            self.itemIds.append(_elem402)
7306 rajveer 21510
          iprot.readListEnd()
21511
        else:
21512
          iprot.skip(ftype)
21513
      else:
21514
        iprot.skip(ftype)
21515
      iprot.readFieldEnd()
21516
    iprot.readStructEnd()
21517
 
21518
  def write(self, oprot):
21519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21521
      return
21522
    oprot.writeStructBegin('getStorePricings_args')
21523
    if self.itemIds is not None:
21524
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
21525
      oprot.writeListBegin(TType.I64, len(self.itemIds))
9155 kshitij.so 21526
      for iter403 in self.itemIds:
21527
        oprot.writeI64(iter403)
7306 rajveer 21528
      oprot.writeListEnd()
21529
      oprot.writeFieldEnd()
21530
    oprot.writeFieldStop()
21531
    oprot.writeStructEnd()
21532
 
21533
  def validate(self):
21534
    return
21535
 
21536
 
21537
  def __repr__(self):
21538
    L = ['%s=%r' % (key, value)
21539
      for key, value in self.__dict__.iteritems()]
21540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21541
 
21542
  def __eq__(self, other):
21543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21544
 
21545
  def __ne__(self, other):
21546
    return not (self == other)
21547
 
21548
class getStorePricings_result:
21549
  """
21550
  Attributes:
21551
   - success
21552
  """
21553
 
21554
  thrift_spec = (
21555
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
21556
  )
21557
 
21558
  def __init__(self, success=None,):
21559
    self.success = success
21560
 
21561
  def read(self, iprot):
21562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21564
      return
21565
    iprot.readStructBegin()
21566
    while True:
21567
      (fname, ftype, fid) = iprot.readFieldBegin()
21568
      if ftype == TType.STOP:
21569
        break
21570
      if fid == 0:
21571
        if ftype == TType.LIST:
21572
          self.success = []
9155 kshitij.so 21573
          (_etype407, _size404) = iprot.readListBegin()
21574
          for _i408 in xrange(_size404):
21575
            _elem409 = StorePricing()
21576
            _elem409.read(iprot)
21577
            self.success.append(_elem409)
7306 rajveer 21578
          iprot.readListEnd()
21579
        else:
21580
          iprot.skip(ftype)
21581
      else:
21582
        iprot.skip(ftype)
21583
      iprot.readFieldEnd()
21584
    iprot.readStructEnd()
21585
 
21586
  def write(self, oprot):
21587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21589
      return
21590
    oprot.writeStructBegin('getStorePricings_result')
21591
    if self.success is not None:
21592
      oprot.writeFieldBegin('success', TType.LIST, 0)
21593
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21594
      for iter410 in self.success:
21595
        iter410.write(oprot)
7306 rajveer 21596
      oprot.writeListEnd()
21597
      oprot.writeFieldEnd()
21598
    oprot.writeFieldStop()
21599
    oprot.writeStructEnd()
21600
 
21601
  def validate(self):
21602
    return
21603
 
21604
 
21605
  def __repr__(self):
21606
    L = ['%s=%r' % (key, value)
21607
      for key, value in self.__dict__.iteritems()]
21608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21609
 
21610
  def __eq__(self, other):
21611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21612
 
21613
  def __ne__(self, other):
21614
    return not (self == other)
21615
 
7265 rajveer 21616
class updateStorePricing_args:
21617
  """
21618
  Attributes:
21619
   - sp
7382 rajveer 21620
   - allColors
7265 rajveer 21621
  """
21622
 
21623
  thrift_spec = (
21624
    None, # 0
21625
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 21626
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 21627
  )
21628
 
7382 rajveer 21629
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 21630
    self.sp = sp
7382 rajveer 21631
    self.allColors = allColors
7265 rajveer 21632
 
21633
  def read(self, iprot):
21634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21636
      return
21637
    iprot.readStructBegin()
21638
    while True:
21639
      (fname, ftype, fid) = iprot.readFieldBegin()
21640
      if ftype == TType.STOP:
21641
        break
21642
      if fid == 1:
21643
        if ftype == TType.STRUCT:
21644
          self.sp = StorePricing()
21645
          self.sp.read(iprot)
21646
        else:
21647
          iprot.skip(ftype)
7382 rajveer 21648
      elif fid == 2:
21649
        if ftype == TType.BOOL:
21650
          self.allColors = iprot.readBool();
21651
        else:
21652
          iprot.skip(ftype)
7265 rajveer 21653
      else:
21654
        iprot.skip(ftype)
21655
      iprot.readFieldEnd()
21656
    iprot.readStructEnd()
21657
 
21658
  def write(self, oprot):
21659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21661
      return
21662
    oprot.writeStructBegin('updateStorePricing_args')
21663
    if self.sp is not None:
21664
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
21665
      self.sp.write(oprot)
21666
      oprot.writeFieldEnd()
7382 rajveer 21667
    if self.allColors is not None:
21668
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
21669
      oprot.writeBool(self.allColors)
21670
      oprot.writeFieldEnd()
7265 rajveer 21671
    oprot.writeFieldStop()
21672
    oprot.writeStructEnd()
21673
 
21674
  def validate(self):
21675
    return
21676
 
21677
 
21678
  def __repr__(self):
21679
    L = ['%s=%r' % (key, value)
21680
      for key, value in self.__dict__.iteritems()]
21681
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21682
 
21683
  def __eq__(self, other):
21684
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21685
 
21686
  def __ne__(self, other):
21687
    return not (self == other)
21688
 
21689
class updateStorePricing_result:
21690
 
21691
  thrift_spec = (
21692
  )
21693
 
21694
  def read(self, iprot):
21695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21697
      return
21698
    iprot.readStructBegin()
21699
    while True:
21700
      (fname, ftype, fid) = iprot.readFieldBegin()
21701
      if ftype == TType.STOP:
21702
        break
21703
      else:
21704
        iprot.skip(ftype)
21705
      iprot.readFieldEnd()
21706
    iprot.readStructEnd()
21707
 
21708
  def write(self, oprot):
21709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21711
      return
21712
    oprot.writeStructBegin('updateStorePricing_result')
21713
    oprot.writeFieldStop()
21714
    oprot.writeStructEnd()
21715
 
21716
  def validate(self):
21717
    return
21718
 
21719
 
21720
  def __repr__(self):
21721
    L = ['%s=%r' % (key, value)
21722
      for key, value in self.__dict__.iteritems()]
21723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21724
 
21725
  def __eq__(self, other):
21726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21727
 
21728
  def __ne__(self, other):
21729
    return not (self == other)
7281 kshitij.so 21730
 
21731
class getAllAmazonListedItems_args:
21732
 
21733
  thrift_spec = (
21734
  )
21735
 
21736
  def read(self, iprot):
21737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21739
      return
21740
    iprot.readStructBegin()
21741
    while True:
21742
      (fname, ftype, fid) = iprot.readFieldBegin()
21743
      if ftype == TType.STOP:
21744
        break
21745
      else:
21746
        iprot.skip(ftype)
21747
      iprot.readFieldEnd()
21748
    iprot.readStructEnd()
21749
 
21750
  def write(self, oprot):
21751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21753
      return
21754
    oprot.writeStructBegin('getAllAmazonListedItems_args')
21755
    oprot.writeFieldStop()
21756
    oprot.writeStructEnd()
21757
 
21758
  def validate(self):
21759
    return
21760
 
21761
 
21762
  def __repr__(self):
21763
    L = ['%s=%r' % (key, value)
21764
      for key, value in self.__dict__.iteritems()]
21765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21766
 
21767
  def __eq__(self, other):
21768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21769
 
21770
  def __ne__(self, other):
21771
    return not (self == other)
21772
 
21773
class getAllAmazonListedItems_result:
21774
  """
21775
  Attributes:
21776
   - success
21777
  """
21778
 
21779
  thrift_spec = (
21780
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21781
  )
21782
 
21783
  def __init__(self, success=None,):
21784
    self.success = success
21785
 
21786
  def read(self, iprot):
21787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21789
      return
21790
    iprot.readStructBegin()
21791
    while True:
21792
      (fname, ftype, fid) = iprot.readFieldBegin()
21793
      if ftype == TType.STOP:
21794
        break
21795
      if fid == 0:
21796
        if ftype == TType.LIST:
21797
          self.success = []
9155 kshitij.so 21798
          (_etype414, _size411) = iprot.readListBegin()
21799
          for _i415 in xrange(_size411):
21800
            _elem416 = Amazonlisted()
21801
            _elem416.read(iprot)
21802
            self.success.append(_elem416)
7281 kshitij.so 21803
          iprot.readListEnd()
21804
        else:
21805
          iprot.skip(ftype)
21806
      else:
21807
        iprot.skip(ftype)
21808
      iprot.readFieldEnd()
21809
    iprot.readStructEnd()
21810
 
21811
  def write(self, oprot):
21812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21814
      return
21815
    oprot.writeStructBegin('getAllAmazonListedItems_result')
21816
    if self.success is not None:
21817
      oprot.writeFieldBegin('success', TType.LIST, 0)
21818
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21819
      for iter417 in self.success:
21820
        iter417.write(oprot)
7281 kshitij.so 21821
      oprot.writeListEnd()
21822
      oprot.writeFieldEnd()
21823
    oprot.writeFieldStop()
21824
    oprot.writeStructEnd()
21825
 
21826
  def validate(self):
21827
    return
21828
 
21829
 
21830
  def __repr__(self):
21831
    L = ['%s=%r' % (key, value)
21832
      for key, value in self.__dict__.iteritems()]
21833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21834
 
21835
  def __eq__(self, other):
21836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21837
 
21838
  def __ne__(self, other):
21839
    return not (self == other)
21840
 
8619 kshitij.so 21841
class searchAmazonItems_args:
21842
  """
21843
  Attributes:
21844
   - searchTerm
21845
   - offset
21846
   - limit
21847
  """
21848
 
21849
  thrift_spec = (
21850
    None, # 0
21851
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
21852
    (2, TType.I64, 'offset', None, None, ), # 2
21853
    (3, TType.I64, 'limit', None, None, ), # 3
21854
  )
21855
 
21856
  def __init__(self, searchTerm=None, offset=None, limit=None,):
21857
    self.searchTerm = searchTerm
21858
    self.offset = offset
21859
    self.limit = limit
21860
 
21861
  def read(self, iprot):
21862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21864
      return
21865
    iprot.readStructBegin()
21866
    while True:
21867
      (fname, ftype, fid) = iprot.readFieldBegin()
21868
      if ftype == TType.STOP:
21869
        break
21870
      if fid == 1:
21871
        if ftype == TType.LIST:
21872
          self.searchTerm = []
9155 kshitij.so 21873
          (_etype421, _size418) = iprot.readListBegin()
21874
          for _i422 in xrange(_size418):
21875
            _elem423 = iprot.readString();
21876
            self.searchTerm.append(_elem423)
8619 kshitij.so 21877
          iprot.readListEnd()
21878
        else:
21879
          iprot.skip(ftype)
21880
      elif fid == 2:
21881
        if ftype == TType.I64:
21882
          self.offset = iprot.readI64();
21883
        else:
21884
          iprot.skip(ftype)
21885
      elif fid == 3:
21886
        if ftype == TType.I64:
21887
          self.limit = iprot.readI64();
21888
        else:
21889
          iprot.skip(ftype)
21890
      else:
21891
        iprot.skip(ftype)
21892
      iprot.readFieldEnd()
21893
    iprot.readStructEnd()
21894
 
21895
  def write(self, oprot):
21896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21898
      return
21899
    oprot.writeStructBegin('searchAmazonItems_args')
21900
    if self.searchTerm is not None:
21901
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
21902
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 21903
      for iter424 in self.searchTerm:
21904
        oprot.writeString(iter424)
8619 kshitij.so 21905
      oprot.writeListEnd()
21906
      oprot.writeFieldEnd()
21907
    if self.offset is not None:
21908
      oprot.writeFieldBegin('offset', TType.I64, 2)
21909
      oprot.writeI64(self.offset)
21910
      oprot.writeFieldEnd()
21911
    if self.limit is not None:
21912
      oprot.writeFieldBegin('limit', TType.I64, 3)
21913
      oprot.writeI64(self.limit)
21914
      oprot.writeFieldEnd()
21915
    oprot.writeFieldStop()
21916
    oprot.writeStructEnd()
21917
 
21918
  def validate(self):
21919
    return
21920
 
21921
 
21922
  def __repr__(self):
21923
    L = ['%s=%r' % (key, value)
21924
      for key, value in self.__dict__.iteritems()]
21925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21926
 
21927
  def __eq__(self, other):
21928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21929
 
21930
  def __ne__(self, other):
21931
    return not (self == other)
21932
 
21933
class searchAmazonItems_result:
21934
  """
21935
  Attributes:
21936
   - success
21937
  """
21938
 
21939
  thrift_spec = (
21940
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21941
  )
21942
 
21943
  def __init__(self, success=None,):
21944
    self.success = success
21945
 
21946
  def read(self, iprot):
21947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21949
      return
21950
    iprot.readStructBegin()
21951
    while True:
21952
      (fname, ftype, fid) = iprot.readFieldBegin()
21953
      if ftype == TType.STOP:
21954
        break
21955
      if fid == 0:
21956
        if ftype == TType.LIST:
21957
          self.success = []
9155 kshitij.so 21958
          (_etype428, _size425) = iprot.readListBegin()
21959
          for _i429 in xrange(_size425):
21960
            _elem430 = Amazonlisted()
21961
            _elem430.read(iprot)
21962
            self.success.append(_elem430)
8619 kshitij.so 21963
          iprot.readListEnd()
21964
        else:
21965
          iprot.skip(ftype)
21966
      else:
21967
        iprot.skip(ftype)
21968
      iprot.readFieldEnd()
21969
    iprot.readStructEnd()
21970
 
21971
  def write(self, oprot):
21972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21974
      return
21975
    oprot.writeStructBegin('searchAmazonItems_result')
21976
    if self.success is not None:
21977
      oprot.writeFieldBegin('success', TType.LIST, 0)
21978
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21979
      for iter431 in self.success:
21980
        iter431.write(oprot)
8619 kshitij.so 21981
      oprot.writeListEnd()
21982
      oprot.writeFieldEnd()
21983
    oprot.writeFieldStop()
21984
    oprot.writeStructEnd()
21985
 
21986
  def validate(self):
21987
    return
21988
 
21989
 
21990
  def __repr__(self):
21991
    L = ['%s=%r' % (key, value)
21992
      for key, value in self.__dict__.iteritems()]
21993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21994
 
21995
  def __eq__(self, other):
21996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21997
 
21998
  def __ne__(self, other):
21999
    return not (self == other)
22000
 
22001
class getAmazonSearchResultCount_args:
22002
  """
22003
  Attributes:
22004
   - searchTerm
22005
  """
22006
 
22007
  thrift_spec = (
22008
    None, # 0
22009
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22010
  )
22011
 
22012
  def __init__(self, searchTerm=None,):
22013
    self.searchTerm = searchTerm
22014
 
22015
  def read(self, iprot):
22016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22018
      return
22019
    iprot.readStructBegin()
22020
    while True:
22021
      (fname, ftype, fid) = iprot.readFieldBegin()
22022
      if ftype == TType.STOP:
22023
        break
22024
      if fid == 1:
22025
        if ftype == TType.LIST:
22026
          self.searchTerm = []
9155 kshitij.so 22027
          (_etype435, _size432) = iprot.readListBegin()
22028
          for _i436 in xrange(_size432):
22029
            _elem437 = iprot.readString();
22030
            self.searchTerm.append(_elem437)
8619 kshitij.so 22031
          iprot.readListEnd()
22032
        else:
22033
          iprot.skip(ftype)
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('getAmazonSearchResultCount_args')
22044
    if self.searchTerm is not None:
22045
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22046
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 22047
      for iter438 in self.searchTerm:
22048
        oprot.writeString(iter438)
8619 kshitij.so 22049
      oprot.writeListEnd()
22050
      oprot.writeFieldEnd()
22051
    oprot.writeFieldStop()
22052
    oprot.writeStructEnd()
22053
 
22054
  def validate(self):
22055
    return
22056
 
22057
 
22058
  def __repr__(self):
22059
    L = ['%s=%r' % (key, value)
22060
      for key, value in self.__dict__.iteritems()]
22061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22062
 
22063
  def __eq__(self, other):
22064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22065
 
22066
  def __ne__(self, other):
22067
    return not (self == other)
22068
 
22069
class getAmazonSearchResultCount_result:
22070
  """
22071
  Attributes:
22072
   - success
22073
  """
22074
 
22075
  thrift_spec = (
22076
    (0, TType.I64, 'success', None, None, ), # 0
22077
  )
22078
 
22079
  def __init__(self, success=None,):
22080
    self.success = success
22081
 
22082
  def read(self, iprot):
22083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22085
      return
22086
    iprot.readStructBegin()
22087
    while True:
22088
      (fname, ftype, fid) = iprot.readFieldBegin()
22089
      if ftype == TType.STOP:
22090
        break
22091
      if fid == 0:
22092
        if ftype == TType.I64:
22093
          self.success = iprot.readI64();
22094
        else:
22095
          iprot.skip(ftype)
22096
      else:
22097
        iprot.skip(ftype)
22098
      iprot.readFieldEnd()
22099
    iprot.readStructEnd()
22100
 
22101
  def write(self, oprot):
22102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22104
      return
22105
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
22106
    if self.success is not None:
22107
      oprot.writeFieldBegin('success', TType.I64, 0)
22108
      oprot.writeI64(self.success)
22109
      oprot.writeFieldEnd()
22110
    oprot.writeFieldStop()
22111
    oprot.writeStructEnd()
22112
 
22113
  def validate(self):
22114
    return
22115
 
22116
 
22117
  def __repr__(self):
22118
    L = ['%s=%r' % (key, value)
22119
      for key, value in self.__dict__.iteritems()]
22120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22121
 
22122
  def __eq__(self, other):
22123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22124
 
22125
  def __ne__(self, other):
22126
    return not (self == other)
22127
 
22128
class getCountForAmazonlistedItems_args:
22129
 
22130
  thrift_spec = (
22131
  )
22132
 
22133
  def read(self, iprot):
22134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22136
      return
22137
    iprot.readStructBegin()
22138
    while True:
22139
      (fname, ftype, fid) = iprot.readFieldBegin()
22140
      if ftype == TType.STOP:
22141
        break
22142
      else:
22143
        iprot.skip(ftype)
22144
      iprot.readFieldEnd()
22145
    iprot.readStructEnd()
22146
 
22147
  def write(self, oprot):
22148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22150
      return
22151
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
22152
    oprot.writeFieldStop()
22153
    oprot.writeStructEnd()
22154
 
22155
  def validate(self):
22156
    return
22157
 
22158
 
22159
  def __repr__(self):
22160
    L = ['%s=%r' % (key, value)
22161
      for key, value in self.__dict__.iteritems()]
22162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22163
 
22164
  def __eq__(self, other):
22165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22166
 
22167
  def __ne__(self, other):
22168
    return not (self == other)
22169
 
22170
class getCountForAmazonlistedItems_result:
22171
  """
22172
  Attributes:
22173
   - success
22174
  """
22175
 
22176
  thrift_spec = (
22177
    (0, TType.I64, 'success', None, None, ), # 0
22178
  )
22179
 
22180
  def __init__(self, success=None,):
22181
    self.success = success
22182
 
22183
  def read(self, iprot):
22184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22186
      return
22187
    iprot.readStructBegin()
22188
    while True:
22189
      (fname, ftype, fid) = iprot.readFieldBegin()
22190
      if ftype == TType.STOP:
22191
        break
22192
      if fid == 0:
22193
        if ftype == TType.I64:
22194
          self.success = iprot.readI64();
22195
        else:
22196
          iprot.skip(ftype)
22197
      else:
22198
        iprot.skip(ftype)
22199
      iprot.readFieldEnd()
22200
    iprot.readStructEnd()
22201
 
22202
  def write(self, oprot):
22203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22205
      return
22206
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
22207
    if self.success is not None:
22208
      oprot.writeFieldBegin('success', TType.I64, 0)
22209
      oprot.writeI64(self.success)
22210
      oprot.writeFieldEnd()
22211
    oprot.writeFieldStop()
22212
    oprot.writeStructEnd()
22213
 
22214
  def validate(self):
22215
    return
22216
 
22217
 
22218
  def __repr__(self):
22219
    L = ['%s=%r' % (key, value)
22220
      for key, value in self.__dict__.iteritems()]
22221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22222
 
22223
  def __eq__(self, other):
22224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22225
 
22226
  def __ne__(self, other):
22227
    return not (self == other)
22228
 
7281 kshitij.so 22229
class getAmazonItemDetails_args:
22230
  """
22231
  Attributes:
22232
   - itemId
22233
  """
22234
 
22235
  thrift_spec = (
22236
    None, # 0
22237
    (1, TType.I64, 'itemId', None, None, ), # 1
22238
  )
22239
 
22240
  def __init__(self, itemId=None,):
22241
    self.itemId = itemId
22242
 
22243
  def read(self, iprot):
22244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22246
      return
22247
    iprot.readStructBegin()
22248
    while True:
22249
      (fname, ftype, fid) = iprot.readFieldBegin()
22250
      if ftype == TType.STOP:
22251
        break
22252
      if fid == 1:
22253
        if ftype == TType.I64:
22254
          self.itemId = iprot.readI64();
22255
        else:
22256
          iprot.skip(ftype)
22257
      else:
22258
        iprot.skip(ftype)
22259
      iprot.readFieldEnd()
22260
    iprot.readStructEnd()
22261
 
22262
  def write(self, oprot):
22263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22265
      return
22266
    oprot.writeStructBegin('getAmazonItemDetails_args')
22267
    if self.itemId is not None:
22268
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22269
      oprot.writeI64(self.itemId)
22270
      oprot.writeFieldEnd()
22271
    oprot.writeFieldStop()
22272
    oprot.writeStructEnd()
22273
 
22274
  def validate(self):
22275
    return
22276
 
22277
 
22278
  def __repr__(self):
22279
    L = ['%s=%r' % (key, value)
22280
      for key, value in self.__dict__.iteritems()]
22281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22282
 
22283
  def __eq__(self, other):
22284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22285
 
22286
  def __ne__(self, other):
22287
    return not (self == other)
22288
 
22289
class getAmazonItemDetails_result:
22290
  """
22291
  Attributes:
22292
   - success
22293
  """
22294
 
22295
  thrift_spec = (
22296
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
22297
  )
22298
 
22299
  def __init__(self, success=None,):
22300
    self.success = success
22301
 
22302
  def read(self, iprot):
22303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22305
      return
22306
    iprot.readStructBegin()
22307
    while True:
22308
      (fname, ftype, fid) = iprot.readFieldBegin()
22309
      if ftype == TType.STOP:
22310
        break
22311
      if fid == 0:
22312
        if ftype == TType.STRUCT:
22313
          self.success = Amazonlisted()
22314
          self.success.read(iprot)
22315
        else:
22316
          iprot.skip(ftype)
22317
      else:
22318
        iprot.skip(ftype)
22319
      iprot.readFieldEnd()
22320
    iprot.readStructEnd()
22321
 
22322
  def write(self, oprot):
22323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22325
      return
22326
    oprot.writeStructBegin('getAmazonItemDetails_result')
22327
    if self.success is not None:
22328
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22329
      self.success.write(oprot)
22330
      oprot.writeFieldEnd()
22331
    oprot.writeFieldStop()
22332
    oprot.writeStructEnd()
22333
 
22334
  def validate(self):
22335
    return
22336
 
22337
 
22338
  def __repr__(self):
22339
    L = ['%s=%r' % (key, value)
22340
      for key, value in self.__dict__.iteritems()]
22341
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22342
 
22343
  def __eq__(self, other):
22344
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22345
 
22346
  def __ne__(self, other):
22347
    return not (self == other)
22348
 
22349
class updateAmazonItemDetails_args:
22350
  """
22351
  Attributes:
8168 kshitij.so 22352
   - amazonlisted
7281 kshitij.so 22353
  """
22354
 
22355
  thrift_spec = (
22356
    None, # 0
8168 kshitij.so 22357
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 22358
  )
22359
 
8168 kshitij.so 22360
  def __init__(self, amazonlisted=None,):
22361
    self.amazonlisted = amazonlisted
7281 kshitij.so 22362
 
22363
  def read(self, iprot):
22364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22366
      return
22367
    iprot.readStructBegin()
22368
    while True:
22369
      (fname, ftype, fid) = iprot.readFieldBegin()
22370
      if ftype == TType.STOP:
22371
        break
22372
      if fid == 1:
8168 kshitij.so 22373
        if ftype == TType.STRUCT:
22374
          self.amazonlisted = Amazonlisted()
22375
          self.amazonlisted.read(iprot)
7281 kshitij.so 22376
        else:
22377
          iprot.skip(ftype)
22378
      else:
22379
        iprot.skip(ftype)
22380
      iprot.readFieldEnd()
22381
    iprot.readStructEnd()
22382
 
22383
  def write(self, oprot):
22384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22386
      return
22387
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 22388
    if self.amazonlisted is not None:
22389
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22390
      self.amazonlisted.write(oprot)
7281 kshitij.so 22391
      oprot.writeFieldEnd()
22392
    oprot.writeFieldStop()
22393
    oprot.writeStructEnd()
22394
 
22395
  def validate(self):
22396
    return
22397
 
22398
 
22399
  def __repr__(self):
22400
    L = ['%s=%r' % (key, value)
22401
      for key, value in self.__dict__.iteritems()]
22402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22403
 
22404
  def __eq__(self, other):
22405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22406
 
22407
  def __ne__(self, other):
22408
    return not (self == other)
22409
 
22410
class updateAmazonItemDetails_result:
22411
 
22412
  thrift_spec = (
22413
  )
22414
 
22415
  def read(self, iprot):
22416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22418
      return
22419
    iprot.readStructBegin()
22420
    while True:
22421
      (fname, ftype, fid) = iprot.readFieldBegin()
22422
      if ftype == TType.STOP:
22423
        break
22424
      else:
22425
        iprot.skip(ftype)
22426
      iprot.readFieldEnd()
22427
    iprot.readStructEnd()
22428
 
22429
  def write(self, oprot):
22430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22432
      return
22433
    oprot.writeStructBegin('updateAmazonItemDetails_result')
22434
    oprot.writeFieldStop()
22435
    oprot.writeStructEnd()
22436
 
22437
  def validate(self):
22438
    return
22439
 
22440
 
22441
  def __repr__(self):
22442
    L = ['%s=%r' % (key, value)
22443
      for key, value in self.__dict__.iteritems()]
22444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22445
 
22446
  def __eq__(self, other):
22447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22448
 
22449
  def __ne__(self, other):
22450
    return not (self == other)
22451
 
22452
class addAmazonItem_args:
22453
  """
22454
  Attributes:
22455
   - amazonlisted
22456
  """
22457
 
22458
  thrift_spec = (
22459
    None, # 0
22460
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
22461
  )
22462
 
22463
  def __init__(self, amazonlisted=None,):
22464
    self.amazonlisted = amazonlisted
22465
 
22466
  def read(self, iprot):
22467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22469
      return
22470
    iprot.readStructBegin()
22471
    while True:
22472
      (fname, ftype, fid) = iprot.readFieldBegin()
22473
      if ftype == TType.STOP:
22474
        break
22475
      if fid == 1:
22476
        if ftype == TType.STRUCT:
22477
          self.amazonlisted = Amazonlisted()
22478
          self.amazonlisted.read(iprot)
22479
        else:
22480
          iprot.skip(ftype)
22481
      else:
22482
        iprot.skip(ftype)
22483
      iprot.readFieldEnd()
22484
    iprot.readStructEnd()
22485
 
22486
  def write(self, oprot):
22487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22489
      return
22490
    oprot.writeStructBegin('addAmazonItem_args')
22491
    if self.amazonlisted is not None:
22492
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22493
      self.amazonlisted.write(oprot)
22494
      oprot.writeFieldEnd()
22495
    oprot.writeFieldStop()
22496
    oprot.writeStructEnd()
22497
 
22498
  def validate(self):
22499
    return
22500
 
22501
 
22502
  def __repr__(self):
22503
    L = ['%s=%r' % (key, value)
22504
      for key, value in self.__dict__.iteritems()]
22505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22506
 
22507
  def __eq__(self, other):
22508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22509
 
22510
  def __ne__(self, other):
22511
    return not (self == other)
22512
 
22513
class addAmazonItem_result:
22514
 
22515
  thrift_spec = (
22516
  )
22517
 
22518
  def read(self, iprot):
22519
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22520
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22521
      return
22522
    iprot.readStructBegin()
22523
    while True:
22524
      (fname, ftype, fid) = iprot.readFieldBegin()
22525
      if ftype == TType.STOP:
22526
        break
22527
      else:
22528
        iprot.skip(ftype)
22529
      iprot.readFieldEnd()
22530
    iprot.readStructEnd()
22531
 
22532
  def write(self, oprot):
22533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22535
      return
22536
    oprot.writeStructBegin('addAmazonItem_result')
22537
    oprot.writeFieldStop()
22538
    oprot.writeStructEnd()
22539
 
22540
  def validate(self):
22541
    return
22542
 
22543
 
22544
  def __repr__(self):
22545
    L = ['%s=%r' % (key, value)
22546
      for key, value in self.__dict__.iteritems()]
22547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22548
 
22549
  def __eq__(self, other):
22550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22551
 
22552
  def __ne__(self, other):
22553
    return not (self == other)
7291 vikram.rag 22554
 
22555
class getAsinItems_args:
22556
 
22557
  thrift_spec = (
22558
  )
22559
 
22560
  def read(self, iprot):
22561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22563
      return
22564
    iprot.readStructBegin()
22565
    while True:
22566
      (fname, ftype, fid) = iprot.readFieldBegin()
22567
      if ftype == TType.STOP:
22568
        break
22569
      else:
22570
        iprot.skip(ftype)
22571
      iprot.readFieldEnd()
22572
    iprot.readStructEnd()
22573
 
22574
  def write(self, oprot):
22575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22577
      return
22578
    oprot.writeStructBegin('getAsinItems_args')
22579
    oprot.writeFieldStop()
22580
    oprot.writeStructEnd()
22581
 
22582
  def validate(self):
22583
    return
22584
 
22585
 
22586
  def __repr__(self):
22587
    L = ['%s=%r' % (key, value)
22588
      for key, value in self.__dict__.iteritems()]
22589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22590
 
22591
  def __eq__(self, other):
22592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22593
 
22594
  def __ne__(self, other):
22595
    return not (self == other)
22596
 
22597
class getAsinItems_result:
22598
  """
22599
  Attributes:
22600
   - success
22601
  """
22602
 
22603
  thrift_spec = (
22604
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
22605
  )
22606
 
22607
  def __init__(self, success=None,):
22608
    self.success = success
22609
 
22610
  def read(self, iprot):
22611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22613
      return
22614
    iprot.readStructBegin()
22615
    while True:
22616
      (fname, ftype, fid) = iprot.readFieldBegin()
22617
      if ftype == TType.STOP:
22618
        break
22619
      if fid == 0:
22620
        if ftype == TType.LIST:
22621
          self.success = []
9155 kshitij.so 22622
          (_etype442, _size439) = iprot.readListBegin()
22623
          for _i443 in xrange(_size439):
22624
            _elem444 = Item()
22625
            _elem444.read(iprot)
22626
            self.success.append(_elem444)
7291 vikram.rag 22627
          iprot.readListEnd()
22628
        else:
22629
          iprot.skip(ftype)
22630
      else:
22631
        iprot.skip(ftype)
22632
      iprot.readFieldEnd()
22633
    iprot.readStructEnd()
22634
 
22635
  def write(self, oprot):
22636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22638
      return
22639
    oprot.writeStructBegin('getAsinItems_result')
22640
    if self.success is not None:
22641
      oprot.writeFieldBegin('success', TType.LIST, 0)
22642
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22643
      for iter445 in self.success:
22644
        iter445.write(oprot)
7291 vikram.rag 22645
      oprot.writeListEnd()
22646
      oprot.writeFieldEnd()
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)
22664
 
22665
class getAllFbaListedItems_args:
22666
 
22667
  thrift_spec = (
22668
  )
22669
 
22670
  def read(self, iprot):
22671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22673
      return
22674
    iprot.readStructBegin()
22675
    while True:
22676
      (fname, ftype, fid) = iprot.readFieldBegin()
22677
      if ftype == TType.STOP:
22678
        break
22679
      else:
22680
        iprot.skip(ftype)
22681
      iprot.readFieldEnd()
22682
    iprot.readStructEnd()
22683
 
22684
  def write(self, oprot):
22685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22687
      return
22688
    oprot.writeStructBegin('getAllFbaListedItems_args')
22689
    oprot.writeFieldStop()
22690
    oprot.writeStructEnd()
22691
 
22692
  def validate(self):
22693
    return
22694
 
22695
 
22696
  def __repr__(self):
22697
    L = ['%s=%r' % (key, value)
22698
      for key, value in self.__dict__.iteritems()]
22699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22700
 
22701
  def __eq__(self, other):
22702
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22703
 
22704
  def __ne__(self, other):
22705
    return not (self == other)
22706
 
22707
class getAllFbaListedItems_result:
22708
  """
22709
  Attributes:
22710
   - success
22711
  """
22712
 
22713
  thrift_spec = (
22714
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22715
  )
22716
 
22717
  def __init__(self, success=None,):
22718
    self.success = success
22719
 
22720
  def read(self, iprot):
22721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22723
      return
22724
    iprot.readStructBegin()
22725
    while True:
22726
      (fname, ftype, fid) = iprot.readFieldBegin()
22727
      if ftype == TType.STOP:
22728
        break
22729
      if fid == 0:
22730
        if ftype == TType.LIST:
22731
          self.success = []
9155 kshitij.so 22732
          (_etype449, _size446) = iprot.readListBegin()
22733
          for _i450 in xrange(_size446):
22734
            _elem451 = Amazonlisted()
22735
            _elem451.read(iprot)
22736
            self.success.append(_elem451)
7291 vikram.rag 22737
          iprot.readListEnd()
22738
        else:
22739
          iprot.skip(ftype)
22740
      else:
22741
        iprot.skip(ftype)
22742
      iprot.readFieldEnd()
22743
    iprot.readStructEnd()
22744
 
22745
  def write(self, oprot):
22746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22748
      return
22749
    oprot.writeStructBegin('getAllFbaListedItems_result')
22750
    if self.success is not None:
22751
      oprot.writeFieldBegin('success', TType.LIST, 0)
22752
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22753
      for iter452 in self.success:
22754
        iter452.write(oprot)
7291 vikram.rag 22755
      oprot.writeListEnd()
22756
      oprot.writeFieldEnd()
22757
    oprot.writeFieldStop()
22758
    oprot.writeStructEnd()
22759
 
22760
  def validate(self):
22761
    return
22762
 
22763
 
22764
  def __repr__(self):
22765
    L = ['%s=%r' % (key, value)
22766
      for key, value in self.__dict__.iteritems()]
22767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22768
 
22769
  def __eq__(self, other):
22770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22771
 
22772
  def __ne__(self, other):
22773
    return not (self == other)
22774
 
22775
class getAllNonFbaListedItems_args:
22776
 
22777
  thrift_spec = (
22778
  )
22779
 
22780
  def read(self, iprot):
22781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22783
      return
22784
    iprot.readStructBegin()
22785
    while True:
22786
      (fname, ftype, fid) = iprot.readFieldBegin()
22787
      if ftype == TType.STOP:
22788
        break
22789
      else:
22790
        iprot.skip(ftype)
22791
      iprot.readFieldEnd()
22792
    iprot.readStructEnd()
22793
 
22794
  def write(self, oprot):
22795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22797
      return
22798
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
22799
    oprot.writeFieldStop()
22800
    oprot.writeStructEnd()
22801
 
22802
  def validate(self):
22803
    return
22804
 
22805
 
22806
  def __repr__(self):
22807
    L = ['%s=%r' % (key, value)
22808
      for key, value in self.__dict__.iteritems()]
22809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22810
 
22811
  def __eq__(self, other):
22812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22813
 
22814
  def __ne__(self, other):
22815
    return not (self == other)
22816
 
22817
class getAllNonFbaListedItems_result:
22818
  """
22819
  Attributes:
22820
   - success
22821
  """
22822
 
22823
  thrift_spec = (
22824
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22825
  )
22826
 
22827
  def __init__(self, success=None,):
22828
    self.success = success
22829
 
22830
  def read(self, iprot):
22831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22833
      return
22834
    iprot.readStructBegin()
22835
    while True:
22836
      (fname, ftype, fid) = iprot.readFieldBegin()
22837
      if ftype == TType.STOP:
22838
        break
22839
      if fid == 0:
22840
        if ftype == TType.LIST:
22841
          self.success = []
9155 kshitij.so 22842
          (_etype456, _size453) = iprot.readListBegin()
22843
          for _i457 in xrange(_size453):
22844
            _elem458 = Amazonlisted()
22845
            _elem458.read(iprot)
22846
            self.success.append(_elem458)
7291 vikram.rag 22847
          iprot.readListEnd()
22848
        else:
22849
          iprot.skip(ftype)
22850
      else:
22851
        iprot.skip(ftype)
22852
      iprot.readFieldEnd()
22853
    iprot.readStructEnd()
22854
 
22855
  def write(self, oprot):
22856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22858
      return
22859
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
22860
    if self.success is not None:
22861
      oprot.writeFieldBegin('success', TType.LIST, 0)
22862
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22863
      for iter459 in self.success:
22864
        iter459.write(oprot)
7291 vikram.rag 22865
      oprot.writeListEnd()
22866
      oprot.writeFieldEnd()
22867
    oprot.writeFieldStop()
22868
    oprot.writeStructEnd()
22869
 
22870
  def validate(self):
22871
    return
22872
 
22873
 
22874
  def __repr__(self):
22875
    L = ['%s=%r' % (key, value)
22876
      for key, value in self.__dict__.iteritems()]
22877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22878
 
22879
  def __eq__(self, other):
22880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22881
 
22882
  def __ne__(self, other):
22883
    return not (self == other)
7460 kshitij.so 22884
 
22885
class updateItemInventory_args:
22886
  """
22887
  Attributes:
22888
   - itemId
22889
   - holdInventory
22890
   - defaultInventory
22891
  """
22892
 
22893
  thrift_spec = (
22894
    None, # 0
22895
    (1, TType.I64, 'itemId', None, None, ), # 1
22896
    (2, TType.I64, 'holdInventory', None, None, ), # 2
22897
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
22898
  )
22899
 
22900
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
22901
    self.itemId = itemId
22902
    self.holdInventory = holdInventory
22903
    self.defaultInventory = defaultInventory
22904
 
22905
  def read(self, iprot):
22906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22908
      return
22909
    iprot.readStructBegin()
22910
    while True:
22911
      (fname, ftype, fid) = iprot.readFieldBegin()
22912
      if ftype == TType.STOP:
22913
        break
22914
      if fid == 1:
22915
        if ftype == TType.I64:
22916
          self.itemId = iprot.readI64();
22917
        else:
22918
          iprot.skip(ftype)
22919
      elif fid == 2:
22920
        if ftype == TType.I64:
22921
          self.holdInventory = iprot.readI64();
22922
        else:
22923
          iprot.skip(ftype)
22924
      elif fid == 3:
22925
        if ftype == TType.I64:
22926
          self.defaultInventory = 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
22938
    oprot.writeStructBegin('updateItemInventory_args')
22939
    if self.itemId is not None:
22940
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22941
      oprot.writeI64(self.itemId)
22942
      oprot.writeFieldEnd()
22943
    if self.holdInventory is not None:
22944
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
22945
      oprot.writeI64(self.holdInventory)
22946
      oprot.writeFieldEnd()
22947
    if self.defaultInventory is not None:
22948
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
22949
      oprot.writeI64(self.defaultInventory)
22950
      oprot.writeFieldEnd()
22951
    oprot.writeFieldStop()
22952
    oprot.writeStructEnd()
22953
 
22954
  def validate(self):
22955
    return
22956
 
22957
 
22958
  def __repr__(self):
22959
    L = ['%s=%r' % (key, value)
22960
      for key, value in self.__dict__.iteritems()]
22961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22962
 
22963
  def __eq__(self, other):
22964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22965
 
22966
  def __ne__(self, other):
22967
    return not (self == other)
22968
 
22969
class updateItemInventory_result:
22970
  """
22971
  Attributes:
22972
   - success
22973
  """
22974
 
22975
  thrift_spec = (
22976
    (0, TType.BOOL, 'success', None, None, ), # 0
22977
  )
22978
 
22979
  def __init__(self, success=None,):
22980
    self.success = success
22981
 
22982
  def read(self, iprot):
22983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22985
      return
22986
    iprot.readStructBegin()
22987
    while True:
22988
      (fname, ftype, fid) = iprot.readFieldBegin()
22989
      if ftype == TType.STOP:
22990
        break
22991
      if fid == 0:
22992
        if ftype == TType.BOOL:
22993
          self.success = iprot.readBool();
22994
        else:
22995
          iprot.skip(ftype)
22996
      else:
22997
        iprot.skip(ftype)
22998
      iprot.readFieldEnd()
22999
    iprot.readStructEnd()
23000
 
23001
  def write(self, oprot):
23002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23004
      return
23005
    oprot.writeStructBegin('updateItemInventory_result')
23006
    if self.success is not None:
23007
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23008
      oprot.writeBool(self.success)
23009
      oprot.writeFieldEnd()
23010
    oprot.writeFieldStop()
23011
    oprot.writeStructEnd()
23012
 
23013
  def validate(self):
23014
    return
23015
 
23016
 
23017
  def __repr__(self):
23018
    L = ['%s=%r' % (key, value)
23019
      for key, value in self.__dict__.iteritems()]
23020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23021
 
23022
  def __eq__(self, other):
23023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23024
 
23025
  def __ne__(self, other):
23026
    return not (self == other)
7770 kshitij.so 23027
 
23028
class updateTimestampForAmazonFeeds_args:
23029
  """
23030
  Attributes:
23031
   - type
23032
   - sku
23033
   - timestamp
23034
  """
23035
 
23036
  thrift_spec = (
23037
    None, # 0
23038
    (1, TType.STRING, 'type', None, None, ), # 1
23039
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
23040
    (3, TType.I64, 'timestamp', None, None, ), # 3
23041
  )
23042
 
23043
  def __init__(self, type=None, sku=None, timestamp=None,):
23044
    self.type = type
23045
    self.sku = sku
23046
    self.timestamp = timestamp
23047
 
23048
  def read(self, iprot):
23049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23051
      return
23052
    iprot.readStructBegin()
23053
    while True:
23054
      (fname, ftype, fid) = iprot.readFieldBegin()
23055
      if ftype == TType.STOP:
23056
        break
23057
      if fid == 1:
23058
        if ftype == TType.STRING:
23059
          self.type = iprot.readString();
23060
        else:
23061
          iprot.skip(ftype)
23062
      elif fid == 2:
23063
        if ftype == TType.LIST:
23064
          self.sku = []
9155 kshitij.so 23065
          (_etype463, _size460) = iprot.readListBegin()
23066
          for _i464 in xrange(_size460):
23067
            _elem465 = iprot.readI64();
23068
            self.sku.append(_elem465)
7770 kshitij.so 23069
          iprot.readListEnd()
23070
        else:
23071
          iprot.skip(ftype)
23072
      elif fid == 3:
23073
        if ftype == TType.I64:
23074
          self.timestamp = iprot.readI64();
23075
        else:
23076
          iprot.skip(ftype)
23077
      else:
23078
        iprot.skip(ftype)
23079
      iprot.readFieldEnd()
23080
    iprot.readStructEnd()
23081
 
23082
  def write(self, oprot):
23083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23085
      return
23086
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
23087
    if self.type is not None:
23088
      oprot.writeFieldBegin('type', TType.STRING, 1)
23089
      oprot.writeString(self.type)
23090
      oprot.writeFieldEnd()
23091
    if self.sku is not None:
23092
      oprot.writeFieldBegin('sku', TType.LIST, 2)
23093
      oprot.writeListBegin(TType.I64, len(self.sku))
9155 kshitij.so 23094
      for iter466 in self.sku:
23095
        oprot.writeI64(iter466)
7770 kshitij.so 23096
      oprot.writeListEnd()
23097
      oprot.writeFieldEnd()
23098
    if self.timestamp is not None:
23099
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
23100
      oprot.writeI64(self.timestamp)
23101
      oprot.writeFieldEnd()
23102
    oprot.writeFieldStop()
23103
    oprot.writeStructEnd()
23104
 
23105
  def validate(self):
23106
    return
23107
 
23108
 
23109
  def __repr__(self):
23110
    L = ['%s=%r' % (key, value)
23111
      for key, value in self.__dict__.iteritems()]
23112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23113
 
23114
  def __eq__(self, other):
23115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23116
 
23117
  def __ne__(self, other):
23118
    return not (self == other)
23119
 
23120
class updateTimestampForAmazonFeeds_result:
23121
  """
23122
  Attributes:
23123
   - success
23124
  """
23125
 
23126
  thrift_spec = (
23127
    (0, TType.BOOL, 'success', None, None, ), # 0
23128
  )
23129
 
23130
  def __init__(self, success=None,):
23131
    self.success = success
23132
 
23133
  def read(self, iprot):
23134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23136
      return
23137
    iprot.readStructBegin()
23138
    while True:
23139
      (fname, ftype, fid) = iprot.readFieldBegin()
23140
      if ftype == TType.STOP:
23141
        break
23142
      if fid == 0:
23143
        if ftype == TType.BOOL:
23144
          self.success = iprot.readBool();
23145
        else:
23146
          iprot.skip(ftype)
23147
      else:
23148
        iprot.skip(ftype)
23149
      iprot.readFieldEnd()
23150
    iprot.readStructEnd()
23151
 
23152
  def write(self, oprot):
23153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23155
      return
23156
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
23157
    if self.success is not None:
23158
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23159
      oprot.writeBool(self.success)
23160
      oprot.writeFieldEnd()
23161
    oprot.writeFieldStop()
23162
    oprot.writeStructEnd()
23163
 
23164
  def validate(self):
23165
    return
23166
 
23167
 
23168
  def __repr__(self):
23169
    L = ['%s=%r' % (key, value)
23170
      for key, value in self.__dict__.iteritems()]
23171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23172
 
23173
  def __eq__(self, other):
23174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23175
 
23176
  def __ne__(self, other):
23177
    return not (self == other)
7897 amar.kumar 23178
 
23179
class getAllParentCategories_args:
23180
 
23181
  thrift_spec = (
23182
  )
23183
 
23184
  def read(self, iprot):
23185
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23186
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23187
      return
23188
    iprot.readStructBegin()
23189
    while True:
23190
      (fname, ftype, fid) = iprot.readFieldBegin()
23191
      if ftype == TType.STOP:
23192
        break
23193
      else:
23194
        iprot.skip(ftype)
23195
      iprot.readFieldEnd()
23196
    iprot.readStructEnd()
23197
 
23198
  def write(self, oprot):
23199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23201
      return
23202
    oprot.writeStructBegin('getAllParentCategories_args')
23203
    oprot.writeFieldStop()
23204
    oprot.writeStructEnd()
23205
 
23206
  def validate(self):
23207
    return
23208
 
23209
 
23210
  def __repr__(self):
23211
    L = ['%s=%r' % (key, value)
23212
      for key, value in self.__dict__.iteritems()]
23213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23214
 
23215
  def __eq__(self, other):
23216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23217
 
23218
  def __ne__(self, other):
23219
    return not (self == other)
23220
 
23221
class getAllParentCategories_result:
23222
  """
23223
  Attributes:
23224
   - success
23225
  """
23226
 
23227
  thrift_spec = (
23228
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
23229
  )
23230
 
23231
  def __init__(self, success=None,):
23232
    self.success = success
23233
 
23234
  def read(self, iprot):
23235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23237
      return
23238
    iprot.readStructBegin()
23239
    while True:
23240
      (fname, ftype, fid) = iprot.readFieldBegin()
23241
      if ftype == TType.STOP:
23242
        break
23243
      if fid == 0:
23244
        if ftype == TType.LIST:
23245
          self.success = []
9155 kshitij.so 23246
          (_etype470, _size467) = iprot.readListBegin()
23247
          for _i471 in xrange(_size467):
23248
            _elem472 = Category()
23249
            _elem472.read(iprot)
23250
            self.success.append(_elem472)
7897 amar.kumar 23251
          iprot.readListEnd()
23252
        else:
23253
          iprot.skip(ftype)
23254
      else:
23255
        iprot.skip(ftype)
23256
      iprot.readFieldEnd()
23257
    iprot.readStructEnd()
23258
 
23259
  def write(self, oprot):
23260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23262
      return
23263
    oprot.writeStructBegin('getAllParentCategories_result')
23264
    if self.success is not None:
23265
      oprot.writeFieldBegin('success', TType.LIST, 0)
23266
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 23267
      for iter473 in self.success:
23268
        iter473.write(oprot)
7897 amar.kumar 23269
      oprot.writeListEnd()
23270
      oprot.writeFieldEnd()
23271
    oprot.writeFieldStop()
23272
    oprot.writeStructEnd()
23273
 
23274
  def validate(self):
23275
    return
23276
 
23277
 
23278
  def __repr__(self):
23279
    L = ['%s=%r' % (key, value)
23280
      for key, value in self.__dict__.iteritems()]
23281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23282
 
23283
  def __eq__(self, other):
23284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23285
 
23286
  def __ne__(self, other):
23287
    return not (self == other)
7977 kshitij.so 23288
 
23289
class addPageViewEvent_args:
23290
  """
23291
  Attributes:
23292
   - pageViewEvents
23293
  """
23294
 
23295
  thrift_spec = (
23296
    None, # 0
23297
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
23298
  )
23299
 
23300
  def __init__(self, pageViewEvents=None,):
23301
    self.pageViewEvents = pageViewEvents
23302
 
23303
  def read(self, iprot):
23304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23306
      return
23307
    iprot.readStructBegin()
23308
    while True:
23309
      (fname, ftype, fid) = iprot.readFieldBegin()
23310
      if ftype == TType.STOP:
23311
        break
23312
      if fid == 1:
23313
        if ftype == TType.STRUCT:
23314
          self.pageViewEvents = PageViewEvents()
23315
          self.pageViewEvents.read(iprot)
23316
        else:
23317
          iprot.skip(ftype)
23318
      else:
23319
        iprot.skip(ftype)
23320
      iprot.readFieldEnd()
23321
    iprot.readStructEnd()
23322
 
23323
  def write(self, oprot):
23324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23326
      return
23327
    oprot.writeStructBegin('addPageViewEvent_args')
23328
    if self.pageViewEvents is not None:
23329
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
23330
      self.pageViewEvents.write(oprot)
23331
      oprot.writeFieldEnd()
23332
    oprot.writeFieldStop()
23333
    oprot.writeStructEnd()
23334
 
23335
  def validate(self):
23336
    return
23337
 
23338
 
23339
  def __repr__(self):
23340
    L = ['%s=%r' % (key, value)
23341
      for key, value in self.__dict__.iteritems()]
23342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23343
 
23344
  def __eq__(self, other):
23345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23346
 
23347
  def __ne__(self, other):
23348
    return not (self == other)
23349
 
23350
class addPageViewEvent_result:
23351
 
23352
  thrift_spec = (
23353
  )
23354
 
23355
  def read(self, iprot):
23356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23358
      return
23359
    iprot.readStructBegin()
23360
    while True:
23361
      (fname, ftype, fid) = iprot.readFieldBegin()
23362
      if ftype == TType.STOP:
23363
        break
23364
      else:
23365
        iprot.skip(ftype)
23366
      iprot.readFieldEnd()
23367
    iprot.readStructEnd()
23368
 
23369
  def write(self, oprot):
23370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23372
      return
23373
    oprot.writeStructBegin('addPageViewEvent_result')
23374
    oprot.writeFieldStop()
23375
    oprot.writeStructEnd()
23376
 
23377
  def validate(self):
23378
    return
23379
 
23380
 
23381
  def __repr__(self):
23382
    L = ['%s=%r' % (key, value)
23383
      for key, value in self.__dict__.iteritems()]
23384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23385
 
23386
  def __eq__(self, other):
23387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23388
 
23389
  def __ne__(self, other):
23390
    return not (self == other)
23391
 
23392
class addCartEvent_args:
23393
  """
23394
  Attributes:
23395
   - cartEvents
23396
  """
23397
 
23398
  thrift_spec = (
23399
    None, # 0
23400
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
23401
  )
23402
 
23403
  def __init__(self, cartEvents=None,):
23404
    self.cartEvents = cartEvents
23405
 
23406
  def read(self, iprot):
23407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23409
      return
23410
    iprot.readStructBegin()
23411
    while True:
23412
      (fname, ftype, fid) = iprot.readFieldBegin()
23413
      if ftype == TType.STOP:
23414
        break
23415
      if fid == 1:
23416
        if ftype == TType.STRUCT:
23417
          self.cartEvents = CartEvents()
23418
          self.cartEvents.read(iprot)
23419
        else:
23420
          iprot.skip(ftype)
23421
      else:
23422
        iprot.skip(ftype)
23423
      iprot.readFieldEnd()
23424
    iprot.readStructEnd()
23425
 
23426
  def write(self, oprot):
23427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23429
      return
23430
    oprot.writeStructBegin('addCartEvent_args')
23431
    if self.cartEvents is not None:
23432
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
23433
      self.cartEvents.write(oprot)
23434
      oprot.writeFieldEnd()
23435
    oprot.writeFieldStop()
23436
    oprot.writeStructEnd()
23437
 
23438
  def validate(self):
23439
    return
23440
 
23441
 
23442
  def __repr__(self):
23443
    L = ['%s=%r' % (key, value)
23444
      for key, value in self.__dict__.iteritems()]
23445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23446
 
23447
  def __eq__(self, other):
23448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23449
 
23450
  def __ne__(self, other):
23451
    return not (self == other)
23452
 
23453
class addCartEvent_result:
23454
 
23455
  thrift_spec = (
23456
  )
23457
 
23458
  def read(self, iprot):
23459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23461
      return
23462
    iprot.readStructBegin()
23463
    while True:
23464
      (fname, ftype, fid) = iprot.readFieldBegin()
23465
      if ftype == TType.STOP:
23466
        break
23467
      else:
23468
        iprot.skip(ftype)
23469
      iprot.readFieldEnd()
23470
    iprot.readStructEnd()
23471
 
23472
  def write(self, oprot):
23473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23475
      return
23476
    oprot.writeStructBegin('addCartEvent_result')
23477
    oprot.writeFieldStop()
23478
    oprot.writeStructEnd()
23479
 
23480
  def validate(self):
23481
    return
23482
 
23483
 
23484
  def __repr__(self):
23485
    L = ['%s=%r' % (key, value)
23486
      for key, value in self.__dict__.iteritems()]
23487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23488
 
23489
  def __eq__(self, other):
23490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23491
 
23492
  def __ne__(self, other):
23493
    return not (self == other)
8139 kshitij.so 23494
 
8182 amar.kumar 23495
class addEbayItem_args:
23496
  """
23497
  Attributes:
23498
   - ebayItem
23499
  """
23500
 
23501
  thrift_spec = (
23502
    None, # 0
23503
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
23504
  )
23505
 
23506
  def __init__(self, ebayItem=None,):
23507
    self.ebayItem = ebayItem
23508
 
23509
  def read(self, iprot):
23510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23512
      return
23513
    iprot.readStructBegin()
23514
    while True:
23515
      (fname, ftype, fid) = iprot.readFieldBegin()
23516
      if ftype == TType.STOP:
23517
        break
23518
      if fid == 1:
23519
        if ftype == TType.STRUCT:
23520
          self.ebayItem = EbayItem()
23521
          self.ebayItem.read(iprot)
23522
        else:
23523
          iprot.skip(ftype)
23524
      else:
23525
        iprot.skip(ftype)
23526
      iprot.readFieldEnd()
23527
    iprot.readStructEnd()
23528
 
23529
  def write(self, oprot):
23530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23532
      return
23533
    oprot.writeStructBegin('addEbayItem_args')
23534
    if self.ebayItem is not None:
23535
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
23536
      self.ebayItem.write(oprot)
23537
      oprot.writeFieldEnd()
23538
    oprot.writeFieldStop()
23539
    oprot.writeStructEnd()
23540
 
23541
  def validate(self):
23542
    return
23543
 
23544
 
23545
  def __repr__(self):
23546
    L = ['%s=%r' % (key, value)
23547
      for key, value in self.__dict__.iteritems()]
23548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23549
 
23550
  def __eq__(self, other):
23551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23552
 
23553
  def __ne__(self, other):
23554
    return not (self == other)
23555
 
23556
class addEbayItem_result:
23557
 
23558
  thrift_spec = (
23559
  )
23560
 
23561
  def read(self, iprot):
23562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23564
      return
23565
    iprot.readStructBegin()
23566
    while True:
23567
      (fname, ftype, fid) = iprot.readFieldBegin()
23568
      if ftype == TType.STOP:
23569
        break
23570
      else:
23571
        iprot.skip(ftype)
23572
      iprot.readFieldEnd()
23573
    iprot.readStructEnd()
23574
 
23575
  def write(self, oprot):
23576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23578
      return
23579
    oprot.writeStructBegin('addEbayItem_result')
23580
    oprot.writeFieldStop()
23581
    oprot.writeStructEnd()
23582
 
23583
  def validate(self):
23584
    return
23585
 
23586
 
23587
  def __repr__(self):
23588
    L = ['%s=%r' % (key, value)
23589
      for key, value in self.__dict__.iteritems()]
23590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23591
 
23592
  def __eq__(self, other):
23593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23594
 
23595
  def __ne__(self, other):
23596
    return not (self == other)
23597
 
23598
class getEbayItem_args:
23599
  """
23600
  Attributes:
23601
   - listingId
23602
  """
23603
 
23604
  thrift_spec = (
23605
    None, # 0
23606
    (1, TType.STRING, 'listingId', None, None, ), # 1
23607
  )
23608
 
23609
  def __init__(self, listingId=None,):
23610
    self.listingId = listingId
23611
 
23612
  def read(self, iprot):
23613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23615
      return
23616
    iprot.readStructBegin()
23617
    while True:
23618
      (fname, ftype, fid) = iprot.readFieldBegin()
23619
      if ftype == TType.STOP:
23620
        break
23621
      if fid == 1:
23622
        if ftype == TType.STRING:
23623
          self.listingId = iprot.readString();
23624
        else:
23625
          iprot.skip(ftype)
23626
      else:
23627
        iprot.skip(ftype)
23628
      iprot.readFieldEnd()
23629
    iprot.readStructEnd()
23630
 
23631
  def write(self, oprot):
23632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23634
      return
23635
    oprot.writeStructBegin('getEbayItem_args')
23636
    if self.listingId is not None:
23637
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
23638
      oprot.writeString(self.listingId)
23639
      oprot.writeFieldEnd()
23640
    oprot.writeFieldStop()
23641
    oprot.writeStructEnd()
23642
 
23643
  def validate(self):
23644
    return
23645
 
23646
 
23647
  def __repr__(self):
23648
    L = ['%s=%r' % (key, value)
23649
      for key, value in self.__dict__.iteritems()]
23650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23651
 
23652
  def __eq__(self, other):
23653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23654
 
23655
  def __ne__(self, other):
23656
    return not (self == other)
23657
 
23658
class getEbayItem_result:
23659
  """
23660
  Attributes:
23661
   - success
23662
  """
23663
 
23664
  thrift_spec = (
23665
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
23666
  )
23667
 
23668
  def __init__(self, success=None,):
23669
    self.success = success
23670
 
23671
  def read(self, iprot):
23672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23674
      return
23675
    iprot.readStructBegin()
23676
    while True:
23677
      (fname, ftype, fid) = iprot.readFieldBegin()
23678
      if ftype == TType.STOP:
23679
        break
23680
      if fid == 0:
23681
        if ftype == TType.STRUCT:
23682
          self.success = EbayItem()
23683
          self.success.read(iprot)
23684
        else:
23685
          iprot.skip(ftype)
23686
      else:
23687
        iprot.skip(ftype)
23688
      iprot.readFieldEnd()
23689
    iprot.readStructEnd()
23690
 
23691
  def write(self, oprot):
23692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23694
      return
23695
    oprot.writeStructBegin('getEbayItem_result')
23696
    if self.success is not None:
23697
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23698
      self.success.write(oprot)
23699
      oprot.writeFieldEnd()
23700
    oprot.writeFieldStop()
23701
    oprot.writeStructEnd()
23702
 
23703
  def validate(self):
23704
    return
23705
 
23706
 
23707
  def __repr__(self):
23708
    L = ['%s=%r' % (key, value)
23709
      for key, value in self.__dict__.iteritems()]
23710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23711
 
23712
  def __eq__(self, other):
23713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23714
 
23715
  def __ne__(self, other):
23716
    return not (self == other)
23717
 
23718
class updateEbayItem_args:
23719
  """
23720
  Attributes:
23721
   - ebayItem
23722
  """
23723
 
23724
  thrift_spec = (
23725
    None, # 0
23726
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
23727
  )
23728
 
23729
  def __init__(self, ebayItem=None,):
23730
    self.ebayItem = ebayItem
23731
 
23732
  def read(self, iprot):
23733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23735
      return
23736
    iprot.readStructBegin()
23737
    while True:
23738
      (fname, ftype, fid) = iprot.readFieldBegin()
23739
      if ftype == TType.STOP:
23740
        break
23741
      if fid == 1:
23742
        if ftype == TType.STRUCT:
23743
          self.ebayItem = EbayItem()
23744
          self.ebayItem.read(iprot)
23745
        else:
23746
          iprot.skip(ftype)
23747
      else:
23748
        iprot.skip(ftype)
23749
      iprot.readFieldEnd()
23750
    iprot.readStructEnd()
23751
 
23752
  def write(self, oprot):
23753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23755
      return
23756
    oprot.writeStructBegin('updateEbayItem_args')
23757
    if self.ebayItem is not None:
23758
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
23759
      self.ebayItem.write(oprot)
23760
      oprot.writeFieldEnd()
23761
    oprot.writeFieldStop()
23762
    oprot.writeStructEnd()
23763
 
23764
  def validate(self):
23765
    return
23766
 
23767
 
23768
  def __repr__(self):
23769
    L = ['%s=%r' % (key, value)
23770
      for key, value in self.__dict__.iteritems()]
23771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23772
 
23773
  def __eq__(self, other):
23774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23775
 
23776
  def __ne__(self, other):
23777
    return not (self == other)
23778
 
23779
class updateEbayItem_result:
23780
 
23781
  thrift_spec = (
23782
  )
23783
 
23784
  def read(self, iprot):
23785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23787
      return
23788
    iprot.readStructBegin()
23789
    while True:
23790
      (fname, ftype, fid) = iprot.readFieldBegin()
23791
      if ftype == TType.STOP:
23792
        break
23793
      else:
23794
        iprot.skip(ftype)
23795
      iprot.readFieldEnd()
23796
    iprot.readStructEnd()
23797
 
23798
  def write(self, oprot):
23799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23801
      return
23802
    oprot.writeStructBegin('updateEbayItem_result')
23803
    oprot.writeFieldStop()
23804
    oprot.writeStructEnd()
23805
 
23806
  def validate(self):
23807
    return
23808
 
23809
 
23810
  def __repr__(self):
23811
    L = ['%s=%r' % (key, value)
23812
      for key, value in self.__dict__.iteritems()]
23813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23814
 
23815
  def __eq__(self, other):
23816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23817
 
23818
  def __ne__(self, other):
23819
    return not (self == other)
23820
 
8139 kshitij.so 23821
class getAmazonListedItems_args:
23822
  """
23823
  Attributes:
23824
   - offset
23825
   - limit
23826
  """
23827
 
23828
  thrift_spec = (
23829
    None, # 0
23830
    (1, TType.I64, 'offset', None, None, ), # 1
23831
    (2, TType.I64, 'limit', None, None, ), # 2
23832
  )
23833
 
23834
  def __init__(self, offset=None, limit=None,):
23835
    self.offset = offset
23836
    self.limit = limit
23837
 
23838
  def read(self, iprot):
23839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23841
      return
23842
    iprot.readStructBegin()
23843
    while True:
23844
      (fname, ftype, fid) = iprot.readFieldBegin()
23845
      if ftype == TType.STOP:
23846
        break
23847
      if fid == 1:
23848
        if ftype == TType.I64:
23849
          self.offset = iprot.readI64();
23850
        else:
23851
          iprot.skip(ftype)
23852
      elif fid == 2:
23853
        if ftype == TType.I64:
23854
          self.limit = iprot.readI64();
23855
        else:
23856
          iprot.skip(ftype)
23857
      else:
23858
        iprot.skip(ftype)
23859
      iprot.readFieldEnd()
23860
    iprot.readStructEnd()
23861
 
23862
  def write(self, oprot):
23863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23865
      return
23866
    oprot.writeStructBegin('getAmazonListedItems_args')
23867
    if self.offset is not None:
23868
      oprot.writeFieldBegin('offset', TType.I64, 1)
23869
      oprot.writeI64(self.offset)
23870
      oprot.writeFieldEnd()
23871
    if self.limit is not None:
23872
      oprot.writeFieldBegin('limit', TType.I64, 2)
23873
      oprot.writeI64(self.limit)
23874
      oprot.writeFieldEnd()
23875
    oprot.writeFieldStop()
23876
    oprot.writeStructEnd()
23877
 
23878
  def validate(self):
23879
    return
23880
 
23881
 
23882
  def __repr__(self):
23883
    L = ['%s=%r' % (key, value)
23884
      for key, value in self.__dict__.iteritems()]
23885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23886
 
23887
  def __eq__(self, other):
23888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23889
 
23890
  def __ne__(self, other):
23891
    return not (self == other)
23892
 
23893
class getAmazonListedItems_result:
23894
  """
23895
  Attributes:
23896
   - success
23897
  """
23898
 
23899
  thrift_spec = (
23900
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23901
  )
23902
 
23903
  def __init__(self, success=None,):
23904
    self.success = success
23905
 
23906
  def read(self, iprot):
23907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23909
      return
23910
    iprot.readStructBegin()
23911
    while True:
23912
      (fname, ftype, fid) = iprot.readFieldBegin()
23913
      if ftype == TType.STOP:
23914
        break
23915
      if fid == 0:
23916
        if ftype == TType.LIST:
23917
          self.success = []
9155 kshitij.so 23918
          (_etype477, _size474) = iprot.readListBegin()
23919
          for _i478 in xrange(_size474):
23920
            _elem479 = Amazonlisted()
23921
            _elem479.read(iprot)
23922
            self.success.append(_elem479)
8139 kshitij.so 23923
          iprot.readListEnd()
23924
        else:
23925
          iprot.skip(ftype)
23926
      else:
23927
        iprot.skip(ftype)
23928
      iprot.readFieldEnd()
23929
    iprot.readStructEnd()
23930
 
23931
  def write(self, oprot):
23932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23934
      return
23935
    oprot.writeStructBegin('getAmazonListedItems_result')
23936
    if self.success is not None:
23937
      oprot.writeFieldBegin('success', TType.LIST, 0)
23938
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 23939
      for iter480 in self.success:
23940
        iter480.write(oprot)
8139 kshitij.so 23941
      oprot.writeListEnd()
23942
      oprot.writeFieldEnd()
23943
    oprot.writeFieldStop()
23944
    oprot.writeStructEnd()
23945
 
23946
  def validate(self):
23947
    return
23948
 
23949
 
23950
  def __repr__(self):
23951
    L = ['%s=%r' % (key, value)
23952
      for key, value in self.__dict__.iteritems()]
23953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23954
 
23955
  def __eq__(self, other):
23956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23957
 
23958
  def __ne__(self, other):
23959
    return not (self == other)
8168 kshitij.so 23960
 
23961
class updateAmazonAttributesInBulk_args:
23962
  """
23963
  Attributes:
23964
   - amazonlisted
23965
  """
23966
 
23967
  thrift_spec = (
23968
    None, # 0
23969
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
23970
  )
23971
 
23972
  def __init__(self, amazonlisted=None,):
23973
    self.amazonlisted = amazonlisted
23974
 
23975
  def read(self, iprot):
23976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23978
      return
23979
    iprot.readStructBegin()
23980
    while True:
23981
      (fname, ftype, fid) = iprot.readFieldBegin()
23982
      if ftype == TType.STOP:
23983
        break
23984
      if fid == 1:
23985
        if ftype == TType.MAP:
23986
          self.amazonlisted = {}
9155 kshitij.so 23987
          (_ktype482, _vtype483, _size481 ) = iprot.readMapBegin() 
23988
          for _i485 in xrange(_size481):
23989
            _key486 = iprot.readI64();
23990
            _val487 = Amazonlisted()
23991
            _val487.read(iprot)
23992
            self.amazonlisted[_key486] = _val487
8168 kshitij.so 23993
          iprot.readMapEnd()
23994
        else:
23995
          iprot.skip(ftype)
23996
      else:
23997
        iprot.skip(ftype)
23998
      iprot.readFieldEnd()
23999
    iprot.readStructEnd()
24000
 
24001
  def write(self, oprot):
24002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24004
      return
24005
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
24006
    if self.amazonlisted is not None:
24007
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
24008
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
9155 kshitij.so 24009
      for kiter488,viter489 in self.amazonlisted.items():
24010
        oprot.writeI64(kiter488)
24011
        viter489.write(oprot)
8168 kshitij.so 24012
      oprot.writeMapEnd()
24013
      oprot.writeFieldEnd()
24014
    oprot.writeFieldStop()
24015
    oprot.writeStructEnd()
24016
 
24017
  def validate(self):
24018
    return
24019
 
24020
 
24021
  def __repr__(self):
24022
    L = ['%s=%r' % (key, value)
24023
      for key, value in self.__dict__.iteritems()]
24024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24025
 
24026
  def __eq__(self, other):
24027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24028
 
24029
  def __ne__(self, other):
24030
    return not (self == other)
24031
 
24032
class updateAmazonAttributesInBulk_result:
24033
  """
24034
  Attributes:
24035
   - success
24036
  """
24037
 
24038
  thrift_spec = (
24039
    (0, TType.BOOL, 'success', None, None, ), # 0
24040
  )
24041
 
24042
  def __init__(self, success=None,):
24043
    self.success = success
24044
 
24045
  def read(self, iprot):
24046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24048
      return
24049
    iprot.readStructBegin()
24050
    while True:
24051
      (fname, ftype, fid) = iprot.readFieldBegin()
24052
      if ftype == TType.STOP:
24053
        break
24054
      if fid == 0:
24055
        if ftype == TType.BOOL:
24056
          self.success = iprot.readBool();
24057
        else:
24058
          iprot.skip(ftype)
24059
      else:
24060
        iprot.skip(ftype)
24061
      iprot.readFieldEnd()
24062
    iprot.readStructEnd()
24063
 
24064
  def write(self, oprot):
24065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24067
      return
24068
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
24069
    if self.success is not None:
24070
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24071
      oprot.writeBool(self.success)
24072
      oprot.writeFieldEnd()
24073
    oprot.writeFieldStop()
24074
    oprot.writeStructEnd()
24075
 
24076
  def validate(self):
24077
    return
24078
 
24079
 
24080
  def __repr__(self):
24081
    L = ['%s=%r' % (key, value)
24082
      for key, value in self.__dict__.iteritems()]
24083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24084
 
24085
  def __eq__(self, other):
24086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24087
 
24088
  def __ne__(self, other):
24089
    return not (self == other)
8379 vikram.rag 24090
 
24091
class getAllItemstoListOnFba_args:
24092
 
24093
  thrift_spec = (
24094
  )
24095
 
24096
  def read(self, iprot):
24097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24099
      return
24100
    iprot.readStructBegin()
24101
    while True:
24102
      (fname, ftype, fid) = iprot.readFieldBegin()
24103
      if ftype == TType.STOP:
24104
        break
24105
      else:
24106
        iprot.skip(ftype)
24107
      iprot.readFieldEnd()
24108
    iprot.readStructEnd()
24109
 
24110
  def write(self, oprot):
24111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24113
      return
24114
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
24115
    oprot.writeFieldStop()
24116
    oprot.writeStructEnd()
24117
 
24118
  def validate(self):
24119
    return
24120
 
24121
 
24122
  def __repr__(self):
24123
    L = ['%s=%r' % (key, value)
24124
      for key, value in self.__dict__.iteritems()]
24125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24126
 
24127
  def __eq__(self, other):
24128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24129
 
24130
  def __ne__(self, other):
24131
    return not (self == other)
24132
 
24133
class getAllItemstoListOnFba_result:
24134
  """
24135
  Attributes:
24136
   - success
24137
  """
24138
 
24139
  thrift_spec = (
24140
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24141
  )
24142
 
24143
  def __init__(self, success=None,):
24144
    self.success = success
24145
 
24146
  def read(self, iprot):
24147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24149
      return
24150
    iprot.readStructBegin()
24151
    while True:
24152
      (fname, ftype, fid) = iprot.readFieldBegin()
24153
      if ftype == TType.STOP:
24154
        break
24155
      if fid == 0:
24156
        if ftype == TType.LIST:
24157
          self.success = []
9155 kshitij.so 24158
          (_etype493, _size490) = iprot.readListBegin()
24159
          for _i494 in xrange(_size490):
24160
            _elem495 = Amazonlisted()
24161
            _elem495.read(iprot)
24162
            self.success.append(_elem495)
8379 vikram.rag 24163
          iprot.readListEnd()
24164
        else:
24165
          iprot.skip(ftype)
24166
      else:
24167
        iprot.skip(ftype)
24168
      iprot.readFieldEnd()
24169
    iprot.readStructEnd()
24170
 
24171
  def write(self, oprot):
24172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24174
      return
24175
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
24176
    if self.success is not None:
24177
      oprot.writeFieldBegin('success', TType.LIST, 0)
24178
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 24179
      for iter496 in self.success:
24180
        iter496.write(oprot)
8379 vikram.rag 24181
      oprot.writeListEnd()
24182
      oprot.writeFieldEnd()
24183
    oprot.writeFieldStop()
24184
    oprot.writeStructEnd()
24185
 
24186
  def validate(self):
24187
    return
24188
 
24189
 
24190
  def __repr__(self):
24191
    L = ['%s=%r' % (key, value)
24192
      for key, value in self.__dict__.iteritems()]
24193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24194
 
24195
  def __eq__(self, other):
24196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24197
 
24198
  def __ne__(self, other):
24199
    return not (self == other)
24200
 
24201
class getAllItemstoListOnNonFba_args:
24202
 
24203
  thrift_spec = (
24204
  )
24205
 
24206
  def read(self, iprot):
24207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24209
      return
24210
    iprot.readStructBegin()
24211
    while True:
24212
      (fname, ftype, fid) = iprot.readFieldBegin()
24213
      if ftype == TType.STOP:
24214
        break
24215
      else:
24216
        iprot.skip(ftype)
24217
      iprot.readFieldEnd()
24218
    iprot.readStructEnd()
24219
 
24220
  def write(self, oprot):
24221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24223
      return
24224
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
24225
    oprot.writeFieldStop()
24226
    oprot.writeStructEnd()
24227
 
24228
  def validate(self):
24229
    return
24230
 
24231
 
24232
  def __repr__(self):
24233
    L = ['%s=%r' % (key, value)
24234
      for key, value in self.__dict__.iteritems()]
24235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24236
 
24237
  def __eq__(self, other):
24238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24239
 
24240
  def __ne__(self, other):
24241
    return not (self == other)
24242
 
24243
class getAllItemstoListOnNonFba_result:
24244
  """
24245
  Attributes:
24246
   - success
24247
  """
24248
 
24249
  thrift_spec = (
24250
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24251
  )
24252
 
24253
  def __init__(self, success=None,):
24254
    self.success = success
24255
 
24256
  def read(self, iprot):
24257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24259
      return
24260
    iprot.readStructBegin()
24261
    while True:
24262
      (fname, ftype, fid) = iprot.readFieldBegin()
24263
      if ftype == TType.STOP:
24264
        break
24265
      if fid == 0:
24266
        if ftype == TType.LIST:
24267
          self.success = []
9155 kshitij.so 24268
          (_etype500, _size497) = iprot.readListBegin()
24269
          for _i501 in xrange(_size497):
24270
            _elem502 = Amazonlisted()
24271
            _elem502.read(iprot)
24272
            self.success.append(_elem502)
8379 vikram.rag 24273
          iprot.readListEnd()
24274
        else:
24275
          iprot.skip(ftype)
24276
      else:
24277
        iprot.skip(ftype)
24278
      iprot.readFieldEnd()
24279
    iprot.readStructEnd()
24280
 
24281
  def write(self, oprot):
24282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24284
      return
24285
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
24286
    if self.success is not None:
24287
      oprot.writeFieldBegin('success', TType.LIST, 0)
24288
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 24289
      for iter503 in self.success:
24290
        iter503.write(oprot)
8379 vikram.rag 24291
      oprot.writeListEnd()
24292
      oprot.writeFieldEnd()
24293
    oprot.writeFieldStop()
24294
    oprot.writeStructEnd()
24295
 
24296
  def validate(self):
24297
    return
24298
 
24299
 
24300
  def __repr__(self):
24301
    L = ['%s=%r' % (key, value)
24302
      for key, value in self.__dict__.iteritems()]
24303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24304
 
24305
  def __eq__(self, other):
24306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24307
 
24308
  def __ne__(self, other):
24309
    return not (self == other)
8616 vikram.rag 24310
 
9242 kshitij.so 24311
class updateAsin_args:
24312
  """
24313
  Attributes:
24314
   - item
24315
  """
8616 vikram.rag 24316
 
24317
  thrift_spec = (
9242 kshitij.so 24318
    None, # 0
24319
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 24320
  )
24321
 
9242 kshitij.so 24322
  def __init__(self, item=None,):
24323
    self.item = item
24324
 
8616 vikram.rag 24325
  def read(self, iprot):
24326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24328
      return
24329
    iprot.readStructBegin()
24330
    while True:
24331
      (fname, ftype, fid) = iprot.readFieldBegin()
24332
      if ftype == TType.STOP:
24333
        break
9242 kshitij.so 24334
      if fid == 1:
24335
        if ftype == TType.MAP:
24336
          self.item = {}
24337
          (_ktype505, _vtype506, _size504 ) = iprot.readMapBegin() 
24338
          for _i508 in xrange(_size504):
24339
            _key509 = iprot.readI64();
24340
            _val510 = Item()
24341
            _val510.read(iprot)
24342
            self.item[_key509] = _val510
24343
          iprot.readMapEnd()
24344
        else:
24345
          iprot.skip(ftype)
8616 vikram.rag 24346
      else:
24347
        iprot.skip(ftype)
24348
      iprot.readFieldEnd()
24349
    iprot.readStructEnd()
24350
 
24351
  def write(self, oprot):
24352
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24353
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24354
      return
9242 kshitij.so 24355
    oprot.writeStructBegin('updateAsin_args')
24356
    if self.item is not None:
24357
      oprot.writeFieldBegin('item', TType.MAP, 1)
24358
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
24359
      for kiter511,viter512 in self.item.items():
24360
        oprot.writeI64(kiter511)
24361
        viter512.write(oprot)
24362
      oprot.writeMapEnd()
24363
      oprot.writeFieldEnd()
8616 vikram.rag 24364
    oprot.writeFieldStop()
24365
    oprot.writeStructEnd()
24366
 
24367
  def validate(self):
24368
    return
24369
 
24370
 
24371
  def __repr__(self):
24372
    L = ['%s=%r' % (key, value)
24373
      for key, value in self.__dict__.iteritems()]
24374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24375
 
24376
  def __eq__(self, other):
24377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24378
 
24379
  def __ne__(self, other):
24380
    return not (self == other)
24381
 
9242 kshitij.so 24382
class updateAsin_result:
8616 vikram.rag 24383
 
24384
  thrift_spec = (
24385
  )
24386
 
24387
  def read(self, iprot):
24388
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24389
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24390
      return
24391
    iprot.readStructBegin()
24392
    while True:
24393
      (fname, ftype, fid) = iprot.readFieldBegin()
24394
      if ftype == TType.STOP:
24395
        break
24396
      else:
24397
        iprot.skip(ftype)
24398
      iprot.readFieldEnd()
24399
    iprot.readStructEnd()
24400
 
24401
  def write(self, oprot):
24402
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24403
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24404
      return
9242 kshitij.so 24405
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 24406
    oprot.writeFieldStop()
24407
    oprot.writeStructEnd()
24408
 
24409
  def validate(self):
24410
    return
24411
 
24412
 
24413
  def __repr__(self):
24414
    L = ['%s=%r' % (key, value)
24415
      for key, value in self.__dict__.iteritems()]
24416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24417
 
24418
  def __eq__(self, other):
24419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24420
 
24421
  def __ne__(self, other):
24422
    return not (self == other)
8619 kshitij.so 24423
 
9242 kshitij.so 24424
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 24425
  """
24426
  Attributes:
9242 kshitij.so 24427
   - snapdealitem
8619 kshitij.so 24428
  """
24429
 
9242 kshitij.so 24430
  thrift_spec = None
24431
  def __init__(self, snapdealitem=None,):
24432
    self.snapdealitem = snapdealitem
8619 kshitij.so 24433
 
24434
  def read(self, iprot):
24435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24437
      return
24438
    iprot.readStructBegin()
24439
    while True:
24440
      (fname, ftype, fid) = iprot.readFieldBegin()
24441
      if ftype == TType.STOP:
24442
        break
9242 kshitij.so 24443
      if fid == -1:
24444
        if ftype == TType.STRUCT:
24445
          self.snapdealitem = SnapdealItem()
24446
          self.snapdealitem.read(iprot)
8619 kshitij.so 24447
        else:
24448
          iprot.skip(ftype)
24449
      else:
24450
        iprot.skip(ftype)
24451
      iprot.readFieldEnd()
24452
    iprot.readStructEnd()
24453
 
24454
  def write(self, oprot):
24455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24457
      return
9242 kshitij.so 24458
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
24459
    if self.snapdealitem is not None:
24460
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
24461
      self.snapdealitem.write(oprot)
8619 kshitij.so 24462
      oprot.writeFieldEnd()
24463
    oprot.writeFieldStop()
24464
    oprot.writeStructEnd()
24465
 
24466
  def validate(self):
24467
    return
24468
 
24469
 
24470
  def __repr__(self):
24471
    L = ['%s=%r' % (key, value)
24472
      for key, value in self.__dict__.iteritems()]
24473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24474
 
24475
  def __eq__(self, other):
24476
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24477
 
24478
  def __ne__(self, other):
24479
    return not (self == other)
24480
 
9242 kshitij.so 24481
class addOrUpdateSnapdealItem_result:
24482
  """
24483
  Attributes:
24484
   - success
24485
  """
8619 kshitij.so 24486
 
24487
  thrift_spec = (
9242 kshitij.so 24488
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 24489
  )
24490
 
9242 kshitij.so 24491
  def __init__(self, success=None,):
24492
    self.success = success
24493
 
8619 kshitij.so 24494
  def read(self, iprot):
24495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24497
      return
24498
    iprot.readStructBegin()
24499
    while True:
24500
      (fname, ftype, fid) = iprot.readFieldBegin()
24501
      if ftype == TType.STOP:
24502
        break
9242 kshitij.so 24503
      if fid == 0:
24504
        if ftype == TType.BOOL:
24505
          self.success = iprot.readBool();
24506
        else:
24507
          iprot.skip(ftype)
8619 kshitij.so 24508
      else:
24509
        iprot.skip(ftype)
24510
      iprot.readFieldEnd()
24511
    iprot.readStructEnd()
24512
 
24513
  def write(self, oprot):
24514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24516
      return
9242 kshitij.so 24517
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
24518
    if self.success is not None:
24519
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24520
      oprot.writeBool(self.success)
24521
      oprot.writeFieldEnd()
8619 kshitij.so 24522
    oprot.writeFieldStop()
24523
    oprot.writeStructEnd()
24524
 
24525
  def validate(self):
24526
    return
24527
 
24528
 
24529
  def __repr__(self):
24530
    L = ['%s=%r' % (key, value)
24531
      for key, value in self.__dict__.iteritems()]
24532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24533
 
24534
  def __eq__(self, other):
24535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24536
 
24537
  def __ne__(self, other):
24538
    return not (self == other)
8739 vikram.rag 24539
 
9242 kshitij.so 24540
class getSnapdealItem_args:
8739 vikram.rag 24541
  """
24542
  Attributes:
9242 kshitij.so 24543
   - item_id
8739 vikram.rag 24544
  """
24545
 
9242 kshitij.so 24546
  thrift_spec = (
24547
    None, # 0
24548
    (1, TType.I64, 'item_id', None, None, ), # 1
24549
  )
8739 vikram.rag 24550
 
9242 kshitij.so 24551
  def __init__(self, item_id=None,):
24552
    self.item_id = item_id
24553
 
8739 vikram.rag 24554
  def read(self, iprot):
24555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24557
      return
24558
    iprot.readStructBegin()
24559
    while True:
24560
      (fname, ftype, fid) = iprot.readFieldBegin()
24561
      if ftype == TType.STOP:
24562
        break
9242 kshitij.so 24563
      if fid == 1:
24564
        if ftype == TType.I64:
24565
          self.item_id = iprot.readI64();
8739 vikram.rag 24566
        else:
24567
          iprot.skip(ftype)
24568
      else:
24569
        iprot.skip(ftype)
24570
      iprot.readFieldEnd()
24571
    iprot.readStructEnd()
24572
 
24573
  def write(self, oprot):
24574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24576
      return
9242 kshitij.so 24577
    oprot.writeStructBegin('getSnapdealItem_args')
24578
    if self.item_id is not None:
24579
      oprot.writeFieldBegin('item_id', TType.I64, 1)
24580
      oprot.writeI64(self.item_id)
8739 vikram.rag 24581
      oprot.writeFieldEnd()
24582
    oprot.writeFieldStop()
24583
    oprot.writeStructEnd()
24584
 
24585
  def validate(self):
24586
    return
24587
 
24588
 
24589
  def __repr__(self):
24590
    L = ['%s=%r' % (key, value)
24591
      for key, value in self.__dict__.iteritems()]
24592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24593
 
24594
  def __eq__(self, other):
24595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24596
 
24597
  def __ne__(self, other):
24598
    return not (self == other)
24599
 
9242 kshitij.so 24600
class getSnapdealItem_result:
8739 vikram.rag 24601
  """
24602
  Attributes:
24603
   - success
24604
  """
24605
 
24606
  thrift_spec = (
9242 kshitij.so 24607
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 24608
  )
24609
 
24610
  def __init__(self, success=None,):
24611
    self.success = success
24612
 
24613
  def read(self, iprot):
24614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24616
      return
24617
    iprot.readStructBegin()
24618
    while True:
24619
      (fname, ftype, fid) = iprot.readFieldBegin()
24620
      if ftype == TType.STOP:
24621
        break
24622
      if fid == 0:
9242 kshitij.so 24623
        if ftype == TType.STRUCT:
24624
          self.success = SnapdealItem()
24625
          self.success.read(iprot)
8739 vikram.rag 24626
        else:
24627
          iprot.skip(ftype)
24628
      else:
24629
        iprot.skip(ftype)
24630
      iprot.readFieldEnd()
24631
    iprot.readStructEnd()
24632
 
24633
  def write(self, oprot):
24634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24636
      return
9242 kshitij.so 24637
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 24638
    if self.success is not None:
9242 kshitij.so 24639
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24640
      self.success.write(oprot)
8739 vikram.rag 24641
      oprot.writeFieldEnd()
24642
    oprot.writeFieldStop()
24643
    oprot.writeStructEnd()
24644
 
24645
  def validate(self):
24646
    return
24647
 
24648
 
24649
  def __repr__(self):
24650
    L = ['%s=%r' % (key, value)
24651
      for key, value in self.__dict__.iteritems()]
24652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24653
 
24654
  def __eq__(self, other):
24655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24656
 
24657
  def __ne__(self, other):
24658
    return not (self == other)
24659
 
9242 kshitij.so 24660
class getSnapdealItemDetails_args:
8739 vikram.rag 24661
  """
24662
  Attributes:
24663
   - item_id
24664
  """
24665
 
24666
  thrift_spec = (
24667
    None, # 0
24668
    (1, TType.I64, 'item_id', None, None, ), # 1
24669
  )
24670
 
24671
  def __init__(self, item_id=None,):
24672
    self.item_id = item_id
24673
 
24674
  def read(self, iprot):
24675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24677
      return
24678
    iprot.readStructBegin()
24679
    while True:
24680
      (fname, ftype, fid) = iprot.readFieldBegin()
24681
      if ftype == TType.STOP:
24682
        break
24683
      if fid == 1:
24684
        if ftype == TType.I64:
24685
          self.item_id = iprot.readI64();
24686
        else:
24687
          iprot.skip(ftype)
24688
      else:
24689
        iprot.skip(ftype)
24690
      iprot.readFieldEnd()
24691
    iprot.readStructEnd()
24692
 
24693
  def write(self, oprot):
24694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24696
      return
9242 kshitij.so 24697
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 24698
    if self.item_id is not None:
24699
      oprot.writeFieldBegin('item_id', TType.I64, 1)
24700
      oprot.writeI64(self.item_id)
24701
      oprot.writeFieldEnd()
24702
    oprot.writeFieldStop()
24703
    oprot.writeStructEnd()
24704
 
24705
  def validate(self):
24706
    return
24707
 
24708
 
24709
  def __repr__(self):
24710
    L = ['%s=%r' % (key, value)
24711
      for key, value in self.__dict__.iteritems()]
24712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24713
 
24714
  def __eq__(self, other):
24715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24716
 
24717
  def __ne__(self, other):
24718
    return not (self == other)
24719
 
9242 kshitij.so 24720
class getSnapdealItemDetails_result:
8739 vikram.rag 24721
  """
24722
  Attributes:
24723
   - success
24724
  """
24725
 
24726
  thrift_spec = (
9242 kshitij.so 24727
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 24728
  )
24729
 
24730
  def __init__(self, success=None,):
24731
    self.success = success
24732
 
24733
  def read(self, iprot):
24734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24736
      return
24737
    iprot.readStructBegin()
24738
    while True:
24739
      (fname, ftype, fid) = iprot.readFieldBegin()
24740
      if ftype == TType.STOP:
24741
        break
24742
      if fid == 0:
24743
        if ftype == TType.STRUCT:
9242 kshitij.so 24744
          self.success = SnapdealItemDetails()
8739 vikram.rag 24745
          self.success.read(iprot)
24746
        else:
24747
          iprot.skip(ftype)
24748
      else:
24749
        iprot.skip(ftype)
24750
      iprot.readFieldEnd()
24751
    iprot.readStructEnd()
24752
 
24753
  def write(self, oprot):
24754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24756
      return
9242 kshitij.so 24757
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 24758
    if self.success is not None:
24759
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24760
      self.success.write(oprot)
24761
      oprot.writeFieldEnd()
24762
    oprot.writeFieldStop()
24763
    oprot.writeStructEnd()
24764
 
24765
  def validate(self):
24766
    return
24767
 
24768
 
24769
  def __repr__(self):
24770
    L = ['%s=%r' % (key, value)
24771
      for key, value in self.__dict__.iteritems()]
24772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24773
 
24774
  def __eq__(self, other):
24775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24776
 
24777
  def __ne__(self, other):
24778
    return not (self == other)
24779
 
24780
class getAllSnapdealItems_args:
24781
 
24782
  thrift_spec = (
24783
  )
24784
 
24785
  def read(self, iprot):
24786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24788
      return
24789
    iprot.readStructBegin()
24790
    while True:
24791
      (fname, ftype, fid) = iprot.readFieldBegin()
24792
      if ftype == TType.STOP:
24793
        break
24794
      else:
24795
        iprot.skip(ftype)
24796
      iprot.readFieldEnd()
24797
    iprot.readStructEnd()
24798
 
24799
  def write(self, oprot):
24800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24802
      return
24803
    oprot.writeStructBegin('getAllSnapdealItems_args')
24804
    oprot.writeFieldStop()
24805
    oprot.writeStructEnd()
24806
 
24807
  def validate(self):
24808
    return
24809
 
24810
 
24811
  def __repr__(self):
24812
    L = ['%s=%r' % (key, value)
24813
      for key, value in self.__dict__.iteritems()]
24814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24815
 
24816
  def __eq__(self, other):
24817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24818
 
24819
  def __ne__(self, other):
24820
    return not (self == other)
24821
 
24822
class getAllSnapdealItems_result:
24823
  """
24824
  Attributes:
24825
   - success
24826
  """
24827
 
24828
  thrift_spec = (
9242 kshitij.so 24829
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 24830
  )
24831
 
24832
  def __init__(self, success=None,):
24833
    self.success = success
24834
 
24835
  def read(self, iprot):
24836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24838
      return
24839
    iprot.readStructBegin()
24840
    while True:
24841
      (fname, ftype, fid) = iprot.readFieldBegin()
24842
      if ftype == TType.STOP:
24843
        break
24844
      if fid == 0:
24845
        if ftype == TType.LIST:
24846
          self.success = []
9242 kshitij.so 24847
          (_etype516, _size513) = iprot.readListBegin()
24848
          for _i517 in xrange(_size513):
24849
            _elem518 = SnapdealItemDetails()
24850
            _elem518.read(iprot)
24851
            self.success.append(_elem518)
24852
          iprot.readListEnd()
24853
        else:
24854
          iprot.skip(ftype)
24855
      else:
24856
        iprot.skip(ftype)
24857
      iprot.readFieldEnd()
24858
    iprot.readStructEnd()
24859
 
24860
  def write(self, oprot):
24861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24863
      return
24864
    oprot.writeStructBegin('getAllSnapdealItems_result')
24865
    if self.success is not None:
24866
      oprot.writeFieldBegin('success', TType.LIST, 0)
24867
      oprot.writeListBegin(TType.STRUCT, len(self.success))
24868
      for iter519 in self.success:
24869
        iter519.write(oprot)
24870
      oprot.writeListEnd()
24871
      oprot.writeFieldEnd()
24872
    oprot.writeFieldStop()
24873
    oprot.writeStructEnd()
24874
 
24875
  def validate(self):
24876
    return
24877
 
24878
 
24879
  def __repr__(self):
24880
    L = ['%s=%r' % (key, value)
24881
      for key, value in self.__dict__.iteritems()]
24882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24883
 
24884
  def __eq__(self, other):
24885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24886
 
24887
  def __ne__(self, other):
24888
    return not (self == other)
24889
 
24890
class getSnapdealItems_args:
24891
  """
24892
  Attributes:
24893
   - offset
24894
   - limit
24895
  """
24896
 
24897
  thrift_spec = (
24898
    None, # 0
24899
    (1, TType.I64, 'offset', None, None, ), # 1
24900
    (2, TType.I64, 'limit', None, None, ), # 2
24901
  )
24902
 
24903
  def __init__(self, offset=None, limit=None,):
24904
    self.offset = offset
24905
    self.limit = limit
24906
 
24907
  def read(self, iprot):
24908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24910
      return
24911
    iprot.readStructBegin()
24912
    while True:
24913
      (fname, ftype, fid) = iprot.readFieldBegin()
24914
      if ftype == TType.STOP:
24915
        break
24916
      if fid == 1:
24917
        if ftype == TType.I64:
24918
          self.offset = iprot.readI64();
24919
        else:
24920
          iprot.skip(ftype)
24921
      elif fid == 2:
24922
        if ftype == TType.I64:
24923
          self.limit = iprot.readI64();
24924
        else:
24925
          iprot.skip(ftype)
24926
      else:
24927
        iprot.skip(ftype)
24928
      iprot.readFieldEnd()
24929
    iprot.readStructEnd()
24930
 
24931
  def write(self, oprot):
24932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24934
      return
24935
    oprot.writeStructBegin('getSnapdealItems_args')
24936
    if self.offset is not None:
24937
      oprot.writeFieldBegin('offset', TType.I64, 1)
24938
      oprot.writeI64(self.offset)
24939
      oprot.writeFieldEnd()
24940
    if self.limit is not None:
24941
      oprot.writeFieldBegin('limit', TType.I64, 2)
24942
      oprot.writeI64(self.limit)
24943
      oprot.writeFieldEnd()
24944
    oprot.writeFieldStop()
24945
    oprot.writeStructEnd()
24946
 
24947
  def validate(self):
24948
    return
24949
 
24950
 
24951
  def __repr__(self):
24952
    L = ['%s=%r' % (key, value)
24953
      for key, value in self.__dict__.iteritems()]
24954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24955
 
24956
  def __eq__(self, other):
24957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24958
 
24959
  def __ne__(self, other):
24960
    return not (self == other)
24961
 
24962
class getSnapdealItems_result:
24963
  """
24964
  Attributes:
24965
   - success
24966
  """
24967
 
24968
  thrift_spec = (
24969
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
24970
  )
24971
 
24972
  def __init__(self, success=None,):
24973
    self.success = success
24974
 
24975
  def read(self, iprot):
24976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24978
      return
24979
    iprot.readStructBegin()
24980
    while True:
24981
      (fname, ftype, fid) = iprot.readFieldBegin()
24982
      if ftype == TType.STOP:
24983
        break
24984
      if fid == 0:
24985
        if ftype == TType.LIST:
24986
          self.success = []
9155 kshitij.so 24987
          (_etype523, _size520) = iprot.readListBegin()
24988
          for _i524 in xrange(_size520):
9242 kshitij.so 24989
            _elem525 = SnapdealItemDetails()
9155 kshitij.so 24990
            _elem525.read(iprot)
24991
            self.success.append(_elem525)
8739 vikram.rag 24992
          iprot.readListEnd()
24993
        else:
24994
          iprot.skip(ftype)
24995
      else:
24996
        iprot.skip(ftype)
24997
      iprot.readFieldEnd()
24998
    iprot.readStructEnd()
24999
 
25000
  def write(self, oprot):
25001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25003
      return
9242 kshitij.so 25004
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 25005
    if self.success is not None:
25006
      oprot.writeFieldBegin('success', TType.LIST, 0)
25007
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 25008
      for iter526 in self.success:
25009
        iter526.write(oprot)
8739 vikram.rag 25010
      oprot.writeListEnd()
25011
      oprot.writeFieldEnd()
25012
    oprot.writeFieldStop()
25013
    oprot.writeStructEnd()
25014
 
25015
  def validate(self):
25016
    return
25017
 
25018
 
25019
  def __repr__(self):
25020
    L = ['%s=%r' % (key, value)
25021
      for key, value in self.__dict__.iteritems()]
25022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25023
 
25024
  def __eq__(self, other):
25025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25026
 
25027
  def __ne__(self, other):
25028
    return not (self == other)
9242 kshitij.so 25029
 
25030
class searchSnapdealItems_args:
25031
  """
25032
  Attributes:
25033
   - searchTerm
25034
   - offset
25035
   - limit
25036
  """
25037
 
25038
  thrift_spec = (
25039
    None, # 0
25040
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25041
    (2, TType.I64, 'offset', None, None, ), # 2
25042
    (3, TType.I64, 'limit', None, None, ), # 3
25043
  )
25044
 
25045
  def __init__(self, searchTerm=None, offset=None, limit=None,):
25046
    self.searchTerm = searchTerm
25047
    self.offset = offset
25048
    self.limit = limit
25049
 
25050
  def read(self, iprot):
25051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25053
      return
25054
    iprot.readStructBegin()
25055
    while True:
25056
      (fname, ftype, fid) = iprot.readFieldBegin()
25057
      if ftype == TType.STOP:
25058
        break
25059
      if fid == 1:
25060
        if ftype == TType.LIST:
25061
          self.searchTerm = []
25062
          (_etype530, _size527) = iprot.readListBegin()
25063
          for _i531 in xrange(_size527):
25064
            _elem532 = iprot.readString();
25065
            self.searchTerm.append(_elem532)
25066
          iprot.readListEnd()
25067
        else:
25068
          iprot.skip(ftype)
25069
      elif fid == 2:
25070
        if ftype == TType.I64:
25071
          self.offset = iprot.readI64();
25072
        else:
25073
          iprot.skip(ftype)
25074
      elif fid == 3:
25075
        if ftype == TType.I64:
25076
          self.limit = iprot.readI64();
25077
        else:
25078
          iprot.skip(ftype)
25079
      else:
25080
        iprot.skip(ftype)
25081
      iprot.readFieldEnd()
25082
    iprot.readStructEnd()
25083
 
25084
  def write(self, oprot):
25085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25087
      return
25088
    oprot.writeStructBegin('searchSnapdealItems_args')
25089
    if self.searchTerm is not None:
25090
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25091
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
25092
      for iter533 in self.searchTerm:
25093
        oprot.writeString(iter533)
25094
      oprot.writeListEnd()
25095
      oprot.writeFieldEnd()
25096
    if self.offset is not None:
25097
      oprot.writeFieldBegin('offset', TType.I64, 2)
25098
      oprot.writeI64(self.offset)
25099
      oprot.writeFieldEnd()
25100
    if self.limit is not None:
25101
      oprot.writeFieldBegin('limit', TType.I64, 3)
25102
      oprot.writeI64(self.limit)
25103
      oprot.writeFieldEnd()
25104
    oprot.writeFieldStop()
25105
    oprot.writeStructEnd()
25106
 
25107
  def validate(self):
25108
    return
25109
 
25110
 
25111
  def __repr__(self):
25112
    L = ['%s=%r' % (key, value)
25113
      for key, value in self.__dict__.iteritems()]
25114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25115
 
25116
  def __eq__(self, other):
25117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25118
 
25119
  def __ne__(self, other):
25120
    return not (self == other)
25121
 
25122
class searchSnapdealItems_result:
25123
  """
25124
  Attributes:
25125
   - success
25126
  """
25127
 
25128
  thrift_spec = (
25129
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25130
  )
25131
 
25132
  def __init__(self, success=None,):
25133
    self.success = success
25134
 
25135
  def read(self, iprot):
25136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25138
      return
25139
    iprot.readStructBegin()
25140
    while True:
25141
      (fname, ftype, fid) = iprot.readFieldBegin()
25142
      if ftype == TType.STOP:
25143
        break
25144
      if fid == 0:
25145
        if ftype == TType.LIST:
25146
          self.success = []
25147
          (_etype537, _size534) = iprot.readListBegin()
25148
          for _i538 in xrange(_size534):
25149
            _elem539 = SnapdealItemDetails()
25150
            _elem539.read(iprot)
25151
            self.success.append(_elem539)
25152
          iprot.readListEnd()
25153
        else:
25154
          iprot.skip(ftype)
25155
      else:
25156
        iprot.skip(ftype)
25157
      iprot.readFieldEnd()
25158
    iprot.readStructEnd()
25159
 
25160
  def write(self, oprot):
25161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25163
      return
25164
    oprot.writeStructBegin('searchSnapdealItems_result')
25165
    if self.success is not None:
25166
      oprot.writeFieldBegin('success', TType.LIST, 0)
25167
      oprot.writeListBegin(TType.STRUCT, len(self.success))
25168
      for iter540 in self.success:
25169
        iter540.write(oprot)
25170
      oprot.writeListEnd()
25171
      oprot.writeFieldEnd()
25172
    oprot.writeFieldStop()
25173
    oprot.writeStructEnd()
25174
 
25175
  def validate(self):
25176
    return
25177
 
25178
 
25179
  def __repr__(self):
25180
    L = ['%s=%r' % (key, value)
25181
      for key, value in self.__dict__.iteritems()]
25182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25183
 
25184
  def __eq__(self, other):
25185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25186
 
25187
  def __ne__(self, other):
25188
    return not (self == other)
25189
 
25190
class getCountForSnapdealItems_args:
25191
 
25192
  thrift_spec = (
25193
  )
25194
 
25195
  def read(self, iprot):
25196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25198
      return
25199
    iprot.readStructBegin()
25200
    while True:
25201
      (fname, ftype, fid) = iprot.readFieldBegin()
25202
      if ftype == TType.STOP:
25203
        break
25204
      else:
25205
        iprot.skip(ftype)
25206
      iprot.readFieldEnd()
25207
    iprot.readStructEnd()
25208
 
25209
  def write(self, oprot):
25210
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25211
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25212
      return
25213
    oprot.writeStructBegin('getCountForSnapdealItems_args')
25214
    oprot.writeFieldStop()
25215
    oprot.writeStructEnd()
25216
 
25217
  def validate(self):
25218
    return
25219
 
25220
 
25221
  def __repr__(self):
25222
    L = ['%s=%r' % (key, value)
25223
      for key, value in self.__dict__.iteritems()]
25224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25225
 
25226
  def __eq__(self, other):
25227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25228
 
25229
  def __ne__(self, other):
25230
    return not (self == other)
25231
 
25232
class getCountForSnapdealItems_result:
25233
  """
25234
  Attributes:
25235
   - success
25236
  """
25237
 
25238
  thrift_spec = (
25239
    (0, TType.I64, 'success', None, None, ), # 0
25240
  )
25241
 
25242
  def __init__(self, success=None,):
25243
    self.success = success
25244
 
25245
  def read(self, iprot):
25246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25248
      return
25249
    iprot.readStructBegin()
25250
    while True:
25251
      (fname, ftype, fid) = iprot.readFieldBegin()
25252
      if ftype == TType.STOP:
25253
        break
25254
      if fid == 0:
25255
        if ftype == TType.I64:
25256
          self.success = iprot.readI64();
25257
        else:
25258
          iprot.skip(ftype)
25259
      else:
25260
        iprot.skip(ftype)
25261
      iprot.readFieldEnd()
25262
    iprot.readStructEnd()
25263
 
25264
  def write(self, oprot):
25265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25267
      return
25268
    oprot.writeStructBegin('getCountForSnapdealItems_result')
25269
    if self.success is not None:
25270
      oprot.writeFieldBegin('success', TType.I64, 0)
25271
      oprot.writeI64(self.success)
25272
      oprot.writeFieldEnd()
25273
    oprot.writeFieldStop()
25274
    oprot.writeStructEnd()
25275
 
25276
  def validate(self):
25277
    return
25278
 
25279
 
25280
  def __repr__(self):
25281
    L = ['%s=%r' % (key, value)
25282
      for key, value in self.__dict__.iteritems()]
25283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25284
 
25285
  def __eq__(self, other):
25286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25287
 
25288
  def __ne__(self, other):
25289
    return not (self == other)
25290
 
25291
class getSnapdealSearchResultCount_args:
25292
  """
25293
  Attributes:
25294
   - searchTerm
25295
  """
25296
 
25297
  thrift_spec = (
25298
    None, # 0
25299
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25300
  )
25301
 
25302
  def __init__(self, searchTerm=None,):
25303
    self.searchTerm = searchTerm
25304
 
25305
  def read(self, iprot):
25306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25308
      return
25309
    iprot.readStructBegin()
25310
    while True:
25311
      (fname, ftype, fid) = iprot.readFieldBegin()
25312
      if ftype == TType.STOP:
25313
        break
25314
      if fid == 1:
25315
        if ftype == TType.LIST:
25316
          self.searchTerm = []
25317
          (_etype544, _size541) = iprot.readListBegin()
25318
          for _i545 in xrange(_size541):
25319
            _elem546 = iprot.readString();
25320
            self.searchTerm.append(_elem546)
25321
          iprot.readListEnd()
25322
        else:
25323
          iprot.skip(ftype)
25324
      else:
25325
        iprot.skip(ftype)
25326
      iprot.readFieldEnd()
25327
    iprot.readStructEnd()
25328
 
25329
  def write(self, oprot):
25330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25332
      return
25333
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
25334
    if self.searchTerm is not None:
25335
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25336
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
25337
      for iter547 in self.searchTerm:
25338
        oprot.writeString(iter547)
25339
      oprot.writeListEnd()
25340
      oprot.writeFieldEnd()
25341
    oprot.writeFieldStop()
25342
    oprot.writeStructEnd()
25343
 
25344
  def validate(self):
25345
    return
25346
 
25347
 
25348
  def __repr__(self):
25349
    L = ['%s=%r' % (key, value)
25350
      for key, value in self.__dict__.iteritems()]
25351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25352
 
25353
  def __eq__(self, other):
25354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25355
 
25356
  def __ne__(self, other):
25357
    return not (self == other)
25358
 
25359
class getSnapdealSearchResultCount_result:
25360
  """
25361
  Attributes:
25362
   - success
25363
  """
25364
 
25365
  thrift_spec = (
25366
    (0, TType.I64, 'success', None, None, ), # 0
25367
  )
25368
 
25369
  def __init__(self, success=None,):
25370
    self.success = success
25371
 
25372
  def read(self, iprot):
25373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25375
      return
25376
    iprot.readStructBegin()
25377
    while True:
25378
      (fname, ftype, fid) = iprot.readFieldBegin()
25379
      if ftype == TType.STOP:
25380
        break
25381
      if fid == 0:
25382
        if ftype == TType.I64:
25383
          self.success = iprot.readI64();
25384
        else:
25385
          iprot.skip(ftype)
25386
      else:
25387
        iprot.skip(ftype)
25388
      iprot.readFieldEnd()
25389
    iprot.readStructEnd()
25390
 
25391
  def write(self, oprot):
25392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25394
      return
25395
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
25396
    if self.success is not None:
25397
      oprot.writeFieldBegin('success', TType.I64, 0)
25398
      oprot.writeI64(self.success)
25399
      oprot.writeFieldEnd()
25400
    oprot.writeFieldStop()
25401
    oprot.writeStructEnd()
25402
 
25403
  def validate(self):
25404
    return
25405
 
25406
 
25407
  def __repr__(self):
25408
    L = ['%s=%r' % (key, value)
25409
      for key, value in self.__dict__.iteritems()]
25410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25411
 
25412
  def __eq__(self, other):
25413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25414
 
25415
  def __ne__(self, other):
25416
    return not (self == other)
9299 kshitij.so 25417
 
25418
class getPrefferedInsurerForItem_args:
25419
  """
25420
  Attributes:
25421
   - itemId
25422
   - insurerType
25423
  """
25424
 
25425
  thrift_spec = (
25426
    None, # 0
25427
    (1, TType.I64, 'itemId', None, None, ), # 1
25428
    (2, TType.I32, 'insurerType', None, None, ), # 2
25429
  )
25430
 
25431
  def __init__(self, itemId=None, insurerType=None,):
25432
    self.itemId = itemId
25433
    self.insurerType = insurerType
25434
 
25435
  def read(self, iprot):
25436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25438
      return
25439
    iprot.readStructBegin()
25440
    while True:
25441
      (fname, ftype, fid) = iprot.readFieldBegin()
25442
      if ftype == TType.STOP:
25443
        break
25444
      if fid == 1:
25445
        if ftype == TType.I64:
25446
          self.itemId = iprot.readI64();
25447
        else:
25448
          iprot.skip(ftype)
25449
      elif fid == 2:
25450
        if ftype == TType.I32:
25451
          self.insurerType = iprot.readI32();
25452
        else:
25453
          iprot.skip(ftype)
25454
      else:
25455
        iprot.skip(ftype)
25456
      iprot.readFieldEnd()
25457
    iprot.readStructEnd()
25458
 
25459
  def write(self, oprot):
25460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25462
      return
25463
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
25464
    if self.itemId is not None:
25465
      oprot.writeFieldBegin('itemId', TType.I64, 1)
25466
      oprot.writeI64(self.itemId)
25467
      oprot.writeFieldEnd()
25468
    if self.insurerType is not None:
25469
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
25470
      oprot.writeI32(self.insurerType)
25471
      oprot.writeFieldEnd()
25472
    oprot.writeFieldStop()
25473
    oprot.writeStructEnd()
25474
 
25475
  def validate(self):
25476
    return
25477
 
25478
 
25479
  def __repr__(self):
25480
    L = ['%s=%r' % (key, value)
25481
      for key, value in self.__dict__.iteritems()]
25482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25483
 
25484
  def __eq__(self, other):
25485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25486
 
25487
  def __ne__(self, other):
25488
    return not (self == other)
25489
 
25490
class getPrefferedInsurerForItem_result:
25491
  """
25492
  Attributes:
25493
   - success
25494
  """
25495
 
25496
  thrift_spec = (
25497
    (0, TType.I64, 'success', None, None, ), # 0
25498
  )
25499
 
25500
  def __init__(self, success=None,):
25501
    self.success = success
25502
 
25503
  def read(self, iprot):
25504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25506
      return
25507
    iprot.readStructBegin()
25508
    while True:
25509
      (fname, ftype, fid) = iprot.readFieldBegin()
25510
      if ftype == TType.STOP:
25511
        break
25512
      if fid == 0:
25513
        if ftype == TType.I64:
25514
          self.success = iprot.readI64();
25515
        else:
25516
          iprot.skip(ftype)
25517
      else:
25518
        iprot.skip(ftype)
25519
      iprot.readFieldEnd()
25520
    iprot.readStructEnd()
25521
 
25522
  def write(self, oprot):
25523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25525
      return
25526
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
25527
    if self.success is not None:
25528
      oprot.writeFieldBegin('success', TType.I64, 0)
25529
      oprot.writeI64(self.success)
25530
      oprot.writeFieldEnd()
25531
    oprot.writeFieldStop()
25532
    oprot.writeStructEnd()
25533
 
25534
  def validate(self):
25535
    return
25536
 
25537
 
25538
  def __repr__(self):
25539
    L = ['%s=%r' % (key, value)
25540
      for key, value in self.__dict__.iteritems()]
25541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25542
 
25543
  def __eq__(self, other):
25544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25545
 
25546
  def __ne__(self, other):
25547
    return not (self == other)
9456 vikram.rag 25548
 
25549
class getSnapdealItembySkuAtSnapdeal_args:
25550
  """
25551
  Attributes:
25552
   - skuAtSnapdeal
25553
  """
25554
 
25555
  thrift_spec = None
25556
  def __init__(self, skuAtSnapdeal=None,):
25557
    self.skuAtSnapdeal = skuAtSnapdeal
25558
 
25559
  def read(self, iprot):
25560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25562
      return
25563
    iprot.readStructBegin()
25564
    while True:
25565
      (fname, ftype, fid) = iprot.readFieldBegin()
25566
      if ftype == TType.STOP:
25567
        break
25568
      if fid == -1:
25569
        if ftype == TType.STRING:
25570
          self.skuAtSnapdeal = iprot.readString();
25571
        else:
25572
          iprot.skip(ftype)
25573
      else:
25574
        iprot.skip(ftype)
25575
      iprot.readFieldEnd()
25576
    iprot.readStructEnd()
25577
 
25578
  def write(self, oprot):
25579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25581
      return
25582
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
25583
    if self.skuAtSnapdeal is not None:
25584
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
25585
      oprot.writeString(self.skuAtSnapdeal)
25586
      oprot.writeFieldEnd()
25587
    oprot.writeFieldStop()
25588
    oprot.writeStructEnd()
25589
 
25590
  def validate(self):
25591
    return
25592
 
25593
 
25594
  def __repr__(self):
25595
    L = ['%s=%r' % (key, value)
25596
      for key, value in self.__dict__.iteritems()]
25597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25598
 
25599
  def __eq__(self, other):
25600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25601
 
25602
  def __ne__(self, other):
25603
    return not (self == other)
25604
 
25605
class getSnapdealItembySkuAtSnapdeal_result:
25606
  """
25607
  Attributes:
25608
   - success
25609
  """
25610
 
25611
  thrift_spec = (
25612
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
25613
  )
25614
 
25615
  def __init__(self, success=None,):
25616
    self.success = success
25617
 
25618
  def read(self, iprot):
25619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25621
      return
25622
    iprot.readStructBegin()
25623
    while True:
25624
      (fname, ftype, fid) = iprot.readFieldBegin()
25625
      if ftype == TType.STOP:
25626
        break
25627
      if fid == 0:
25628
        if ftype == TType.STRUCT:
25629
          self.success = SnapdealItem()
25630
          self.success.read(iprot)
25631
        else:
25632
          iprot.skip(ftype)
25633
      else:
25634
        iprot.skip(ftype)
25635
      iprot.readFieldEnd()
25636
    iprot.readStructEnd()
25637
 
25638
  def write(self, oprot):
25639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25641
      return
25642
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
25643
    if self.success is not None:
25644
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25645
      self.success.write(oprot)
25646
      oprot.writeFieldEnd()
25647
    oprot.writeFieldStop()
25648
    oprot.writeStructEnd()
25649
 
25650
  def validate(self):
25651
    return
25652
 
25653
 
25654
  def __repr__(self):
25655
    L = ['%s=%r' % (key, value)
25656
      for key, value in self.__dict__.iteritems()]
25657
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25658
 
25659
  def __eq__(self, other):
25660
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25661
 
25662
  def __ne__(self, other):
25663
    return not (self == other)
9621 manish.sha 25664
 
25665
class getProductFeedSubmit_args:
25666
  """
25667
  Attributes:
25668
   - catalogItemId
25669
  """
25670
 
25671
  thrift_spec = (
25672
    None, # 0
25673
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
25674
  )
25675
 
25676
  def __init__(self, catalogItemId=None,):
25677
    self.catalogItemId = catalogItemId
25678
 
25679
  def read(self, iprot):
25680
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25681
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25682
      return
25683
    iprot.readStructBegin()
25684
    while True:
25685
      (fname, ftype, fid) = iprot.readFieldBegin()
25686
      if ftype == TType.STOP:
25687
        break
25688
      if fid == 1:
25689
        if ftype == TType.I64:
25690
          self.catalogItemId = iprot.readI64();
25691
        else:
25692
          iprot.skip(ftype)
25693
      else:
25694
        iprot.skip(ftype)
25695
      iprot.readFieldEnd()
25696
    iprot.readStructEnd()
25697
 
25698
  def write(self, oprot):
25699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25701
      return
25702
    oprot.writeStructBegin('getProductFeedSubmit_args')
25703
    if self.catalogItemId is not None:
25704
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
25705
      oprot.writeI64(self.catalogItemId)
25706
      oprot.writeFieldEnd()
25707
    oprot.writeFieldStop()
25708
    oprot.writeStructEnd()
25709
 
25710
  def validate(self):
25711
    return
25712
 
25713
 
25714
  def __repr__(self):
25715
    L = ['%s=%r' % (key, value)
25716
      for key, value in self.__dict__.iteritems()]
25717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25718
 
25719
  def __eq__(self, other):
25720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25721
 
25722
  def __ne__(self, other):
25723
    return not (self == other)
25724
 
25725
class getProductFeedSubmit_result:
25726
  """
25727
  Attributes:
25728
   - success
25729
   - cex
25730
  """
25731
 
25732
  thrift_spec = (
25733
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
25734
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
25735
  )
25736
 
25737
  def __init__(self, success=None, cex=None,):
25738
    self.success = success
25739
    self.cex = cex
25740
 
25741
  def read(self, iprot):
25742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25744
      return
25745
    iprot.readStructBegin()
25746
    while True:
25747
      (fname, ftype, fid) = iprot.readFieldBegin()
25748
      if ftype == TType.STOP:
25749
        break
25750
      if fid == 0:
25751
        if ftype == TType.STRUCT:
25752
          self.success = ProductFeedSubmit()
25753
          self.success.read(iprot)
25754
        else:
25755
          iprot.skip(ftype)
25756
      elif fid == 1:
25757
        if ftype == TType.STRUCT:
25758
          self.cex = CatalogServiceException()
25759
          self.cex.read(iprot)
25760
        else:
25761
          iprot.skip(ftype)
25762
      else:
25763
        iprot.skip(ftype)
25764
      iprot.readFieldEnd()
25765
    iprot.readStructEnd()
25766
 
25767
  def write(self, oprot):
25768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25770
      return
25771
    oprot.writeStructBegin('getProductFeedSubmit_result')
25772
    if self.success is not None:
25773
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25774
      self.success.write(oprot)
25775
      oprot.writeFieldEnd()
25776
    if self.cex is not None:
25777
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
25778
      self.cex.write(oprot)
25779
      oprot.writeFieldEnd()
25780
    oprot.writeFieldStop()
25781
    oprot.writeStructEnd()
25782
 
25783
  def validate(self):
25784
    return
25785
 
25786
 
25787
  def __repr__(self):
25788
    L = ['%s=%r' % (key, value)
25789
      for key, value in self.__dict__.iteritems()]
25790
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25791
 
25792
  def __eq__(self, other):
25793
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25794
 
25795
  def __ne__(self, other):
25796
    return not (self == other)
25797
 
25798
class addProductFeedSubmit_args:
25799
  """
25800
  Attributes:
25801
   - productFeedSubmit
25802
  """
25803
 
25804
  thrift_spec = (
25805
    None, # 0
25806
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
25807
  )
25808
 
25809
  def __init__(self, productFeedSubmit=None,):
25810
    self.productFeedSubmit = productFeedSubmit
25811
 
25812
  def read(self, iprot):
25813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25815
      return
25816
    iprot.readStructBegin()
25817
    while True:
25818
      (fname, ftype, fid) = iprot.readFieldBegin()
25819
      if ftype == TType.STOP:
25820
        break
25821
      if fid == 1:
25822
        if ftype == TType.STRUCT:
25823
          self.productFeedSubmit = ProductFeedSubmit()
25824
          self.productFeedSubmit.read(iprot)
25825
        else:
25826
          iprot.skip(ftype)
25827
      else:
25828
        iprot.skip(ftype)
25829
      iprot.readFieldEnd()
25830
    iprot.readStructEnd()
25831
 
25832
  def write(self, oprot):
25833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25835
      return
25836
    oprot.writeStructBegin('addProductFeedSubmit_args')
25837
    if self.productFeedSubmit is not None:
25838
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
25839
      self.productFeedSubmit.write(oprot)
25840
      oprot.writeFieldEnd()
25841
    oprot.writeFieldStop()
25842
    oprot.writeStructEnd()
25843
 
25844
  def validate(self):
25845
    return
25846
 
25847
 
25848
  def __repr__(self):
25849
    L = ['%s=%r' % (key, value)
25850
      for key, value in self.__dict__.iteritems()]
25851
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25852
 
25853
  def __eq__(self, other):
25854
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25855
 
25856
  def __ne__(self, other):
25857
    return not (self == other)
25858
 
25859
class addProductFeedSubmit_result:
25860
  """
25861
  Attributes:
25862
   - success
25863
   - cex
25864
  """
25865
 
25866
  thrift_spec = (
25867
    (0, TType.BOOL, 'success', None, None, ), # 0
25868
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
25869
  )
25870
 
25871
  def __init__(self, success=None, cex=None,):
25872
    self.success = success
25873
    self.cex = cex
25874
 
25875
  def read(self, iprot):
25876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25878
      return
25879
    iprot.readStructBegin()
25880
    while True:
25881
      (fname, ftype, fid) = iprot.readFieldBegin()
25882
      if ftype == TType.STOP:
25883
        break
25884
      if fid == 0:
25885
        if ftype == TType.BOOL:
25886
          self.success = iprot.readBool();
25887
        else:
25888
          iprot.skip(ftype)
25889
      elif fid == 1:
25890
        if ftype == TType.STRUCT:
25891
          self.cex = CatalogServiceException()
25892
          self.cex.read(iprot)
25893
        else:
25894
          iprot.skip(ftype)
25895
      else:
25896
        iprot.skip(ftype)
25897
      iprot.readFieldEnd()
25898
    iprot.readStructEnd()
25899
 
25900
  def write(self, oprot):
25901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25903
      return
25904
    oprot.writeStructBegin('addProductFeedSubmit_result')
25905
    if self.success is not None:
25906
      oprot.writeFieldBegin('success', TType.BOOL, 0)
25907
      oprot.writeBool(self.success)
25908
      oprot.writeFieldEnd()
25909
    if self.cex is not None:
25910
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
25911
      self.cex.write(oprot)
25912
      oprot.writeFieldEnd()
25913
    oprot.writeFieldStop()
25914
    oprot.writeStructEnd()
25915
 
25916
  def validate(self):
25917
    return
25918
 
25919
 
25920
  def __repr__(self):
25921
    L = ['%s=%r' % (key, value)
25922
      for key, value in self.__dict__.iteritems()]
25923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25924
 
25925
  def __eq__(self, other):
25926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25927
 
25928
  def __ne__(self, other):
25929
    return not (self == other)
25930
 
25931
class updateProductFeedSubmit_args:
25932
  """
25933
  Attributes:
25934
   - productFeedSubmit
25935
  """
25936
 
25937
  thrift_spec = (
25938
    None, # 0
25939
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
25940
  )
25941
 
25942
  def __init__(self, productFeedSubmit=None,):
25943
    self.productFeedSubmit = productFeedSubmit
25944
 
25945
  def read(self, iprot):
25946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25948
      return
25949
    iprot.readStructBegin()
25950
    while True:
25951
      (fname, ftype, fid) = iprot.readFieldBegin()
25952
      if ftype == TType.STOP:
25953
        break
25954
      if fid == 1:
25955
        if ftype == TType.STRUCT:
25956
          self.productFeedSubmit = ProductFeedSubmit()
25957
          self.productFeedSubmit.read(iprot)
25958
        else:
25959
          iprot.skip(ftype)
25960
      else:
25961
        iprot.skip(ftype)
25962
      iprot.readFieldEnd()
25963
    iprot.readStructEnd()
25964
 
25965
  def write(self, oprot):
25966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25968
      return
25969
    oprot.writeStructBegin('updateProductFeedSubmit_args')
25970
    if self.productFeedSubmit is not None:
25971
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
25972
      self.productFeedSubmit.write(oprot)
25973
      oprot.writeFieldEnd()
25974
    oprot.writeFieldStop()
25975
    oprot.writeStructEnd()
25976
 
25977
  def validate(self):
25978
    return
25979
 
25980
 
25981
  def __repr__(self):
25982
    L = ['%s=%r' % (key, value)
25983
      for key, value in self.__dict__.iteritems()]
25984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25985
 
25986
  def __eq__(self, other):
25987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25988
 
25989
  def __ne__(self, other):
25990
    return not (self == other)
25991
 
25992
class updateProductFeedSubmit_result:
25993
  """
25994
  Attributes:
25995
   - success
25996
   - cex
25997
  """
25998
 
25999
  thrift_spec = (
26000
    (0, TType.BOOL, 'success', None, None, ), # 0
26001
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26002
  )
26003
 
26004
  def __init__(self, success=None, cex=None,):
26005
    self.success = success
26006
    self.cex = cex
26007
 
26008
  def read(self, iprot):
26009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26011
      return
26012
    iprot.readStructBegin()
26013
    while True:
26014
      (fname, ftype, fid) = iprot.readFieldBegin()
26015
      if ftype == TType.STOP:
26016
        break
26017
      if fid == 0:
26018
        if ftype == TType.BOOL:
26019
          self.success = iprot.readBool();
26020
        else:
26021
          iprot.skip(ftype)
26022
      elif fid == 1:
26023
        if ftype == TType.STRUCT:
26024
          self.cex = CatalogServiceException()
26025
          self.cex.read(iprot)
26026
        else:
26027
          iprot.skip(ftype)
26028
      else:
26029
        iprot.skip(ftype)
26030
      iprot.readFieldEnd()
26031
    iprot.readStructEnd()
26032
 
26033
  def write(self, oprot):
26034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26036
      return
26037
    oprot.writeStructBegin('updateProductFeedSubmit_result')
26038
    if self.success is not None:
26039
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26040
      oprot.writeBool(self.success)
26041
      oprot.writeFieldEnd()
26042
    if self.cex is not None:
26043
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26044
      self.cex.write(oprot)
26045
      oprot.writeFieldEnd()
26046
    oprot.writeFieldStop()
26047
    oprot.writeStructEnd()
26048
 
26049
  def validate(self):
26050
    return
26051
 
26052
 
26053
  def __repr__(self):
26054
    L = ['%s=%r' % (key, value)
26055
      for key, value in self.__dict__.iteritems()]
26056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26057
 
26058
  def __eq__(self, other):
26059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26060
 
26061
  def __ne__(self, other):
26062
    return not (self == other)
26063
 
26064
class deleteProductFeedSubmit_args:
26065
  """
26066
  Attributes:
26067
   - catalogItemId
26068
  """
26069
 
26070
  thrift_spec = (
26071
    None, # 0
26072
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26073
  )
26074
 
26075
  def __init__(self, catalogItemId=None,):
26076
    self.catalogItemId = catalogItemId
26077
 
26078
  def read(self, iprot):
26079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26081
      return
26082
    iprot.readStructBegin()
26083
    while True:
26084
      (fname, ftype, fid) = iprot.readFieldBegin()
26085
      if ftype == TType.STOP:
26086
        break
26087
      if fid == 1:
26088
        if ftype == TType.I64:
26089
          self.catalogItemId = iprot.readI64();
26090
        else:
26091
          iprot.skip(ftype)
26092
      else:
26093
        iprot.skip(ftype)
26094
      iprot.readFieldEnd()
26095
    iprot.readStructEnd()
26096
 
26097
  def write(self, oprot):
26098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26100
      return
26101
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
26102
    if self.catalogItemId is not None:
26103
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26104
      oprot.writeI64(self.catalogItemId)
26105
      oprot.writeFieldEnd()
26106
    oprot.writeFieldStop()
26107
    oprot.writeStructEnd()
26108
 
26109
  def validate(self):
26110
    return
26111
 
26112
 
26113
  def __repr__(self):
26114
    L = ['%s=%r' % (key, value)
26115
      for key, value in self.__dict__.iteritems()]
26116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26117
 
26118
  def __eq__(self, other):
26119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26120
 
26121
  def __ne__(self, other):
26122
    return not (self == other)
26123
 
26124
class deleteProductFeedSubmit_result:
26125
  """
26126
  Attributes:
26127
   - success
26128
   - cex
26129
  """
26130
 
26131
  thrift_spec = (
26132
    (0, TType.BOOL, 'success', None, None, ), # 0
26133
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26134
  )
26135
 
26136
  def __init__(self, success=None, cex=None,):
26137
    self.success = success
26138
    self.cex = cex
26139
 
26140
  def read(self, iprot):
26141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26143
      return
26144
    iprot.readStructBegin()
26145
    while True:
26146
      (fname, ftype, fid) = iprot.readFieldBegin()
26147
      if ftype == TType.STOP:
26148
        break
26149
      if fid == 0:
26150
        if ftype == TType.BOOL:
26151
          self.success = iprot.readBool();
26152
        else:
26153
          iprot.skip(ftype)
26154
      elif fid == 1:
26155
        if ftype == TType.STRUCT:
26156
          self.cex = CatalogServiceException()
26157
          self.cex.read(iprot)
26158
        else:
26159
          iprot.skip(ftype)
26160
      else:
26161
        iprot.skip(ftype)
26162
      iprot.readFieldEnd()
26163
    iprot.readStructEnd()
26164
 
26165
  def write(self, oprot):
26166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26168
      return
26169
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
26170
    if self.success is not None:
26171
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26172
      oprot.writeBool(self.success)
26173
      oprot.writeFieldEnd()
26174
    if self.cex is not None:
26175
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26176
      self.cex.write(oprot)
26177
      oprot.writeFieldEnd()
26178
    oprot.writeFieldStop()
26179
    oprot.writeStructEnd()
26180
 
26181
  def validate(self):
26182
    return
26183
 
26184
 
26185
  def __repr__(self):
26186
    L = ['%s=%r' % (key, value)
26187
      for key, value in self.__dict__.iteritems()]
26188
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26189
 
26190
  def __eq__(self, other):
26191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26192
 
26193
  def __ne__(self, other):
26194
    return not (self == other)
26195
 
26196
class getAllProductFeedSubmit_args:
26197
 
26198
  thrift_spec = (
26199
  )
26200
 
26201
  def read(self, iprot):
26202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26204
      return
26205
    iprot.readStructBegin()
26206
    while True:
26207
      (fname, ftype, fid) = iprot.readFieldBegin()
26208
      if ftype == TType.STOP:
26209
        break
26210
      else:
26211
        iprot.skip(ftype)
26212
      iprot.readFieldEnd()
26213
    iprot.readStructEnd()
26214
 
26215
  def write(self, oprot):
26216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26218
      return
26219
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
26220
    oprot.writeFieldStop()
26221
    oprot.writeStructEnd()
26222
 
26223
  def validate(self):
26224
    return
26225
 
26226
 
26227
  def __repr__(self):
26228
    L = ['%s=%r' % (key, value)
26229
      for key, value in self.__dict__.iteritems()]
26230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26231
 
26232
  def __eq__(self, other):
26233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26234
 
26235
  def __ne__(self, other):
26236
    return not (self == other)
26237
 
26238
class getAllProductFeedSubmit_result:
26239
  """
26240
  Attributes:
26241
   - success
26242
   - cex
26243
  """
26244
 
26245
  thrift_spec = (
26246
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
26247
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26248
  )
26249
 
26250
  def __init__(self, success=None, cex=None,):
26251
    self.success = success
26252
    self.cex = cex
26253
 
26254
  def read(self, iprot):
26255
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26256
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26257
      return
26258
    iprot.readStructBegin()
26259
    while True:
26260
      (fname, ftype, fid) = iprot.readFieldBegin()
26261
      if ftype == TType.STOP:
26262
        break
26263
      if fid == 0:
26264
        if ftype == TType.LIST:
26265
          self.success = []
26266
          (_etype551, _size548) = iprot.readListBegin()
26267
          for _i552 in xrange(_size548):
26268
            _elem553 = ProductFeedSubmit()
26269
            _elem553.read(iprot)
26270
            self.success.append(_elem553)
26271
          iprot.readListEnd()
26272
        else:
26273
          iprot.skip(ftype)
26274
      elif fid == 1:
26275
        if ftype == TType.STRUCT:
26276
          self.cex = CatalogServiceException()
26277
          self.cex.read(iprot)
26278
        else:
26279
          iprot.skip(ftype)
26280
      else:
26281
        iprot.skip(ftype)
26282
      iprot.readFieldEnd()
26283
    iprot.readStructEnd()
26284
 
26285
  def write(self, oprot):
26286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26288
      return
26289
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
26290
    if self.success is not None:
26291
      oprot.writeFieldBegin('success', TType.LIST, 0)
26292
      oprot.writeListBegin(TType.STRUCT, len(self.success))
26293
      for iter554 in self.success:
26294
        iter554.write(oprot)
26295
      oprot.writeListEnd()
26296
      oprot.writeFieldEnd()
26297
    if self.cex is not None:
26298
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26299
      self.cex.write(oprot)
26300
      oprot.writeFieldEnd()
26301
    oprot.writeFieldStop()
26302
    oprot.writeStructEnd()
26303
 
26304
  def validate(self):
26305
    return
26306
 
26307
 
26308
  def __repr__(self):
26309
    L = ['%s=%r' % (key, value)
26310
      for key, value in self.__dict__.iteritems()]
26311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26312
 
26313
  def __eq__(self, other):
26314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26315
 
26316
  def __ne__(self, other):
26317
    return not (self == other)
9724 kshitij.so 26318
 
26319
class getMarketplacedetailsForItem_args:
26320
  """
26321
  Attributes:
26322
   - itemId
26323
   - sourceId
26324
  """
26325
 
26326
  thrift_spec = (
26327
    None, # 0
26328
    (1, TType.I64, 'itemId', None, None, ), # 1
26329
    (2, TType.I64, 'sourceId', None, None, ), # 2
26330
  )
26331
 
26332
  def __init__(self, itemId=None, sourceId=None,):
26333
    self.itemId = itemId
26334
    self.sourceId = sourceId
26335
 
26336
  def read(self, iprot):
26337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26339
      return
26340
    iprot.readStructBegin()
26341
    while True:
26342
      (fname, ftype, fid) = iprot.readFieldBegin()
26343
      if ftype == TType.STOP:
26344
        break
26345
      if fid == 1:
26346
        if ftype == TType.I64:
26347
          self.itemId = iprot.readI64();
26348
        else:
26349
          iprot.skip(ftype)
26350
      elif fid == 2:
26351
        if ftype == TType.I64:
26352
          self.sourceId = iprot.readI64();
26353
        else:
26354
          iprot.skip(ftype)
26355
      else:
26356
        iprot.skip(ftype)
26357
      iprot.readFieldEnd()
26358
    iprot.readStructEnd()
26359
 
26360
  def write(self, oprot):
26361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26363
      return
26364
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
26365
    if self.itemId is not None:
26366
      oprot.writeFieldBegin('itemId', TType.I64, 1)
26367
      oprot.writeI64(self.itemId)
26368
      oprot.writeFieldEnd()
26369
    if self.sourceId is not None:
26370
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
26371
      oprot.writeI64(self.sourceId)
26372
      oprot.writeFieldEnd()
26373
    oprot.writeFieldStop()
26374
    oprot.writeStructEnd()
26375
 
26376
  def validate(self):
26377
    return
26378
 
26379
 
26380
  def __repr__(self):
26381
    L = ['%s=%r' % (key, value)
26382
      for key, value in self.__dict__.iteritems()]
26383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26384
 
26385
  def __eq__(self, other):
26386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26387
 
26388
  def __ne__(self, other):
26389
    return not (self == other)
26390
 
26391
class getMarketplacedetailsForItem_result:
26392
  """
26393
  Attributes:
26394
   - success
26395
  """
26396
 
26397
  thrift_spec = (
26398
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
26399
  )
26400
 
26401
  def __init__(self, success=None,):
26402
    self.success = success
26403
 
26404
  def read(self, iprot):
26405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26407
      return
26408
    iprot.readStructBegin()
26409
    while True:
26410
      (fname, ftype, fid) = iprot.readFieldBegin()
26411
      if ftype == TType.STOP:
26412
        break
26413
      if fid == 0:
26414
        if ftype == TType.STRUCT:
26415
          self.success = MarketplaceItems()
26416
          self.success.read(iprot)
26417
        else:
26418
          iprot.skip(ftype)
26419
      else:
26420
        iprot.skip(ftype)
26421
      iprot.readFieldEnd()
26422
    iprot.readStructEnd()
26423
 
26424
  def write(self, oprot):
26425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26427
      return
26428
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
26429
    if self.success is not None:
26430
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26431
      self.success.write(oprot)
26432
      oprot.writeFieldEnd()
26433
    oprot.writeFieldStop()
26434
    oprot.writeStructEnd()
26435
 
26436
  def validate(self):
26437
    return
26438
 
26439
 
26440
  def __repr__(self):
26441
    L = ['%s=%r' % (key, value)
26442
      for key, value in self.__dict__.iteritems()]
26443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26444
 
26445
  def __eq__(self, other):
26446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26447
 
26448
  def __ne__(self, other):
26449
    return not (self == other)
26450
 
26451
class updateMarketplaceAttributesForItem_args:
26452
  """
26453
  Attributes:
26454
   - marketPlaceItem
26455
  """
26456
 
26457
  thrift_spec = (
26458
    None, # 0
26459
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
26460
  )
26461
 
26462
  def __init__(self, marketPlaceItem=None,):
26463
    self.marketPlaceItem = marketPlaceItem
26464
 
26465
  def read(self, iprot):
26466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26468
      return
26469
    iprot.readStructBegin()
26470
    while True:
26471
      (fname, ftype, fid) = iprot.readFieldBegin()
26472
      if ftype == TType.STOP:
26473
        break
26474
      if fid == 1:
26475
        if ftype == TType.STRUCT:
26476
          self.marketPlaceItem = MarketplaceItems()
26477
          self.marketPlaceItem.read(iprot)
26478
        else:
26479
          iprot.skip(ftype)
26480
      else:
26481
        iprot.skip(ftype)
26482
      iprot.readFieldEnd()
26483
    iprot.readStructEnd()
26484
 
26485
  def write(self, oprot):
26486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26488
      return
26489
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
26490
    if self.marketPlaceItem is not None:
26491
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
26492
      self.marketPlaceItem.write(oprot)
26493
      oprot.writeFieldEnd()
26494
    oprot.writeFieldStop()
26495
    oprot.writeStructEnd()
26496
 
26497
  def validate(self):
26498
    return
26499
 
26500
 
26501
  def __repr__(self):
26502
    L = ['%s=%r' % (key, value)
26503
      for key, value in self.__dict__.iteritems()]
26504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26505
 
26506
  def __eq__(self, other):
26507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26508
 
26509
  def __ne__(self, other):
26510
    return not (self == other)
26511
 
26512
class updateMarketplaceAttributesForItem_result:
26513
  """
26514
  Attributes:
26515
   - success
26516
  """
26517
 
26518
  thrift_spec = (
26519
    (0, TType.BOOL, 'success', None, None, ), # 0
26520
  )
26521
 
26522
  def __init__(self, success=None,):
26523
    self.success = success
26524
 
26525
  def read(self, iprot):
26526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26528
      return
26529
    iprot.readStructBegin()
26530
    while True:
26531
      (fname, ftype, fid) = iprot.readFieldBegin()
26532
      if ftype == TType.STOP:
26533
        break
26534
      if fid == 0:
26535
        if ftype == TType.BOOL:
26536
          self.success = iprot.readBool();
26537
        else:
26538
          iprot.skip(ftype)
26539
      else:
26540
        iprot.skip(ftype)
26541
      iprot.readFieldEnd()
26542
    iprot.readStructEnd()
26543
 
26544
  def write(self, oprot):
26545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26547
      return
26548
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
26549
    if self.success is not None:
26550
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26551
      oprot.writeBool(self.success)
26552
      oprot.writeFieldEnd()
26553
    oprot.writeFieldStop()
26554
    oprot.writeStructEnd()
26555
 
26556
  def validate(self):
26557
    return
26558
 
26559
 
26560
  def __repr__(self):
26561
    L = ['%s=%r' % (key, value)
26562
      for key, value in self.__dict__.iteritems()]
26563
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26564
 
26565
  def __eq__(self, other):
26566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26567
 
26568
  def __ne__(self, other):
26569
    return not (self == other)
9776 vikram.rag 26570
 
9779 kshitij.so 26571
class getCostingForMarketplace_args:
26572
  """
26573
  Attributes:
26574
   - source
26575
   - item_id
26576
  """
26577
 
26578
  thrift_spec = (
26579
    None, # 0
26580
    (1, TType.I64, 'source', None, None, ), # 1
26581
    (2, TType.I64, 'item_id', None, None, ), # 2
26582
  )
26583
 
26584
  def __init__(self, source=None, item_id=None,):
26585
    self.source = source
26586
    self.item_id = item_id
26587
 
26588
  def read(self, iprot):
26589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26591
      return
26592
    iprot.readStructBegin()
26593
    while True:
26594
      (fname, ftype, fid) = iprot.readFieldBegin()
26595
      if ftype == TType.STOP:
26596
        break
26597
      if fid == 1:
26598
        if ftype == TType.I64:
26599
          self.source = iprot.readI64();
26600
        else:
26601
          iprot.skip(ftype)
26602
      elif fid == 2:
26603
        if ftype == TType.I64:
26604
          self.item_id = iprot.readI64();
26605
        else:
26606
          iprot.skip(ftype)
26607
      else:
26608
        iprot.skip(ftype)
26609
      iprot.readFieldEnd()
26610
    iprot.readStructEnd()
26611
 
26612
  def write(self, oprot):
26613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26615
      return
26616
    oprot.writeStructBegin('getCostingForMarketplace_args')
26617
    if self.source is not None:
26618
      oprot.writeFieldBegin('source', TType.I64, 1)
26619
      oprot.writeI64(self.source)
26620
      oprot.writeFieldEnd()
26621
    if self.item_id is not None:
26622
      oprot.writeFieldBegin('item_id', TType.I64, 2)
26623
      oprot.writeI64(self.item_id)
26624
      oprot.writeFieldEnd()
26625
    oprot.writeFieldStop()
26626
    oprot.writeStructEnd()
26627
 
26628
  def validate(self):
26629
    return
26630
 
26631
 
26632
  def __repr__(self):
26633
    L = ['%s=%r' % (key, value)
26634
      for key, value in self.__dict__.iteritems()]
26635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26636
 
26637
  def __eq__(self, other):
26638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26639
 
26640
  def __ne__(self, other):
26641
    return not (self == other)
26642
 
26643
class getCostingForMarketplace_result:
26644
  """
26645
  Attributes:
26646
   - success
26647
  """
26648
 
26649
  thrift_spec = (
26650
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
26651
  )
26652
 
26653
  def __init__(self, success=None,):
26654
    self.success = success
26655
 
26656
  def read(self, iprot):
26657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26659
      return
26660
    iprot.readStructBegin()
26661
    while True:
26662
      (fname, ftype, fid) = iprot.readFieldBegin()
26663
      if ftype == TType.STOP:
26664
        break
26665
      if fid == 0:
26666
        if ftype == TType.STRUCT:
26667
          self.success = MarketplacePercentage()
26668
          self.success.read(iprot)
26669
        else:
26670
          iprot.skip(ftype)
26671
      else:
26672
        iprot.skip(ftype)
26673
      iprot.readFieldEnd()
26674
    iprot.readStructEnd()
26675
 
26676
  def write(self, oprot):
26677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26679
      return
26680
    oprot.writeStructBegin('getCostingForMarketplace_result')
26681
    if self.success is not None:
26682
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26683
      self.success.write(oprot)
26684
      oprot.writeFieldEnd()
26685
    oprot.writeFieldStop()
26686
    oprot.writeStructEnd()
26687
 
26688
  def validate(self):
26689
    return
26690
 
26691
 
26692
  def __repr__(self):
26693
    L = ['%s=%r' % (key, value)
26694
      for key, value in self.__dict__.iteritems()]
26695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26696
 
26697
  def __eq__(self, other):
26698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26699
 
26700
  def __ne__(self, other):
26701
    return not (self == other)
26702
 
9776 vikram.rag 26703
class getMarketPlaceItemsForPriceUpdate_args:
26704
  """
26705
  Attributes:
26706
   - source
26707
  """
26708
 
26709
  thrift_spec = (
26710
    None, # 0
26711
    (1, TType.I64, 'source', None, None, ), # 1
26712
  )
26713
 
26714
  def __init__(self, source=None,):
26715
    self.source = source
26716
 
26717
  def read(self, iprot):
26718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26720
      return
26721
    iprot.readStructBegin()
26722
    while True:
26723
      (fname, ftype, fid) = iprot.readFieldBegin()
26724
      if ftype == TType.STOP:
26725
        break
26726
      if fid == 1:
26727
        if ftype == TType.I64:
26728
          self.source = iprot.readI64();
26729
        else:
26730
          iprot.skip(ftype)
26731
      else:
26732
        iprot.skip(ftype)
26733
      iprot.readFieldEnd()
26734
    iprot.readStructEnd()
26735
 
26736
  def write(self, oprot):
26737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26739
      return
26740
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
26741
    if self.source is not None:
26742
      oprot.writeFieldBegin('source', TType.I64, 1)
26743
      oprot.writeI64(self.source)
26744
      oprot.writeFieldEnd()
26745
    oprot.writeFieldStop()
26746
    oprot.writeStructEnd()
26747
 
26748
  def validate(self):
26749
    return
26750
 
26751
 
26752
  def __repr__(self):
26753
    L = ['%s=%r' % (key, value)
26754
      for key, value in self.__dict__.iteritems()]
26755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26756
 
26757
  def __eq__(self, other):
26758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26759
 
26760
  def __ne__(self, other):
26761
    return not (self == other)
26762
 
26763
class getMarketPlaceItemsForPriceUpdate_result:
26764
  """
26765
  Attributes:
26766
   - success
26767
  """
26768
 
26769
  thrift_spec = (
26770
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
26771
  )
26772
 
26773
  def __init__(self, success=None,):
26774
    self.success = success
26775
 
26776
  def read(self, iprot):
26777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26779
      return
26780
    iprot.readStructBegin()
26781
    while True:
26782
      (fname, ftype, fid) = iprot.readFieldBegin()
26783
      if ftype == TType.STOP:
26784
        break
26785
      if fid == 0:
26786
        if ftype == TType.LIST:
26787
          self.success = []
26788
          (_etype558, _size555) = iprot.readListBegin()
26789
          for _i559 in xrange(_size555):
26790
            _elem560 = MarketPlaceItemPrice()
26791
            _elem560.read(iprot)
26792
            self.success.append(_elem560)
26793
          iprot.readListEnd()
26794
        else:
26795
          iprot.skip(ftype)
26796
      else:
26797
        iprot.skip(ftype)
26798
      iprot.readFieldEnd()
26799
    iprot.readStructEnd()
26800
 
26801
  def write(self, oprot):
26802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26804
      return
26805
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
26806
    if self.success is not None:
26807
      oprot.writeFieldBegin('success', TType.LIST, 0)
26808
      oprot.writeListBegin(TType.STRUCT, len(self.success))
26809
      for iter561 in self.success:
26810
        iter561.write(oprot)
26811
      oprot.writeListEnd()
26812
      oprot.writeFieldEnd()
26813
    oprot.writeFieldStop()
26814
    oprot.writeStructEnd()
26815
 
26816
  def validate(self):
26817
    return
26818
 
26819
 
26820
  def __repr__(self):
26821
    L = ['%s=%r' % (key, value)
26822
      for key, value in self.__dict__.iteritems()]
26823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26824
 
26825
  def __eq__(self, other):
26826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26827
 
26828
  def __ne__(self, other):
26829
    return not (self == other)
26830
 
26831
class updateMarketPlacePriceUpdateStatus_args:
26832
  """
26833
  Attributes:
26834
   - skulist
26835
   - timestamp
9816 kshitij.so 26836
   - source
9776 vikram.rag 26837
  """
26838
 
26839
  thrift_spec = (
26840
    None, # 0
26841
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
26842
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 26843
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 26844
  )
26845
 
9816 kshitij.so 26846
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 26847
    self.skulist = skulist
26848
    self.timestamp = timestamp
9816 kshitij.so 26849
    self.source = source
9776 vikram.rag 26850
 
26851
  def read(self, iprot):
26852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26854
      return
26855
    iprot.readStructBegin()
26856
    while True:
26857
      (fname, ftype, fid) = iprot.readFieldBegin()
26858
      if ftype == TType.STOP:
26859
        break
26860
      if fid == 1:
26861
        if ftype == TType.LIST:
26862
          self.skulist = []
26863
          (_etype565, _size562) = iprot.readListBegin()
26864
          for _i566 in xrange(_size562):
26865
            _elem567 = iprot.readI64();
26866
            self.skulist.append(_elem567)
26867
          iprot.readListEnd()
26868
        else:
26869
          iprot.skip(ftype)
26870
      elif fid == 2:
26871
        if ftype == TType.I64:
26872
          self.timestamp = iprot.readI64();
26873
        else:
26874
          iprot.skip(ftype)
9816 kshitij.so 26875
      elif fid == 3:
26876
        if ftype == TType.I64:
26877
          self.source = iprot.readI64();
26878
        else:
26879
          iprot.skip(ftype)
9776 vikram.rag 26880
      else:
26881
        iprot.skip(ftype)
26882
      iprot.readFieldEnd()
26883
    iprot.readStructEnd()
26884
 
26885
  def write(self, oprot):
26886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26888
      return
26889
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
26890
    if self.skulist is not None:
26891
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
26892
      oprot.writeListBegin(TType.I64, len(self.skulist))
26893
      for iter568 in self.skulist:
26894
        oprot.writeI64(iter568)
26895
      oprot.writeListEnd()
26896
      oprot.writeFieldEnd()
26897
    if self.timestamp is not None:
26898
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
26899
      oprot.writeI64(self.timestamp)
26900
      oprot.writeFieldEnd()
9816 kshitij.so 26901
    if self.source is not None:
26902
      oprot.writeFieldBegin('source', TType.I64, 3)
26903
      oprot.writeI64(self.source)
26904
      oprot.writeFieldEnd()
9776 vikram.rag 26905
    oprot.writeFieldStop()
26906
    oprot.writeStructEnd()
26907
 
26908
  def validate(self):
26909
    return
26910
 
26911
 
26912
  def __repr__(self):
26913
    L = ['%s=%r' % (key, value)
26914
      for key, value in self.__dict__.iteritems()]
26915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26916
 
26917
  def __eq__(self, other):
26918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26919
 
26920
  def __ne__(self, other):
26921
    return not (self == other)
26922
 
26923
class updateMarketPlacePriceUpdateStatus_result:
26924
 
26925
  thrift_spec = (
26926
  )
26927
 
26928
  def read(self, iprot):
26929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26931
      return
26932
    iprot.readStructBegin()
26933
    while True:
26934
      (fname, ftype, fid) = iprot.readFieldBegin()
26935
      if ftype == TType.STOP:
26936
        break
26937
      else:
26938
        iprot.skip(ftype)
26939
      iprot.readFieldEnd()
26940
    iprot.readStructEnd()
26941
 
26942
  def write(self, oprot):
26943
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26944
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26945
      return
26946
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
26947
    oprot.writeFieldStop()
26948
    oprot.writeStructEnd()
26949
 
26950
  def validate(self):
26951
    return
26952
 
26953
 
26954
  def __repr__(self):
26955
    L = ['%s=%r' % (key, value)
26956
      for key, value in self.__dict__.iteritems()]
26957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26958
 
26959
  def __eq__(self, other):
26960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26961
 
26962
  def __ne__(self, other):
26963
    return not (self == other)
9861 rajveer 26964
 
26965
class updateItemHoldInventory_args:
26966
  """
26967
  Attributes:
26968
   - itemHoldMap
26969
  """
26970
 
26971
  thrift_spec = (
26972
    None, # 0
26973
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
26974
  )
26975
 
26976
  def __init__(self, itemHoldMap=None,):
26977
    self.itemHoldMap = itemHoldMap
26978
 
26979
  def read(self, iprot):
26980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26982
      return
26983
    iprot.readStructBegin()
26984
    while True:
26985
      (fname, ftype, fid) = iprot.readFieldBegin()
26986
      if ftype == TType.STOP:
26987
        break
26988
      if fid == 1:
26989
        if ftype == TType.MAP:
26990
          self.itemHoldMap = {}
26991
          (_ktype570, _vtype571, _size569 ) = iprot.readMapBegin() 
26992
          for _i573 in xrange(_size569):
26993
            _key574 = iprot.readI64();
26994
            _val575 = iprot.readI64();
26995
            self.itemHoldMap[_key574] = _val575
26996
          iprot.readMapEnd()
26997
        else:
26998
          iprot.skip(ftype)
26999
      else:
27000
        iprot.skip(ftype)
27001
      iprot.readFieldEnd()
27002
    iprot.readStructEnd()
27003
 
27004
  def write(self, oprot):
27005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27007
      return
27008
    oprot.writeStructBegin('updateItemHoldInventory_args')
27009
    if self.itemHoldMap is not None:
27010
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
27011
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
27012
      for kiter576,viter577 in self.itemHoldMap.items():
27013
        oprot.writeI64(kiter576)
27014
        oprot.writeI64(viter577)
27015
      oprot.writeMapEnd()
27016
      oprot.writeFieldEnd()
27017
    oprot.writeFieldStop()
27018
    oprot.writeStructEnd()
27019
 
27020
  def validate(self):
27021
    return
27022
 
27023
 
27024
  def __repr__(self):
27025
    L = ['%s=%r' % (key, value)
27026
      for key, value in self.__dict__.iteritems()]
27027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27028
 
27029
  def __eq__(self, other):
27030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27031
 
27032
  def __ne__(self, other):
27033
    return not (self == other)
27034
 
27035
class updateItemHoldInventory_result:
27036
 
27037
  thrift_spec = (
27038
  )
27039
 
27040
  def read(self, iprot):
27041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27043
      return
27044
    iprot.readStructBegin()
27045
    while True:
27046
      (fname, ftype, fid) = iprot.readFieldBegin()
27047
      if ftype == TType.STOP:
27048
        break
27049
      else:
27050
        iprot.skip(ftype)
27051
      iprot.readFieldEnd()
27052
    iprot.readStructEnd()
27053
 
27054
  def write(self, oprot):
27055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27057
      return
27058
    oprot.writeStructBegin('updateItemHoldInventory_result')
27059
    oprot.writeFieldStop()
27060
    oprot.writeStructEnd()
27061
 
27062
  def validate(self):
27063
    return
27064
 
27065
 
27066
  def __repr__(self):
27067
    L = ['%s=%r' % (key, value)
27068
      for key, value in self.__dict__.iteritems()]
27069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27070
 
27071
  def __eq__(self, other):
27072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27073
 
27074
  def __ne__(self, other):
27075
    return not (self == other)
9895 vikram.rag 27076
 
27077
class updateNlcAtMarketplaces_args:
27078
  """
27079
  Attributes:
27080
   - item_id
27081
   - vendor_id
27082
   - nlc
27083
  """
27084
 
27085
  thrift_spec = None
27086
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
27087
    self.item_id = item_id
27088
    self.vendor_id = vendor_id
27089
    self.nlc = nlc
27090
 
27091
  def read(self, iprot):
27092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27094
      return
27095
    iprot.readStructBegin()
27096
    while True:
27097
      (fname, ftype, fid) = iprot.readFieldBegin()
27098
      if ftype == TType.STOP:
27099
        break
27100
      if fid == 1:
27101
        if ftype == TType.I64:
27102
          self.item_id = iprot.readI64();
27103
        else:
27104
          iprot.skip(ftype)
27105
      elif fid == 2:
27106
        if ftype == TType.I64:
27107
          self.vendor_id = iprot.readI64();
27108
        else:
27109
          iprot.skip(ftype)
27110
      elif fid == -1:
27111
        if ftype == TType.DOUBLE:
27112
          self.nlc = iprot.readDouble();
27113
        else:
27114
          iprot.skip(ftype)
27115
      else:
27116
        iprot.skip(ftype)
27117
      iprot.readFieldEnd()
27118
    iprot.readStructEnd()
27119
 
27120
  def write(self, oprot):
27121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27123
      return
27124
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
27125
    if self.nlc is not None:
27126
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
27127
      oprot.writeDouble(self.nlc)
27128
      oprot.writeFieldEnd()
27129
    if self.item_id is not None:
27130
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27131
      oprot.writeI64(self.item_id)
27132
      oprot.writeFieldEnd()
27133
    if self.vendor_id is not None:
27134
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
27135
      oprot.writeI64(self.vendor_id)
27136
      oprot.writeFieldEnd()
27137
    oprot.writeFieldStop()
27138
    oprot.writeStructEnd()
27139
 
27140
  def validate(self):
27141
    return
27142
 
27143
 
27144
  def __repr__(self):
27145
    L = ['%s=%r' % (key, value)
27146
      for key, value in self.__dict__.iteritems()]
27147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27148
 
27149
  def __eq__(self, other):
27150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27151
 
27152
  def __ne__(self, other):
27153
    return not (self == other)
27154
 
27155
class updateNlcAtMarketplaces_result:
27156
 
27157
  thrift_spec = (
27158
  )
27159
 
27160
  def read(self, iprot):
27161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27163
      return
27164
    iprot.readStructBegin()
27165
    while True:
27166
      (fname, ftype, fid) = iprot.readFieldBegin()
27167
      if ftype == TType.STOP:
27168
        break
27169
      else:
27170
        iprot.skip(ftype)
27171
      iprot.readFieldEnd()
27172
    iprot.readStructEnd()
27173
 
27174
  def write(self, oprot):
27175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27177
      return
27178
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
27179
    oprot.writeFieldStop()
27180
    oprot.writeStructEnd()
27181
 
27182
  def validate(self):
27183
    return
27184
 
27185
 
27186
  def __repr__(self):
27187
    L = ['%s=%r' % (key, value)
27188
      for key, value in self.__dict__.iteritems()]
27189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27190
 
27191
  def __eq__(self, other):
27192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27193
 
27194
  def __ne__(self, other):
27195
    return not (self == other)
9945 vikram.rag 27196
 
27197
class getAllFlipkartItems_args:
27198
 
27199
  thrift_spec = (
27200
  )
27201
 
27202
  def read(self, iprot):
27203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27205
      return
27206
    iprot.readStructBegin()
27207
    while True:
27208
      (fname, ftype, fid) = iprot.readFieldBegin()
27209
      if ftype == TType.STOP:
27210
        break
27211
      else:
27212
        iprot.skip(ftype)
27213
      iprot.readFieldEnd()
27214
    iprot.readStructEnd()
27215
 
27216
  def write(self, oprot):
27217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27219
      return
27220
    oprot.writeStructBegin('getAllFlipkartItems_args')
27221
    oprot.writeFieldStop()
27222
    oprot.writeStructEnd()
27223
 
27224
  def validate(self):
27225
    return
27226
 
27227
 
27228
  def __repr__(self):
27229
    L = ['%s=%r' % (key, value)
27230
      for key, value in self.__dict__.iteritems()]
27231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27232
 
27233
  def __eq__(self, other):
27234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27235
 
27236
  def __ne__(self, other):
27237
    return not (self == other)
27238
 
27239
class getAllFlipkartItems_result:
27240
  """
27241
  Attributes:
27242
   - success
27243
  """
27244
 
27245
  thrift_spec = (
27246
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
27247
  )
27248
 
27249
  def __init__(self, success=None,):
27250
    self.success = success
27251
 
27252
  def read(self, iprot):
27253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27255
      return
27256
    iprot.readStructBegin()
27257
    while True:
27258
      (fname, ftype, fid) = iprot.readFieldBegin()
27259
      if ftype == TType.STOP:
27260
        break
27261
      if fid == 0:
27262
        if ftype == TType.LIST:
27263
          self.success = []
27264
          (_etype581, _size578) = iprot.readListBegin()
27265
          for _i582 in xrange(_size578):
27266
            _elem583 = FlipkartItem()
27267
            _elem583.read(iprot)
27268
            self.success.append(_elem583)
27269
          iprot.readListEnd()
27270
        else:
27271
          iprot.skip(ftype)
27272
      else:
27273
        iprot.skip(ftype)
27274
      iprot.readFieldEnd()
27275
    iprot.readStructEnd()
27276
 
27277
  def write(self, oprot):
27278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27280
      return
27281
    oprot.writeStructBegin('getAllFlipkartItems_result')
27282
    if self.success is not None:
27283
      oprot.writeFieldBegin('success', TType.LIST, 0)
27284
      oprot.writeListBegin(TType.STRUCT, len(self.success))
27285
      for iter584 in self.success:
27286
        iter584.write(oprot)
27287
      oprot.writeListEnd()
27288
      oprot.writeFieldEnd()
27289
    oprot.writeFieldStop()
27290
    oprot.writeStructEnd()
27291
 
27292
  def validate(self):
27293
    return
27294
 
27295
 
27296
  def __repr__(self):
27297
    L = ['%s=%r' % (key, value)
27298
      for key, value in self.__dict__.iteritems()]
27299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27300
 
27301
  def __eq__(self, other):
27302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27303
 
27304
  def __ne__(self, other):
27305
    return not (self == other)
10097 kshitij.so 27306
 
27307
class addOrUpdateFlipkartItem_args:
27308
  """
27309
  Attributes:
27310
   - flipkartitem
27311
  """
27312
 
27313
  thrift_spec = None
27314
  def __init__(self, flipkartitem=None,):
27315
    self.flipkartitem = flipkartitem
27316
 
27317
  def read(self, iprot):
27318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27320
      return
27321
    iprot.readStructBegin()
27322
    while True:
27323
      (fname, ftype, fid) = iprot.readFieldBegin()
27324
      if ftype == TType.STOP:
27325
        break
27326
      if fid == -1:
27327
        if ftype == TType.STRUCT:
27328
          self.flipkartitem = FlipkartItem()
27329
          self.flipkartitem.read(iprot)
27330
        else:
27331
          iprot.skip(ftype)
27332
      else:
27333
        iprot.skip(ftype)
27334
      iprot.readFieldEnd()
27335
    iprot.readStructEnd()
27336
 
27337
  def write(self, oprot):
27338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27340
      return
27341
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
27342
    if self.flipkartitem is not None:
27343
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
27344
      self.flipkartitem.write(oprot)
27345
      oprot.writeFieldEnd()
27346
    oprot.writeFieldStop()
27347
    oprot.writeStructEnd()
27348
 
27349
  def validate(self):
27350
    return
27351
 
27352
 
27353
  def __repr__(self):
27354
    L = ['%s=%r' % (key, value)
27355
      for key, value in self.__dict__.iteritems()]
27356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27357
 
27358
  def __eq__(self, other):
27359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27360
 
27361
  def __ne__(self, other):
27362
    return not (self == other)
27363
 
27364
class addOrUpdateFlipkartItem_result:
27365
  """
27366
  Attributes:
27367
   - success
27368
  """
27369
 
27370
  thrift_spec = (
27371
    (0, TType.BOOL, 'success', None, None, ), # 0
27372
  )
27373
 
27374
  def __init__(self, success=None,):
27375
    self.success = success
27376
 
27377
  def read(self, iprot):
27378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27380
      return
27381
    iprot.readStructBegin()
27382
    while True:
27383
      (fname, ftype, fid) = iprot.readFieldBegin()
27384
      if ftype == TType.STOP:
27385
        break
27386
      if fid == 0:
27387
        if ftype == TType.BOOL:
27388
          self.success = iprot.readBool();
27389
        else:
27390
          iprot.skip(ftype)
27391
      else:
27392
        iprot.skip(ftype)
27393
      iprot.readFieldEnd()
27394
    iprot.readStructEnd()
27395
 
27396
  def write(self, oprot):
27397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27399
      return
27400
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
27401
    if self.success is not None:
27402
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27403
      oprot.writeBool(self.success)
27404
      oprot.writeFieldEnd()
27405
    oprot.writeFieldStop()
27406
    oprot.writeStructEnd()
27407
 
27408
  def validate(self):
27409
    return
27410
 
27411
 
27412
  def __repr__(self):
27413
    L = ['%s=%r' % (key, value)
27414
      for key, value in self.__dict__.iteritems()]
27415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27416
 
27417
  def __eq__(self, other):
27418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27419
 
27420
  def __ne__(self, other):
27421
    return not (self == other)
27422
 
27423
class getFlipkartItem_args:
27424
  """
27425
  Attributes:
27426
   - item_id
27427
  """
27428
 
27429
  thrift_spec = (
27430
    None, # 0
27431
    (1, TType.I64, 'item_id', None, None, ), # 1
27432
  )
27433
 
27434
  def __init__(self, item_id=None,):
27435
    self.item_id = item_id
27436
 
27437
  def read(self, iprot):
27438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27440
      return
27441
    iprot.readStructBegin()
27442
    while True:
27443
      (fname, ftype, fid) = iprot.readFieldBegin()
27444
      if ftype == TType.STOP:
27445
        break
27446
      if fid == 1:
27447
        if ftype == TType.I64:
27448
          self.item_id = iprot.readI64();
27449
        else:
27450
          iprot.skip(ftype)
27451
      else:
27452
        iprot.skip(ftype)
27453
      iprot.readFieldEnd()
27454
    iprot.readStructEnd()
27455
 
27456
  def write(self, oprot):
27457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27459
      return
27460
    oprot.writeStructBegin('getFlipkartItem_args')
27461
    if self.item_id is not None:
27462
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27463
      oprot.writeI64(self.item_id)
27464
      oprot.writeFieldEnd()
27465
    oprot.writeFieldStop()
27466
    oprot.writeStructEnd()
27467
 
27468
  def validate(self):
27469
    return
27470
 
27471
 
27472
  def __repr__(self):
27473
    L = ['%s=%r' % (key, value)
27474
      for key, value in self.__dict__.iteritems()]
27475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27476
 
27477
  def __eq__(self, other):
27478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27479
 
27480
  def __ne__(self, other):
27481
    return not (self == other)
27482
 
27483
class getFlipkartItem_result:
27484
  """
27485
  Attributes:
27486
   - success
27487
  """
27488
 
27489
  thrift_spec = (
27490
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
27491
  )
27492
 
27493
  def __init__(self, success=None,):
27494
    self.success = success
27495
 
27496
  def read(self, iprot):
27497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27499
      return
27500
    iprot.readStructBegin()
27501
    while True:
27502
      (fname, ftype, fid) = iprot.readFieldBegin()
27503
      if ftype == TType.STOP:
27504
        break
27505
      if fid == 0:
27506
        if ftype == TType.STRUCT:
27507
          self.success = FlipkartItem()
27508
          self.success.read(iprot)
27509
        else:
27510
          iprot.skip(ftype)
27511
      else:
27512
        iprot.skip(ftype)
27513
      iprot.readFieldEnd()
27514
    iprot.readStructEnd()
27515
 
27516
  def write(self, oprot):
27517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27519
      return
27520
    oprot.writeStructBegin('getFlipkartItem_result')
27521
    if self.success is not None:
27522
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27523
      self.success.write(oprot)
27524
      oprot.writeFieldEnd()
27525
    oprot.writeFieldStop()
27526
    oprot.writeStructEnd()
27527
 
27528
  def validate(self):
27529
    return
27530
 
27531
 
27532
  def __repr__(self):
27533
    L = ['%s=%r' % (key, value)
27534
      for key, value in self.__dict__.iteritems()]
27535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27536
 
27537
  def __eq__(self, other):
27538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27539
 
27540
  def __ne__(self, other):
27541
    return not (self == other)
27542
 
27543
class getFlipkartItemDetails_args:
27544
  """
27545
  Attributes:
27546
   - item_id
27547
  """
27548
 
27549
  thrift_spec = (
27550
    None, # 0
27551
    (1, TType.I64, 'item_id', None, None, ), # 1
27552
  )
27553
 
27554
  def __init__(self, item_id=None,):
27555
    self.item_id = item_id
27556
 
27557
  def read(self, iprot):
27558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27560
      return
27561
    iprot.readStructBegin()
27562
    while True:
27563
      (fname, ftype, fid) = iprot.readFieldBegin()
27564
      if ftype == TType.STOP:
27565
        break
27566
      if fid == 1:
27567
        if ftype == TType.I64:
27568
          self.item_id = iprot.readI64();
27569
        else:
27570
          iprot.skip(ftype)
27571
      else:
27572
        iprot.skip(ftype)
27573
      iprot.readFieldEnd()
27574
    iprot.readStructEnd()
27575
 
27576
  def write(self, oprot):
27577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27579
      return
27580
    oprot.writeStructBegin('getFlipkartItemDetails_args')
27581
    if self.item_id is not None:
27582
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27583
      oprot.writeI64(self.item_id)
27584
      oprot.writeFieldEnd()
27585
    oprot.writeFieldStop()
27586
    oprot.writeStructEnd()
27587
 
27588
  def validate(self):
27589
    return
27590
 
27591
 
27592
  def __repr__(self):
27593
    L = ['%s=%r' % (key, value)
27594
      for key, value in self.__dict__.iteritems()]
27595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27596
 
27597
  def __eq__(self, other):
27598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27599
 
27600
  def __ne__(self, other):
27601
    return not (self == other)
27602
 
27603
class getFlipkartItemDetails_result:
27604
  """
27605
  Attributes:
27606
   - success
27607
  """
27608
 
27609
  thrift_spec = (
27610
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
27611
  )
27612
 
27613
  def __init__(self, success=None,):
27614
    self.success = success
27615
 
27616
  def read(self, iprot):
27617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27619
      return
27620
    iprot.readStructBegin()
27621
    while True:
27622
      (fname, ftype, fid) = iprot.readFieldBegin()
27623
      if ftype == TType.STOP:
27624
        break
27625
      if fid == 0:
27626
        if ftype == TType.STRUCT:
27627
          self.success = FlipkartItemDetails()
27628
          self.success.read(iprot)
27629
        else:
27630
          iprot.skip(ftype)
27631
      else:
27632
        iprot.skip(ftype)
27633
      iprot.readFieldEnd()
27634
    iprot.readStructEnd()
27635
 
27636
  def write(self, oprot):
27637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27639
      return
27640
    oprot.writeStructBegin('getFlipkartItemDetails_result')
27641
    if self.success is not None:
27642
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27643
      self.success.write(oprot)
27644
      oprot.writeFieldEnd()
27645
    oprot.writeFieldStop()
27646
    oprot.writeStructEnd()
27647
 
27648
  def validate(self):
27649
    return
27650
 
27651
 
27652
  def __repr__(self):
27653
    L = ['%s=%r' % (key, value)
27654
      for key, value in self.__dict__.iteritems()]
27655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27656
 
27657
  def __eq__(self, other):
27658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27659
 
27660
  def __ne__(self, other):
27661
    return not (self == other)
27662
 
27663
class getFlipkartItems_args:
27664
  """
27665
  Attributes:
27666
   - offset
27667
   - limit
27668
  """
27669
 
27670
  thrift_spec = (
27671
    None, # 0
27672
    (1, TType.I64, 'offset', None, None, ), # 1
27673
    (2, TType.I64, 'limit', None, None, ), # 2
27674
  )
27675
 
27676
  def __init__(self, offset=None, limit=None,):
27677
    self.offset = offset
27678
    self.limit = limit
27679
 
27680
  def read(self, iprot):
27681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27683
      return
27684
    iprot.readStructBegin()
27685
    while True:
27686
      (fname, ftype, fid) = iprot.readFieldBegin()
27687
      if ftype == TType.STOP:
27688
        break
27689
      if fid == 1:
27690
        if ftype == TType.I64:
27691
          self.offset = iprot.readI64();
27692
        else:
27693
          iprot.skip(ftype)
27694
      elif fid == 2:
27695
        if ftype == TType.I64:
27696
          self.limit = iprot.readI64();
27697
        else:
27698
          iprot.skip(ftype)
27699
      else:
27700
        iprot.skip(ftype)
27701
      iprot.readFieldEnd()
27702
    iprot.readStructEnd()
27703
 
27704
  def write(self, oprot):
27705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27707
      return
27708
    oprot.writeStructBegin('getFlipkartItems_args')
27709
    if self.offset is not None:
27710
      oprot.writeFieldBegin('offset', TType.I64, 1)
27711
      oprot.writeI64(self.offset)
27712
      oprot.writeFieldEnd()
27713
    if self.limit is not None:
27714
      oprot.writeFieldBegin('limit', TType.I64, 2)
27715
      oprot.writeI64(self.limit)
27716
      oprot.writeFieldEnd()
27717
    oprot.writeFieldStop()
27718
    oprot.writeStructEnd()
27719
 
27720
  def validate(self):
27721
    return
27722
 
27723
 
27724
  def __repr__(self):
27725
    L = ['%s=%r' % (key, value)
27726
      for key, value in self.__dict__.iteritems()]
27727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27728
 
27729
  def __eq__(self, other):
27730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27731
 
27732
  def __ne__(self, other):
27733
    return not (self == other)
27734
 
27735
class getFlipkartItems_result:
27736
  """
27737
  Attributes:
27738
   - success
27739
  """
27740
 
27741
  thrift_spec = (
27742
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
27743
  )
27744
 
27745
  def __init__(self, success=None,):
27746
    self.success = success
27747
 
27748
  def read(self, iprot):
27749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27751
      return
27752
    iprot.readStructBegin()
27753
    while True:
27754
      (fname, ftype, fid) = iprot.readFieldBegin()
27755
      if ftype == TType.STOP:
27756
        break
27757
      if fid == 0:
27758
        if ftype == TType.LIST:
27759
          self.success = []
27760
          (_etype588, _size585) = iprot.readListBegin()
27761
          for _i589 in xrange(_size585):
27762
            _elem590 = FlipkartItemDetails()
27763
            _elem590.read(iprot)
27764
            self.success.append(_elem590)
27765
          iprot.readListEnd()
27766
        else:
27767
          iprot.skip(ftype)
27768
      else:
27769
        iprot.skip(ftype)
27770
      iprot.readFieldEnd()
27771
    iprot.readStructEnd()
27772
 
27773
  def write(self, oprot):
27774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27776
      return
27777
    oprot.writeStructBegin('getFlipkartItems_result')
27778
    if self.success is not None:
27779
      oprot.writeFieldBegin('success', TType.LIST, 0)
27780
      oprot.writeListBegin(TType.STRUCT, len(self.success))
27781
      for iter591 in self.success:
27782
        iter591.write(oprot)
27783
      oprot.writeListEnd()
27784
      oprot.writeFieldEnd()
27785
    oprot.writeFieldStop()
27786
    oprot.writeStructEnd()
27787
 
27788
  def validate(self):
27789
    return
27790
 
27791
 
27792
  def __repr__(self):
27793
    L = ['%s=%r' % (key, value)
27794
      for key, value in self.__dict__.iteritems()]
27795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27796
 
27797
  def __eq__(self, other):
27798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27799
 
27800
  def __ne__(self, other):
27801
    return not (self == other)
27802
 
27803
class searchFlipkartItems_args:
27804
  """
27805
  Attributes:
27806
   - searchTerm
27807
   - offset
27808
   - limit
27809
  """
27810
 
27811
  thrift_spec = (
27812
    None, # 0
27813
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
27814
    (2, TType.I64, 'offset', None, None, ), # 2
27815
    (3, TType.I64, 'limit', None, None, ), # 3
27816
  )
27817
 
27818
  def __init__(self, searchTerm=None, offset=None, limit=None,):
27819
    self.searchTerm = searchTerm
27820
    self.offset = offset
27821
    self.limit = limit
27822
 
27823
  def read(self, iprot):
27824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27826
      return
27827
    iprot.readStructBegin()
27828
    while True:
27829
      (fname, ftype, fid) = iprot.readFieldBegin()
27830
      if ftype == TType.STOP:
27831
        break
27832
      if fid == 1:
27833
        if ftype == TType.LIST:
27834
          self.searchTerm = []
27835
          (_etype595, _size592) = iprot.readListBegin()
27836
          for _i596 in xrange(_size592):
27837
            _elem597 = iprot.readString();
27838
            self.searchTerm.append(_elem597)
27839
          iprot.readListEnd()
27840
        else:
27841
          iprot.skip(ftype)
27842
      elif fid == 2:
27843
        if ftype == TType.I64:
27844
          self.offset = iprot.readI64();
27845
        else:
27846
          iprot.skip(ftype)
27847
      elif fid == 3:
27848
        if ftype == TType.I64:
27849
          self.limit = iprot.readI64();
27850
        else:
27851
          iprot.skip(ftype)
27852
      else:
27853
        iprot.skip(ftype)
27854
      iprot.readFieldEnd()
27855
    iprot.readStructEnd()
27856
 
27857
  def write(self, oprot):
27858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27860
      return
27861
    oprot.writeStructBegin('searchFlipkartItems_args')
27862
    if self.searchTerm is not None:
27863
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
27864
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
27865
      for iter598 in self.searchTerm:
27866
        oprot.writeString(iter598)
27867
      oprot.writeListEnd()
27868
      oprot.writeFieldEnd()
27869
    if self.offset is not None:
27870
      oprot.writeFieldBegin('offset', TType.I64, 2)
27871
      oprot.writeI64(self.offset)
27872
      oprot.writeFieldEnd()
27873
    if self.limit is not None:
27874
      oprot.writeFieldBegin('limit', TType.I64, 3)
27875
      oprot.writeI64(self.limit)
27876
      oprot.writeFieldEnd()
27877
    oprot.writeFieldStop()
27878
    oprot.writeStructEnd()
27879
 
27880
  def validate(self):
27881
    return
27882
 
27883
 
27884
  def __repr__(self):
27885
    L = ['%s=%r' % (key, value)
27886
      for key, value in self.__dict__.iteritems()]
27887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27888
 
27889
  def __eq__(self, other):
27890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27891
 
27892
  def __ne__(self, other):
27893
    return not (self == other)
27894
 
27895
class searchFlipkartItems_result:
27896
  """
27897
  Attributes:
27898
   - success
27899
  """
27900
 
27901
  thrift_spec = (
27902
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
27903
  )
27904
 
27905
  def __init__(self, success=None,):
27906
    self.success = success
27907
 
27908
  def read(self, iprot):
27909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27911
      return
27912
    iprot.readStructBegin()
27913
    while True:
27914
      (fname, ftype, fid) = iprot.readFieldBegin()
27915
      if ftype == TType.STOP:
27916
        break
27917
      if fid == 0:
27918
        if ftype == TType.LIST:
27919
          self.success = []
27920
          (_etype602, _size599) = iprot.readListBegin()
27921
          for _i603 in xrange(_size599):
27922
            _elem604 = FlipkartItemDetails()
27923
            _elem604.read(iprot)
27924
            self.success.append(_elem604)
27925
          iprot.readListEnd()
27926
        else:
27927
          iprot.skip(ftype)
27928
      else:
27929
        iprot.skip(ftype)
27930
      iprot.readFieldEnd()
27931
    iprot.readStructEnd()
27932
 
27933
  def write(self, oprot):
27934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27936
      return
27937
    oprot.writeStructBegin('searchFlipkartItems_result')
27938
    if self.success is not None:
27939
      oprot.writeFieldBegin('success', TType.LIST, 0)
27940
      oprot.writeListBegin(TType.STRUCT, len(self.success))
27941
      for iter605 in self.success:
27942
        iter605.write(oprot)
27943
      oprot.writeListEnd()
27944
      oprot.writeFieldEnd()
27945
    oprot.writeFieldStop()
27946
    oprot.writeStructEnd()
27947
 
27948
  def validate(self):
27949
    return
27950
 
27951
 
27952
  def __repr__(self):
27953
    L = ['%s=%r' % (key, value)
27954
      for key, value in self.__dict__.iteritems()]
27955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27956
 
27957
  def __eq__(self, other):
27958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27959
 
27960
  def __ne__(self, other):
27961
    return not (self == other)
27962
 
27963
class getCountForFlipkartItems_args:
27964
 
27965
  thrift_spec = (
27966
  )
27967
 
27968
  def read(self, iprot):
27969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27971
      return
27972
    iprot.readStructBegin()
27973
    while True:
27974
      (fname, ftype, fid) = iprot.readFieldBegin()
27975
      if ftype == TType.STOP:
27976
        break
27977
      else:
27978
        iprot.skip(ftype)
27979
      iprot.readFieldEnd()
27980
    iprot.readStructEnd()
27981
 
27982
  def write(self, oprot):
27983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27985
      return
27986
    oprot.writeStructBegin('getCountForFlipkartItems_args')
27987
    oprot.writeFieldStop()
27988
    oprot.writeStructEnd()
27989
 
27990
  def validate(self):
27991
    return
27992
 
27993
 
27994
  def __repr__(self):
27995
    L = ['%s=%r' % (key, value)
27996
      for key, value in self.__dict__.iteritems()]
27997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27998
 
27999
  def __eq__(self, other):
28000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28001
 
28002
  def __ne__(self, other):
28003
    return not (self == other)
28004
 
28005
class getCountForFlipkartItems_result:
28006
  """
28007
  Attributes:
28008
   - success
28009
  """
28010
 
28011
  thrift_spec = (
28012
    (0, TType.I64, 'success', None, None, ), # 0
28013
  )
28014
 
28015
  def __init__(self, success=None,):
28016
    self.success = success
28017
 
28018
  def read(self, iprot):
28019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28021
      return
28022
    iprot.readStructBegin()
28023
    while True:
28024
      (fname, ftype, fid) = iprot.readFieldBegin()
28025
      if ftype == TType.STOP:
28026
        break
28027
      if fid == 0:
28028
        if ftype == TType.I64:
28029
          self.success = iprot.readI64();
28030
        else:
28031
          iprot.skip(ftype)
28032
      else:
28033
        iprot.skip(ftype)
28034
      iprot.readFieldEnd()
28035
    iprot.readStructEnd()
28036
 
28037
  def write(self, oprot):
28038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28040
      return
28041
    oprot.writeStructBegin('getCountForFlipkartItems_result')
28042
    if self.success is not None:
28043
      oprot.writeFieldBegin('success', TType.I64, 0)
28044
      oprot.writeI64(self.success)
28045
      oprot.writeFieldEnd()
28046
    oprot.writeFieldStop()
28047
    oprot.writeStructEnd()
28048
 
28049
  def validate(self):
28050
    return
28051
 
28052
 
28053
  def __repr__(self):
28054
    L = ['%s=%r' % (key, value)
28055
      for key, value in self.__dict__.iteritems()]
28056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28057
 
28058
  def __eq__(self, other):
28059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28060
 
28061
  def __ne__(self, other):
28062
    return not (self == other)
28063
 
28064
class getFlipkartSearchResultCount_args:
28065
  """
28066
  Attributes:
28067
   - searchTerm
28068
  """
28069
 
28070
  thrift_spec = (
28071
    None, # 0
28072
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28073
  )
28074
 
28075
  def __init__(self, searchTerm=None,):
28076
    self.searchTerm = searchTerm
28077
 
28078
  def read(self, iprot):
28079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28081
      return
28082
    iprot.readStructBegin()
28083
    while True:
28084
      (fname, ftype, fid) = iprot.readFieldBegin()
28085
      if ftype == TType.STOP:
28086
        break
28087
      if fid == 1:
28088
        if ftype == TType.LIST:
28089
          self.searchTerm = []
28090
          (_etype609, _size606) = iprot.readListBegin()
28091
          for _i610 in xrange(_size606):
28092
            _elem611 = iprot.readString();
28093
            self.searchTerm.append(_elem611)
28094
          iprot.readListEnd()
28095
        else:
28096
          iprot.skip(ftype)
28097
      else:
28098
        iprot.skip(ftype)
28099
      iprot.readFieldEnd()
28100
    iprot.readStructEnd()
28101
 
28102
  def write(self, oprot):
28103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28105
      return
28106
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
28107
    if self.searchTerm is not None:
28108
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28109
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
28110
      for iter612 in self.searchTerm:
28111
        oprot.writeString(iter612)
28112
      oprot.writeListEnd()
28113
      oprot.writeFieldEnd()
28114
    oprot.writeFieldStop()
28115
    oprot.writeStructEnd()
28116
 
28117
  def validate(self):
28118
    return
28119
 
28120
 
28121
  def __repr__(self):
28122
    L = ['%s=%r' % (key, value)
28123
      for key, value in self.__dict__.iteritems()]
28124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28125
 
28126
  def __eq__(self, other):
28127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28128
 
28129
  def __ne__(self, other):
28130
    return not (self == other)
28131
 
28132
class getFlipkartSearchResultCount_result:
28133
  """
28134
  Attributes:
28135
   - success
28136
  """
28137
 
28138
  thrift_spec = (
28139
    (0, TType.I64, 'success', None, None, ), # 0
28140
  )
28141
 
28142
  def __init__(self, success=None,):
28143
    self.success = success
28144
 
28145
  def read(self, iprot):
28146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28148
      return
28149
    iprot.readStructBegin()
28150
    while True:
28151
      (fname, ftype, fid) = iprot.readFieldBegin()
28152
      if ftype == TType.STOP:
28153
        break
28154
      if fid == 0:
28155
        if ftype == TType.I64:
28156
          self.success = iprot.readI64();
28157
        else:
28158
          iprot.skip(ftype)
28159
      else:
28160
        iprot.skip(ftype)
28161
      iprot.readFieldEnd()
28162
    iprot.readStructEnd()
28163
 
28164
  def write(self, oprot):
28165
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28166
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28167
      return
28168
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
28169
    if self.success is not None:
28170
      oprot.writeFieldBegin('success', TType.I64, 0)
28171
      oprot.writeI64(self.success)
28172
      oprot.writeFieldEnd()
28173
    oprot.writeFieldStop()
28174
    oprot.writeStructEnd()
28175
 
28176
  def validate(self):
28177
    return
28178
 
28179
 
28180
  def __repr__(self):
28181
    L = ['%s=%r' % (key, value)
28182
      for key, value in self.__dict__.iteritems()]
28183
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28184
 
28185
  def __eq__(self, other):
28186
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28187
 
28188
  def __ne__(self, other):
28189
    return not (self == other)
28190
 
28191
class getAllFkItems_args:
28192
 
28193
  thrift_spec = (
28194
  )
28195
 
28196
  def read(self, iprot):
28197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28199
      return
28200
    iprot.readStructBegin()
28201
    while True:
28202
      (fname, ftype, fid) = iprot.readFieldBegin()
28203
      if ftype == TType.STOP:
28204
        break
28205
      else:
28206
        iprot.skip(ftype)
28207
      iprot.readFieldEnd()
28208
    iprot.readStructEnd()
28209
 
28210
  def write(self, oprot):
28211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28213
      return
28214
    oprot.writeStructBegin('getAllFkItems_args')
28215
    oprot.writeFieldStop()
28216
    oprot.writeStructEnd()
28217
 
28218
  def validate(self):
28219
    return
28220
 
28221
 
28222
  def __repr__(self):
28223
    L = ['%s=%r' % (key, value)
28224
      for key, value in self.__dict__.iteritems()]
28225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28226
 
28227
  def __eq__(self, other):
28228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28229
 
28230
  def __ne__(self, other):
28231
    return not (self == other)
28232
 
28233
class getAllFkItems_result:
28234
  """
28235
  Attributes:
28236
   - success
28237
  """
28238
 
28239
  thrift_spec = (
28240
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28241
  )
28242
 
28243
  def __init__(self, success=None,):
28244
    self.success = success
28245
 
28246
  def read(self, iprot):
28247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28249
      return
28250
    iprot.readStructBegin()
28251
    while True:
28252
      (fname, ftype, fid) = iprot.readFieldBegin()
28253
      if ftype == TType.STOP:
28254
        break
28255
      if fid == 0:
28256
        if ftype == TType.LIST:
28257
          self.success = []
28258
          (_etype616, _size613) = iprot.readListBegin()
28259
          for _i617 in xrange(_size613):
28260
            _elem618 = FlipkartItemDetails()
28261
            _elem618.read(iprot)
28262
            self.success.append(_elem618)
28263
          iprot.readListEnd()
28264
        else:
28265
          iprot.skip(ftype)
28266
      else:
28267
        iprot.skip(ftype)
28268
      iprot.readFieldEnd()
28269
    iprot.readStructEnd()
28270
 
28271
  def write(self, oprot):
28272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28274
      return
28275
    oprot.writeStructBegin('getAllFkItems_result')
28276
    if self.success is not None:
28277
      oprot.writeFieldBegin('success', TType.LIST, 0)
28278
      oprot.writeListBegin(TType.STRUCT, len(self.success))
28279
      for iter619 in self.success:
28280
        iter619.write(oprot)
28281
      oprot.writeListEnd()
28282
      oprot.writeFieldEnd()
28283
    oprot.writeFieldStop()
28284
    oprot.writeStructEnd()
28285
 
28286
  def validate(self):
28287
    return
28288
 
28289
 
28290
  def __repr__(self):
28291
    L = ['%s=%r' % (key, value)
28292
      for key, value in self.__dict__.iteritems()]
28293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28294
 
28295
  def __eq__(self, other):
28296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28297
 
28298
  def __ne__(self, other):
28299
    return not (self == other)
10140 vikram.rag 28300
 
28301
class getFlipkartItemBySkyAtFlipkart_args:
28302
  """
28303
  Attributes:
28304
   - sku
28305
  """
28306
 
11531 vikram.rag 28307
  thrift_spec = None
10140 vikram.rag 28308
  def __init__(self, sku=None,):
28309
    self.sku = sku
28310
 
28311
  def read(self, iprot):
28312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28314
      return
28315
    iprot.readStructBegin()
28316
    while True:
28317
      (fname, ftype, fid) = iprot.readFieldBegin()
28318
      if ftype == TType.STOP:
28319
        break
11531 vikram.rag 28320
      if fid == -1:
10140 vikram.rag 28321
        if ftype == TType.STRING:
28322
          self.sku = iprot.readString();
28323
        else:
28324
          iprot.skip(ftype)
28325
      else:
28326
        iprot.skip(ftype)
28327
      iprot.readFieldEnd()
28328
    iprot.readStructEnd()
28329
 
28330
  def write(self, oprot):
28331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28333
      return
28334
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
28335
    if self.sku is not None:
11531 vikram.rag 28336
      oprot.writeFieldBegin('sku', TType.STRING, -1)
10140 vikram.rag 28337
      oprot.writeString(self.sku)
28338
      oprot.writeFieldEnd()
28339
    oprot.writeFieldStop()
28340
    oprot.writeStructEnd()
28341
 
28342
  def validate(self):
28343
    return
28344
 
28345
 
28346
  def __repr__(self):
28347
    L = ['%s=%r' % (key, value)
28348
      for key, value in self.__dict__.iteritems()]
28349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28350
 
28351
  def __eq__(self, other):
28352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28353
 
28354
  def __ne__(self, other):
28355
    return not (self == other)
28356
 
28357
class getFlipkartItemBySkyAtFlipkart_result:
28358
  """
28359
  Attributes:
28360
   - success
28361
  """
28362
 
28363
  thrift_spec = (
28364
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
28365
  )
28366
 
28367
  def __init__(self, success=None,):
28368
    self.success = success
28369
 
28370
  def read(self, iprot):
28371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28373
      return
28374
    iprot.readStructBegin()
28375
    while True:
28376
      (fname, ftype, fid) = iprot.readFieldBegin()
28377
      if ftype == TType.STOP:
28378
        break
28379
      if fid == 0:
28380
        if ftype == TType.STRUCT:
28381
          self.success = FlipkartItem()
28382
          self.success.read(iprot)
28383
        else:
28384
          iprot.skip(ftype)
28385
      else:
28386
        iprot.skip(ftype)
28387
      iprot.readFieldEnd()
28388
    iprot.readStructEnd()
28389
 
28390
  def write(self, oprot):
28391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28393
      return
28394
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_result')
28395
    if self.success is not None:
28396
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28397
      self.success.write(oprot)
28398
      oprot.writeFieldEnd()
28399
    oprot.writeFieldStop()
28400
    oprot.writeStructEnd()
28401
 
28402
  def validate(self):
28403
    return
28404
 
28405
 
28406
  def __repr__(self):
28407
    L = ['%s=%r' % (key, value)
28408
      for key, value in self.__dict__.iteritems()]
28409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28410
 
28411
  def __eq__(self, other):
28412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28413
 
28414
  def __ne__(self, other):
28415
    return not (self == other)
10909 vikram.rag 28416
 
11015 kshitij.so 28417
class getMarketplaceHistory_args:
28418
  """
28419
  Attributes:
28420
   - source
28421
   - offset
28422
   - itemId
28423
  """
10909 vikram.rag 28424
 
28425
  thrift_spec = (
11015 kshitij.so 28426
    None, # 0
28427
    (1, TType.I64, 'source', None, None, ), # 1
28428
    (2, TType.I64, 'offset', None, None, ), # 2
28429
    (3, TType.I64, 'itemId', None, None, ), # 3
10909 vikram.rag 28430
  )
28431
 
11015 kshitij.so 28432
  def __init__(self, source=None, offset=None, itemId=None,):
28433
    self.source = source
28434
    self.offset = offset
28435
    self.itemId = itemId
28436
 
10909 vikram.rag 28437
  def read(self, iprot):
28438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28440
      return
28441
    iprot.readStructBegin()
28442
    while True:
28443
      (fname, ftype, fid) = iprot.readFieldBegin()
28444
      if ftype == TType.STOP:
28445
        break
11015 kshitij.so 28446
      if fid == 1:
28447
        if ftype == TType.I64:
28448
          self.source = iprot.readI64();
28449
        else:
28450
          iprot.skip(ftype)
28451
      elif fid == 2:
28452
        if ftype == TType.I64:
28453
          self.offset = iprot.readI64();
28454
        else:
28455
          iprot.skip(ftype)
28456
      elif fid == 3:
28457
        if ftype == TType.I64:
28458
          self.itemId = iprot.readI64();
28459
        else:
28460
          iprot.skip(ftype)
10909 vikram.rag 28461
      else:
28462
        iprot.skip(ftype)
28463
      iprot.readFieldEnd()
28464
    iprot.readStructEnd()
28465
 
28466
  def write(self, oprot):
28467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28469
      return
11015 kshitij.so 28470
    oprot.writeStructBegin('getMarketplaceHistory_args')
28471
    if self.source is not None:
28472
      oprot.writeFieldBegin('source', TType.I64, 1)
28473
      oprot.writeI64(self.source)
28474
      oprot.writeFieldEnd()
28475
    if self.offset is not None:
28476
      oprot.writeFieldBegin('offset', TType.I64, 2)
28477
      oprot.writeI64(self.offset)
28478
      oprot.writeFieldEnd()
28479
    if self.itemId is not None:
28480
      oprot.writeFieldBegin('itemId', TType.I64, 3)
28481
      oprot.writeI64(self.itemId)
28482
      oprot.writeFieldEnd()
10909 vikram.rag 28483
    oprot.writeFieldStop()
28484
    oprot.writeStructEnd()
28485
 
28486
  def validate(self):
28487
    return
28488
 
28489
 
28490
  def __repr__(self):
28491
    L = ['%s=%r' % (key, value)
28492
      for key, value in self.__dict__.iteritems()]
28493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28494
 
28495
  def __eq__(self, other):
28496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28497
 
28498
  def __ne__(self, other):
28499
    return not (self == other)
28500
 
11015 kshitij.so 28501
class getMarketplaceHistory_result:
10909 vikram.rag 28502
  """
28503
  Attributes:
28504
   - success
28505
  """
28506
 
28507
  thrift_spec = (
11015 kshitij.so 28508
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
10909 vikram.rag 28509
  )
28510
 
28511
  def __init__(self, success=None,):
28512
    self.success = success
28513
 
28514
  def read(self, iprot):
28515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28517
      return
28518
    iprot.readStructBegin()
28519
    while True:
28520
      (fname, ftype, fid) = iprot.readFieldBegin()
28521
      if ftype == TType.STOP:
28522
        break
28523
      if fid == 0:
28524
        if ftype == TType.LIST:
28525
          self.success = []
28526
          (_etype623, _size620) = iprot.readListBegin()
28527
          for _i624 in xrange(_size620):
11015 kshitij.so 28528
            _elem625 = MarketplaceHistory()
10909 vikram.rag 28529
            _elem625.read(iprot)
28530
            self.success.append(_elem625)
28531
          iprot.readListEnd()
28532
        else:
28533
          iprot.skip(ftype)
28534
      else:
28535
        iprot.skip(ftype)
28536
      iprot.readFieldEnd()
28537
    iprot.readStructEnd()
28538
 
28539
  def write(self, oprot):
28540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28542
      return
11015 kshitij.so 28543
    oprot.writeStructBegin('getMarketplaceHistory_result')
10909 vikram.rag 28544
    if self.success is not None:
28545
      oprot.writeFieldBegin('success', TType.LIST, 0)
28546
      oprot.writeListBegin(TType.STRUCT, len(self.success))
28547
      for iter626 in self.success:
28548
        iter626.write(oprot)
28549
      oprot.writeListEnd()
28550
      oprot.writeFieldEnd()
28551
    oprot.writeFieldStop()
28552
    oprot.writeStructEnd()
28553
 
28554
  def validate(self):
28555
    return
28556
 
28557
 
28558
  def __repr__(self):
28559
    L = ['%s=%r' % (key, value)
28560
      for key, value in self.__dict__.iteritems()]
28561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28562
 
28563
  def __eq__(self, other):
28564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28565
 
28566
  def __ne__(self, other):
28567
    return not (self == other)
10924 vikram.rag 28568
 
11015 kshitij.so 28569
class getAllFbbListedItems_args:
10924 vikram.rag 28570
 
28571
  thrift_spec = (
28572
  )
28573
 
28574
  def read(self, iprot):
28575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28577
      return
28578
    iprot.readStructBegin()
28579
    while True:
28580
      (fname, ftype, fid) = iprot.readFieldBegin()
28581
      if ftype == TType.STOP:
28582
        break
28583
      else:
28584
        iprot.skip(ftype)
28585
      iprot.readFieldEnd()
28586
    iprot.readStructEnd()
28587
 
28588
  def write(self, oprot):
28589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28591
      return
11015 kshitij.so 28592
    oprot.writeStructBegin('getAllFbbListedItems_args')
10924 vikram.rag 28593
    oprot.writeFieldStop()
28594
    oprot.writeStructEnd()
28595
 
28596
  def validate(self):
28597
    return
28598
 
28599
 
28600
  def __repr__(self):
28601
    L = ['%s=%r' % (key, value)
28602
      for key, value in self.__dict__.iteritems()]
28603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28604
 
28605
  def __eq__(self, other):
28606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28607
 
28608
  def __ne__(self, other):
28609
    return not (self == other)
28610
 
11015 kshitij.so 28611
class getAllFbbListedItems_result:
10924 vikram.rag 28612
  """
28613
  Attributes:
28614
   - success
28615
  """
28616
 
28617
  thrift_spec = (
28618
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
28619
  )
28620
 
28621
  def __init__(self, success=None,):
28622
    self.success = success
28623
 
28624
  def read(self, iprot):
28625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28627
      return
28628
    iprot.readStructBegin()
28629
    while True:
28630
      (fname, ftype, fid) = iprot.readFieldBegin()
28631
      if ftype == TType.STOP:
28632
        break
28633
      if fid == 0:
28634
        if ftype == TType.LIST:
28635
          self.success = []
28636
          (_etype630, _size627) = iprot.readListBegin()
28637
          for _i631 in xrange(_size627):
28638
            _elem632 = Amazonlisted()
28639
            _elem632.read(iprot)
28640
            self.success.append(_elem632)
28641
          iprot.readListEnd()
28642
        else:
28643
          iprot.skip(ftype)
28644
      else:
28645
        iprot.skip(ftype)
28646
      iprot.readFieldEnd()
28647
    iprot.readStructEnd()
28648
 
28649
  def write(self, oprot):
28650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28652
      return
11015 kshitij.so 28653
    oprot.writeStructBegin('getAllFbbListedItems_result')
10924 vikram.rag 28654
    if self.success is not None:
28655
      oprot.writeFieldBegin('success', TType.LIST, 0)
28656
      oprot.writeListBegin(TType.STRUCT, len(self.success))
28657
      for iter633 in self.success:
28658
        iter633.write(oprot)
28659
      oprot.writeListEnd()
28660
      oprot.writeFieldEnd()
28661
    oprot.writeFieldStop()
28662
    oprot.writeStructEnd()
28663
 
28664
  def validate(self):
28665
    return
28666
 
28667
 
28668
  def __repr__(self):
28669
    L = ['%s=%r' % (key, value)
28670
      for key, value in self.__dict__.iteritems()]
28671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28672
 
28673
  def __eq__(self, other):
28674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28675
 
28676
  def __ne__(self, other):
28677
    return not (self == other)
11015 kshitij.so 28678
 
28679
class getAllFbbPricingItems_args:
28680
 
28681
  thrift_spec = (
28682
  )
28683
 
28684
  def read(self, iprot):
28685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28687
      return
28688
    iprot.readStructBegin()
28689
    while True:
28690
      (fname, ftype, fid) = iprot.readFieldBegin()
28691
      if ftype == TType.STOP:
28692
        break
28693
      else:
28694
        iprot.skip(ftype)
28695
      iprot.readFieldEnd()
28696
    iprot.readStructEnd()
28697
 
28698
  def write(self, oprot):
28699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28701
      return
28702
    oprot.writeStructBegin('getAllFbbPricingItems_args')
28703
    oprot.writeFieldStop()
28704
    oprot.writeStructEnd()
28705
 
28706
  def validate(self):
28707
    return
28708
 
28709
 
28710
  def __repr__(self):
28711
    L = ['%s=%r' % (key, value)
28712
      for key, value in self.__dict__.iteritems()]
28713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28714
 
28715
  def __eq__(self, other):
28716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28717
 
28718
  def __ne__(self, other):
28719
    return not (self == other)
28720
 
28721
class getAllFbbPricingItems_result:
28722
  """
28723
  Attributes:
28724
   - success
28725
  """
28726
 
28727
  thrift_spec = (
28728
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
28729
  )
28730
 
28731
  def __init__(self, success=None,):
28732
    self.success = success
28733
 
28734
  def read(self, iprot):
28735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28737
      return
28738
    iprot.readStructBegin()
28739
    while True:
28740
      (fname, ftype, fid) = iprot.readFieldBegin()
28741
      if ftype == TType.STOP:
28742
        break
28743
      if fid == 0:
28744
        if ftype == TType.LIST:
28745
          self.success = []
28746
          (_etype637, _size634) = iprot.readListBegin()
28747
          for _i638 in xrange(_size634):
28748
            _elem639 = Amazonlisted()
28749
            _elem639.read(iprot)
28750
            self.success.append(_elem639)
28751
          iprot.readListEnd()
28752
        else:
28753
          iprot.skip(ftype)
28754
      else:
28755
        iprot.skip(ftype)
28756
      iprot.readFieldEnd()
28757
    iprot.readStructEnd()
28758
 
28759
  def write(self, oprot):
28760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28762
      return
28763
    oprot.writeStructBegin('getAllFbbPricingItems_result')
28764
    if self.success is not None:
28765
      oprot.writeFieldBegin('success', TType.LIST, 0)
28766
      oprot.writeListBegin(TType.STRUCT, len(self.success))
28767
      for iter640 in self.success:
28768
        iter640.write(oprot)
28769
      oprot.writeListEnd()
28770
      oprot.writeFieldEnd()
28771
    oprot.writeFieldStop()
28772
    oprot.writeStructEnd()
28773
 
28774
  def validate(self):
28775
    return
28776
 
28777
 
28778
  def __repr__(self):
28779
    L = ['%s=%r' % (key, value)
28780
      for key, value in self.__dict__.iteritems()]
28781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28782
 
28783
  def __eq__(self, other):
28784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28785
 
28786
  def __ne__(self, other):
28787
    return not (self == other)
28788
 
28789
class getCountForMarketplaceHistory_args:
28790
  """
28791
  Attributes:
28792
   - source
28793
   - itemId
28794
  """
28795
 
28796
  thrift_spec = (
28797
    None, # 0
28798
    (1, TType.I64, 'source', None, None, ), # 1
28799
    (2, TType.I64, 'itemId', None, None, ), # 2
28800
  )
28801
 
28802
  def __init__(self, source=None, itemId=None,):
28803
    self.source = source
28804
    self.itemId = itemId
28805
 
28806
  def read(self, iprot):
28807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28809
      return
28810
    iprot.readStructBegin()
28811
    while True:
28812
      (fname, ftype, fid) = iprot.readFieldBegin()
28813
      if ftype == TType.STOP:
28814
        break
28815
      if fid == 1:
28816
        if ftype == TType.I64:
28817
          self.source = iprot.readI64();
28818
        else:
28819
          iprot.skip(ftype)
28820
      elif fid == 2:
28821
        if ftype == TType.I64:
28822
          self.itemId = iprot.readI64();
28823
        else:
28824
          iprot.skip(ftype)
28825
      else:
28826
        iprot.skip(ftype)
28827
      iprot.readFieldEnd()
28828
    iprot.readStructEnd()
28829
 
28830
  def write(self, oprot):
28831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28833
      return
28834
    oprot.writeStructBegin('getCountForMarketplaceHistory_args')
28835
    if self.source is not None:
28836
      oprot.writeFieldBegin('source', TType.I64, 1)
28837
      oprot.writeI64(self.source)
28838
      oprot.writeFieldEnd()
28839
    if self.itemId is not None:
28840
      oprot.writeFieldBegin('itemId', TType.I64, 2)
28841
      oprot.writeI64(self.itemId)
28842
      oprot.writeFieldEnd()
28843
    oprot.writeFieldStop()
28844
    oprot.writeStructEnd()
28845
 
28846
  def validate(self):
28847
    return
28848
 
28849
 
28850
  def __repr__(self):
28851
    L = ['%s=%r' % (key, value)
28852
      for key, value in self.__dict__.iteritems()]
28853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28854
 
28855
  def __eq__(self, other):
28856
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28857
 
28858
  def __ne__(self, other):
28859
    return not (self == other)
28860
 
28861
class getCountForMarketplaceHistory_result:
28862
  """
28863
  Attributes:
28864
   - success
28865
  """
28866
 
28867
  thrift_spec = (
28868
    (0, TType.I64, 'success', None, None, ), # 0
28869
  )
28870
 
28871
  def __init__(self, success=None,):
28872
    self.success = success
28873
 
28874
  def read(self, iprot):
28875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28877
      return
28878
    iprot.readStructBegin()
28879
    while True:
28880
      (fname, ftype, fid) = iprot.readFieldBegin()
28881
      if ftype == TType.STOP:
28882
        break
28883
      if fid == 0:
28884
        if ftype == TType.I64:
28885
          self.success = iprot.readI64();
28886
        else:
28887
          iprot.skip(ftype)
28888
      else:
28889
        iprot.skip(ftype)
28890
      iprot.readFieldEnd()
28891
    iprot.readStructEnd()
28892
 
28893
  def write(self, oprot):
28894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28896
      return
28897
    oprot.writeStructBegin('getCountForMarketplaceHistory_result')
28898
    if self.success is not None:
28899
      oprot.writeFieldBegin('success', TType.I64, 0)
28900
      oprot.writeI64(self.success)
28901
      oprot.writeFieldEnd()
28902
    oprot.writeFieldStop()
28903
    oprot.writeStructEnd()
28904
 
28905
  def validate(self):
28906
    return
28907
 
28908
 
28909
  def __repr__(self):
28910
    L = ['%s=%r' % (key, value)
28911
      for key, value in self.__dict__.iteritems()]
28912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28913
 
28914
  def __eq__(self, other):
28915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28916
 
28917
  def __ne__(self, other):
28918
    return not (self == other)
28919
 
28920
class getMarketplaceHistoryByDate_args:
28921
  """
28922
  Attributes:
28923
   - source
28924
   - startDate
28925
   - endDate
28926
   - offset
28927
   - limit
28928
   - itemId
28929
  """
28930
 
28931
  thrift_spec = (
28932
    None, # 0
28933
    (1, TType.I64, 'source', None, None, ), # 1
28934
    (2, TType.I64, 'startDate', None, None, ), # 2
28935
    (3, TType.I64, 'endDate', None, None, ), # 3
28936
    (4, TType.I64, 'offset', None, None, ), # 4
28937
    (5, TType.I64, 'limit', None, None, ), # 5
28938
    (6, TType.I64, 'itemId', None, None, ), # 6
28939
  )
28940
 
28941
  def __init__(self, source=None, startDate=None, endDate=None, offset=None, limit=None, itemId=None,):
28942
    self.source = source
28943
    self.startDate = startDate
28944
    self.endDate = endDate
28945
    self.offset = offset
28946
    self.limit = limit
28947
    self.itemId = itemId
28948
 
28949
  def read(self, iprot):
28950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28952
      return
28953
    iprot.readStructBegin()
28954
    while True:
28955
      (fname, ftype, fid) = iprot.readFieldBegin()
28956
      if ftype == TType.STOP:
28957
        break
28958
      if fid == 1:
28959
        if ftype == TType.I64:
28960
          self.source = iprot.readI64();
28961
        else:
28962
          iprot.skip(ftype)
28963
      elif fid == 2:
28964
        if ftype == TType.I64:
28965
          self.startDate = iprot.readI64();
28966
        else:
28967
          iprot.skip(ftype)
28968
      elif fid == 3:
28969
        if ftype == TType.I64:
28970
          self.endDate = iprot.readI64();
28971
        else:
28972
          iprot.skip(ftype)
28973
      elif fid == 4:
28974
        if ftype == TType.I64:
28975
          self.offset = iprot.readI64();
28976
        else:
28977
          iprot.skip(ftype)
28978
      elif fid == 5:
28979
        if ftype == TType.I64:
28980
          self.limit = iprot.readI64();
28981
        else:
28982
          iprot.skip(ftype)
28983
      elif fid == 6:
28984
        if ftype == TType.I64:
28985
          self.itemId = iprot.readI64();
28986
        else:
28987
          iprot.skip(ftype)
28988
      else:
28989
        iprot.skip(ftype)
28990
      iprot.readFieldEnd()
28991
    iprot.readStructEnd()
28992
 
28993
  def write(self, oprot):
28994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28996
      return
28997
    oprot.writeStructBegin('getMarketplaceHistoryByDate_args')
28998
    if self.source is not None:
28999
      oprot.writeFieldBegin('source', TType.I64, 1)
29000
      oprot.writeI64(self.source)
29001
      oprot.writeFieldEnd()
29002
    if self.startDate is not None:
29003
      oprot.writeFieldBegin('startDate', TType.I64, 2)
29004
      oprot.writeI64(self.startDate)
29005
      oprot.writeFieldEnd()
29006
    if self.endDate is not None:
29007
      oprot.writeFieldBegin('endDate', TType.I64, 3)
29008
      oprot.writeI64(self.endDate)
29009
      oprot.writeFieldEnd()
29010
    if self.offset is not None:
29011
      oprot.writeFieldBegin('offset', TType.I64, 4)
29012
      oprot.writeI64(self.offset)
29013
      oprot.writeFieldEnd()
29014
    if self.limit is not None:
29015
      oprot.writeFieldBegin('limit', TType.I64, 5)
29016
      oprot.writeI64(self.limit)
29017
      oprot.writeFieldEnd()
29018
    if self.itemId is not None:
29019
      oprot.writeFieldBegin('itemId', TType.I64, 6)
29020
      oprot.writeI64(self.itemId)
29021
      oprot.writeFieldEnd()
29022
    oprot.writeFieldStop()
29023
    oprot.writeStructEnd()
29024
 
29025
  def validate(self):
29026
    return
29027
 
29028
 
29029
  def __repr__(self):
29030
    L = ['%s=%r' % (key, value)
29031
      for key, value in self.__dict__.iteritems()]
29032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29033
 
29034
  def __eq__(self, other):
29035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29036
 
29037
  def __ne__(self, other):
29038
    return not (self == other)
29039
 
29040
class getMarketplaceHistoryByDate_result:
29041
  """
29042
  Attributes:
29043
   - success
29044
  """
29045
 
29046
  thrift_spec = (
29047
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
29048
  )
29049
 
29050
  def __init__(self, success=None,):
29051
    self.success = success
29052
 
29053
  def read(self, iprot):
29054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29056
      return
29057
    iprot.readStructBegin()
29058
    while True:
29059
      (fname, ftype, fid) = iprot.readFieldBegin()
29060
      if ftype == TType.STOP:
29061
        break
29062
      if fid == 0:
29063
        if ftype == TType.LIST:
29064
          self.success = []
29065
          (_etype644, _size641) = iprot.readListBegin()
29066
          for _i645 in xrange(_size641):
29067
            _elem646 = MarketplaceHistory()
29068
            _elem646.read(iprot)
29069
            self.success.append(_elem646)
29070
          iprot.readListEnd()
29071
        else:
29072
          iprot.skip(ftype)
29073
      else:
29074
        iprot.skip(ftype)
29075
      iprot.readFieldEnd()
29076
    iprot.readStructEnd()
29077
 
29078
  def write(self, oprot):
29079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29081
      return
29082
    oprot.writeStructBegin('getMarketplaceHistoryByDate_result')
29083
    if self.success is not None:
29084
      oprot.writeFieldBegin('success', TType.LIST, 0)
29085
      oprot.writeListBegin(TType.STRUCT, len(self.success))
29086
      for iter647 in self.success:
29087
        iter647.write(oprot)
29088
      oprot.writeListEnd()
29089
      oprot.writeFieldEnd()
29090
    oprot.writeFieldStop()
29091
    oprot.writeStructEnd()
29092
 
29093
  def validate(self):
29094
    return
29095
 
29096
 
29097
  def __repr__(self):
29098
    L = ['%s=%r' % (key, value)
29099
      for key, value in self.__dict__.iteritems()]
29100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29101
 
29102
  def __eq__(self, other):
29103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29104
 
29105
  def __ne__(self, other):
29106
    return not (self == other)
11531 vikram.rag 29107
 
29108
class getPrivateDealDetails_args:
29109
  """
29110
  Attributes:
29111
   - item_id
29112
  """
29113
 
29114
  thrift_spec = (
29115
    None, # 0
29116
    (1, TType.I64, 'item_id', None, None, ), # 1
29117
  )
29118
 
29119
  def __init__(self, item_id=None,):
29120
    self.item_id = item_id
29121
 
29122
  def read(self, iprot):
29123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29125
      return
29126
    iprot.readStructBegin()
29127
    while True:
29128
      (fname, ftype, fid) = iprot.readFieldBegin()
29129
      if ftype == TType.STOP:
29130
        break
29131
      if fid == 1:
29132
        if ftype == TType.I64:
29133
          self.item_id = iprot.readI64();
29134
        else:
29135
          iprot.skip(ftype)
29136
      else:
29137
        iprot.skip(ftype)
29138
      iprot.readFieldEnd()
29139
    iprot.readStructEnd()
29140
 
29141
  def write(self, oprot):
29142
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29143
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29144
      return
29145
    oprot.writeStructBegin('getPrivateDealDetails_args')
29146
    if self.item_id is not None:
29147
      oprot.writeFieldBegin('item_id', TType.I64, 1)
29148
      oprot.writeI64(self.item_id)
29149
      oprot.writeFieldEnd()
29150
    oprot.writeFieldStop()
29151
    oprot.writeStructEnd()
29152
 
29153
  def validate(self):
29154
    return
29155
 
29156
 
29157
  def __repr__(self):
29158
    L = ['%s=%r' % (key, value)
29159
      for key, value in self.__dict__.iteritems()]
29160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29161
 
29162
  def __eq__(self, other):
29163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29164
 
29165
  def __ne__(self, other):
29166
    return not (self == other)
29167
 
29168
class getPrivateDealDetails_result:
29169
  """
29170
  Attributes:
29171
   - success
29172
  """
29173
 
29174
  thrift_spec = (
29175
    (0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 0
29176
  )
29177
 
29178
  def __init__(self, success=None,):
29179
    self.success = success
29180
 
29181
  def read(self, iprot):
29182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29184
      return
29185
    iprot.readStructBegin()
29186
    while True:
29187
      (fname, ftype, fid) = iprot.readFieldBegin()
29188
      if ftype == TType.STOP:
29189
        break
29190
      if fid == 0:
29191
        if ftype == TType.STRUCT:
29192
          self.success = PrivateDeal()
29193
          self.success.read(iprot)
29194
        else:
29195
          iprot.skip(ftype)
29196
      else:
29197
        iprot.skip(ftype)
29198
      iprot.readFieldEnd()
29199
    iprot.readStructEnd()
29200
 
29201
  def write(self, oprot):
29202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29204
      return
29205
    oprot.writeStructBegin('getPrivateDealDetails_result')
29206
    if self.success is not None:
29207
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29208
      self.success.write(oprot)
29209
      oprot.writeFieldEnd()
29210
    oprot.writeFieldStop()
29211
    oprot.writeStructEnd()
29212
 
29213
  def validate(self):
29214
    return
29215
 
29216
 
29217
  def __repr__(self):
29218
    L = ['%s=%r' % (key, value)
29219
      for key, value in self.__dict__.iteritems()]
29220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29221
 
29222
  def __eq__(self, other):
29223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29224
 
29225
  def __ne__(self, other):
29226
    return not (self == other)
29227
 
29228
class getPrivateDealItems_args:
29229
  """
29230
  Attributes:
29231
   - offset
29232
   - limit
29233
  """
29234
 
29235
  thrift_spec = (
29236
    None, # 0
29237
    (1, TType.I64, 'offset', None, None, ), # 1
29238
    (2, TType.I64, 'limit', None, None, ), # 2
29239
  )
29240
 
29241
  def __init__(self, offset=None, limit=None,):
29242
    self.offset = offset
29243
    self.limit = limit
29244
 
29245
  def read(self, iprot):
29246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29248
      return
29249
    iprot.readStructBegin()
29250
    while True:
29251
      (fname, ftype, fid) = iprot.readFieldBegin()
29252
      if ftype == TType.STOP:
29253
        break
29254
      if fid == 1:
29255
        if ftype == TType.I64:
29256
          self.offset = iprot.readI64();
29257
        else:
29258
          iprot.skip(ftype)
29259
      elif fid == 2:
29260
        if ftype == TType.I64:
29261
          self.limit = iprot.readI64();
29262
        else:
29263
          iprot.skip(ftype)
29264
      else:
29265
        iprot.skip(ftype)
29266
      iprot.readFieldEnd()
29267
    iprot.readStructEnd()
29268
 
29269
  def write(self, oprot):
29270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29272
      return
29273
    oprot.writeStructBegin('getPrivateDealItems_args')
29274
    if self.offset is not None:
29275
      oprot.writeFieldBegin('offset', TType.I64, 1)
29276
      oprot.writeI64(self.offset)
29277
      oprot.writeFieldEnd()
29278
    if self.limit is not None:
29279
      oprot.writeFieldBegin('limit', TType.I64, 2)
29280
      oprot.writeI64(self.limit)
29281
      oprot.writeFieldEnd()
29282
    oprot.writeFieldStop()
29283
    oprot.writeStructEnd()
29284
 
29285
  def validate(self):
29286
    return
29287
 
29288
 
29289
  def __repr__(self):
29290
    L = ['%s=%r' % (key, value)
29291
      for key, value in self.__dict__.iteritems()]
29292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29293
 
29294
  def __eq__(self, other):
29295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29296
 
29297
  def __ne__(self, other):
29298
    return not (self == other)
29299
 
29300
class getPrivateDealItems_result:
29301
  """
29302
  Attributes:
29303
   - success
29304
  """
29305
 
29306
  thrift_spec = (
29307
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
29308
  )
29309
 
29310
  def __init__(self, success=None,):
29311
    self.success = success
29312
 
29313
  def read(self, iprot):
29314
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29315
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29316
      return
29317
    iprot.readStructBegin()
29318
    while True:
29319
      (fname, ftype, fid) = iprot.readFieldBegin()
29320
      if ftype == TType.STOP:
29321
        break
29322
      if fid == 0:
29323
        if ftype == TType.LIST:
29324
          self.success = []
29325
          (_etype651, _size648) = iprot.readListBegin()
29326
          for _i652 in xrange(_size648):
29327
            _elem653 = Item()
29328
            _elem653.read(iprot)
29329
            self.success.append(_elem653)
29330
          iprot.readListEnd()
29331
        else:
29332
          iprot.skip(ftype)
29333
      else:
29334
        iprot.skip(ftype)
29335
      iprot.readFieldEnd()
29336
    iprot.readStructEnd()
29337
 
29338
  def write(self, oprot):
29339
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29340
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29341
      return
29342
    oprot.writeStructBegin('getPrivateDealItems_result')
29343
    if self.success is not None:
29344
      oprot.writeFieldBegin('success', TType.LIST, 0)
29345
      oprot.writeListBegin(TType.STRUCT, len(self.success))
29346
      for iter654 in self.success:
29347
        iter654.write(oprot)
29348
      oprot.writeListEnd()
29349
      oprot.writeFieldEnd()
29350
    oprot.writeFieldStop()
29351
    oprot.writeStructEnd()
29352
 
29353
  def validate(self):
29354
    return
29355
 
29356
 
29357
  def __repr__(self):
29358
    L = ['%s=%r' % (key, value)
29359
      for key, value in self.__dict__.iteritems()]
29360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29361
 
29362
  def __eq__(self, other):
29363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29364
 
29365
  def __ne__(self, other):
29366
    return not (self == other)
29367
 
11592 amit.gupta 29368
class getAllActivePrivateDeals_args:
11653 amit.gupta 29369
  """
29370
  Attributes:
29371
   - itemIds
29372
   - daysDelta
29373
  """
11592 amit.gupta 29374
 
29375
  thrift_spec = (
11653 amit.gupta 29376
    None, # 0
29377
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
29378
    (2, TType.I64, 'daysDelta', None, None, ), # 2
11592 amit.gupta 29379
  )
29380
 
11653 amit.gupta 29381
  def __init__(self, itemIds=None, daysDelta=None,):
29382
    self.itemIds = itemIds
29383
    self.daysDelta = daysDelta
29384
 
11592 amit.gupta 29385
  def read(self, iprot):
29386
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29387
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29388
      return
29389
    iprot.readStructBegin()
29390
    while True:
29391
      (fname, ftype, fid) = iprot.readFieldBegin()
29392
      if ftype == TType.STOP:
29393
        break
11653 amit.gupta 29394
      if fid == 1:
29395
        if ftype == TType.LIST:
29396
          self.itemIds = []
29397
          (_etype658, _size655) = iprot.readListBegin()
29398
          for _i659 in xrange(_size655):
29399
            _elem660 = iprot.readI64();
29400
            self.itemIds.append(_elem660)
29401
          iprot.readListEnd()
29402
        else:
29403
          iprot.skip(ftype)
29404
      elif fid == 2:
29405
        if ftype == TType.I64:
29406
          self.daysDelta = iprot.readI64();
29407
        else:
29408
          iprot.skip(ftype)
11592 amit.gupta 29409
      else:
29410
        iprot.skip(ftype)
29411
      iprot.readFieldEnd()
29412
    iprot.readStructEnd()
29413
 
29414
  def write(self, oprot):
29415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29417
      return
29418
    oprot.writeStructBegin('getAllActivePrivateDeals_args')
11653 amit.gupta 29419
    if self.itemIds is not None:
29420
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
29421
      oprot.writeListBegin(TType.I64, len(self.itemIds))
29422
      for iter661 in self.itemIds:
29423
        oprot.writeI64(iter661)
29424
      oprot.writeListEnd()
29425
      oprot.writeFieldEnd()
29426
    if self.daysDelta is not None:
29427
      oprot.writeFieldBegin('daysDelta', TType.I64, 2)
29428
      oprot.writeI64(self.daysDelta)
29429
      oprot.writeFieldEnd()
11592 amit.gupta 29430
    oprot.writeFieldStop()
29431
    oprot.writeStructEnd()
29432
 
29433
  def validate(self):
29434
    return
29435
 
29436
 
29437
  def __repr__(self):
29438
    L = ['%s=%r' % (key, value)
29439
      for key, value in self.__dict__.iteritems()]
29440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29441
 
29442
  def __eq__(self, other):
29443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29444
 
29445
  def __ne__(self, other):
29446
    return not (self == other)
29447
 
29448
class getAllActivePrivateDeals_result:
29449
  """
29450
  Attributes:
29451
   - success
29452
  """
29453
 
29454
  thrift_spec = (
29455
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(PrivateDeal, PrivateDeal.thrift_spec)), None, ), # 0
29456
  )
29457
 
29458
  def __init__(self, success=None,):
29459
    self.success = success
29460
 
29461
  def read(self, iprot):
29462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29464
      return
29465
    iprot.readStructBegin()
29466
    while True:
29467
      (fname, ftype, fid) = iprot.readFieldBegin()
29468
      if ftype == TType.STOP:
29469
        break
29470
      if fid == 0:
29471
        if ftype == TType.MAP:
29472
          self.success = {}
11653 amit.gupta 29473
          (_ktype663, _vtype664, _size662 ) = iprot.readMapBegin() 
29474
          for _i666 in xrange(_size662):
29475
            _key667 = iprot.readI64();
29476
            _val668 = PrivateDeal()
29477
            _val668.read(iprot)
29478
            self.success[_key667] = _val668
11592 amit.gupta 29479
          iprot.readMapEnd()
29480
        else:
29481
          iprot.skip(ftype)
29482
      else:
29483
        iprot.skip(ftype)
29484
      iprot.readFieldEnd()
29485
    iprot.readStructEnd()
29486
 
29487
  def write(self, oprot):
29488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29490
      return
29491
    oprot.writeStructBegin('getAllActivePrivateDeals_result')
29492
    if self.success is not None:
29493
      oprot.writeFieldBegin('success', TType.MAP, 0)
29494
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
11653 amit.gupta 29495
      for kiter669,viter670 in self.success.items():
29496
        oprot.writeI64(kiter669)
29497
        viter670.write(oprot)
11592 amit.gupta 29498
      oprot.writeMapEnd()
29499
      oprot.writeFieldEnd()
29500
    oprot.writeFieldStop()
29501
    oprot.writeStructEnd()
29502
 
29503
  def validate(self):
29504
    return
29505
 
29506
 
29507
  def __repr__(self):
29508
    L = ['%s=%r' % (key, value)
29509
      for key, value in self.__dict__.iteritems()]
29510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29511
 
29512
  def __eq__(self, other):
29513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29514
 
29515
  def __ne__(self, other):
29516
    return not (self == other)
29517
 
11531 vikram.rag 29518
class addOrUpdatePrivateDeal_args:
29519
  """
29520
  Attributes:
29521
   - privateDeal
29522
  """
29523
 
29524
  thrift_spec = (
29525
    None, # 0
29526
    (1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1
29527
  )
29528
 
29529
  def __init__(self, privateDeal=None,):
29530
    self.privateDeal = privateDeal
29531
 
29532
  def read(self, iprot):
29533
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29534
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29535
      return
29536
    iprot.readStructBegin()
29537
    while True:
29538
      (fname, ftype, fid) = iprot.readFieldBegin()
29539
      if ftype == TType.STOP:
29540
        break
29541
      if fid == 1:
29542
        if ftype == TType.STRUCT:
29543
          self.privateDeal = PrivateDeal()
29544
          self.privateDeal.read(iprot)
29545
        else:
29546
          iprot.skip(ftype)
29547
      else:
29548
        iprot.skip(ftype)
29549
      iprot.readFieldEnd()
29550
    iprot.readStructEnd()
29551
 
29552
  def write(self, oprot):
29553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29555
      return
29556
    oprot.writeStructBegin('addOrUpdatePrivateDeal_args')
29557
    if self.privateDeal is not None:
29558
      oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)
29559
      self.privateDeal.write(oprot)
29560
      oprot.writeFieldEnd()
29561
    oprot.writeFieldStop()
29562
    oprot.writeStructEnd()
29563
 
29564
  def validate(self):
29565
    return
29566
 
29567
 
29568
  def __repr__(self):
29569
    L = ['%s=%r' % (key, value)
29570
      for key, value in self.__dict__.iteritems()]
29571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29572
 
29573
  def __eq__(self, other):
29574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29575
 
29576
  def __ne__(self, other):
29577
    return not (self == other)
29578
 
29579
class addOrUpdatePrivateDeal_result:
29580
  """
29581
  Attributes:
29582
   - success
29583
  """
29584
 
29585
  thrift_spec = (
29586
    (0, TType.BOOL, 'success', None, None, ), # 0
29587
  )
29588
 
29589
  def __init__(self, success=None,):
29590
    self.success = success
29591
 
29592
  def read(self, iprot):
29593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29595
      return
29596
    iprot.readStructBegin()
29597
    while True:
29598
      (fname, ftype, fid) = iprot.readFieldBegin()
29599
      if ftype == TType.STOP:
29600
        break
29601
      if fid == 0:
29602
        if ftype == TType.BOOL:
29603
          self.success = iprot.readBool();
29604
        else:
29605
          iprot.skip(ftype)
29606
      else:
29607
        iprot.skip(ftype)
29608
      iprot.readFieldEnd()
29609
    iprot.readStructEnd()
29610
 
29611
  def write(self, oprot):
29612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29614
      return
29615
    oprot.writeStructBegin('addOrUpdatePrivateDeal_result')
29616
    if self.success is not None:
29617
      oprot.writeFieldBegin('success', TType.BOOL, 0)
29618
      oprot.writeBool(self.success)
29619
      oprot.writeFieldEnd()
29620
    oprot.writeFieldStop()
29621
    oprot.writeStructEnd()
29622
 
29623
  def validate(self):
29624
    return
29625
 
29626
 
29627
  def __repr__(self):
29628
    L = ['%s=%r' % (key, value)
29629
      for key, value in self.__dict__.iteritems()]
29630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29631
 
29632
  def __eq__(self, other):
29633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29634
 
29635
  def __ne__(self, other):
29636
    return not (self == other)
11635 vikram.rag 29637
 
29638
class getPrivateDealsCatalogIds_args:
29639
  """
29640
  Attributes:
29641
   - beginIndex
29642
   - totalItems
29643
  """
29644
 
29645
  thrift_spec = (
29646
    None, # 0
29647
    (1, TType.I64, 'beginIndex', None, None, ), # 1
29648
    (2, TType.I64, 'totalItems', None, None, ), # 2
29649
  )
29650
 
29651
  def __init__(self, beginIndex=None, totalItems=None,):
29652
    self.beginIndex = beginIndex
29653
    self.totalItems = totalItems
29654
 
29655
  def read(self, iprot):
29656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29658
      return
29659
    iprot.readStructBegin()
29660
    while True:
29661
      (fname, ftype, fid) = iprot.readFieldBegin()
29662
      if ftype == TType.STOP:
29663
        break
29664
      if fid == 1:
29665
        if ftype == TType.I64:
29666
          self.beginIndex = iprot.readI64();
29667
        else:
29668
          iprot.skip(ftype)
29669
      elif fid == 2:
29670
        if ftype == TType.I64:
29671
          self.totalItems = iprot.readI64();
29672
        else:
29673
          iprot.skip(ftype)
29674
      else:
29675
        iprot.skip(ftype)
29676
      iprot.readFieldEnd()
29677
    iprot.readStructEnd()
29678
 
29679
  def write(self, oprot):
29680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29682
      return
29683
    oprot.writeStructBegin('getPrivateDealsCatalogIds_args')
29684
    if self.beginIndex is not None:
29685
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
29686
      oprot.writeI64(self.beginIndex)
29687
      oprot.writeFieldEnd()
29688
    if self.totalItems is not None:
29689
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
29690
      oprot.writeI64(self.totalItems)
29691
      oprot.writeFieldEnd()
29692
    oprot.writeFieldStop()
29693
    oprot.writeStructEnd()
29694
 
29695
  def validate(self):
29696
    return
29697
 
29698
 
29699
  def __repr__(self):
29700
    L = ['%s=%r' % (key, value)
29701
      for key, value in self.__dict__.iteritems()]
29702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29703
 
29704
  def __eq__(self, other):
29705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29706
 
29707
  def __ne__(self, other):
29708
    return not (self == other)
29709
 
29710
class getPrivateDealsCatalogIds_result:
29711
  """
29712
  Attributes:
29713
   - success
29714
   - cex
29715
  """
29716
 
29717
  thrift_spec = (
29718
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
29719
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
29720
  )
29721
 
29722
  def __init__(self, success=None, cex=None,):
29723
    self.success = success
29724
    self.cex = cex
29725
 
29726
  def read(self, iprot):
29727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29729
      return
29730
    iprot.readStructBegin()
29731
    while True:
29732
      (fname, ftype, fid) = iprot.readFieldBegin()
29733
      if ftype == TType.STOP:
29734
        break
29735
      if fid == 0:
29736
        if ftype == TType.LIST:
29737
          self.success = []
11653 amit.gupta 29738
          (_etype674, _size671) = iprot.readListBegin()
29739
          for _i675 in xrange(_size671):
29740
            _elem676 = iprot.readI64();
29741
            self.success.append(_elem676)
11635 vikram.rag 29742
          iprot.readListEnd()
29743
        else:
29744
          iprot.skip(ftype)
29745
      elif fid == 1:
29746
        if ftype == TType.STRUCT:
29747
          self.cex = CatalogServiceException()
29748
          self.cex.read(iprot)
29749
        else:
29750
          iprot.skip(ftype)
29751
      else:
29752
        iprot.skip(ftype)
29753
      iprot.readFieldEnd()
29754
    iprot.readStructEnd()
29755
 
29756
  def write(self, oprot):
29757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29759
      return
29760
    oprot.writeStructBegin('getPrivateDealsCatalogIds_result')
29761
    if self.success is not None:
29762
      oprot.writeFieldBegin('success', TType.LIST, 0)
29763
      oprot.writeListBegin(TType.I64, len(self.success))
11653 amit.gupta 29764
      for iter677 in self.success:
29765
        oprot.writeI64(iter677)
11635 vikram.rag 29766
      oprot.writeListEnd()
29767
      oprot.writeFieldEnd()
29768
    if self.cex is not None:
29769
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
29770
      self.cex.write(oprot)
29771
      oprot.writeFieldEnd()
29772
    oprot.writeFieldStop()
29773
    oprot.writeStructEnd()
29774
 
29775
  def validate(self):
29776
    return
29777
 
29778
 
29779
  def __repr__(self):
29780
    L = ['%s=%r' % (key, value)
29781
      for key, value in self.__dict__.iteritems()]
29782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29783
 
29784
  def __eq__(self, other):
29785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29786
 
29787
  def __ne__(self, other):
29788
    return not (self == other)
11645 amit.gupta 29789
 
29790
class getPrivateDealsCount_args:
29791
 
29792
  thrift_spec = (
29793
  )
29794
 
29795
  def read(self, iprot):
29796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29798
      return
29799
    iprot.readStructBegin()
29800
    while True:
29801
      (fname, ftype, fid) = iprot.readFieldBegin()
29802
      if ftype == TType.STOP:
29803
        break
29804
      else:
29805
        iprot.skip(ftype)
29806
      iprot.readFieldEnd()
29807
    iprot.readStructEnd()
29808
 
29809
  def write(self, oprot):
29810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29812
      return
29813
    oprot.writeStructBegin('getPrivateDealsCount_args')
29814
    oprot.writeFieldStop()
29815
    oprot.writeStructEnd()
29816
 
29817
  def validate(self):
29818
    return
29819
 
29820
 
29821
  def __repr__(self):
29822
    L = ['%s=%r' % (key, value)
29823
      for key, value in self.__dict__.iteritems()]
29824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29825
 
29826
  def __eq__(self, other):
29827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29828
 
29829
  def __ne__(self, other):
29830
    return not (self == other)
29831
 
29832
class getPrivateDealsCount_result:
29833
  """
29834
  Attributes:
29835
   - success
29836
  """
29837
 
29838
  thrift_spec = (
29839
    (0, TType.I32, 'success', None, None, ), # 0
29840
  )
29841
 
29842
  def __init__(self, success=None,):
29843
    self.success = success
29844
 
29845
  def read(self, iprot):
29846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29848
      return
29849
    iprot.readStructBegin()
29850
    while True:
29851
      (fname, ftype, fid) = iprot.readFieldBegin()
29852
      if ftype == TType.STOP:
29853
        break
29854
      if fid == 0:
29855
        if ftype == TType.I32:
29856
          self.success = iprot.readI32();
29857
        else:
29858
          iprot.skip(ftype)
29859
      else:
29860
        iprot.skip(ftype)
29861
      iprot.readFieldEnd()
29862
    iprot.readStructEnd()
29863
 
29864
  def write(self, oprot):
29865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29867
      return
29868
    oprot.writeStructBegin('getPrivateDealsCount_result')
29869
    if self.success is not None:
29870
      oprot.writeFieldBegin('success', TType.I32, 0)
29871
      oprot.writeI32(self.success)
29872
      oprot.writeFieldEnd()
29873
    oprot.writeFieldStop()
29874
    oprot.writeStructEnd()
29875
 
29876
  def validate(self):
29877
    return
29878
 
29879
 
29880
  def __repr__(self):
29881
    L = ['%s=%r' % (key, value)
29882
      for key, value in self.__dict__.iteritems()]
29883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29884
 
29885
  def __eq__(self, other):
29886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29887
 
29888
  def __ne__(self, other):
29889
    return not (self == other)
11905 kshitij.so 29890
 
29891
class getAmazonOutSyncItems_args:
29892
  """
29893
  Attributes:
29894
   - item_id
29895
  """
29896
 
29897
  thrift_spec = (
29898
    None, # 0
29899
    (1, TType.I64, 'item_id', None, None, ), # 1
29900
  )
29901
 
29902
  def __init__(self, item_id=None,):
29903
    self.item_id = item_id
29904
 
29905
  def read(self, iprot):
29906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29908
      return
29909
    iprot.readStructBegin()
29910
    while True:
29911
      (fname, ftype, fid) = iprot.readFieldBegin()
29912
      if ftype == TType.STOP:
29913
        break
29914
      if fid == 1:
29915
        if ftype == TType.I64:
29916
          self.item_id = iprot.readI64();
29917
        else:
29918
          iprot.skip(ftype)
29919
      else:
29920
        iprot.skip(ftype)
29921
      iprot.readFieldEnd()
29922
    iprot.readStructEnd()
29923
 
29924
  def write(self, oprot):
29925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29927
      return
29928
    oprot.writeStructBegin('getAmazonOutSyncItems_args')
29929
    if self.item_id is not None:
29930
      oprot.writeFieldBegin('item_id', TType.I64, 1)
29931
      oprot.writeI64(self.item_id)
29932
      oprot.writeFieldEnd()
29933
    oprot.writeFieldStop()
29934
    oprot.writeStructEnd()
29935
 
29936
  def validate(self):
29937
    return
29938
 
29939
 
29940
  def __repr__(self):
29941
    L = ['%s=%r' % (key, value)
29942
      for key, value in self.__dict__.iteritems()]
29943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29944
 
29945
  def __eq__(self, other):
29946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29947
 
29948
  def __ne__(self, other):
29949
    return not (self == other)
29950
 
29951
class getAmazonOutSyncItems_result:
29952
  """
29953
  Attributes:
29954
   - success
29955
  """
29956
 
29957
  thrift_spec = (
29958
    (0, TType.STRUCT, 'success', (AmazonOutOfSync, AmazonOutOfSync.thrift_spec), None, ), # 0
29959
  )
29960
 
29961
  def __init__(self, success=None,):
29962
    self.success = success
29963
 
29964
  def read(self, iprot):
29965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29967
      return
29968
    iprot.readStructBegin()
29969
    while True:
29970
      (fname, ftype, fid) = iprot.readFieldBegin()
29971
      if ftype == TType.STOP:
29972
        break
29973
      if fid == 0:
29974
        if ftype == TType.STRUCT:
29975
          self.success = AmazonOutOfSync()
29976
          self.success.read(iprot)
29977
        else:
29978
          iprot.skip(ftype)
29979
      else:
29980
        iprot.skip(ftype)
29981
      iprot.readFieldEnd()
29982
    iprot.readStructEnd()
29983
 
29984
  def write(self, oprot):
29985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29987
      return
29988
    oprot.writeStructBegin('getAmazonOutSyncItems_result')
29989
    if self.success is not None:
29990
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29991
      self.success.write(oprot)
29992
      oprot.writeFieldEnd()
29993
    oprot.writeFieldStop()
29994
    oprot.writeStructEnd()
29995
 
29996
  def validate(self):
29997
    return
29998
 
29999
 
30000
  def __repr__(self):
30001
    L = ['%s=%r' % (key, value)
30002
      for key, value in self.__dict__.iteritems()]
30003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30004
 
30005
  def __eq__(self, other):
30006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30007
 
30008
  def __ne__(self, other):
30009
    return not (self == other)
30010
 
30011
class getAllPrivateDealsComparison_args:
30012
 
30013
  thrift_spec = (
30014
  )
30015
 
30016
  def read(self, iprot):
30017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30019
      return
30020
    iprot.readStructBegin()
30021
    while True:
30022
      (fname, ftype, fid) = iprot.readFieldBegin()
30023
      if ftype == TType.STOP:
30024
        break
30025
      else:
30026
        iprot.skip(ftype)
30027
      iprot.readFieldEnd()
30028
    iprot.readStructEnd()
30029
 
30030
  def write(self, oprot):
30031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30033
      return
30034
    oprot.writeStructBegin('getAllPrivateDealsComparison_args')
30035
    oprot.writeFieldStop()
30036
    oprot.writeStructEnd()
30037
 
30038
  def validate(self):
30039
    return
30040
 
30041
 
30042
  def __repr__(self):
30043
    L = ['%s=%r' % (key, value)
30044
      for key, value in self.__dict__.iteritems()]
30045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30046
 
30047
  def __eq__(self, other):
30048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30049
 
30050
  def __ne__(self, other):
30051
    return not (self == other)
30052
 
30053
class getAllPrivateDealsComparison_result:
30054
  """
30055
  Attributes:
30056
   - success
30057
  """
30058
 
30059
  thrift_spec = (
30060
    (0, TType.LIST, 'success', (TType.STRUCT,(PdPriceComp, PdPriceComp.thrift_spec)), None, ), # 0
30061
  )
30062
 
30063
  def __init__(self, success=None,):
30064
    self.success = success
30065
 
30066
  def read(self, iprot):
30067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30069
      return
30070
    iprot.readStructBegin()
30071
    while True:
30072
      (fname, ftype, fid) = iprot.readFieldBegin()
30073
      if ftype == TType.STOP:
30074
        break
30075
      if fid == 0:
30076
        if ftype == TType.LIST:
30077
          self.success = []
30078
          (_etype681, _size678) = iprot.readListBegin()
30079
          for _i682 in xrange(_size678):
30080
            _elem683 = PdPriceComp()
30081
            _elem683.read(iprot)
30082
            self.success.append(_elem683)
30083
          iprot.readListEnd()
30084
        else:
30085
          iprot.skip(ftype)
30086
      else:
30087
        iprot.skip(ftype)
30088
      iprot.readFieldEnd()
30089
    iprot.readStructEnd()
30090
 
30091
  def write(self, oprot):
30092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30094
      return
30095
    oprot.writeStructBegin('getAllPrivateDealsComparison_result')
30096
    if self.success is not None:
30097
      oprot.writeFieldBegin('success', TType.LIST, 0)
30098
      oprot.writeListBegin(TType.STRUCT, len(self.success))
30099
      for iter684 in self.success:
30100
        iter684.write(oprot)
30101
      oprot.writeListEnd()
30102
      oprot.writeFieldEnd()
30103
    oprot.writeFieldStop()
30104
    oprot.writeStructEnd()
30105
 
30106
  def validate(self):
30107
    return
30108
 
30109
 
30110
  def __repr__(self):
30111
    L = ['%s=%r' % (key, value)
30112
      for key, value in self.__dict__.iteritems()]
30113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30114
 
30115
  def __eq__(self, other):
30116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30117
 
30118
  def __ne__(self, other):
30119
    return not (self == other)
12133 kshitij.so 30120
 
30121
class getAllSnapdealMarketplaceItem_args:
30122
 
30123
  thrift_spec = (
30124
  )
30125
 
30126
  def read(self, iprot):
30127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30129
      return
30130
    iprot.readStructBegin()
30131
    while True:
30132
      (fname, ftype, fid) = iprot.readFieldBegin()
30133
      if ftype == TType.STOP:
30134
        break
30135
      else:
30136
        iprot.skip(ftype)
30137
      iprot.readFieldEnd()
30138
    iprot.readStructEnd()
30139
 
30140
  def write(self, oprot):
30141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30143
      return
30144
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_args')
30145
    oprot.writeFieldStop()
30146
    oprot.writeStructEnd()
30147
 
30148
  def validate(self):
30149
    return
30150
 
30151
 
30152
  def __repr__(self):
30153
    L = ['%s=%r' % (key, value)
30154
      for key, value in self.__dict__.iteritems()]
30155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30156
 
30157
  def __eq__(self, other):
30158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30159
 
30160
  def __ne__(self, other):
30161
    return not (self == other)
30162
 
30163
class getAllSnapdealMarketplaceItem_result:
30164
  """
30165
  Attributes:
30166
   - success
30167
  """
30168
 
30169
  thrift_spec = (
30170
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
30171
  )
30172
 
30173
  def __init__(self, success=None,):
30174
    self.success = success
30175
 
30176
  def read(self, iprot):
30177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30179
      return
30180
    iprot.readStructBegin()
30181
    while True:
30182
      (fname, ftype, fid) = iprot.readFieldBegin()
30183
      if ftype == TType.STOP:
30184
        break
30185
      if fid == 0:
30186
        if ftype == TType.LIST:
30187
          self.success = []
30188
          (_etype688, _size685) = iprot.readListBegin()
30189
          for _i689 in xrange(_size685):
30190
            _elem690 = SnapdealItem()
30191
            _elem690.read(iprot)
30192
            self.success.append(_elem690)
30193
          iprot.readListEnd()
30194
        else:
30195
          iprot.skip(ftype)
30196
      else:
30197
        iprot.skip(ftype)
30198
      iprot.readFieldEnd()
30199
    iprot.readStructEnd()
30200
 
30201
  def write(self, oprot):
30202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30204
      return
30205
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_result')
30206
    if self.success is not None:
30207
      oprot.writeFieldBegin('success', TType.LIST, 0)
30208
      oprot.writeListBegin(TType.STRUCT, len(self.success))
30209
      for iter691 in self.success:
30210
        iter691.write(oprot)
30211
      oprot.writeListEnd()
30212
      oprot.writeFieldEnd()
30213
    oprot.writeFieldStop()
30214
    oprot.writeStructEnd()
30215
 
30216
  def validate(self):
30217
    return
30218
 
30219
 
30220
  def __repr__(self):
30221
    L = ['%s=%r' % (key, value)
30222
      for key, value in self.__dict__.iteritems()]
30223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30224
 
30225
  def __eq__(self, other):
30226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30227
 
30228
  def __ne__(self, other):
30229
    return not (self == other)
30230
 
30231
class getAllFlipkartMarketplaceItem_args:
30232
 
30233
  thrift_spec = (
30234
  )
30235
 
30236
  def read(self, iprot):
30237
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30238
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30239
      return
30240
    iprot.readStructBegin()
30241
    while True:
30242
      (fname, ftype, fid) = iprot.readFieldBegin()
30243
      if ftype == TType.STOP:
30244
        break
30245
      else:
30246
        iprot.skip(ftype)
30247
      iprot.readFieldEnd()
30248
    iprot.readStructEnd()
30249
 
30250
  def write(self, oprot):
30251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30253
      return
30254
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_args')
30255
    oprot.writeFieldStop()
30256
    oprot.writeStructEnd()
30257
 
30258
  def validate(self):
30259
    return
30260
 
30261
 
30262
  def __repr__(self):
30263
    L = ['%s=%r' % (key, value)
30264
      for key, value in self.__dict__.iteritems()]
30265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30266
 
30267
  def __eq__(self, other):
30268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30269
 
30270
  def __ne__(self, other):
30271
    return not (self == other)
30272
 
30273
class getAllFlipkartMarketplaceItem_result:
30274
  """
30275
  Attributes:
30276
   - success
30277
  """
30278
 
30279
  thrift_spec = (
30280
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
30281
  )
30282
 
30283
  def __init__(self, success=None,):
30284
    self.success = success
30285
 
30286
  def read(self, iprot):
30287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30289
      return
30290
    iprot.readStructBegin()
30291
    while True:
30292
      (fname, ftype, fid) = iprot.readFieldBegin()
30293
      if ftype == TType.STOP:
30294
        break
30295
      if fid == 0:
30296
        if ftype == TType.LIST:
30297
          self.success = []
30298
          (_etype695, _size692) = iprot.readListBegin()
30299
          for _i696 in xrange(_size692):
30300
            _elem697 = FlipkartItem()
30301
            _elem697.read(iprot)
30302
            self.success.append(_elem697)
30303
          iprot.readListEnd()
30304
        else:
30305
          iprot.skip(ftype)
30306
      else:
30307
        iprot.skip(ftype)
30308
      iprot.readFieldEnd()
30309
    iprot.readStructEnd()
30310
 
30311
  def write(self, oprot):
30312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30314
      return
30315
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_result')
30316
    if self.success is not None:
30317
      oprot.writeFieldBegin('success', TType.LIST, 0)
30318
      oprot.writeListBegin(TType.STRUCT, len(self.success))
30319
      for iter698 in self.success:
30320
        iter698.write(oprot)
30321
      oprot.writeListEnd()
30322
      oprot.writeFieldEnd()
30323
    oprot.writeFieldStop()
30324
    oprot.writeStructEnd()
30325
 
30326
  def validate(self):
30327
    return
30328
 
30329
 
30330
  def __repr__(self):
30331
    L = ['%s=%r' % (key, value)
30332
      for key, value in self.__dict__.iteritems()]
30333
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30334
 
30335
  def __eq__(self, other):
30336
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30337
 
30338
  def __ne__(self, other):
30339
    return not (self == other)
12243 kshitij.so 30340
 
30341
class addCompetitorScraping_args:
30342
  """
30343
  Attributes:
30344
   - competitorPricingMap
30345
  """
30346
 
30347
  thrift_spec = (
30348
    None, # 0
30349
    (1, TType.MAP, 'competitorPricingMap', (TType.I64,None,TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 1
30350
  )
30351
 
30352
  def __init__(self, competitorPricingMap=None,):
30353
    self.competitorPricingMap = competitorPricingMap
30354
 
30355
  def read(self, iprot):
30356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30358
      return
30359
    iprot.readStructBegin()
30360
    while True:
30361
      (fname, ftype, fid) = iprot.readFieldBegin()
30362
      if ftype == TType.STOP:
30363
        break
30364
      if fid == 1:
30365
        if ftype == TType.MAP:
30366
          self.competitorPricingMap = {}
30367
          (_ktype700, _vtype701, _size699 ) = iprot.readMapBegin() 
30368
          for _i703 in xrange(_size699):
30369
            _key704 = iprot.readI64();
30370
            _val705 = CompetitorPricing()
30371
            _val705.read(iprot)
30372
            self.competitorPricingMap[_key704] = _val705
30373
          iprot.readMapEnd()
30374
        else:
30375
          iprot.skip(ftype)
30376
      else:
30377
        iprot.skip(ftype)
30378
      iprot.readFieldEnd()
30379
    iprot.readStructEnd()
30380
 
30381
  def write(self, oprot):
30382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30384
      return
30385
    oprot.writeStructBegin('addCompetitorScraping_args')
30386
    if self.competitorPricingMap is not None:
30387
      oprot.writeFieldBegin('competitorPricingMap', TType.MAP, 1)
30388
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.competitorPricingMap))
30389
      for kiter706,viter707 in self.competitorPricingMap.items():
30390
        oprot.writeI64(kiter706)
30391
        viter707.write(oprot)
30392
      oprot.writeMapEnd()
30393
      oprot.writeFieldEnd()
30394
    oprot.writeFieldStop()
30395
    oprot.writeStructEnd()
30396
 
30397
  def validate(self):
30398
    return
30399
 
30400
 
30401
  def __repr__(self):
30402
    L = ['%s=%r' % (key, value)
30403
      for key, value in self.__dict__.iteritems()]
30404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30405
 
30406
  def __eq__(self, other):
30407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30408
 
30409
  def __ne__(self, other):
30410
    return not (self == other)
30411
 
30412
class addCompetitorScraping_result:
30413
 
30414
  thrift_spec = (
30415
  )
30416
 
30417
  def read(self, iprot):
30418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30420
      return
30421
    iprot.readStructBegin()
30422
    while True:
30423
      (fname, ftype, fid) = iprot.readFieldBegin()
30424
      if ftype == TType.STOP:
30425
        break
30426
      else:
30427
        iprot.skip(ftype)
30428
      iprot.readFieldEnd()
30429
    iprot.readStructEnd()
30430
 
30431
  def write(self, oprot):
30432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30434
      return
30435
    oprot.writeStructBegin('addCompetitorScraping_result')
30436
    oprot.writeFieldStop()
30437
    oprot.writeStructEnd()
30438
 
30439
  def validate(self):
30440
    return
30441
 
30442
 
30443
  def __repr__(self):
30444
    L = ['%s=%r' % (key, value)
30445
      for key, value in self.__dict__.iteritems()]
30446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30447
 
30448
  def __eq__(self, other):
30449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30450
 
30451
  def __ne__(self, other):
30452
    return not (self == other)
30453
 
30454
class getPreviousCompetitorScraping_args:
30455
  """
30456
  Attributes:
30457
   - delta
30458
  """
30459
 
30460
  thrift_spec = (
30461
    None, # 0
30462
    (1, TType.I64, 'delta', None, None, ), # 1
30463
  )
30464
 
30465
  def __init__(self, delta=None,):
30466
    self.delta = delta
30467
 
30468
  def read(self, iprot):
30469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30471
      return
30472
    iprot.readStructBegin()
30473
    while True:
30474
      (fname, ftype, fid) = iprot.readFieldBegin()
30475
      if ftype == TType.STOP:
30476
        break
30477
      if fid == 1:
30478
        if ftype == TType.I64:
30479
          self.delta = iprot.readI64();
30480
        else:
30481
          iprot.skip(ftype)
30482
      else:
30483
        iprot.skip(ftype)
30484
      iprot.readFieldEnd()
30485
    iprot.readStructEnd()
30486
 
30487
  def write(self, oprot):
30488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30490
      return
30491
    oprot.writeStructBegin('getPreviousCompetitorScraping_args')
30492
    if self.delta is not None:
30493
      oprot.writeFieldBegin('delta', TType.I64, 1)
30494
      oprot.writeI64(self.delta)
30495
      oprot.writeFieldEnd()
30496
    oprot.writeFieldStop()
30497
    oprot.writeStructEnd()
30498
 
30499
  def validate(self):
30500
    return
30501
 
30502
 
30503
  def __repr__(self):
30504
    L = ['%s=%r' % (key, value)
30505
      for key, value in self.__dict__.iteritems()]
30506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30507
 
30508
  def __eq__(self, other):
30509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30510
 
30511
  def __ne__(self, other):
30512
    return not (self == other)
30513
 
30514
class getPreviousCompetitorScraping_result:
30515
  """
30516
  Attributes:
30517
   - success
30518
  """
30519
 
30520
  thrift_spec = (
30521
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
30522
  )
30523
 
30524
  def __init__(self, success=None,):
30525
    self.success = success
30526
 
30527
  def read(self, iprot):
30528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30530
      return
30531
    iprot.readStructBegin()
30532
    while True:
30533
      (fname, ftype, fid) = iprot.readFieldBegin()
30534
      if ftype == TType.STOP:
30535
        break
30536
      if fid == 0:
30537
        if ftype == TType.LIST:
30538
          self.success = []
30539
          (_etype711, _size708) = iprot.readListBegin()
30540
          for _i712 in xrange(_size708):
30541
            _elem713 = CompetitorPricing()
30542
            _elem713.read(iprot)
30543
            self.success.append(_elem713)
30544
          iprot.readListEnd()
30545
        else:
30546
          iprot.skip(ftype)
30547
      else:
30548
        iprot.skip(ftype)
30549
      iprot.readFieldEnd()
30550
    iprot.readStructEnd()
30551
 
30552
  def write(self, oprot):
30553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30555
      return
30556
    oprot.writeStructBegin('getPreviousCompetitorScraping_result')
30557
    if self.success is not None:
30558
      oprot.writeFieldBegin('success', TType.LIST, 0)
30559
      oprot.writeListBegin(TType.STRUCT, len(self.success))
30560
      for iter714 in self.success:
30561
        iter714.write(oprot)
30562
      oprot.writeListEnd()
30563
      oprot.writeFieldEnd()
30564
    oprot.writeFieldStop()
30565
    oprot.writeStructEnd()
30566
 
30567
  def validate(self):
30568
    return
30569
 
30570
 
30571
  def __repr__(self):
30572
    L = ['%s=%r' % (key, value)
30573
      for key, value in self.__dict__.iteritems()]
30574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30575
 
30576
  def __eq__(self, other):
30577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30578
 
30579
  def __ne__(self, other):
30580
    return not (self == other)
12256 kshitij.so 30581
 
30582
class getUploadResultById_args:
30583
  """
30584
  Attributes:
30585
   - uploadId
30586
  """
30587
 
30588
  thrift_spec = (
30589
    None, # 0
30590
    (1, TType.I64, 'uploadId', None, None, ), # 1
30591
  )
30592
 
30593
  def __init__(self, uploadId=None,):
30594
    self.uploadId = uploadId
30595
 
30596
  def read(self, iprot):
30597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30599
      return
30600
    iprot.readStructBegin()
30601
    while True:
30602
      (fname, ftype, fid) = iprot.readFieldBegin()
30603
      if ftype == TType.STOP:
30604
        break
30605
      if fid == 1:
30606
        if ftype == TType.I64:
30607
          self.uploadId = iprot.readI64();
30608
        else:
30609
          iprot.skip(ftype)
30610
      else:
30611
        iprot.skip(ftype)
30612
      iprot.readFieldEnd()
30613
    iprot.readStructEnd()
30614
 
30615
  def write(self, oprot):
30616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30618
      return
30619
    oprot.writeStructBegin('getUploadResultById_args')
30620
    if self.uploadId is not None:
30621
      oprot.writeFieldBegin('uploadId', TType.I64, 1)
30622
      oprot.writeI64(self.uploadId)
30623
      oprot.writeFieldEnd()
30624
    oprot.writeFieldStop()
30625
    oprot.writeStructEnd()
30626
 
30627
  def validate(self):
30628
    return
30629
 
30630
 
30631
  def __repr__(self):
30632
    L = ['%s=%r' % (key, value)
30633
      for key, value in self.__dict__.iteritems()]
30634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30635
 
30636
  def __eq__(self, other):
30637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30638
 
30639
  def __ne__(self, other):
30640
    return not (self == other)
30641
 
30642
class getUploadResultById_result:
30643
  """
30644
  Attributes:
30645
   - success
30646
  """
30647
 
30648
  thrift_spec = (
30649
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
30650
  )
30651
 
30652
  def __init__(self, success=None,):
30653
    self.success = success
30654
 
30655
  def read(self, iprot):
30656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30658
      return
30659
    iprot.readStructBegin()
30660
    while True:
30661
      (fname, ftype, fid) = iprot.readFieldBegin()
30662
      if ftype == TType.STOP:
30663
        break
30664
      if fid == 0:
30665
        if ftype == TType.LIST:
30666
          self.success = []
30667
          (_etype718, _size715) = iprot.readListBegin()
30668
          for _i719 in xrange(_size715):
30669
            _elem720 = CompetitorPricing()
30670
            _elem720.read(iprot)
30671
            self.success.append(_elem720)
30672
          iprot.readListEnd()
30673
        else:
30674
          iprot.skip(ftype)
30675
      else:
30676
        iprot.skip(ftype)
30677
      iprot.readFieldEnd()
30678
    iprot.readStructEnd()
30679
 
30680
  def write(self, oprot):
30681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30683
      return
30684
    oprot.writeStructBegin('getUploadResultById_result')
30685
    if self.success is not None:
30686
      oprot.writeFieldBegin('success', TType.LIST, 0)
30687
      oprot.writeListBegin(TType.STRUCT, len(self.success))
30688
      for iter721 in self.success:
30689
        iter721.write(oprot)
30690
      oprot.writeListEnd()
30691
      oprot.writeFieldEnd()
30692
    oprot.writeFieldStop()
30693
    oprot.writeStructEnd()
30694
 
30695
  def validate(self):
30696
    return
30697
 
30698
 
30699
  def __repr__(self):
30700
    L = ['%s=%r' % (key, value)
30701
      for key, value in self.__dict__.iteritems()]
30702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30703
 
30704
  def __eq__(self, other):
30705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30706
 
30707
  def __ne__(self, other):
30708
    return not (self == other)
12363 kshitij.so 30709
 
30710
class addAmazonPromotion_args:
30711
  """
30712
  Attributes:
30713
   - amazonPromotions
30714
  """
30715
 
30716
  thrift_spec = (
30717
    None, # 0
30718
    (1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
30719
  )
30720
 
30721
  def __init__(self, amazonPromotions=None,):
30722
    self.amazonPromotions = amazonPromotions
30723
 
30724
  def read(self, iprot):
30725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30727
      return
30728
    iprot.readStructBegin()
30729
    while True:
30730
      (fname, ftype, fid) = iprot.readFieldBegin()
30731
      if ftype == TType.STOP:
30732
        break
30733
      if fid == 1:
30734
        if ftype == TType.MAP:
30735
          self.amazonPromotions = {}
30736
          (_ktype723, _vtype724, _size722 ) = iprot.readMapBegin() 
30737
          for _i726 in xrange(_size722):
30738
            _key727 = iprot.readString();
30739
            _val728 = AmazonPromotion()
30740
            _val728.read(iprot)
30741
            self.amazonPromotions[_key727] = _val728
30742
          iprot.readMapEnd()
30743
        else:
30744
          iprot.skip(ftype)
30745
      else:
30746
        iprot.skip(ftype)
30747
      iprot.readFieldEnd()
30748
    iprot.readStructEnd()
30749
 
30750
  def write(self, oprot):
30751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30753
      return
30754
    oprot.writeStructBegin('addAmazonPromotion_args')
30755
    if self.amazonPromotions is not None:
30756
      oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)
30757
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))
30758
      for kiter729,viter730 in self.amazonPromotions.items():
30759
        oprot.writeString(kiter729)
30760
        viter730.write(oprot)
30761
      oprot.writeMapEnd()
30762
      oprot.writeFieldEnd()
30763
    oprot.writeFieldStop()
30764
    oprot.writeStructEnd()
30765
 
30766
  def validate(self):
30767
    return
30768
 
30769
 
30770
  def __repr__(self):
30771
    L = ['%s=%r' % (key, value)
30772
      for key, value in self.__dict__.iteritems()]
30773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30774
 
30775
  def __eq__(self, other):
30776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30777
 
30778
  def __ne__(self, other):
30779
    return not (self == other)
30780
 
30781
class addAmazonPromotion_result:
30782
  """
30783
  Attributes:
30784
   - success
30785
  """
30786
 
30787
  thrift_spec = (
30788
    (0, TType.BOOL, 'success', None, None, ), # 0
30789
  )
30790
 
30791
  def __init__(self, success=None,):
30792
    self.success = success
30793
 
30794
  def read(self, iprot):
30795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30797
      return
30798
    iprot.readStructBegin()
30799
    while True:
30800
      (fname, ftype, fid) = iprot.readFieldBegin()
30801
      if ftype == TType.STOP:
30802
        break
30803
      if fid == 0:
30804
        if ftype == TType.BOOL:
30805
          self.success = iprot.readBool();
30806
        else:
30807
          iprot.skip(ftype)
30808
      else:
30809
        iprot.skip(ftype)
30810
      iprot.readFieldEnd()
30811
    iprot.readStructEnd()
30812
 
30813
  def write(self, oprot):
30814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30816
      return
30817
    oprot.writeStructBegin('addAmazonPromotion_result')
30818
    if self.success is not None:
30819
      oprot.writeFieldBegin('success', TType.BOOL, 0)
30820
      oprot.writeBool(self.success)
30821
      oprot.writeFieldEnd()
30822
    oprot.writeFieldStop()
30823
    oprot.writeStructEnd()
30824
 
30825
  def validate(self):
30826
    return
30827
 
30828
 
30829
  def __repr__(self):
30830
    L = ['%s=%r' % (key, value)
30831
      for key, value in self.__dict__.iteritems()]
30832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30833
 
30834
  def __eq__(self, other):
30835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30836
 
30837
  def __ne__(self, other):
30838
    return not (self == other)
30839
 
30840
class getAmazonPromotion_args:
30841
  """
30842
  Attributes:
30843
   - startDate
30844
   - endDate
30845
  """
30846
 
30847
  thrift_spec = (
30848
    None, # 0
30849
    (1, TType.I64, 'startDate', None, None, ), # 1
30850
    (2, TType.I64, 'endDate', None, None, ), # 2
30851
  )
30852
 
30853
  def __init__(self, startDate=None, endDate=None,):
30854
    self.startDate = startDate
30855
    self.endDate = endDate
30856
 
30857
  def read(self, iprot):
30858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30860
      return
30861
    iprot.readStructBegin()
30862
    while True:
30863
      (fname, ftype, fid) = iprot.readFieldBegin()
30864
      if ftype == TType.STOP:
30865
        break
30866
      if fid == 1:
30867
        if ftype == TType.I64:
30868
          self.startDate = iprot.readI64();
30869
        else:
30870
          iprot.skip(ftype)
30871
      elif fid == 2:
30872
        if ftype == TType.I64:
30873
          self.endDate = iprot.readI64();
30874
        else:
30875
          iprot.skip(ftype)
30876
      else:
30877
        iprot.skip(ftype)
30878
      iprot.readFieldEnd()
30879
    iprot.readStructEnd()
30880
 
30881
  def write(self, oprot):
30882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30884
      return
30885
    oprot.writeStructBegin('getAmazonPromotion_args')
30886
    if self.startDate is not None:
30887
      oprot.writeFieldBegin('startDate', TType.I64, 1)
30888
      oprot.writeI64(self.startDate)
30889
      oprot.writeFieldEnd()
30890
    if self.endDate is not None:
30891
      oprot.writeFieldBegin('endDate', TType.I64, 2)
30892
      oprot.writeI64(self.endDate)
30893
      oprot.writeFieldEnd()
30894
    oprot.writeFieldStop()
30895
    oprot.writeStructEnd()
30896
 
30897
  def validate(self):
30898
    return
30899
 
30900
 
30901
  def __repr__(self):
30902
    L = ['%s=%r' % (key, value)
30903
      for key, value in self.__dict__.iteritems()]
30904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30905
 
30906
  def __eq__(self, other):
30907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30908
 
30909
  def __ne__(self, other):
30910
    return not (self == other)
30911
 
30912
class getAmazonPromotion_result:
30913
  """
30914
  Attributes:
30915
   - success
30916
  """
30917
 
30918
  thrift_spec = (
30919
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 0
30920
  )
30921
 
30922
  def __init__(self, success=None,):
30923
    self.success = success
30924
 
30925
  def read(self, iprot):
30926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30928
      return
30929
    iprot.readStructBegin()
30930
    while True:
30931
      (fname, ftype, fid) = iprot.readFieldBegin()
30932
      if ftype == TType.STOP:
30933
        break
30934
      if fid == 0:
30935
        if ftype == TType.LIST:
30936
          self.success = []
30937
          (_etype734, _size731) = iprot.readListBegin()
30938
          for _i735 in xrange(_size731):
30939
            _elem736 = AmazonPromotion()
30940
            _elem736.read(iprot)
30941
            self.success.append(_elem736)
30942
          iprot.readListEnd()
30943
        else:
30944
          iprot.skip(ftype)
30945
      else:
30946
        iprot.skip(ftype)
30947
      iprot.readFieldEnd()
30948
    iprot.readStructEnd()
30949
 
30950
  def write(self, oprot):
30951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30953
      return
30954
    oprot.writeStructBegin('getAmazonPromotion_result')
30955
    if self.success is not None:
30956
      oprot.writeFieldBegin('success', TType.LIST, 0)
30957
      oprot.writeListBegin(TType.STRUCT, len(self.success))
30958
      for iter737 in self.success:
30959
        iter737.write(oprot)
30960
      oprot.writeListEnd()
30961
      oprot.writeFieldEnd()
30962
    oprot.writeFieldStop()
30963
    oprot.writeStructEnd()
30964
 
30965
  def validate(self):
30966
    return
30967
 
30968
 
30969
  def __repr__(self):
30970
    L = ['%s=%r' % (key, value)
30971
      for key, value in self.__dict__.iteritems()]
30972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30973
 
30974
  def __eq__(self, other):
30975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30976
 
30977
  def __ne__(self, other):
30978
    return not (self == other)
30979
 
30980
class updateAmazonPromotion_args:
30981
  """
30982
  Attributes:
30983
   - amazonPromotions
30984
  """
30985
 
30986
  thrift_spec = (
30987
    None, # 0
30988
    (1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
30989
  )
30990
 
30991
  def __init__(self, amazonPromotions=None,):
30992
    self.amazonPromotions = amazonPromotions
30993
 
30994
  def read(self, iprot):
30995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30997
      return
30998
    iprot.readStructBegin()
30999
    while True:
31000
      (fname, ftype, fid) = iprot.readFieldBegin()
31001
      if ftype == TType.STOP:
31002
        break
31003
      if fid == 1:
31004
        if ftype == TType.LIST:
31005
          self.amazonPromotions = []
31006
          (_etype741, _size738) = iprot.readListBegin()
31007
          for _i742 in xrange(_size738):
31008
            _elem743 = AmazonPromotion()
31009
            _elem743.read(iprot)
31010
            self.amazonPromotions.append(_elem743)
31011
          iprot.readListEnd()
31012
        else:
31013
          iprot.skip(ftype)
31014
      else:
31015
        iprot.skip(ftype)
31016
      iprot.readFieldEnd()
31017
    iprot.readStructEnd()
31018
 
31019
  def write(self, oprot):
31020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31022
      return
31023
    oprot.writeStructBegin('updateAmazonPromotion_args')
31024
    if self.amazonPromotions is not None:
31025
      oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)
31026
      oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))
31027
      for iter744 in self.amazonPromotions:
31028
        iter744.write(oprot)
31029
      oprot.writeListEnd()
31030
      oprot.writeFieldEnd()
31031
    oprot.writeFieldStop()
31032
    oprot.writeStructEnd()
31033
 
31034
  def validate(self):
31035
    return
31036
 
31037
 
31038
  def __repr__(self):
31039
    L = ['%s=%r' % (key, value)
31040
      for key, value in self.__dict__.iteritems()]
31041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31042
 
31043
  def __eq__(self, other):
31044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31045
 
31046
  def __ne__(self, other):
31047
    return not (self == other)
31048
 
31049
class updateAmazonPromotion_result:
31050
  """
31051
  Attributes:
31052
   - success
31053
  """
31054
 
31055
  thrift_spec = (
31056
    (0, TType.BOOL, 'success', None, None, ), # 0
31057
  )
31058
 
31059
  def __init__(self, success=None,):
31060
    self.success = success
31061
 
31062
  def read(self, iprot):
31063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31065
      return
31066
    iprot.readStructBegin()
31067
    while True:
31068
      (fname, ftype, fid) = iprot.readFieldBegin()
31069
      if ftype == TType.STOP:
31070
        break
31071
      if fid == 0:
31072
        if ftype == TType.BOOL:
31073
          self.success = iprot.readBool();
31074
        else:
31075
          iprot.skip(ftype)
31076
      else:
31077
        iprot.skip(ftype)
31078
      iprot.readFieldEnd()
31079
    iprot.readStructEnd()
31080
 
31081
  def write(self, oprot):
31082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31084
      return
31085
    oprot.writeStructBegin('updateAmazonPromotion_result')
31086
    if self.success is not None:
31087
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31088
      oprot.writeBool(self.success)
31089
      oprot.writeFieldEnd()
31090
    oprot.writeFieldStop()
31091
    oprot.writeStructEnd()
31092
 
31093
  def validate(self):
31094
    return
31095
 
31096
 
31097
  def __repr__(self):
31098
    L = ['%s=%r' % (key, value)
31099
      for key, value in self.__dict__.iteritems()]
31100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31101
 
31102
  def __eq__(self, other):
31103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31104
 
31105
  def __ne__(self, other):
31106
    return not (self == other)